diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-19 16:42:01 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-19 16:42:01 +0000 |
commit | b52ed1aee8b9bf94469c71b12ccd313dab434735 (patch) | |
tree | 327c0a5d1558f8edeb6e5b25897cdc1216f75676 /configure | |
parent | 89178ddf615caa2252bbced6585ae21e7ff6fe18 (diff) |
added termios detection support (no termios on qnx)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3008 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -666,6 +666,7 @@ _divx4linux=auto _lirc=auto _gui=no _termcap=auto +_termios=auto _3dfx=no _tdfxfb=no _largefiles=no @@ -758,6 +759,8 @@ for ac_option do --disable-gui) _gui=no ;; --enable-termcap) _termcap=yes ;; --disable-termcap) _termcap=no ;; + --enable-termios) _termios=yes ;; + --disable-termios) _termios=no ;; --enable-3dfx) _3dfx=yes ;; --disable-3dfx) _3dfx=no ;; --enable-tdfxfb) _tdfxfb=yes ;; @@ -1135,10 +1138,30 @@ fi echores "$_termcap" +echocheck "termios" +if test "$_termios" = auto ; then + _termios=no + cat > $TMPC <<EOF +#include <sys/termios.h> +int main(void) { return 0; } +EOF + cc_check && _termios=yes +else + _termios=no +fi +if test "$_termios" = yes ; then + _def_termios='#define USE_TERMIOS 1' + else + _def_termios='#undef USE_TERMIOS' +fi +echores "$_termios" + + echocheck "shm" if test "$_shm" = auto ; then _shm=no cat > $TMPC << EOF +#include <sys/types.h> #include <sys/shm.h> int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; } EOF @@ -2554,6 +2577,9 @@ $_def_linux /* termcap flag for getch2.c */ $_def_termcap +/* termios flag for getch2.c */ +$_def_termios + /* enable PNG support */ $_def_png |