~benklop/+junk/lcdproc

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Oxer
  • Date: 2004-05-19 21:32:59 UTC
  • Revision ID: james.westby@ubuntu.com-20040519213259-iipx6m4xlwap50w7
Tags: 0.4.5-1
* New upstream release which fixes two buffer overflow / string
  format vulnerabilities. By the way, yes I know this package is
  'native' when it should be 'normal', but I'll fix that with
  another upload because I want to get this security update done
  ASAP since upstream indicate it's a serious problem.
* Fixed location of example client 'metar.pl'.
  Closes: #249770

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
  --enable-drivers=<list> compile driver for LCDs in <list>.
30
30
                          drivers may be separated with commas.
31
31
                          Possible choices are:
32
 
                            mtxorb,cfontz,curses,text,lb216,
 
32
                            mtxorb,cfontz,cwlnx,curses,text,lb216,
33
33
                            hd44780,joy,irman,lircin,bayrad,glk,
34
 
                            stv5730,sed1330,sed1520,svgalib,lcdm001,t6963
 
34
                            stv5730,sed1330,sed1520,svgalib,lcdm001,
 
35
                            t6963,wirz-sli,sgx120
35
36
                          \"all\" compiles all drivers"
36
37
 
37
38
# Initialize some variables set by options.
574
575
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
575
576
# ./install, which can be erroneously created by make from ./install.sh.
576
577
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
577
 
echo "configure:578: checking for a BSD compatible install" >&5
 
578
echo "configure:579: checking for a BSD compatible install" >&5
578
579
if test -z "$INSTALL"; then
579
580
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
580
581
  echo $ac_n "(cached) $ac_c" 1>&6
627
628
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
628
629
 
629
630
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
630
 
echo "configure:631: checking whether build environment is sane" >&5
 
631
echo "configure:632: checking whether build environment is sane" >&5
631
632
# Just in case
632
633
sleep 1
633
634
echo timestamp > conftestfile
684
685
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
685
686
 
686
687
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
687
 
echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
688
echo "configure:689: checking whether ${MAKE-make} sets \${MAKE}" >&5
688
689
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
689
690
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
690
691
  echo $ac_n "(cached) $ac_c" 1>&6
713
714
 
714
715
PACKAGE=lcdproc
715
716
 
716
 
VERSION=CVS-stable-0-4-3-20020416
 
717
VERSION=0.4.5
717
718
 
718
719
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
719
720
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
730
731
 
731
732
missing_dir=`cd $ac_aux_dir && pwd`
732
733
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
733
 
echo "configure:734: checking for working aclocal" >&5
 
734
echo "configure:735: checking for working aclocal" >&5
734
735
# Run test in a subshell; some versions of sh will print an error if
735
736
# an executable is not found, even if stderr is redirected.
736
737
# Redirect stdin to placate older versions of autoconf.  Sigh.
743
744
fi
744
745
 
745
746
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
746
 
echo "configure:747: checking for working autoconf" >&5
 
747
echo "configure:748: checking for working autoconf" >&5
747
748
# Run test in a subshell; some versions of sh will print an error if
748
749
# an executable is not found, even if stderr is redirected.
749
750
# Redirect stdin to placate older versions of autoconf.  Sigh.
756
757
fi
757
758
 
758
759
echo $ac_n "checking for working automake""... $ac_c" 1>&6
759
 
echo "configure:760: checking for working automake" >&5
 
760
echo "configure:761: checking for working automake" >&5
760
761
# Run test in a subshell; some versions of sh will print an error if
761
762
# an executable is not found, even if stderr is redirected.
762
763
# Redirect stdin to placate older versions of autoconf.  Sigh.
769
770
fi
770
771
 
771
772
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
772
 
echo "configure:773: checking for working autoheader" >&5
 
773
echo "configure:774: checking for working autoheader" >&5
773
774
# Run test in a subshell; some versions of sh will print an error if
774
775
# an executable is not found, even if stderr is redirected.
775
776
# Redirect stdin to placate older versions of autoconf.  Sigh.
782
783
fi
783
784
 
784
785
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
785
 
echo "configure:786: checking for working makeinfo" >&5
 
786
echo "configure:787: checking for working makeinfo" >&5
786
787
# Run test in a subshell; some versions of sh will print an error if
787
788
# an executable is not found, even if stderr is redirected.
788
789
# Redirect stdin to placate older versions of autoconf.  Sigh.
806
807
fi
807
808
 
808
809
echo $ac_n "checking host system type""... $ac_c" 1>&6
809
 
echo "configure:810: checking host system type" >&5
 
810
echo "configure:811: checking host system type" >&5
810
811
 
811
812
host_alias=$host
812
813
case "$host_alias" in
867
868
 
868
869
 
869
870
echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
870
 
echo "configure:871: checking whether to enable debugging" >&5
 
871
echo "configure:872: checking whether to enable debugging" >&5
871
872
# Check whether --enable-debug or --disable-debug was given.
872
873
if test "${enable_debug+set}" = set; then
873
874
  enableval="$enable_debug"
874
 
  cat >> confdefs.h <<\EOF
 
875
  if [ "$enableval" = "yes" ]; then
 
876
        cat >> confdefs.h <<\EOF
875
877
#define DEBUG 1
876
878
EOF
877
879
 
878
 
  debug="yes"
 
880
        debug="yes"
 
881
  else
 
882
        debug="no"
 
883
  fi
879
884
else
880
885
  debug="no"
881
886
 
894
899
# Extract the first word of "gcc", so it can be a program name with args.
895
900
set dummy gcc; ac_word=$2
896
901
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897
 
echo "configure:898: checking for $ac_word" >&5
 
902
echo "configure:903: checking for $ac_word" >&5
898
903
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
899
904
  echo $ac_n "(cached) $ac_c" 1>&6
900
905
else
924
929
  # Extract the first word of "cc", so it can be a program name with args.
925
930
set dummy cc; ac_word=$2
926
931
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
927
 
echo "configure:928: checking for $ac_word" >&5
 
932
echo "configure:933: checking for $ac_word" >&5
928
933
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
929
934
  echo $ac_n "(cached) $ac_c" 1>&6
930
935
else
975
980
      # Extract the first word of "cl", so it can be a program name with args.
976
981
set dummy cl; ac_word=$2
977
982
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978
 
echo "configure:979: checking for $ac_word" >&5
 
983
echo "configure:984: checking for $ac_word" >&5
979
984
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
980
985
  echo $ac_n "(cached) $ac_c" 1>&6
981
986
else
1007
1012
fi
1008
1013
 
1009
1014
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1010
 
echo "configure:1011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1015
echo "configure:1016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1011
1016
 
1012
1017
ac_ext=c
1013
1018
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1018
1023
 
1019
1024
cat > conftest.$ac_ext << EOF
1020
1025
 
1021
 
#line 1022 "configure"
 
1026
#line 1027 "configure"
1022
1027
#include "confdefs.h"
1023
1028
 
1024
1029
main(){return(0);}
1025
1030
EOF
1026
 
if { (eval echo configure:1027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1031
if { (eval echo configure:1032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1027
1032
  ac_cv_prog_cc_works=yes
1028
1033
  # If we can't run a trivial program, we are probably using a cross compiler.
1029
1034
  if (./conftest; exit) 2>/dev/null; then
1049
1054
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1050
1055
fi
1051
1056
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1052
 
echo "configure:1053: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1057
echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1053
1058
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1054
1059
cross_compiling=$ac_cv_prog_cc_cross
1055
1060
 
1056
1061
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1057
 
echo "configure:1058: checking whether we are using GNU C" >&5
 
1062
echo "configure:1063: checking whether we are using GNU C" >&5
1058
1063
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1059
1064
  echo $ac_n "(cached) $ac_c" 1>&6
1060
1065
else
1063
1068
  yes;
1064
1069
#endif
1065
1070
EOF
1066
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1071
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1067
1072
  ac_cv_prog_gcc=yes
1068
1073
else
1069
1074
  ac_cv_prog_gcc=no
1082
1087
ac_save_CFLAGS="$CFLAGS"
1083
1088
CFLAGS=
1084
1089
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1085
 
echo "configure:1086: checking whether ${CC-cc} accepts -g" >&5
 
1090
echo "configure:1091: checking whether ${CC-cc} accepts -g" >&5
1086
1091
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1087
1092
  echo $ac_n "(cached) $ac_c" 1>&6
1088
1093
else
1114
1119
fi
1115
1120
 
1116
1121
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1117
 
echo "configure:1118: checking how to run the C preprocessor" >&5
 
1122
echo "configure:1123: checking how to run the C preprocessor" >&5
1118
1123
# On Suns, sometimes $CPP names a directory.
1119
1124
if test -n "$CPP" && test -d "$CPP"; then
1120
1125
  CPP=
1129
1134
  # On the NeXT, cc -E runs the code through the compiler's parser,
1130
1135
  # not just through cpp.
1131
1136
  cat > conftest.$ac_ext <<EOF
1132
 
#line 1133 "configure"
 
1137
#line 1138 "configure"
1133
1138
#include "confdefs.h"
1134
1139
#include <assert.h>
1135
1140
Syntax Error
1136
1141
EOF
1137
1142
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1138
 
{ (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1143
{ (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1139
1144
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1140
1145
if test -z "$ac_err"; then
1141
1146
  :
1146
1151
  rm -rf conftest*
1147
1152
  CPP="${CC-cc} -E -traditional-cpp"
1148
1153
  cat > conftest.$ac_ext <<EOF
1149
 
#line 1150 "configure"
 
1154
#line 1155 "configure"
1150
1155
#include "confdefs.h"
1151
1156
#include <assert.h>
1152
1157
Syntax Error
1153
1158
EOF
1154
1159
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1155
 
{ (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1160
{ (eval echo configure:1161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1156
1161
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1157
1162
if test -z "$ac_err"; then
1158
1163
  :
1163
1168
  rm -rf conftest*
1164
1169
  CPP="${CC-cc} -nologo -E"
1165
1170
  cat > conftest.$ac_ext <<EOF
1166
 
#line 1167 "configure"
 
1171
#line 1172 "configure"
1167
1172
#include "confdefs.h"
1168
1173
#include <assert.h>
1169
1174
Syntax Error
1170
1175
EOF
1171
1176
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1172
 
{ (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1177
{ (eval echo configure:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1173
1178
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1174
1179
if test -z "$ac_err"; then
1175
1180
  :
1205
1210
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1206
1211
# ./install, which can be erroneously created by make from ./install.sh.
1207
1212
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1208
 
echo "configure:1209: checking for a BSD compatible install" >&5
 
1213
echo "configure:1214: checking for a BSD compatible install" >&5
1209
1214
if test -z "$INSTALL"; then
1210
1215
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1211
1216
  echo $ac_n "(cached) $ac_c" 1>&6
1260
1265
# Extract the first word of "ranlib", so it can be a program name with args.
1261
1266
set dummy ranlib; ac_word=$2
1262
1267
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263
 
echo "configure:1264: checking for $ac_word" >&5
 
1268
echo "configure:1269: checking for $ac_word" >&5
1264
1269
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1265
1270
  echo $ac_n "(cached) $ac_c" 1>&6
1266
1271
else
1289
1294
 
1290
1295
 
1291
1296
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1292
 
echo "configure:1293: checking for gethostbyname" >&5
 
1297
echo "configure:1298: checking for gethostbyname" >&5
1293
1298
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1294
1299
  echo $ac_n "(cached) $ac_c" 1>&6
1295
1300
else
1296
1301
  cat > conftest.$ac_ext <<EOF
1297
 
#line 1298 "configure"
 
1302
#line 1303 "configure"
1298
1303
#include "confdefs.h"
1299
1304
/* System header to define __stub macros and hopefully few prototypes,
1300
1305
    which can conflict with char gethostbyname(); below.  */
1317
1322
 
1318
1323
; return 0; }
1319
1324
EOF
1320
 
if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1325
if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1321
1326
  rm -rf conftest*
1322
1327
  eval "ac_cv_func_gethostbyname=yes"
1323
1328
else
1335
1340
else
1336
1341
  echo "$ac_t""no" 1>&6
1337
1342
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1338
 
echo "configure:1339: checking for gethostbyname in -lnsl" >&5
 
1343
echo "configure:1344: checking for gethostbyname in -lnsl" >&5
1339
1344
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1340
1345
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1341
1346
  echo $ac_n "(cached) $ac_c" 1>&6
1343
1348
  ac_save_LIBS="$LIBS"
1344
1349
LIBS="-lnsl  $LIBS"
1345
1350
cat > conftest.$ac_ext <<EOF
1346
 
#line 1347 "configure"
 
1351
#line 1352 "configure"
1347
1352
#include "confdefs.h"
1348
1353
/* Override any gcc2 internal prototype to avoid an error.  */
1349
1354
/* We use char because int might match the return type of a gcc2
1354
1359
gethostbyname()
1355
1360
; return 0; }
1356
1361
EOF
1357
 
if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1362
if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1358
1363
  rm -rf conftest*
1359
1364
  eval "ac_cv_lib_$ac_lib_var=yes"
1360
1365
else
1384
1389
fi
1385
1390
 
1386
1391
echo $ac_n "checking for connect""... $ac_c" 1>&6
1387
 
echo "configure:1388: checking for connect" >&5
 
1392
echo "configure:1393: checking for connect" >&5
1388
1393
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1389
1394
  echo $ac_n "(cached) $ac_c" 1>&6
1390
1395
else
1391
1396
  cat > conftest.$ac_ext <<EOF
1392
 
#line 1393 "configure"
 
1397
#line 1398 "configure"
1393
1398
#include "confdefs.h"
1394
1399
/* System header to define __stub macros and hopefully few prototypes,
1395
1400
    which can conflict with char connect(); below.  */
1412
1417
 
1413
1418
; return 0; }
1414
1419
EOF
1415
 
if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1420
if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1416
1421
  rm -rf conftest*
1417
1422
  eval "ac_cv_func_connect=yes"
1418
1423
else
1430
1435
else
1431
1436
  echo "$ac_t""no" 1>&6
1432
1437
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1433
 
echo "configure:1434: checking for connect in -lsocket" >&5
 
1438
echo "configure:1439: checking for connect in -lsocket" >&5
1434
1439
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1435
1440
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1436
1441
  echo $ac_n "(cached) $ac_c" 1>&6
1438
1443
  ac_save_LIBS="$LIBS"
1439
1444
LIBS="-lsocket  $LIBS"
1440
1445
cat > conftest.$ac_ext <<EOF
1441
 
#line 1442 "configure"
 
1446
#line 1447 "configure"
1442
1447
#include "confdefs.h"
1443
1448
/* Override any gcc2 internal prototype to avoid an error.  */
1444
1449
/* We use char because int might match the return type of a gcc2
1449
1454
connect()
1450
1455
; return 0; }
1451
1456
EOF
1452
 
if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1457
if { (eval echo configure:1458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1453
1458
  rm -rf conftest*
1454
1459
  eval "ac_cv_lib_$ac_lib_var=yes"
1455
1460
else
1479
1484
fi
1480
1485
 
1481
1486
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1482
 
echo "configure:1483: checking for inet_aton" >&5
 
1487
echo "configure:1488: checking for inet_aton" >&5
1483
1488
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1484
1489
  echo $ac_n "(cached) $ac_c" 1>&6
1485
1490
else
1486
1491
  cat > conftest.$ac_ext <<EOF
1487
 
#line 1488 "configure"
 
1492
#line 1493 "configure"
1488
1493
#include "confdefs.h"
1489
1494
/* System header to define __stub macros and hopefully few prototypes,
1490
1495
    which can conflict with char inet_aton(); below.  */
1507
1512
 
1508
1513
; return 0; }
1509
1514
EOF
1510
 
if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1515
if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1511
1516
  rm -rf conftest*
1512
1517
  eval "ac_cv_func_inet_aton=yes"
1513
1518
else
1525
1530
else
1526
1531
  echo "$ac_t""no" 1>&6
1527
1532
echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1528
 
echo "configure:1529: checking for inet_aton in -lresolv" >&5
 
1533
echo "configure:1534: checking for inet_aton in -lresolv" >&5
1529
1534
ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1530
1535
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1531
1536
  echo $ac_n "(cached) $ac_c" 1>&6
1533
1538
  ac_save_LIBS="$LIBS"
1534
1539
LIBS="-lresolv  $LIBS"
1535
1540
cat > conftest.$ac_ext <<EOF
1536
 
#line 1537 "configure"
 
1541
#line 1542 "configure"
1537
1542
#include "confdefs.h"
1538
1543
/* Override any gcc2 internal prototype to avoid an error.  */
1539
1544
/* We use char because int might match the return type of a gcc2
1544
1549
inet_aton()
1545
1550
; return 0; }
1546
1551
EOF
1547
 
if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1552
if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1548
1553
  rm -rf conftest*
1549
1554
  eval "ac_cv_lib_$ac_lib_var=yes"
1550
1555
else
1574
1579
fi
1575
1580
 
1576
1581
echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
1577
 
echo "configure:1578: checking for kstat_open in -lkstat" >&5
 
1582
echo "configure:1583: checking for kstat_open in -lkstat" >&5
1578
1583
ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
1579
1584
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1580
1585
  echo $ac_n "(cached) $ac_c" 1>&6
1582
1587
  ac_save_LIBS="$LIBS"
1583
1588
LIBS="-lkstat  $LIBS"
1584
1589
cat > conftest.$ac_ext <<EOF
1585
 
#line 1586 "configure"
 
1590
#line 1591 "configure"
1586
1591
#include "confdefs.h"
1587
1592
/* Override any gcc2 internal prototype to avoid an error.  */
1588
1593
/* We use char because int might match the return type of a gcc2
1593
1598
kstat_open()
1594
1599
; return 0; }
1595
1600
EOF
1596
 
if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1601
if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1597
1602
  rm -rf conftest*
1598
1603
  eval "ac_cv_lib_$ac_lib_var=yes"
1599
1604
else
1620
1625
  echo "$ac_t""no" 1>&6
1621
1626
fi
1622
1627
 
 
1628
echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
 
1629
echo "configure:1630: checking for nanosleep in -lposix4" >&5
 
1630
ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
 
1631
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
1632
  echo $ac_n "(cached) $ac_c" 1>&6
 
1633
else
 
1634
  ac_save_LIBS="$LIBS"
 
1635
LIBS="-lposix4  $LIBS"
 
1636
cat > conftest.$ac_ext <<EOF
 
1637
#line 1638 "configure"
 
1638
#include "confdefs.h"
 
1639
/* Override any gcc2 internal prototype to avoid an error.  */
 
1640
/* We use char because int might match the return type of a gcc2
 
1641
    builtin and then its argument prototype would still apply.  */
 
1642
char nanosleep();
 
1643
 
 
1644
int main() {
 
1645
nanosleep()
 
1646
; return 0; }
 
1647
EOF
 
1648
if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1649
  rm -rf conftest*
 
1650
  eval "ac_cv_lib_$ac_lib_var=yes"
 
1651
else
 
1652
  echo "configure: failed program was:" >&5
 
1653
  cat conftest.$ac_ext >&5
 
1654
  rm -rf conftest*
 
1655
  eval "ac_cv_lib_$ac_lib_var=no"
 
1656
fi
 
1657
rm -f conftest*
 
1658
LIBS="$ac_save_LIBS"
 
1659
 
 
1660
fi
 
1661
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
1662
  echo "$ac_t""yes" 1>&6
 
1663
    ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
1664
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
1665
  cat >> confdefs.h <<EOF
 
1666
#define $ac_tr_lib 1
 
1667
EOF
 
1668
 
 
1669
  LIBS="-lposix4 $LIBS"
 
1670
 
 
1671
else
 
1672
  echo "$ac_t""no" 1>&6
 
1673
fi
 
1674
 
1623
1675
for ac_func in getloadavg swapctl
1624
1676
do
1625
1677
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1626
 
echo "configure:1627: checking for $ac_func" >&5
 
1678
echo "configure:1679: checking for $ac_func" >&5
1627
1679
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1628
1680
  echo $ac_n "(cached) $ac_c" 1>&6
1629
1681
else
1630
1682
  cat > conftest.$ac_ext <<EOF
1631
 
#line 1632 "configure"
 
1683
#line 1684 "configure"
1632
1684
#include "confdefs.h"
1633
1685
/* System header to define __stub macros and hopefully few prototypes,
1634
1686
    which can conflict with char $ac_func(); below.  */
1651
1703
 
1652
1704
; return 0; }
1653
1705
EOF
1654
 
if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1706
if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1655
1707
  rm -rf conftest*
1656
1708
  eval "ac_cv_func_$ac_func=yes"
1657
1709
else
1679
1731
do
1680
1732
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1681
1733
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1682
 
echo "configure:1683: checking for $ac_hdr" >&5
 
1734
echo "configure:1735: checking for $ac_hdr" >&5
1683
1735
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1684
1736
  echo $ac_n "(cached) $ac_c" 1>&6
1685
1737
else
1686
1738
  cat > conftest.$ac_ext <<EOF
1687
 
#line 1688 "configure"
 
1739
#line 1740 "configure"
1688
1740
#include "confdefs.h"
1689
1741
#include <$ac_hdr>
1690
1742
EOF
1691
1743
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1692
 
{ (eval echo configure:1693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1744
{ (eval echo configure:1745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1693
1745
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1694
1746
if test -z "$ac_err"; then
1695
1747
  rm -rf conftest*
1717
1769
 
1718
1770
 
1719
1771
echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
1720
 
echo "configure:1721: checking for kvm_open in -lkvm" >&5
 
1772
echo "configure:1773: checking for kvm_open in -lkvm" >&5
1721
1773
ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
1722
1774
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1723
1775
  echo $ac_n "(cached) $ac_c" 1>&6
1725
1777
  ac_save_LIBS="$LIBS"
1726
1778
LIBS="-lkvm  $LIBS"
1727
1779
cat > conftest.$ac_ext <<EOF
1728
 
#line 1729 "configure"
 
1780
#line 1781 "configure"
1729
1781
#include "confdefs.h"
1730
1782
/* Override any gcc2 internal prototype to avoid an error.  */
1731
1783
/* We use char because int might match the return type of a gcc2
1736
1788
kvm_open()
1737
1789
; return 0; }
1738
1790
EOF
1739
 
if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1791
if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740
1792
  rm -rf conftest*
1741
1793
  eval "ac_cv_lib_$ac_lib_var=yes"
1742
1794
else
1757
1809
else
1758
1810
  echo "$ac_t""no" 1>&6
1759
1811
echo $ac_n "checking for kvm_open in -lkvm with -lelf""... $ac_c" 1>&6
1760
 
echo "configure:1761: checking for kvm_open in -lkvm with -lelf" >&5
 
1812
echo "configure:1813: checking for kvm_open in -lkvm with -lelf" >&5
1761
1813
   if eval "test \"`echo '$''{'ac_cv_lib_kvm_with_elf'+set}'`\" = set"; then
1762
1814
  echo $ac_n "(cached) $ac_c" 1>&6
1763
1815
else
1764
1816
  ac_save_LIBS="$LIBS"
1765
1817
    LIBS="-lkvm -lelf $LIBS"
1766
1818
    cat > conftest.$ac_ext <<EOF
1767
 
#line 1768 "configure"
 
1819
#line 1820 "configure"
1768
1820
#include "confdefs.h"
1769
1821
char kvm_open();
1770
1822
int main() {
1771
1823
kvm_open()
1772
1824
; return 0; }
1773
1825
EOF
1774
 
if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1826
if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1775
1827
  rm -rf conftest*
1776
1828
  ac_cv_lib_kvm_with_elf=yes
1777
1829
else
1795
1847
fi
1796
1848
 
1797
1849
 
1798
 
for ac_hdr in sched.h sys/sched.h sys/types.h machine/pio.h machine/sysarch.h sys/cpuvar.h
 
1850
for ac_hdr in sched.h sys/sched.h machine/cpufunc.h sys/types.h machine/pio.h machine/sysarch.h sys/cpuvar.h
1799
1851
do
1800
1852
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1801
1853
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1802
 
echo "configure:1803: checking for $ac_hdr" >&5
 
1854
echo "configure:1855: checking for $ac_hdr" >&5
1803
1855
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1804
1856
  echo $ac_n "(cached) $ac_c" 1>&6
1805
1857
else
1806
1858
  cat > conftest.$ac_ext <<EOF
1807
 
#line 1808 "configure"
 
1859
#line 1860 "configure"
1808
1860
#include "confdefs.h"
1809
1861
#include <$ac_hdr>
1810
1862
EOF
1811
1863
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1812
 
{ (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1864
{ (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1813
1865
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1814
1866
if test -z "$ac_err"; then
1815
1867
  rm -rf conftest*
1835
1887
fi
1836
1888
done
1837
1889
 
1838
 
echo $ac_n "checking for i386_get_ioperm in -li386""... $ac_c" 1>&6
1839
 
echo "configure:1840: checking for i386_get_ioperm in -li386" >&5
1840
 
ac_lib_var=`echo i386'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
1841
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1842
 
  echo $ac_n "(cached) $ac_c" 1>&6
1843
 
else
1844
 
  ac_save_LIBS="$LIBS"
1845
 
LIBS="-li386  $LIBS"
1846
 
cat > conftest.$ac_ext <<EOF
1847
 
#line 1848 "configure"
1848
 
#include "confdefs.h"
1849
 
/* Override any gcc2 internal prototype to avoid an error.  */
1850
 
/* We use char because int might match the return type of a gcc2
1851
 
    builtin and then its argument prototype would still apply.  */
1852
 
char i386_get_ioperm();
1853
 
 
1854
 
int main() {
1855
 
i386_get_ioperm()
1856
 
; return 0; }
1857
 
EOF
1858
 
if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1859
 
  rm -rf conftest*
1860
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1861
 
else
1862
 
  echo "configure: failed program was:" >&5
1863
 
  cat conftest.$ac_ext >&5
1864
 
  rm -rf conftest*
1865
 
  eval "ac_cv_lib_$ac_lib_var=no"
1866
 
fi
1867
 
rm -f conftest*
1868
 
LIBS="$ac_save_LIBS"
1869
 
 
1870
 
fi
1871
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1872
 
  echo "$ac_t""yes" 1>&6
1873
 
    ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1874
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1875
 
  cat >> confdefs.h <<EOF
1876
 
#define $ac_tr_lib 1
1877
 
EOF
1878
 
 
1879
 
  LIBS="-li386 $LIBS"
1880
 
 
1881
 
else
1882
 
  echo "$ac_t""no" 1>&6
1883
 
fi
1884
 
 
1885
1890
 
1886
1891
echo $ac_n "checking for System V IPC headers""... $ac_c" 1>&6
1887
 
echo "configure:1888: checking for System V IPC headers" >&5
 
1892
echo "configure:1893: checking for System V IPC headers" >&5
1888
1893
if eval "test \"`echo '$''{'ac_cv_sysv_ipc'+set}'`\" = set"; then
1889
1894
  echo $ac_n "(cached) $ac_c" 1>&6
1890
1895
else
1891
1896
  
1892
1897
        cat > conftest.$ac_ext <<EOF
1893
 
#line 1894 "configure"
 
1898
#line 1899 "configure"
1894
1899
#include "confdefs.h"
1895
1900
 
1896
1901
                        #include <sys/types.h>
1903
1908
 
1904
1909
; return 0; }
1905
1910
EOF
1906
 
if { (eval echo configure:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1911
if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1907
1912
  rm -rf conftest*
1908
1913
  ac_cv_sysv_ipc=yes
1909
1914
else
1928
1933
 
1929
1934
 
1930
1935
echo $ac_n "checking for union semun""... $ac_c" 1>&6
1931
 
echo "configure:1932: checking for union semun" >&5
 
1936
echo "configure:1937: checking for union semun" >&5
1932
1937
if eval "test \"`echo '$''{'ac_cv_union_semun'+set}'`\" = set"; then
1933
1938
  echo $ac_n "(cached) $ac_c" 1>&6
1934
1939
else
1935
1940
  
1936
1941
        cat > conftest.$ac_ext <<EOF
1937
 
#line 1938 "configure"
 
1942
#line 1943 "configure"
1938
1943
#include "confdefs.h"
1939
1944
 
1940
1945
                        #include <sys/types.h>
1945
1950
 union semun s 
1946
1951
; return 0; }
1947
1952
EOF
1948
 
if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1953
if { (eval echo configure:1954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1949
1954
  rm -rf conftest*
1950
1955
  ac_cv_union_semun=yes
1951
1956
else
1969
1974
        fi
1970
1975
 
1971
1976
 
 
1977
for ac_func in sched_setscheduler
 
1978
do
 
1979
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1980
echo "configure:1981: checking for $ac_func" >&5
 
1981
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
1982
  echo $ac_n "(cached) $ac_c" 1>&6
 
1983
else
 
1984
  cat > conftest.$ac_ext <<EOF
 
1985
#line 1986 "configure"
 
1986
#include "confdefs.h"
 
1987
/* System header to define __stub macros and hopefully few prototypes,
 
1988
    which can conflict with char $ac_func(); below.  */
 
1989
#include <assert.h>
 
1990
/* Override any gcc2 internal prototype to avoid an error.  */
 
1991
/* We use char because int might match the return type of a gcc2
 
1992
    builtin and then its argument prototype would still apply.  */
 
1993
char $ac_func();
 
1994
 
 
1995
int main() {
 
1996
 
 
1997
/* The GNU C library defines this for functions which it implements
 
1998
    to always fail with ENOSYS.  Some functions are actually named
 
1999
    something starting with __ and the normal name is an alias.  */
 
2000
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2001
choke me
 
2002
#else
 
2003
$ac_func();
 
2004
#endif
 
2005
 
 
2006
; return 0; }
 
2007
EOF
 
2008
if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2009
  rm -rf conftest*
 
2010
  eval "ac_cv_func_$ac_func=yes"
 
2011
else
 
2012
  echo "configure: failed program was:" >&5
 
2013
  cat conftest.$ac_ext >&5
 
2014
  rm -rf conftest*
 
2015
  eval "ac_cv_func_$ac_func=no"
 
2016
fi
 
2017
rm -f conftest*
 
2018
fi
 
2019
 
 
2020
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2021
  echo "$ac_t""yes" 1>&6
 
2022
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2023
  cat >> confdefs.h <<EOF
 
2024
#define $ac_tr_func 1
 
2025
EOF
 
2026
 
 
2027
else
 
2028
  echo "$ac_t""no" 1>&6
 
2029
fi
 
2030
done
 
2031
 
 
2032
echo $ac_n "checking for sched_setscheduler in -lposix4""... $ac_c" 1>&6
 
2033
echo "configure:2034: checking for sched_setscheduler in -lposix4" >&5
 
2034
ac_lib_var=`echo posix4'_'sched_setscheduler | sed 'y%./+-%__p_%'`
 
2035
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2036
  echo $ac_n "(cached) $ac_c" 1>&6
 
2037
else
 
2038
  ac_save_LIBS="$LIBS"
 
2039
LIBS="-lposix4  $LIBS"
 
2040
cat > conftest.$ac_ext <<EOF
 
2041
#line 2042 "configure"
 
2042
#include "confdefs.h"
 
2043
/* Override any gcc2 internal prototype to avoid an error.  */
 
2044
/* We use char because int might match the return type of a gcc2
 
2045
    builtin and then its argument prototype would still apply.  */
 
2046
char sched_setscheduler();
 
2047
 
 
2048
int main() {
 
2049
sched_setscheduler()
 
2050
; return 0; }
 
2051
EOF
 
2052
if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2053
  rm -rf conftest*
 
2054
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2055
else
 
2056
  echo "configure: failed program was:" >&5
 
2057
  cat conftest.$ac_ext >&5
 
2058
  rm -rf conftest*
 
2059
  eval "ac_cv_lib_$ac_lib_var=no"
 
2060
fi
 
2061
rm -f conftest*
 
2062
LIBS="$ac_save_LIBS"
 
2063
 
 
2064
fi
 
2065
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2066
  echo "$ac_t""yes" 1>&6
 
2067
    ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
2068
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
2069
  cat >> confdefs.h <<EOF
 
2070
#define $ac_tr_lib 1
 
2071
EOF
 
2072
 
 
2073
  LIBS="-lposix4 $LIBS"
 
2074
 
 
2075
else
 
2076
  echo "$ac_t""no" 1>&6
 
2077
fi
 
2078
 
 
2079
echo $ac_n "checking for sched_setscheduler in -lposix4""... $ac_c" 1>&6
 
2080
echo "configure:2081: checking for sched_setscheduler in -lposix4" >&5
 
2081
ac_lib_var=`echo posix4'_'sched_setscheduler | sed 'y%./+-%__p_%'`
 
2082
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2083
  echo $ac_n "(cached) $ac_c" 1>&6
 
2084
else
 
2085
  ac_save_LIBS="$LIBS"
 
2086
LIBS="-lposix4  $LIBS"
 
2087
cat > conftest.$ac_ext <<EOF
 
2088
#line 2089 "configure"
 
2089
#include "confdefs.h"
 
2090
/* Override any gcc2 internal prototype to avoid an error.  */
 
2091
/* We use char because int might match the return type of a gcc2
 
2092
    builtin and then its argument prototype would still apply.  */
 
2093
char sched_setscheduler();
 
2094
 
 
2095
int main() {
 
2096
sched_setscheduler()
 
2097
; return 0; }
 
2098
EOF
 
2099
if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2100
  rm -rf conftest*
 
2101
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2102
else
 
2103
  echo "configure: failed program was:" >&5
 
2104
  cat conftest.$ac_ext >&5
 
2105
  rm -rf conftest*
 
2106
  eval "ac_cv_lib_$ac_lib_var=no"
 
2107
fi
 
2108
rm -f conftest*
 
2109
LIBS="$ac_save_LIBS"
 
2110
 
 
2111
fi
 
2112
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2113
  echo "$ac_t""yes" 1>&6
 
2114
  
 
2115
        cat >> confdefs.h <<\EOF
 
2116
#define HAVE_SCHED_SETSCHEDULER 1
 
2117
EOF
 
2118
 
 
2119
 
 
2120
else
 
2121
  echo "$ac_t""no" 1>&6
 
2122
fi
 
2123
 
 
2124
echo $ac_n "checking for sched_setscheduler in -lrt""... $ac_c" 1>&6
 
2125
echo "configure:2126: checking for sched_setscheduler in -lrt" >&5
 
2126
ac_lib_var=`echo rt'_'sched_setscheduler | sed 'y%./+-%__p_%'`
 
2127
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2128
  echo $ac_n "(cached) $ac_c" 1>&6
 
2129
else
 
2130
  ac_save_LIBS="$LIBS"
 
2131
LIBS="-lrt  $LIBS"
 
2132
cat > conftest.$ac_ext <<EOF
 
2133
#line 2134 "configure"
 
2134
#include "confdefs.h"
 
2135
/* Override any gcc2 internal prototype to avoid an error.  */
 
2136
/* We use char because int might match the return type of a gcc2
 
2137
    builtin and then its argument prototype would still apply.  */
 
2138
char sched_setscheduler();
 
2139
 
 
2140
int main() {
 
2141
sched_setscheduler()
 
2142
; return 0; }
 
2143
EOF
 
2144
if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2145
  rm -rf conftest*
 
2146
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2147
else
 
2148
  echo "configure: failed program was:" >&5
 
2149
  cat conftest.$ac_ext >&5
 
2150
  rm -rf conftest*
 
2151
  eval "ac_cv_lib_$ac_lib_var=no"
 
2152
fi
 
2153
rm -f conftest*
 
2154
LIBS="$ac_save_LIBS"
 
2155
 
 
2156
fi
 
2157
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2158
  echo "$ac_t""yes" 1>&6
 
2159
    ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
2160
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
2161
  cat >> confdefs.h <<EOF
 
2162
#define $ac_tr_lib 1
 
2163
EOF
 
2164
 
 
2165
  LIBS="-lrt $LIBS"
 
2166
 
 
2167
else
 
2168
  echo "$ac_t""no" 1>&6
 
2169
fi
 
2170
 
 
2171
echo $ac_n "checking for sched_setscheduler in -lrt""... $ac_c" 1>&6
 
2172
echo "configure:2173: checking for sched_setscheduler in -lrt" >&5
 
2173
ac_lib_var=`echo rt'_'sched_setscheduler | sed 'y%./+-%__p_%'`
 
2174
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2175
  echo $ac_n "(cached) $ac_c" 1>&6
 
2176
else
 
2177
  ac_save_LIBS="$LIBS"
 
2178
LIBS="-lrt  $LIBS"
 
2179
cat > conftest.$ac_ext <<EOF
 
2180
#line 2181 "configure"
 
2181
#include "confdefs.h"
 
2182
/* Override any gcc2 internal prototype to avoid an error.  */
 
2183
/* We use char because int might match the return type of a gcc2
 
2184
    builtin and then its argument prototype would still apply.  */
 
2185
char sched_setscheduler();
 
2186
 
 
2187
int main() {
 
2188
sched_setscheduler()
 
2189
; return 0; }
 
2190
EOF
 
2191
if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2192
  rm -rf conftest*
 
2193
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2194
else
 
2195
  echo "configure: failed program was:" >&5
 
2196
  cat conftest.$ac_ext >&5
 
2197
  rm -rf conftest*
 
2198
  eval "ac_cv_lib_$ac_lib_var=no"
 
2199
fi
 
2200
rm -f conftest*
 
2201
LIBS="$ac_save_LIBS"
 
2202
 
 
2203
fi
 
2204
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2205
  echo "$ac_t""yes" 1>&6
 
2206
  
 
2207
        cat >> confdefs.h <<\EOF
 
2208
#define HAVE_SCHED_SETSCHEDULER 1
 
2209
EOF
 
2210
 
 
2211
 
 
2212
else
 
2213
  echo "$ac_t""no" 1>&6
 
2214
fi
 
2215
 
 
2216
 
 
2217
echo $ac_n "checking for i386_get_ioperm in -li386""... $ac_c" 1>&6
 
2218
echo "configure:2219: checking for i386_get_ioperm in -li386" >&5
 
2219
ac_lib_var=`echo i386'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
 
2220
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2221
  echo $ac_n "(cached) $ac_c" 1>&6
 
2222
else
 
2223
  ac_save_LIBS="$LIBS"
 
2224
LIBS="-li386  $LIBS"
 
2225
cat > conftest.$ac_ext <<EOF
 
2226
#line 2227 "configure"
 
2227
#include "confdefs.h"
 
2228
/* Override any gcc2 internal prototype to avoid an error.  */
 
2229
/* We use char because int might match the return type of a gcc2
 
2230
    builtin and then its argument prototype would still apply.  */
 
2231
char i386_get_ioperm();
 
2232
 
 
2233
int main() {
 
2234
i386_get_ioperm()
 
2235
; return 0; }
 
2236
EOF
 
2237
if { (eval echo configure:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2238
  rm -rf conftest*
 
2239
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2240
else
 
2241
  echo "configure: failed program was:" >&5
 
2242
  cat conftest.$ac_ext >&5
 
2243
  rm -rf conftest*
 
2244
  eval "ac_cv_lib_$ac_lib_var=no"
 
2245
fi
 
2246
rm -f conftest*
 
2247
LIBS="$ac_save_LIBS"
 
2248
 
 
2249
fi
 
2250
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2251
  echo "$ac_t""yes" 1>&6
 
2252
    ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
2253
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
2254
  cat >> confdefs.h <<EOF
 
2255
#define $ac_tr_lib 1
 
2256
EOF
 
2257
 
 
2258
  LIBS="-li386 $LIBS"
 
2259
 
 
2260
else
 
2261
  echo "$ac_t""no" 1>&6
 
2262
fi
 
2263
 
 
2264
echo $ac_n "checking for i386_get_ioperm in -li386""... $ac_c" 1>&6
 
2265
echo "configure:2266: checking for i386_get_ioperm in -li386" >&5
 
2266
ac_lib_var=`echo i386'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
 
2267
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2268
  echo $ac_n "(cached) $ac_c" 1>&6
 
2269
else
 
2270
  ac_save_LIBS="$LIBS"
 
2271
LIBS="-li386  $LIBS"
 
2272
cat > conftest.$ac_ext <<EOF
 
2273
#line 2274 "configure"
 
2274
#include "confdefs.h"
 
2275
/* Override any gcc2 internal prototype to avoid an error.  */
 
2276
/* We use char because int might match the return type of a gcc2
 
2277
    builtin and then its argument prototype would still apply.  */
 
2278
char i386_get_ioperm();
 
2279
 
 
2280
int main() {
 
2281
i386_get_ioperm()
 
2282
; return 0; }
 
2283
EOF
 
2284
if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2285
  rm -rf conftest*
 
2286
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2287
else
 
2288
  echo "configure: failed program was:" >&5
 
2289
  cat conftest.$ac_ext >&5
 
2290
  rm -rf conftest*
 
2291
  eval "ac_cv_lib_$ac_lib_var=no"
 
2292
fi
 
2293
rm -f conftest*
 
2294
LIBS="$ac_save_LIBS"
 
2295
 
 
2296
fi
 
2297
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2298
  echo "$ac_t""yes" 1>&6
 
2299
  cat >> confdefs.h <<\EOF
 
2300
#define HAVE_I386_IOPERM_NETBSD 1
 
2301
EOF
 
2302
 
 
2303
else
 
2304
  echo "$ac_t""no" 1>&6
 
2305
 
 
2306
                echo $ac_n "checking for i386_get_ioperm in -lc""... $ac_c" 1>&6
 
2307
echo "configure:2308: checking for i386_get_ioperm in -lc" >&5
 
2308
ac_lib_var=`echo c'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
 
2309
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2310
  echo $ac_n "(cached) $ac_c" 1>&6
 
2311
else
 
2312
  ac_save_LIBS="$LIBS"
 
2313
LIBS="-lc  $LIBS"
 
2314
cat > conftest.$ac_ext <<EOF
 
2315
#line 2316 "configure"
 
2316
#include "confdefs.h"
 
2317
/* Override any gcc2 internal prototype to avoid an error.  */
 
2318
/* We use char because int might match the return type of a gcc2
 
2319
    builtin and then its argument prototype would still apply.  */
 
2320
char i386_get_ioperm();
 
2321
 
 
2322
int main() {
 
2323
i386_get_ioperm()
 
2324
; return 0; }
 
2325
EOF
 
2326
if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2327
  rm -rf conftest*
 
2328
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2329
else
 
2330
  echo "configure: failed program was:" >&5
 
2331
  cat conftest.$ac_ext >&5
 
2332
  rm -rf conftest*
 
2333
  eval "ac_cv_lib_$ac_lib_var=no"
 
2334
fi
 
2335
rm -f conftest*
 
2336
LIBS="$ac_save_LIBS"
 
2337
 
 
2338
fi
 
2339
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2340
  echo "$ac_t""yes" 1>&6
 
2341
    ac_tr_lib=HAVE_LIB`echo c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
2342
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
2343
  cat >> confdefs.h <<EOF
 
2344
#define $ac_tr_lib 1
 
2345
EOF
 
2346
 
 
2347
  LIBS="-lc $LIBS"
 
2348
 
 
2349
else
 
2350
  echo "$ac_t""no" 1>&6
 
2351
fi
 
2352
 
 
2353
        echo $ac_n "checking for i386_get_ioperm in -lc""... $ac_c" 1>&6
 
2354
echo "configure:2355: checking for i386_get_ioperm in -lc" >&5
 
2355
ac_lib_var=`echo c'_'i386_get_ioperm | sed 'y%./+-%__p_%'`
 
2356
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2357
  echo $ac_n "(cached) $ac_c" 1>&6
 
2358
else
 
2359
  ac_save_LIBS="$LIBS"
 
2360
LIBS="-lc  $LIBS"
 
2361
cat > conftest.$ac_ext <<EOF
 
2362
#line 2363 "configure"
 
2363
#include "confdefs.h"
 
2364
/* Override any gcc2 internal prototype to avoid an error.  */
 
2365
/* We use char because int might match the return type of a gcc2
 
2366
    builtin and then its argument prototype would still apply.  */
 
2367
char i386_get_ioperm();
 
2368
 
 
2369
int main() {
 
2370
i386_get_ioperm()
 
2371
; return 0; }
 
2372
EOF
 
2373
if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2374
  rm -rf conftest*
 
2375
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2376
else
 
2377
  echo "configure: failed program was:" >&5
 
2378
  cat conftest.$ac_ext >&5
 
2379
  rm -rf conftest*
 
2380
  eval "ac_cv_lib_$ac_lib_var=no"
 
2381
fi
 
2382
rm -f conftest*
 
2383
LIBS="$ac_save_LIBS"
 
2384
 
 
2385
fi
 
2386
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2387
  echo "$ac_t""yes" 1>&6
 
2388
  cat >> confdefs.h <<\EOF
 
2389
#define HAVE_I386_IOPERM_FREEBSD 1
 
2390
EOF
 
2391
 
 
2392
else
 
2393
  echo "$ac_t""no" 1>&6
 
2394
fi
 
2395
 
 
2396
 
 
2397
fi
 
2398
 
 
2399
 
 
2400
for ac_func in ioperm
 
2401
do
 
2402
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
2403
echo "configure:2404: checking for $ac_func" >&5
 
2404
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
2405
  echo $ac_n "(cached) $ac_c" 1>&6
 
2406
else
 
2407
  cat > conftest.$ac_ext <<EOF
 
2408
#line 2409 "configure"
 
2409
#include "confdefs.h"
 
2410
/* System header to define __stub macros and hopefully few prototypes,
 
2411
    which can conflict with char $ac_func(); below.  */
 
2412
#include <assert.h>
 
2413
/* Override any gcc2 internal prototype to avoid an error.  */
 
2414
/* We use char because int might match the return type of a gcc2
 
2415
    builtin and then its argument prototype would still apply.  */
 
2416
char $ac_func();
 
2417
 
 
2418
int main() {
 
2419
 
 
2420
/* The GNU C library defines this for functions which it implements
 
2421
    to always fail with ENOSYS.  Some functions are actually named
 
2422
    something starting with __ and the normal name is an alias.  */
 
2423
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
2424
choke me
 
2425
#else
 
2426
$ac_func();
 
2427
#endif
 
2428
 
 
2429
; return 0; }
 
2430
EOF
 
2431
if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2432
  rm -rf conftest*
 
2433
  eval "ac_cv_func_$ac_func=yes"
 
2434
else
 
2435
  echo "configure: failed program was:" >&5
 
2436
  cat conftest.$ac_ext >&5
 
2437
  rm -rf conftest*
 
2438
  eval "ac_cv_func_$ac_func=no"
 
2439
fi
 
2440
rm -f conftest*
 
2441
fi
 
2442
 
 
2443
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
2444
  echo "$ac_t""yes" 1>&6
 
2445
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
2446
  cat >> confdefs.h <<EOF
 
2447
#define $ac_tr_func 1
 
2448
EOF
 
2449
 
 
2450
else
 
2451
  echo "$ac_t""no" 1>&6
 
2452
fi
 
2453
done
 
2454
 
 
2455
for ac_hdr in sys/io.h sys/perm.h unistd.h
 
2456
do
 
2457
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
2458
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
2459
echo "configure:2460: checking for $ac_hdr" >&5
 
2460
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2461
  echo $ac_n "(cached) $ac_c" 1>&6
 
2462
else
 
2463
  cat > conftest.$ac_ext <<EOF
 
2464
#line 2465 "configure"
 
2465
#include "confdefs.h"
 
2466
#include <$ac_hdr>
 
2467
EOF
 
2468
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2469
{ (eval echo configure:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2470
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2471
if test -z "$ac_err"; then
 
2472
  rm -rf conftest*
 
2473
  eval "ac_cv_header_$ac_safe=yes"
 
2474
else
 
2475
  echo "$ac_err" >&5
 
2476
  echo "configure: failed program was:" >&5
 
2477
  cat conftest.$ac_ext >&5
 
2478
  rm -rf conftest*
 
2479
  eval "ac_cv_header_$ac_safe=no"
 
2480
fi
 
2481
rm -f conftest*
 
2482
fi
 
2483
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2484
  echo "$ac_t""yes" 1>&6
 
2485
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
2486
  cat >> confdefs.h <<EOF
 
2487
#define $ac_tr_hdr 1
 
2488
EOF
 
2489
 
 
2490
else
 
2491
  echo "$ac_t""no" 1>&6
 
2492
fi
 
2493
done
 
2494
 
 
2495
 
 
2496
echo $ac_n "checking for a parallel port""... $ac_c" 1>&6
 
2497
echo "configure:2498: checking for a parallel port" >&5
 
2498
if eval "test \"`echo '$''{'ac_cv_port_have_lpt'+set}'`\" = set"; then
 
2499
  echo $ac_n "(cached) $ac_c" 1>&6
 
2500
else
 
2501
  cat > conftest.$ac_ext <<EOF
 
2502
#line 2503 "configure"
 
2503
#include "confdefs.h"
 
2504
#include "server/drivers/port.h"
 
2505
int main() {
 
2506
char val = port_in(0x350)
 
2507
; return 0; }
 
2508
EOF
 
2509
if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2510
  rm -rf conftest*
 
2511
  ac_cv_port_have_lpt=yes
 
2512
else
 
2513
  echo "configure: failed program was:" >&5
 
2514
  cat conftest.$ac_ext >&5
 
2515
  rm -rf conftest*
 
2516
  ac_cv_port_have_lpt=no
 
2517
fi
 
2518
rm -f conftest*
 
2519
fi
 
2520
 
 
2521
echo "$ac_t""$ac_cv_port_have_lpt" 1>&6
 
2522
 
 
2523
if test "$ac_cv_port_have_lpt" = yes
 
2524
then
 
2525
        cat >> confdefs.h <<\EOF
 
2526
#define HAVE_PCSTYLE_LPT_CONTROL 1
 
2527
EOF
 
2528
 
 
2529
else
 
2530
        echo "configure: warning: Can't talk to the parallel port, disabling drivers that use it." 1>&2
 
2531
fi
 
2532
 
1972
2533
ac_header_dirent=no
1973
2534
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1974
2535
do
1975
2536
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1976
2537
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1977
 
echo "configure:1978: checking for $ac_hdr that defines DIR" >&5
 
2538
echo "configure:2539: checking for $ac_hdr that defines DIR" >&5
1978
2539
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1979
2540
  echo $ac_n "(cached) $ac_c" 1>&6
1980
2541
else
1981
2542
  cat > conftest.$ac_ext <<EOF
1982
 
#line 1983 "configure"
 
2543
#line 2544 "configure"
1983
2544
#include "confdefs.h"
1984
2545
#include <sys/types.h>
1985
2546
#include <$ac_hdr>
1987
2548
DIR *dirp = 0;
1988
2549
; return 0; }
1989
2550
EOF
1990
 
if { (eval echo configure:1991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2551
if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1991
2552
  rm -rf conftest*
1992
2553
  eval "ac_cv_header_dirent_$ac_safe=yes"
1993
2554
else
2012
2573
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2013
2574
if test $ac_header_dirent = dirent.h; then
2014
2575
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2015
 
echo "configure:2016: checking for opendir in -ldir" >&5
 
2576
echo "configure:2577: checking for opendir in -ldir" >&5
2016
2577
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2017
2578
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2018
2579
  echo $ac_n "(cached) $ac_c" 1>&6
2020
2581
  ac_save_LIBS="$LIBS"
2021
2582
LIBS="-ldir  $LIBS"
2022
2583
cat > conftest.$ac_ext <<EOF
2023
 
#line 2024 "configure"
 
2584
#line 2585 "configure"
2024
2585
#include "confdefs.h"
2025
2586
/* Override any gcc2 internal prototype to avoid an error.  */
2026
2587
/* We use char because int might match the return type of a gcc2
2031
2592
opendir()
2032
2593
; return 0; }
2033
2594
EOF
2034
 
if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2595
if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2035
2596
  rm -rf conftest*
2036
2597
  eval "ac_cv_lib_$ac_lib_var=yes"
2037
2598
else
2053
2614
 
2054
2615
else
2055
2616
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2056
 
echo "configure:2057: checking for opendir in -lx" >&5
 
2617
echo "configure:2618: checking for opendir in -lx" >&5
2057
2618
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2058
2619
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2059
2620
  echo $ac_n "(cached) $ac_c" 1>&6
2061
2622
  ac_save_LIBS="$LIBS"
2062
2623
LIBS="-lx  $LIBS"
2063
2624
cat > conftest.$ac_ext <<EOF
2064
 
#line 2065 "configure"
 
2625
#line 2626 "configure"
2065
2626
#include "confdefs.h"
2066
2627
/* Override any gcc2 internal prototype to avoid an error.  */
2067
2628
/* We use char because int might match the return type of a gcc2
2072
2633
opendir()
2073
2634
; return 0; }
2074
2635
EOF
2075
 
if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2636
if { (eval echo configure:2637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2076
2637
  rm -rf conftest*
2077
2638
  eval "ac_cv_lib_$ac_lib_var=yes"
2078
2639
else
2095
2656
fi
2096
2657
 
2097
2658
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2098
 
echo "configure:2099: checking for ANSI C header files" >&5
 
2659
echo "configure:2660: checking for ANSI C header files" >&5
2099
2660
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2100
2661
  echo $ac_n "(cached) $ac_c" 1>&6
2101
2662
else
2102
2663
  cat > conftest.$ac_ext <<EOF
2103
 
#line 2104 "configure"
 
2664
#line 2665 "configure"
2104
2665
#include "confdefs.h"
2105
2666
#include <stdlib.h>
2106
2667
#include <stdarg.h>
2108
2669
#include <float.h>
2109
2670
EOF
2110
2671
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2111
 
{ (eval echo configure:2112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2672
{ (eval echo configure:2673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2112
2673
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2113
2674
if test -z "$ac_err"; then
2114
2675
  rm -rf conftest*
2125
2686
if test $ac_cv_header_stdc = yes; then
2126
2687
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2127
2688
cat > conftest.$ac_ext <<EOF
2128
 
#line 2129 "configure"
 
2689
#line 2690 "configure"
2129
2690
#include "confdefs.h"
2130
2691
#include <string.h>
2131
2692
EOF
2143
2704
if test $ac_cv_header_stdc = yes; then
2144
2705
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2145
2706
cat > conftest.$ac_ext <<EOF
2146
 
#line 2147 "configure"
 
2707
#line 2708 "configure"
2147
2708
#include "confdefs.h"
2148
2709
#include <stdlib.h>
2149
2710
EOF
2164
2725
  :
2165
2726
else
2166
2727
  cat > conftest.$ac_ext <<EOF
2167
 
#line 2168 "configure"
 
2728
#line 2729 "configure"
2168
2729
#include "confdefs.h"
2169
2730
#include <ctype.h>
2170
2731
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2175
2736
exit (0); }
2176
2737
 
2177
2738
EOF
2178
 
if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2739
if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2179
2740
then
2180
2741
  :
2181
2742
else
2198
2759
 
2199
2760
fi
2200
2761
 
2201
 
for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h sys/io.h errno.h
 
2762
for ac_hdr in fcntl.h sys/ioctl.h sys/time.h errno.h
2202
2763
do
2203
2764
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2204
2765
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2205
 
echo "configure:2206: checking for $ac_hdr" >&5
 
2766
echo "configure:2767: checking for $ac_hdr" >&5
2206
2767
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2207
2768
  echo $ac_n "(cached) $ac_c" 1>&6
2208
2769
else
2209
2770
  cat > conftest.$ac_ext <<EOF
2210
 
#line 2211 "configure"
 
2771
#line 2772 "configure"
2211
2772
#include "confdefs.h"
2212
2773
#include <$ac_hdr>
2213
2774
EOF
2214
2775
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2215
 
{ (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2776
{ (eval echo configure:2777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2216
2777
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2217
2778
if test -z "$ac_err"; then
2218
2779
  rm -rf conftest*
2242
2803
do
2243
2804
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2244
2805
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2245
 
echo "configure:2246: checking for $ac_hdr" >&5
 
2806
echo "configure:2807: checking for $ac_hdr" >&5
2246
2807
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2247
2808
  echo $ac_n "(cached) $ac_c" 1>&6
2248
2809
else
2249
2810
  cat > conftest.$ac_ext <<EOF
2250
 
#line 2251 "configure"
 
2811
#line 2812 "configure"
2251
2812
#include "confdefs.h"
2252
2813
#include <$ac_hdr>
2253
2814
EOF
2254
2815
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2255
 
{ (eval echo configure:2256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2816
{ (eval echo configure:2817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2256
2817
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2257
2818
if test -z "$ac_err"; then
2258
2819
  rm -rf conftest*
2281
2842
 
2282
2843
 
2283
2844
echo $ac_n "checking for working const""... $ac_c" 1>&6
2284
 
echo "configure:2285: checking for working const" >&5
 
2845
echo "configure:2846: checking for working const" >&5
2285
2846
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2286
2847
  echo $ac_n "(cached) $ac_c" 1>&6
2287
2848
else
2288
2849
  cat > conftest.$ac_ext <<EOF
2289
 
#line 2290 "configure"
 
2850
#line 2851 "configure"
2290
2851
#include "confdefs.h"
2291
2852
 
2292
2853
int main() {
2335
2896
 
2336
2897
; return 0; }
2337
2898
EOF
2338
 
if { (eval echo configure:2339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2899
if { (eval echo configure:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2339
2900
  rm -rf conftest*
2340
2901
  ac_cv_c_const=yes
2341
2902
else
2356
2917
fi
2357
2918
 
2358
2919
echo $ac_n "checking for inline""... $ac_c" 1>&6
2359
 
echo "configure:2360: checking for inline" >&5
 
2920
echo "configure:2921: checking for inline" >&5
2360
2921
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2361
2922
  echo $ac_n "(cached) $ac_c" 1>&6
2362
2923
else
2363
2924
  ac_cv_c_inline=no
2364
2925
for ac_kw in inline __inline__ __inline; do
2365
2926
  cat > conftest.$ac_ext <<EOF
2366
 
#line 2367 "configure"
 
2927
#line 2928 "configure"
2367
2928
#include "confdefs.h"
2368
2929
 
2369
2930
int main() {
2370
2931
} $ac_kw foo() {
2371
2932
; return 0; }
2372
2933
EOF
2373
 
if { (eval echo configure:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2934
if { (eval echo configure:2935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2374
2935
  rm -rf conftest*
2375
2936
  ac_cv_c_inline=$ac_kw; break
2376
2937
else
2396
2957
esac
2397
2958
 
2398
2959
echo $ac_n "checking for size_t""... $ac_c" 1>&6
2399
 
echo "configure:2400: checking for size_t" >&5
 
2960
echo "configure:2961: checking for size_t" >&5
2400
2961
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2401
2962
  echo $ac_n "(cached) $ac_c" 1>&6
2402
2963
else
2403
2964
  cat > conftest.$ac_ext <<EOF
2404
 
#line 2405 "configure"
 
2965
#line 2966 "configure"
2405
2966
#include "confdefs.h"
2406
2967
#include <sys/types.h>
2407
2968
#if STDC_HEADERS
2429
2990
fi
2430
2991
 
2431
2992
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2432
 
echo "configure:2433: checking whether time.h and sys/time.h may both be included" >&5
 
2993
echo "configure:2994: checking whether time.h and sys/time.h may both be included" >&5
2433
2994
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2434
2995
  echo $ac_n "(cached) $ac_c" 1>&6
2435
2996
else
2436
2997
  cat > conftest.$ac_ext <<EOF
2437
 
#line 2438 "configure"
 
2998
#line 2999 "configure"
2438
2999
#include "confdefs.h"
2439
3000
#include <sys/types.h>
2440
3001
#include <sys/time.h>
2443
3004
struct tm *tp;
2444
3005
; return 0; }
2445
3006
EOF
2446
 
if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3007
if { (eval echo configure:3008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2447
3008
  rm -rf conftest*
2448
3009
  ac_cv_header_time=yes
2449
3010
else
2464
3025
fi
2465
3026
 
2466
3027
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2467
 
echo "configure:2468: checking whether struct tm is in sys/time.h or time.h" >&5
 
3028
echo "configure:3029: checking whether struct tm is in sys/time.h or time.h" >&5
2468
3029
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2469
3030
  echo $ac_n "(cached) $ac_c" 1>&6
2470
3031
else
2471
3032
  cat > conftest.$ac_ext <<EOF
2472
 
#line 2473 "configure"
 
3033
#line 3034 "configure"
2473
3034
#include "confdefs.h"
2474
3035
#include <sys/types.h>
2475
3036
#include <time.h>
2477
3038
struct tm *tp; tp->tm_sec;
2478
3039
; return 0; }
2479
3040
EOF
2480
 
if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3041
if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2481
3042
  rm -rf conftest*
2482
3043
  ac_cv_struct_tm=time.h
2483
3044
else
2498
3059
fi
2499
3060
 
2500
3061
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2501
 
echo "configure:2502: checking for uid_t in sys/types.h" >&5
 
3062
echo "configure:3063: checking for uid_t in sys/types.h" >&5
2502
3063
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2503
3064
  echo $ac_n "(cached) $ac_c" 1>&6
2504
3065
else
2505
3066
  cat > conftest.$ac_ext <<EOF
2506
 
#line 2507 "configure"
 
3067
#line 3068 "configure"
2507
3068
#include "confdefs.h"
2508
3069
#include <sys/types.h>
2509
3070
EOF
2534
3095
 
2535
3096
if test $ac_cv_prog_gcc = yes; then
2536
3097
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2537
 
echo "configure:2538: checking whether ${CC-cc} needs -traditional" >&5
 
3098
echo "configure:3099: checking whether ${CC-cc} needs -traditional" >&5
2538
3099
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2539
3100
  echo $ac_n "(cached) $ac_c" 1>&6
2540
3101
else
2541
3102
    ac_pattern="Autoconf.*'x'"
2542
3103
  cat > conftest.$ac_ext <<EOF
2543
 
#line 2544 "configure"
 
3104
#line 3105 "configure"
2544
3105
#include "confdefs.h"
2545
3106
#include <sgtty.h>
2546
3107
Autoconf TIOCGETP
2558
3119
 
2559
3120
  if test $ac_cv_prog_gcc_traditional = no; then
2560
3121
    cat > conftest.$ac_ext <<EOF
2561
 
#line 2562 "configure"
 
3122
#line 3123 "configure"
2562
3123
#include "confdefs.h"
2563
3124
#include <termio.h>
2564
3125
Autoconf TCGETA
2580
3141
fi
2581
3142
 
2582
3143
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2583
 
echo "configure:2584: checking return type of signal handlers" >&5
 
3144
echo "configure:3145: checking return type of signal handlers" >&5
2584
3145
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2585
3146
  echo $ac_n "(cached) $ac_c" 1>&6
2586
3147
else
2587
3148
  cat > conftest.$ac_ext <<EOF
2588
 
#line 2589 "configure"
 
3149
#line 3150 "configure"
2589
3150
#include "confdefs.h"
2590
3151
#include <sys/types.h>
2591
3152
#include <signal.h>
2602
3163
int i;
2603
3164
; return 0; }
2604
3165
EOF
2605
 
if { (eval echo configure:2606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3166
if { (eval echo configure:3167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2606
3167
  rm -rf conftest*
2607
3168
  ac_cv_type_signal=void
2608
3169
else
2620
3181
EOF
2621
3182
 
2622
3183
 
2623
 
for ac_func in select socket strdup strerror strtol uname cfmakeraw ioperm
 
3184
for ac_func in select socket strdup strerror strtol uname cfmakeraw
2624
3185
do
2625
3186
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2626
 
echo "configure:2627: checking for $ac_func" >&5
 
3187
echo "configure:3188: checking for $ac_func" >&5
2627
3188
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2628
3189
  echo $ac_n "(cached) $ac_c" 1>&6
2629
3190
else
2630
3191
  cat > conftest.$ac_ext <<EOF
2631
 
#line 2632 "configure"
 
3192
#line 3193 "configure"
2632
3193
#include "confdefs.h"
2633
3194
/* System header to define __stub macros and hopefully few prototypes,
2634
3195
    which can conflict with char $ac_func(); below.  */
2651
3212
 
2652
3213
; return 0; }
2653
3214
EOF
2654
 
if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3215
if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2655
3216
  rm -rf conftest*
2656
3217
  eval "ac_cv_func_$ac_func=yes"
2657
3218
else
2679
3240
 
2680
3241
 
2681
3242
        echo $ac_n "checking for your mounted filesystem table""... $ac_c" 1>&6
2682
 
echo "configure:2683: checking for your mounted filesystem table" >&5
 
3243
echo "configure:3244: checking for your mounted filesystem table" >&5
2683
3244
if eval "test \"`echo '$''{'ac_cv_mtab_file'+set}'`\" = set"; then
2684
3245
  echo $ac_n "(cached) $ac_c" 1>&6
2685
3246
else
2711
3272
do
2712
3273
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2713
3274
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2714
 
echo "configure:2715: checking for $ac_hdr" >&5
 
3275
echo "configure:3276: checking for $ac_hdr" >&5
2715
3276
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2716
3277
  echo $ac_n "(cached) $ac_c" 1>&6
2717
3278
else
2718
3279
  cat > conftest.$ac_ext <<EOF
2719
 
#line 2720 "configure"
 
3280
#line 3281 "configure"
2720
3281
#include "confdefs.h"
2721
3282
#include <$ac_hdr>
2722
3283
EOF
2723
3284
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724
 
{ (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3285
{ (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725
3286
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726
3287
if test -z "$ac_err"; then
2727
3288
  rm -rf conftest*
2751
3312
do
2752
3313
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2753
3314
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2754
 
echo "configure:2755: checking for $ac_hdr" >&5
 
3315
echo "configure:3316: checking for $ac_hdr" >&5
2755
3316
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2756
3317
  echo $ac_n "(cached) $ac_c" 1>&6
2757
3318
else
2758
3319
  cat > conftest.$ac_ext <<EOF
2759
 
#line 2760 "configure"
 
3320
#line 3321 "configure"
2760
3321
#include "confdefs.h"
2761
3322
#include <$ac_hdr>
2762
3323
EOF
2763
3324
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2764
 
{ (eval echo configure:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3325
{ (eval echo configure:3326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2765
3326
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2766
3327
if test -z "$ac_err"; then
2767
3328
  rm -rf conftest*
2791
3352
do
2792
3353
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2793
3354
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2794
 
echo "configure:2795: checking for $ac_hdr" >&5
 
3355
echo "configure:3356: checking for $ac_hdr" >&5
2795
3356
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2796
3357
  echo $ac_n "(cached) $ac_c" 1>&6
2797
3358
else
2798
3359
  cat > conftest.$ac_ext <<EOF
2799
 
#line 2800 "configure"
 
3360
#line 3361 "configure"
2800
3361
#include "confdefs.h"
2801
3362
#include <$ac_hdr>
2802
3363
EOF
2803
3364
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2804
 
{ (eval echo configure:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3365
{ (eval echo configure:3366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2805
3366
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2806
3367
if test -z "$ac_err"; then
2807
3368
  rm -rf conftest*
2830
3391
    for ac_func in getmntinfo
2831
3392
do
2832
3393
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2833
 
echo "configure:2834: checking for $ac_func" >&5
 
3394
echo "configure:3395: checking for $ac_func" >&5
2834
3395
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2835
3396
  echo $ac_n "(cached) $ac_c" 1>&6
2836
3397
else
2837
3398
  cat > conftest.$ac_ext <<EOF
2838
 
#line 2839 "configure"
 
3399
#line 3400 "configure"
2839
3400
#include "confdefs.h"
2840
3401
/* System header to define __stub macros and hopefully few prototypes,
2841
3402
    which can conflict with char $ac_func(); below.  */
2858
3419
 
2859
3420
; return 0; }
2860
3421
EOF
2861
 
if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3422
if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2862
3423
  rm -rf conftest*
2863
3424
  eval "ac_cv_func_$ac_func=yes"
2864
3425
else
2884
3445
 
2885
3446
 
2886
3447
    echo "checking how to get filesystem space usage" 1>&6
2887
 
echo "configure:2888: checking how to get filesystem space usage" >&5
 
3448
echo "configure:3449: checking how to get filesystem space usage" >&5
2888
3449
    space=no
2889
3450
 
2890
3451
    # Here we'll compromise a little (and perform only the link test)
2894
3455
      for ac_func in statvfs
2895
3456
do
2896
3457
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2897
 
echo "configure:2898: checking for $ac_func" >&5
 
3458
echo "configure:3459: checking for $ac_func" >&5
2898
3459
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2899
3460
  echo $ac_n "(cached) $ac_c" 1>&6
2900
3461
else
2901
3462
  cat > conftest.$ac_ext <<EOF
2902
 
#line 2903 "configure"
 
3463
#line 3464 "configure"
2903
3464
#include "confdefs.h"
2904
3465
/* System header to define __stub macros and hopefully few prototypes,
2905
3466
    which can conflict with char $ac_func(); below.  */
2922
3483
 
2923
3484
; return 0; }
2924
3485
EOF
2925
 
if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3486
if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2926
3487
  rm -rf conftest*
2927
3488
  eval "ac_cv_func_$ac_func=yes"
2928
3489
else
2958
3519
    if test $space = no; then
2959
3520
      # DEC Alpha running OSF/1
2960
3521
      echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
2961
 
echo "configure:2962: checking for 3-argument statfs function (DEC OSF/1)" >&5
 
3522
echo "configure:3523: checking for 3-argument statfs function (DEC OSF/1)" >&5
2962
3523
      if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
2963
3524
  echo $ac_n "(cached) $ac_c" 1>&6
2964
3525
else
2966
3527
  fu_cv_sys_stat_statfs3_osf1=no
2967
3528
else
2968
3529
  cat > conftest.$ac_ext <<EOF
2969
 
#line 2970 "configure"
 
3530
#line 3531 "configure"
2970
3531
#include "confdefs.h"
2971
3532
 
2972
3533
#include <sys/param.h>
2979
3540
        exit (statfs (".", &fsd, sizeof (struct statfs)));
2980
3541
      }
2981
3542
EOF
2982
 
if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3543
if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2983
3544
then
2984
3545
  fu_cv_sys_stat_statfs3_osf1=yes
2985
3546
else
3006
3567
    if test $space = no; then
3007
3568
    # AIX
3008
3569
      echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
3009
 
echo "configure:3010: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
 
3570
echo "configure:3571: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
3010
3571
      if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
3011
3572
  echo $ac_n "(cached) $ac_c" 1>&6
3012
3573
else
3014
3575
  fu_cv_sys_stat_statfs2_bsize=no
3015
3576
else
3016
3577
  cat > conftest.$ac_ext <<EOF
3017
 
#line 3018 "configure"
 
3578
#line 3579 "configure"
3018
3579
#include "confdefs.h"
3019
3580
 
3020
3581
#ifdef HAVE_SYS_PARAM_H
3033
3594
      exit (statfs (".", &fsd));
3034
3595
      }
3035
3596
EOF
3036
 
if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3597
if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3037
3598
then
3038
3599
  fu_cv_sys_stat_statfs2_bsize=yes
3039
3600
else
3060
3621
    if test $space = no; then
3061
3622
    # SVR3
3062
3623
      echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
3063
 
echo "configure:3064: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
 
3624
echo "configure:3625: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
3064
3625
      if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
3065
3626
  echo $ac_n "(cached) $ac_c" 1>&6
3066
3627
else
3068
3629
  fu_cv_sys_stat_statfs4=no
3069
3630
else
3070
3631
  cat > conftest.$ac_ext <<EOF
3071
 
#line 3072 "configure"
 
3632
#line 3633 "configure"
3072
3633
#include "confdefs.h"
3073
3634
#include <sys/types.h>
3074
3635
#include <sys/statfs.h>
3078
3639
      exit (statfs (".", &fsd, sizeof fsd, 0));
3079
3640
      }
3080
3641
EOF
3081
 
if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3642
if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3082
3643
then
3083
3644
  fu_cv_sys_stat_statfs4=yes
3084
3645
else
3104
3665
    if test $space = no; then
3105
3666
    # 4.4BSD and NetBSD
3106
3667
      echo $ac_n "checking for two-argument statfs with statfs.fsize     member (4.4BSD and NetBSD)""... $ac_c" 1>&6
3107
 
echo "configure:3108: checking for two-argument statfs with statfs.fsize     member (4.4BSD and NetBSD)" >&5
 
3668
echo "configure:3669: checking for two-argument statfs with statfs.fsize     member (4.4BSD and NetBSD)" >&5
3108
3669
      if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
3109
3670
  echo $ac_n "(cached) $ac_c" 1>&6
3110
3671
else
3112
3673
  fu_cv_sys_stat_statfs2_fsize=no
3113
3674
else
3114
3675
  cat > conftest.$ac_ext <<EOF
3115
 
#line 3116 "configure"
 
3676
#line 3677 "configure"
3116
3677
#include "confdefs.h"
3117
3678
#include <sys/types.h>
3118
3679
#ifdef HAVE_SYS_PARAM_H
3128
3689
      exit (statfs (".", &fsd));
3129
3690
      }
3130
3691
EOF
3131
 
if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3692
if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3132
3693
then
3133
3694
  fu_cv_sys_stat_statfs2_fsize=yes
3134
3695
else
3155
3716
    if test $space = no; then
3156
3717
      # Ultrix
3157
3718
      echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
3158
 
echo "configure:3159: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
 
3719
echo "configure:3720: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
3159
3720
      if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
3160
3721
  echo $ac_n "(cached) $ac_c" 1>&6
3161
3722
else
3163
3724
  fu_cv_sys_stat_fs_data=no
3164
3725
else
3165
3726
  cat > conftest.$ac_ext <<EOF
3166
 
#line 3167 "configure"
 
3727
#line 3728 "configure"
3167
3728
#include "confdefs.h"
3168
3729
 
3169
3730
#include <sys/types.h>
3184
3745
      exit (statfs (".", &fsd) != 1);
3185
3746
      }
3186
3747
EOF
3187
 
if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3748
if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3188
3749
then
3189
3750
  fu_cv_sys_stat_fs_data=yes
3190
3751
else
3288
3849
 
3289
3850
 
3290
3851
echo "checking for which drivers to compile" 1>&6
3291
 
echo "configure:3292: checking for which drivers to compile" >&5
 
3852
echo "configure:3853: checking for which drivers to compile" >&5
3292
3853
 
3293
3854
# Check whether --enable-drivers or --disable-drivers was given.
3294
3855
if test "${enable_drivers+set}" = set; then
3295
3856
  enableval="$enable_drivers"
3296
3857
  drivers="$enableval"
3297
3858
else
3298
 
  drivers=lcdm001,mtxorb,cfontz,curses,text,lb216,bayrad,glk
 
3859
  drivers=lcdm001,mtxorb,cfontz,cwlnx,curses,text,lb216,bayrad,glk,sgx120
3299
3860
fi
3300
3861
 
3301
3862
 
3302
3863
if test "$drivers" = "all"; then
3303
 
        drivers=mtxorb,cfontz,curses,text,lb216,hd44780,joy,irman,lircin,bayrad,glk,stv5730,sed1330,sed1520,svgalib,lcdm001,t6963
 
3864
        drivers=mtxorb,cfontz,cwlnx,curses,text,lb216,hd44780,joy,irman,lircin,bayrad,glk,stv5730,sed1330,sed1520,svgalib,lcdm001,t6963,wirz-sli,sgx120
3304
3865
fi
3305
3866
 
3306
3867
        drivers=`echo $drivers | sed 's/,/ /g'`
3348
3909
 
3349
3910
                        actdrivers="$actdrivers cfontz"
3350
3911
                        ;;
3351
 
                sli)    
 
3912
                cwlnx)
 
3913
                        DRIVERS="$DRIVERS CwLnx.o"
 
3914
                        cat >> confdefs.h <<\EOF
 
3915
#define CWLNX_DRV 1
 
3916
EOF
 
3917
 
 
3918
                        actdrivers="$actdrivers cwlnx"
 
3919
                        ;;
 
3920
                wirz-sli)
3352
3921
                        DRIVERS="$DRIVERS wirz-sli.o"
3353
3922
                        cat >> confdefs.h <<\EOF
3354
 
#define SLI_DRV 1
3355
 
EOF
3356
 
 
3357
 
                        actdrivers="$actdrivers sli"
 
3923
#define WIRZSLI_DRV 1
 
3924
EOF
 
3925
 
 
3926
                        actdrivers="$actdrivers wirz-sli"
 
3927
                        ;;
 
3928
                sgx120)
 
3929
                        DRIVERS="$DRIVERS SGX120.o"
 
3930
                        cat >> confdefs.h <<\EOF
 
3931
#define SGX120_DRV 1
 
3932
EOF
 
3933
 
 
3934
                        actdrivers="$actdrivers sgx120"
3358
3935
                        ;;
3359
3936
                curses)
3360
3937
                        for ac_hdr in ncurses.h curses.h
3361
3938
do
3362
3939
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3363
3940
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3364
 
echo "configure:3365: checking for $ac_hdr" >&5
 
3941
echo "configure:3942: checking for $ac_hdr" >&5
3365
3942
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3366
3943
  echo $ac_n "(cached) $ac_c" 1>&6
3367
3944
else
3368
3945
  cat > conftest.$ac_ext <<EOF
3369
 
#line 3370 "configure"
 
3946
#line 3947 "configure"
3370
3947
#include "confdefs.h"
3371
3948
#include <$ac_hdr>
3372
3949
EOF
3373
3950
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3374
 
{ (eval echo configure:3375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3951
{ (eval echo configure:3952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3375
3952
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3376
3953
if test -z "$ac_err"; then
3377
3954
  rm -rf conftest*
3398
3975
done
3399
3976
 
3400
3977
                        echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
3401
 
echo "configure:3402: checking for main in -lncurses" >&5
 
3978
echo "configure:3979: checking for main in -lncurses" >&5
3402
3979
ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
3403
3980
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404
3981
  echo $ac_n "(cached) $ac_c" 1>&6
3406
3983
  ac_save_LIBS="$LIBS"
3407
3984
LIBS="-lncurses  $LIBS"
3408
3985
cat > conftest.$ac_ext <<EOF
3409
 
#line 3410 "configure"
 
3986
#line 3987 "configure"
3410
3987
#include "confdefs.h"
3411
3988
 
3412
3989
int main() {
3413
3990
main()
3414
3991
; return 0; }
3415
3992
EOF
3416
 
if { (eval echo configure:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3993
if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3417
3994
  rm -rf conftest*
3418
3995
  eval "ac_cv_lib_$ac_lib_var=yes"
3419
3996
else
3428
4005
fi
3429
4006
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3430
4007
  echo "$ac_t""yes" 1>&6
3431
 
  ac_safe=`echo "ncurses.h" | sed 'y%./+-%__p_%'`
 
4008
  
 
4009
                                ac_safe=`echo "ncurses.h" | sed 'y%./+-%__p_%'`
3432
4010
echo $ac_n "checking for ncurses.h""... $ac_c" 1>&6
3433
 
echo "configure:3434: checking for ncurses.h" >&5
 
4011
echo "configure:4012: checking for ncurses.h" >&5
3434
4012
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3435
4013
  echo $ac_n "(cached) $ac_c" 1>&6
3436
4014
else
3437
4015
  cat > conftest.$ac_ext <<EOF
3438
 
#line 3439 "configure"
 
4016
#line 4017 "configure"
3439
4017
#include "confdefs.h"
3440
4018
#include <ncurses.h>
3441
4019
EOF
3442
4020
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3443
 
{ (eval echo configure:3444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4021
{ (eval echo configure:4022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3444
4022
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3445
4023
if test -z "$ac_err"; then
3446
4024
  rm -rf conftest*
3456
4034
fi
3457
4035
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3458
4036
  echo "$ac_t""yes" 1>&6
3459
 
                                        LIBCURSES="-lncurses"
 
4037
  
 
4038
                                                                                LIBCURSES="-lncurses"
3460
4039
                                        DRIVERS="$DRIVERS curses_drv.o"
3461
4040
                                        cat >> confdefs.h <<\EOF
3462
4041
#define CURSES_DRV 1
3466
4045
                                
3467
4046
else
3468
4047
  echo "$ac_t""no" 1>&6
 
4048
 
3469
4049
                                        echo "configure: warning: Could not find ncurses.h" 1>&2
3470
4050
fi
3471
4051
 
3472
4052
                        
3473
4053
else
3474
4054
  echo "$ac_t""no" 1>&6
 
4055
 
3475
4056
                                echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
3476
 
echo "configure:3477: checking for main in -lcurses" >&5
 
4057
echo "configure:4058: checking for main in -lcurses" >&5
3477
4058
ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
3478
4059
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3479
4060
  echo $ac_n "(cached) $ac_c" 1>&6
3481
4062
  ac_save_LIBS="$LIBS"
3482
4063
LIBS="-lcurses  $LIBS"
3483
4064
cat > conftest.$ac_ext <<EOF
3484
 
#line 3485 "configure"
 
4065
#line 4066 "configure"
3485
4066
#include "confdefs.h"
3486
4067
 
3487
4068
int main() {
3488
4069
main()
3489
4070
; return 0; }
3490
4071
EOF
3491
 
if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4072
if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3492
4073
  rm -rf conftest*
3493
4074
  eval "ac_cv_lib_$ac_lib_var=yes"
3494
4075
else
3503
4084
fi
3504
4085
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3505
4086
  echo "$ac_t""yes" 1>&6
3506
 
  ac_safe=`echo "curses.h" | sed 'y%./+-%__p_%'`
 
4087
  
 
4088
                                        ac_safe=`echo "curses.h" | sed 'y%./+-%__p_%'`
3507
4089
echo $ac_n "checking for curses.h""... $ac_c" 1>&6
3508
 
echo "configure:3509: checking for curses.h" >&5
 
4090
echo "configure:4091: checking for curses.h" >&5
3509
4091
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3510
4092
  echo $ac_n "(cached) $ac_c" 1>&6
3511
4093
else
3512
4094
  cat > conftest.$ac_ext <<EOF
3513
 
#line 3514 "configure"
 
4095
#line 4096 "configure"
3514
4096
#include "confdefs.h"
3515
4097
#include <curses.h>
3516
4098
EOF
3517
4099
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3518
 
{ (eval echo configure:3519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4100
{ (eval echo configure:4101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3519
4101
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3520
4102
if test -z "$ac_err"; then
3521
4103
  rm -rf conftest*
3531
4113
fi
3532
4114
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3533
4115
  echo "$ac_t""yes" 1>&6
3534
 
                                                LIBCURSES="-lcurses"
 
4116
  
 
4117
                                                                                                LIBCURSES="-lcurses"
3535
4118
                                                DRIVERS="$DRIVERS curses_drv.o"
3536
4119
                                                cat >> confdefs.h <<\EOF
3537
4120
#define CURSES_DRV 1
3541
4124
                                        
3542
4125
else
3543
4126
  echo "$ac_t""no" 1>&6
 
4127
 
3544
4128
                                                echo "configure: warning: Could not find curses.h" 1>&2
3545
4129
fi
3546
4130
 
3547
4131
                                
3548
4132
else
3549
4133
  echo "$ac_t""no" 1>&6
 
4134
 
3550
4135
                                        echo "configure: warning: The curses driver needs the curses (or ncurses) library." 1>&2
3551
4136
fi
3552
4137
 
3556
4141
                        
3557
4142
                        
3558
4143
        echo $ac_n "checking for acs_map in curses.h""... $ac_c" 1>&6
3559
 
echo "configure:3560: checking for acs_map in curses.h" >&5
 
4144
echo "configure:4145: checking for acs_map in curses.h" >&5
3560
4145
if eval "test \"`echo '$''{'ac_cv_curses_acs_map'+set}'`\" = set"; then
3561
4146
  echo $ac_n "(cached) $ac_c" 1>&6
3562
4147
else
3563
4148
  cat > conftest.$ac_ext <<EOF
3564
 
#line 3565 "configure"
 
4149
#line 4150 "configure"
3565
4150
#include "confdefs.h"
3566
4151
#include <curses.h>
3567
4152
int main() {
3568
4153
 char map = acs_map['p'] 
3569
4154
; return 0; }
3570
4155
EOF
3571
 
if { (eval echo configure:3572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
4156
if { (eval echo configure:4157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3572
4157
  rm -rf conftest*
3573
4158
  ac_cv_curses_acs_map=yes
3574
4159
else
3591
4176
        else
3592
4177
        
3593
4178
                echo $ac_n "checking for _acs_char in curses.h""... $ac_c" 1>&6
3594
 
echo "configure:3595: checking for _acs_char in curses.h" >&5
 
4179
echo "configure:4180: checking for _acs_char in curses.h" >&5
3595
4180
if eval "test \"`echo '$''{'ac_cv_curses__acs_char'+set}'`\" = set"; then
3596
4181
  echo $ac_n "(cached) $ac_c" 1>&6
3597
4182
else
3598
4183
  cat > conftest.$ac_ext <<EOF
3599
 
#line 3600 "configure"
 
4184
#line 4185 "configure"
3600
4185
#include "confdefs.h"
3601
4186
#include <curses.h>
3602
4187
int main() {
3603
4188
 char map = _acs_char['p'] 
3604
4189
; return 0; }
3605
4190
EOF
3606
 
if { (eval echo configure:3607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
4191
if { (eval echo configure:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3607
4192
  rm -rf conftest*
3608
4193
  ac_cv_curses__acs_char=yes
3609
4194
else
3629
4214
 
3630
4215
                        
3631
4216
                        echo $ac_n "checking for redrawwin() in curses""... $ac_c" 1>&6
3632
 
echo "configure:3633: checking for redrawwin() in curses" >&5
 
4217
echo "configure:4218: checking for redrawwin() in curses" >&5
3633
4218
if eval "test \"`echo '$''{'ac_cv_curses_redrawwin'+set}'`\" = set"; then
3634
4219
  echo $ac_n "(cached) $ac_c" 1>&6
3635
4220
else
3636
4221
  oldlibs="$LIBS"
3637
4222
                         LIBS="$LIBS $LIBCURSES"
3638
4223
                         cat > conftest.$ac_ext <<EOF
3639
 
#line 3640 "configure"
 
4224
#line 4225 "configure"
3640
4225
#include "confdefs.h"
3641
4226
/* Override any gcc2 internal prototype to avoid an error.  */
3642
4227
/* We use char because int might match the return type of a gcc2
3647
4232
redrawwin()
3648
4233
; return 0; }
3649
4234
EOF
3650
 
if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4235
if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3651
4236
  rm -rf conftest*
3652
4237
  ac_cv_curses_redrawwin=yes
3653
4238
else
3670
4255
                        fi
3671
4256
                                                
3672
4257
                        echo $ac_n "checking for wcolor_set() in curses""... $ac_c" 1>&6
3673
 
echo "configure:3674: checking for wcolor_set() in curses" >&5
 
4258
echo "configure:4259: checking for wcolor_set() in curses" >&5
3674
4259
if eval "test \"`echo '$''{'ac_cv_curses_wcolor_set'+set}'`\" = set"; then
3675
4260
  echo $ac_n "(cached) $ac_c" 1>&6
3676
4261
else
3677
4262
  oldlibs="$LIBS"
3678
4263
                         LIBS="$LIBS $LIBCURSES"
3679
4264
                         cat > conftest.$ac_ext <<EOF
3680
 
#line 3681 "configure"
 
4265
#line 4266 "configure"
3681
4266
#include "confdefs.h"
3682
4267
/* Override any gcc2 internal prototype to avoid an error.  */
3683
4268
/* We use char because int might match the return type of a gcc2
3688
4273
wcolor_set()
3689
4274
; return 0; }
3690
4275
EOF
3691
 
if { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4276
if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3692
4277
  rm -rf conftest*
3693
4278
  ac_cv_curses_wcolor_set=yes
3694
4279
else
3727
4312
                        actdrivers="$actdrivers lb216"
3728
4313
                        ;;
3729
4314
                hd44780)
3730
 
                        DRIVERS="$DRIVERS hd44780.o hd44780-4bit.o hd44780-ext8bit.o lcd_sem.o hd44780-serialLpt.o hd44780-winamp.o hd44780-picanlcd.o"
 
4315
                        if test "$ac_cv_port_have_lpt" = yes ; then
 
4316
                                DRIVERS="$DRIVERS hd44780.o hd44780-4bit.o hd44780-ext8bit.o lcd_sem.o hd44780-serialLpt.o hd44780-winamp.o hd44780-picanlcd.o hd44780-usblcd.o hd44780-anslcd.o"
 
4317
                        else
 
4318
                                DRIVERS="$DRIVERS hd44780.o hd44780-picanlcd.o hd44780-usblcd.o hd44780-anslcd.o"
 
4319
                        fi
3731
4320
                        cat >> confdefs.h <<\EOF
3732
4321
#define HD44780_DRV 1
3733
4322
EOF
3737
4326
                joy)    
3738
4327
                        ac_safe=`echo "linux/joystick.h" | sed 'y%./+-%__p_%'`
3739
4328
echo $ac_n "checking for linux/joystick.h""... $ac_c" 1>&6
3740
 
echo "configure:3741: checking for linux/joystick.h" >&5
 
4329
echo "configure:4330: checking for linux/joystick.h" >&5
3741
4330
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3742
4331
  echo $ac_n "(cached) $ac_c" 1>&6
3743
4332
else
3744
4333
  cat > conftest.$ac_ext <<EOF
3745
 
#line 3746 "configure"
 
4334
#line 4335 "configure"
3746
4335
#include "confdefs.h"
3747
4336
#include <linux/joystick.h>
3748
4337
EOF
3749
4338
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3750
 
{ (eval echo configure:3751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4339
{ (eval echo configure:4340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3751
4340
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3752
4341
if test -z "$ac_err"; then
3753
4342
  rm -rf conftest*
3779
4368
                        ;;
3780
4369
                irman)
3781
4370
                        echo $ac_n "checking for main in -lirman""... $ac_c" 1>&6
3782
 
echo "configure:3783: checking for main in -lirman" >&5
 
4371
echo "configure:4372: checking for main in -lirman" >&5
3783
4372
ac_lib_var=`echo irman'_'main | sed 'y%./+-%__p_%'`
3784
4373
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3785
4374
  echo $ac_n "(cached) $ac_c" 1>&6
3787
4376
  ac_save_LIBS="$LIBS"
3788
4377
LIBS="-lirman  $LIBS"
3789
4378
cat > conftest.$ac_ext <<EOF
3790
 
#line 3791 "configure"
 
4379
#line 4380 "configure"
3791
4380
#include "confdefs.h"
3792
4381
 
3793
4382
int main() {
3794
4383
main()
3795
4384
; return 0; }
3796
4385
EOF
3797
 
if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4386
if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3798
4387
  rm -rf conftest*
3799
4388
  eval "ac_cv_lib_$ac_lib_var=yes"
3800
4389
else
3809
4398
fi
3810
4399
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3811
4400
  echo "$ac_t""yes" 1>&6
3812
 
  LIBIRMAN="-lirman"
 
4401
  
 
4402
                                LIBIRMAN="-lirman"
3813
4403
                                DRIVERS="$DRIVERS irmanin.o"
3814
4404
                                cat >> confdefs.h <<\EOF
3815
4405
#define IRMANIN_DRV 1
3819
4409
                                
3820
4410
else
3821
4411
  echo "$ac_t""no" 1>&6
 
4412
 
3822
4413
                                echo "configure: warning: The irman driver needs the irman library." 1>&2
3823
4414
                        
3824
4415
fi
3826
4417
                        ;;
3827
4418
                lircin)
3828
4419
                        echo $ac_n "checking for main in -llirc_client""... $ac_c" 1>&6
3829
 
echo "configure:3830: checking for main in -llirc_client" >&5
 
4420
echo "configure:4421: checking for main in -llirc_client" >&5
3830
4421
ac_lib_var=`echo lirc_client'_'main | sed 'y%./+-%__p_%'`
3831
4422
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832
4423
  echo $ac_n "(cached) $ac_c" 1>&6
3834
4425
  ac_save_LIBS="$LIBS"
3835
4426
LIBS="-llirc_client  $LIBS"
3836
4427
cat > conftest.$ac_ext <<EOF
3837
 
#line 3838 "configure"
 
4428
#line 4429 "configure"
3838
4429
#include "confdefs.h"
3839
4430
 
3840
4431
int main() {
3841
4432
main()
3842
4433
; return 0; }
3843
4434
EOF
3844
 
if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4435
if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3845
4436
  rm -rf conftest*
3846
4437
  eval "ac_cv_lib_$ac_lib_var=yes"
3847
4438
else
3856
4447
fi
3857
4448
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3858
4449
  echo "$ac_t""yes" 1>&6
3859
 
  LIBLIRC_CLIENT="-llirc_client"
 
4450
  
 
4451
                                LIBLIRC_CLIENT="-llirc_client"
3860
4452
                                DRIVERS="$DRIVERS lircin.o"
3861
4453
                                cat >> confdefs.h <<\EOF
3862
4454
#define LIRCIN_DRV 1
3866
4458
                                
3867
4459
else
3868
4460
  echo "$ac_t""no" 1>&6
 
4461
 
3869
4462
                                echo "configure: warning: The lirc driver needs the lirc client library" 1>&2
3870
4463
                        
3871
4464
fi
3872
4465
 
3873
4466
                        ;;
3874
4467
                sed1330)
3875
 
                        DRIVERS="$DRIVERS sed1330.o"
3876
 
                        cat >> confdefs.h <<\EOF
 
4468
                        if test "$ac_cv_port_have_lpt" = yes
 
4469
                        then
 
4470
                                DRIVERS="$DRIVERS sed1330.o"
 
4471
                                cat >> confdefs.h <<\EOF
3877
4472
#define SED1330_DRV 1
3878
4473
EOF
3879
4474
 
3880
 
                        actdrivers="$actdrivers sed1330"
 
4475
                                actdrivers="$actdrivers sed1330"
 
4476
                        else
 
4477
                                echo "configure: warning: The sed1330 driver needs a parallel port." 1>&2
 
4478
                        fi
3881
4479
                        ;;
3882
4480
                sed1520)
3883
 
                        DRIVERS="$DRIVERS sed1520.o"
3884
 
                        cat >> confdefs.h <<\EOF
 
4481
                        if test "$ac_cv_port_have_lpt" = yes
 
4482
                        then
 
4483
                                DRIVERS="$DRIVERS sed1520.o"
 
4484
                                cat >> confdefs.h <<\EOF
3885
4485
#define SED1520_DRV 1
3886
4486
EOF
3887
4487
 
3888
 
                        actdrivers="$actdrivers sed1520"
 
4488
                                actdrivers="$actdrivers sed1520"
 
4489
                        else
 
4490
                                echo "configure: warning: The sed1520 driver needs a parallel port." 1>&2
 
4491
                        fi
3889
4492
                        ;;
3890
4493
                stv5730)
3891
 
                        DRIVERS="$DRIVERS stv5730.o"
3892
 
                        cat >> confdefs.h <<\EOF
 
4494
                        if test "$ac_cv_port_have_lpt" = yes
 
4495
                        then
 
4496
                                DRIVERS="$DRIVERS stv5730.o"
 
4497
                                cat >> confdefs.h <<\EOF
3893
4498
#define STV5730_DRV 1
3894
4499
EOF
3895
4500
 
3896
 
                        actdrivers="$actdrivers stv5730"
 
4501
                                actdrivers="$actdrivers stv5730"
 
4502
                        else
 
4503
                                echo "configure: warning: The stv5730 driver needs a parallel port." 1>&2
 
4504
                        fi
3897
4505
                        ;;
3898
4506
                svgalib)
3899
4507
                        echo $ac_n "checking for main in -lvga""... $ac_c" 1>&6
3900
 
echo "configure:3901: checking for main in -lvga" >&5
 
4508
echo "configure:4509: checking for main in -lvga" >&5
3901
4509
ac_lib_var=`echo vga'_'main | sed 'y%./+-%__p_%'`
3902
4510
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3903
4511
  echo $ac_n "(cached) $ac_c" 1>&6
3905
4513
  ac_save_LIBS="$LIBS"
3906
4514
LIBS="-lvga  $LIBS"
3907
4515
cat > conftest.$ac_ext <<EOF
3908
 
#line 3909 "configure"
 
4516
#line 4517 "configure"
3909
4517
#include "confdefs.h"
3910
4518
 
3911
4519
int main() {
3912
4520
main()
3913
4521
; return 0; }
3914
4522
EOF
3915
 
if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4523
if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3916
4524
  rm -rf conftest*
3917
4525
  eval "ac_cv_lib_$ac_lib_var=yes"
3918
4526
else
3927
4535
fi
3928
4536
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3929
4537
  echo "$ac_t""yes" 1>&6
3930
 
  LIBSVGA="-lvga -lvgagl"
 
4538
  
 
4539
                                LIBSVGA="-lvga -lvgagl"
3931
4540
                                DRIVERS="$DRIVERS svgalib_drv.o"
3932
4541
                                cat >> confdefs.h <<\EOF
3933
4542
#define SVGALIB_DRV 1
3937
4546
                                
3938
4547
else
3939
4548
  echo "$ac_t""no" 1>&6
 
4549
 
3940
4550
                                echo "configure: warning: The svgalib driver needs the vga library" 1>&2
 
4551
                        
3941
4552
fi
3942
4553
 
3943
4554
                        ;;
3944
4555
                t6963)
3945
 
                        DRIVERS="$DRIVERS t6963.o"
3946
 
                        cat >> confdefs.h <<\EOF
 
4556
                        if test "$ac_cv_port_have_lpt" = yes
 
4557
                        then
 
4558
                                DRIVERS="$DRIVERS t6963.o"
 
4559
                                cat >> confdefs.h <<\EOF
3947
4560
#define T6963_DRV 1
3948
4561
EOF
3949
4562
 
3950
 
                        actdrivers="$actdrivers t6963"
 
4563
                                actdrivers="$actdrivers t6963"
 
4564
                        else
 
4565
                                echo "configure: warning: The t6963 driver needs a parallel port." 1>&2
 
4566
                        fi
3951
4567
                        ;;
3952
4568
        *)      
3953
4569
                        { echo "configure: error: Unknown driver $driver" 1>&2; exit 1; }