Mercurial > mplayer.hg
comparison configure @ 11475:c615d753501f
check whether termcap is provided by tinfo
patch by Torinthiel <torinthiel@wp.pl>
author | attila |
---|---|
date | Sun, 16 Nov 2003 09:25:13 +0000 |
parents | 230c64786074 |
children | ad57fa26c89b |
comparison
equal
deleted
inserted
replaced
11474:230c64786074 | 11475:c615d753501f |
---|---|
150 --disable-mencoder disable mencoder (a/v encoder) compilation [enable] | 150 --disable-mencoder disable mencoder (a/v encoder) compilation [enable] |
151 --enable-gui enable gmplayer compilation (gtk-1.2 GUI) [disable] | 151 --enable-gui enable gmplayer compilation (gtk-1.2 GUI) [disable] |
152 --enable-largefiles enable support for files > 2 GBytes [disable] | 152 --enable-largefiles enable support for files > 2 GBytes [disable] |
153 --enable-linux-devfs set default devices to devfs ones [disable] | 153 --enable-linux-devfs set default devices to devfs ones [disable] |
154 --enable-termcap use termcap database for key codes [autodetect] | 154 --enable-termcap use termcap database for key codes [autodetect] |
155 --with-termcaplib=NAME name of library with termcap functionality | |
156 name shuld be given without leading "lib" | |
157 checks for "termcap" and "tinfo" | |
155 --disable-iconv do not use iconv(3) function [autodetect] | 158 --disable-iconv do not use iconv(3) function [autodetect] |
156 --disable-setlocale disable setlocale using in mplayer [autodetect] | 159 --disable-setlocale disable setlocale using in mplayer [autodetect] |
157 --enable-lirc enable LIRC (remote control) support [autodetect] | 160 --enable-lirc enable LIRC (remote control) support [autodetect] |
158 --enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect] | 161 --enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect] |
159 --enable-joystick enable joystick support [disable] | 162 --enable-joystick enable joystick support [disable] |
1557 _inc_cdparanoia=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | 1560 _inc_cdparanoia=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` |
1558 ;; | 1561 ;; |
1559 --with-cdparanoialibdir=*) | 1562 --with-cdparanoialibdir=*) |
1560 _ld_cdparanoia=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` | 1563 _ld_cdparanoia=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` |
1561 ;; | 1564 ;; |
1562 | 1565 --with-termcaplib=*) |
1566 _ld_termcap=-l`echo $ac_option | cut -d '=' -f 2` | |
1567 _termcap=yes | |
1568 ;; | |
1563 --prefix=*) | 1569 --prefix=*) |
1564 _prefix=`echo $ac_option | cut -d '=' -f 2` | 1570 _prefix=`echo $ac_option | cut -d '=' -f 2` |
1565 ;; | 1571 ;; |
1566 --bindir=*) | 1572 --bindir=*) |
1567 _bindir=`echo $ac_option | cut -d '=' -f 2` | 1573 _bindir=`echo $ac_option | cut -d '=' -f 2` |
2467 if test "$_termcap" = auto ; then | 2473 if test "$_termcap" = auto ; then |
2468 cat > $TMPC <<EOF | 2474 cat > $TMPC <<EOF |
2469 int main(void) { return 0; } | 2475 int main(void) { return 0; } |
2470 EOF | 2476 EOF |
2471 _termcap=no | 2477 _termcap=no |
2472 cc_check -ltermcap && _termcap=yes | 2478 cc_check -ltermcap && _termcap=yes && _ld_termcap='-ltermcap' |
2479 cc_check -ltinfo && _termcap=yes && _ld_termcap='-ltinfo' | |
2473 fi | 2480 fi |
2474 if test "$_termcap" = yes ; then | 2481 if test "$_termcap" = yes ; then |
2475 _def_termcap='#define USE_TERMCAP 1' | 2482 _def_termcap='#define USE_TERMCAP 1' |
2476 _ld_termcap='-ltermcap' | 2483 echores "yes (using $_ld_termcap)" |
2477 else | 2484 else |
2478 _def_termcap='#undef USE_TERMCAP' | 2485 _def_termcap='#undef USE_TERMCAP' |
2479 fi | 2486 echores no |
2480 echores "$_termcap" | 2487 fi |
2481 | 2488 |
2482 | 2489 |
2483 echocheck "termios" | 2490 echocheck "termios" |
2484 if test "$_termios" = auto ; then | 2491 if test "$_termios" = auto ; then |
2485 cat > $TMPC <<EOF | 2492 cat > $TMPC <<EOF |