[MPlayer-dev-eng] configure [PATCH]

Torinthiel torinthiel at wp.pl
Mon Nov 10 11:40:47 CET 2003


On Mon, Nov 10, 2003 at 11:11:48AM +0100, Attila Kinali wrote:
> On Wed, 5 Nov 2003 00:04:41 +0100
> Torinthiel <torinthiel at wp.pl> wrote:
> 
> > 
> > Any comments? OK to apply?
> 
> I didnt have the time to look at it.
> I'll promise it to do it this week.

Then look at this one. I've fixed a misspelled option name on
./configure --help

Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3075312
   torinthiel(at)wp(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.799
diff -u -r1.799 configure
--- configure	1 Nov 2003 14:57:40 -0000	1.799
+++ configure	1 Nov 2003 18:17:57 -0000
@@ -317,6 +317,7 @@
   --with-xmmslibdir=DIR    path to libxmms.so.1
   --with-cdparanoiaincdir=DIR  cdparanoia headers in DIR
   --with-cdparanoialibdir=DIR  cdparanoia libraries (libcdda_*) in DIR
+  --with-termcaplib=NAME   name of library with termcap functionality
   --with-fribidi-config=PATH  path to fribidi-config
                               (e.g. /opt/bin/fribidi-config)
 
@@ -1558,7 +1559,10 @@
   --with-cdparanoialibdir=*)
     _ld_cdparanoia=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
     ;;
-
+  --with-termcaplib=*)
+    _ld_termcap=-l`echo $ac_option | cut -d '=' -f 2`
+    _termcap=yes
+    ;;
   --prefix=*)
     _prefix=`echo $ac_option | cut -d '=' -f 2`
     ;;
@@ -2432,15 +2436,16 @@
 int main(void) { return 0; }
 EOF
   _termcap=no
-  cc_check -ltermcap && _termcap=yes
+  cc_check -ltermcap && _termcap=yes && _ld_termcap='-ltermcap'
+  cc_check -ltinfo && _termcap=yes && _ld_termcap='-ltinfo'
 fi
 if test "$_termcap" = yes ; then
   _def_termcap='#define USE_TERMCAP 1'
-  _ld_termcap='-ltermcap'
+  echores "yes (using $_ld_termcap)"
 else
   _def_termcap='#undef USE_TERMCAP'
+  echores no
 fi
-echores "$_termcap"
 
 
 echocheck "termios"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031110/ddc2f354/attachment.pgp>


More information about the MPlayer-dev-eng mailing list