comparison configure @ 3281:310c0b9bea21

detect termios.h if no sys/termios.h (qnx getch2 support working)
author alex
date Mon, 03 Dec 2001 15:22:03 +0000
parents e279cc05f189
children 73de2c85844d
comparison
equal deleted inserted replaced
3280:542f7c228e38 3281:310c0b9bea21
1214 #include <sys/termios.h> 1214 #include <sys/termios.h>
1215 int main(void) { return 0; } 1215 int main(void) { return 0; }
1216 EOF 1216 EOF
1217 _termios=no 1217 _termios=no
1218 cc_check && _termios=yes 1218 cc_check && _termios=yes
1219 fi 1219 _def_termios_h_name='sys/termios.h'
1220 fi
1221 # second test:
1222 if test "$_termios" = no ; then
1223 cat > $TMPC <<EOF
1224 #include <termios.h>
1225 int main(void) { return 0; }
1226 EOF
1227 _termios=no
1228 cc_check && _termios=yes
1229 _def_termios_h_name='termios.h'
1230 fi
1231
1220 if test "$_termios" = yes ; then 1232 if test "$_termios" = yes ; then
1221 _def_termios='#define HAVE_TERMIOS 1' 1233 _def_termios='#define HAVE_TERMIOS 1'
1222 else 1234 _def_termios_h='#undef HAVE_TERMIOS_H'
1235 _def_termios_sys_h='#undef HAVE_SYS_TERMIOS_H'
1236
1237 if test "$_def_termios_h_name" = 'sys/termios.h' ; then
1238 _def_termios_sys_h='#define HAVE_SYS_TERMIOS_H 1'
1239 elif test "$_def_termios_h_name" = 'termios.h' ; then
1240 _def_termios_h='#define HAVE_TERMIOS_H 1'
1241 fi
1242 else
1223 _def_termios='#undef HAVE_TERMIOS' 1243 _def_termios='#undef HAVE_TERMIOS'
1224 fi 1244 _def_termios_h_name=''
1225 echores "$_termios" 1245 fi
1246 echores "$_termios (using: $_def_termios_h_name)"
1226 1247
1227 1248
1228 echocheck "shm" 1249 echocheck "shm"
1229 if test "$_shm" = auto ; then 1250 if test "$_shm" = auto ; then
1230 cat > $TMPC << EOF 1251 cat > $TMPC << EOF
2853 /* termcap flag for getch2.c */ 2874 /* termcap flag for getch2.c */
2854 $_def_termcap 2875 $_def_termcap
2855 2876
2856 /* termios flag for getch2.c */ 2877 /* termios flag for getch2.c */
2857 $_def_termios 2878 $_def_termios
2879 $_def_termios_h
2880 $_def_termios_sys_h
2858 2881
2859 /* enable PNG support */ 2882 /* enable PNG support */
2860 $_def_png 2883 $_def_png
2861 2884
2862 /* libmad support */ 2885 /* libmad support */