[MPlayer-dev-eng] configure [PATCH]

Torinthiel torinthiel at wp.pl
Sat Nov 1 19:21:06 CET 2003


On Sat, Nov 01, 2003 at 06:41:39PM +0100, Attila Kinali wrote:
> On Sat, 1 Nov 2003 18:26:31 +0100
> Torinthiel <torinthiel at wp.pl> wrote:
> > Are there any guidelines for options placement (in --help mainly)
> 
> Hmm... do it like the others too ^^'
It's the first time somebody adds only library name? Nooo ;)
(to this time only dirs and complete names of static libs)

Ok, take a look at this (added --with-termcaplib that forces use of
certain library without any checking)
> 		Attila Kinali
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-termcablib=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/20031101/66b98199/attachment.pgp>


More information about the MPlayer-dev-eng mailing list