summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-16 09:25:13 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-16 09:25:13 +0000
commit404489039356196146992b3f309105fb9ab1dca0 (patch)
tree982869554f33af79cd66572c01f8418d6f4cb0e0 /configure
parent0dc21c35a70dbe67f2474cc3b253af333b2914f7 (diff)
downloadmpv-404489039356196146992b3f309105fb9ab1dca0.tar.bz2
mpv-404489039356196146992b3f309105fb9ab1dca0.tar.xz
check whether termcap is provided by tinfo
patch by Torinthiel <torinthiel@wp.pl> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11476 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 11 insertions, 4 deletions
diff --git a/configure b/configure
index 2a7abc1d52..e95933dc55 100755
--- a/configure
+++ b/configure
@@ -152,6 +152,9 @@ Optional features:
--enable-largefiles enable support for files > 2 GBytes [disable]
--enable-linux-devfs set default devices to devfs ones [disable]
--enable-termcap use termcap database for key codes [autodetect]
+ --with-termcaplib=NAME name of library with termcap functionality
+ name shuld be given without leading "lib"
+ checks for "termcap" and "tinfo"
--disable-iconv do not use iconv(3) function [autodetect]
--disable-setlocale disable setlocale using in mplayer [autodetect]
--enable-lirc enable LIRC (remote control) support [autodetect]
@@ -1559,7 +1562,10 @@ for ac_option do
--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`
;;
@@ -2469,15 +2475,16 @@ if test "$_termcap" = auto ; then
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"