835
835
for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
838
# Extract the first word of "gcc", so it can be a program name with args.
839
set dummy gcc; ac_word=$2
840
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841
echo "configure:842: checking for $ac_word" >&5
842
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843
echo $ac_n "(cached) $ac_c" 1>&6
845
if test -n "$CC"; then
846
ac_cv_prog_CC="$CC" # Let the user override the test.
848
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
850
for ac_dir in $ac_dummy; do
851
test -z "$ac_dir" && ac_dir=.
852
if test -f $ac_dir/$ac_word; then
861
if test -n "$CC"; then
862
echo "$ac_t""$CC" 1>&6
864
echo "$ac_t""no" 1>&6
867
if test -z "$CC"; then
868
# Extract the first word of "cc", so it can be a program name with args.
869
set dummy cc; ac_word=$2
870
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871
echo "configure:872: checking for $ac_word" >&5
872
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873
echo $ac_n "(cached) $ac_c" 1>&6
875
if test -n "$CC"; then
876
ac_cv_prog_CC="$CC" # Let the user override the test.
878
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
881
for ac_dir in $ac_dummy; do
882
test -z "$ac_dir" && ac_dir=.
883
if test -f $ac_dir/$ac_word; then
884
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
893
if test $ac_prog_rejected = yes; then
894
# We found a bogon in the path, so make sure we never use it.
895
set dummy $ac_cv_prog_CC
897
if test $# -gt 0; then
898
# We chose a different compiler from the bogus one.
899
# However, it has the same basename, so the bogon will be chosen
900
# first if we set CC to just the basename; use the full file name.
902
set dummy "$ac_dir/$ac_word" "$@"
910
if test -n "$CC"; then
911
echo "$ac_t""$CC" 1>&6
913
echo "$ac_t""no" 1>&6
916
if test -z "$CC"; then
919
# Extract the first word of "cl", so it can be a program name with args.
920
set dummy cl; ac_word=$2
921
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922
echo "configure:923: checking for $ac_word" >&5
923
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
924
echo $ac_n "(cached) $ac_c" 1>&6
926
if test -n "$CC"; then
927
ac_cv_prog_CC="$CC" # Let the user override the test.
929
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
931
for ac_dir in $ac_dummy; do
932
test -z "$ac_dir" && ac_dir=.
933
if test -f $ac_dir/$ac_word; then
942
if test -n "$CC"; then
943
echo "$ac_t""$CC" 1>&6
945
echo "$ac_t""no" 1>&6
950
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
953
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
954
echo "configure:955: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
957
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958
ac_cpp='$CPP $CPPFLAGS'
959
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961
cross_compiling=$ac_cv_prog_cc_cross
963
cat > conftest.$ac_ext << EOF
965
#line 966 "configure"
966
#include "confdefs.h"
970
if { (eval echo configure:971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
971
ac_cv_prog_cc_works=yes
972
# If we can't run a trivial program, we are probably using a cross compiler.
973
if (./conftest; exit) 2>/dev/null; then
974
ac_cv_prog_cc_cross=no
976
ac_cv_prog_cc_cross=yes
979
echo "configure: failed program was:" >&5
980
cat conftest.$ac_ext >&5
981
ac_cv_prog_cc_works=no
985
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986
ac_cpp='$CPP $CPPFLAGS'
987
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
988
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
989
cross_compiling=$ac_cv_prog_cc_cross
991
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
992
if test $ac_cv_prog_cc_works = no; then
993
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
995
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
996
echo "configure:997: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
997
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
998
cross_compiling=$ac_cv_prog_cc_cross
1000
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1001
echo "configure:1002: checking whether we are using GNU C" >&5
1002
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1003
echo $ac_n "(cached) $ac_c" 1>&6
1005
cat > conftest.c <<EOF
1010
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1017
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1019
if test $ac_cv_prog_gcc = yes; then
1025
ac_test_CFLAGS="${CFLAGS+set}"
1026
ac_save_CFLAGS="$CFLAGS"
1028
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1029
echo "configure:1030: checking whether ${CC-cc} accepts -g" >&5
1030
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1031
echo $ac_n "(cached) $ac_c" 1>&6
1033
echo 'void f(){}' > conftest.c
1034
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1043
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1044
if test "$ac_test_CFLAGS" = set; then
1045
CFLAGS="$ac_save_CFLAGS"
1046
elif test $ac_cv_prog_cc_g = yes; then
1047
if test "$GCC" = yes; then
1053
if test "$GCC" = yes; then
1060
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1061
echo "configure:1062: checking for POSIXized ISC" >&5
1062
if test -d /etc/conf/kconfig.d &&
1063
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1065
echo "$ac_t""yes" 1>&6
1066
ISC=yes # If later tests want to check for ISC.
1067
cat >> confdefs.h <<\EOF
1068
#define _POSIX_SOURCE 1
1071
if test "$GCC" = yes; then
1077
echo "$ac_t""no" 1>&6
1081
# Extract the first word of "gcc", so it can be a program name with args.
1082
set dummy gcc; ac_word=$2
1083
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084
echo "configure:1085: checking for $ac_word" >&5
1085
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1086
echo $ac_n "(cached) $ac_c" 1>&6
1088
if test -n "$CC"; then
1089
ac_cv_prog_CC="$CC" # Let the user override the test.
1091
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093
for ac_dir in $ac_dummy; do
1094
test -z "$ac_dir" && ac_dir=.
1095
if test -f $ac_dir/$ac_word; then
1104
if test -n "$CC"; then
1105
echo "$ac_t""$CC" 1>&6
1107
echo "$ac_t""no" 1>&6
1110
if test -z "$CC"; then
1111
# Extract the first word of "cc", so it can be a program name with args.
1112
set dummy cc; ac_word=$2
1113
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114
echo "configure:1115: checking for $ac_word" >&5
1115
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116
echo $ac_n "(cached) $ac_c" 1>&6
1118
if test -n "$CC"; then
1119
ac_cv_prog_CC="$CC" # Let the user override the test.
1121
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1124
for ac_dir in $ac_dummy; do
1125
test -z "$ac_dir" && ac_dir=.
1126
if test -f $ac_dir/$ac_word; then
1127
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1128
ac_prog_rejected=yes
1136
if test $ac_prog_rejected = yes; then
1137
# We found a bogon in the path, so make sure we never use it.
1138
set dummy $ac_cv_prog_CC
1140
if test $# -gt 0; then
1141
# We chose a different compiler from the bogus one.
1142
# However, it has the same basename, so the bogon will be chosen
1143
# first if we set CC to just the basename; use the full file name.
1145
set dummy "$ac_dir/$ac_word" "$@"
1153
if test -n "$CC"; then
1154
echo "$ac_t""$CC" 1>&6
1156
echo "$ac_t""no" 1>&6
1159
if test -z "$CC"; then
1160
case "`uname -s`" in
1162
# Extract the first word of "cl", so it can be a program name with args.
1163
set dummy cl; ac_word=$2
1164
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165
echo "configure:1166: checking for $ac_word" >&5
1166
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1167
echo $ac_n "(cached) $ac_c" 1>&6
1169
if test -n "$CC"; then
1170
ac_cv_prog_CC="$CC" # Let the user override the test.
1172
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1174
for ac_dir in $ac_dummy; do
1175
test -z "$ac_dir" && ac_dir=.
1176
if test -f $ac_dir/$ac_word; then
1185
if test -n "$CC"; then
1186
echo "$ac_t""$CC" 1>&6
1188
echo "$ac_t""no" 1>&6
1193
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1196
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1197
echo "configure:1198: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1200
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1201
ac_cpp='$CPP $CPPFLAGS'
1202
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1203
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1204
cross_compiling=$ac_cv_prog_cc_cross
1206
cat > conftest.$ac_ext << EOF
1208
#line 1209 "configure"
1209
#include "confdefs.h"
1213
if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1214
ac_cv_prog_cc_works=yes
1215
# If we can't run a trivial program, we are probably using a cross compiler.
1216
if (./conftest; exit) 2>/dev/null; then
1217
ac_cv_prog_cc_cross=no
1219
ac_cv_prog_cc_cross=yes
1222
echo "configure: failed program was:" >&5
1223
cat conftest.$ac_ext >&5
1224
ac_cv_prog_cc_works=no
1228
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1229
ac_cpp='$CPP $CPPFLAGS'
1230
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1231
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1232
cross_compiling=$ac_cv_prog_cc_cross
1234
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1235
if test $ac_cv_prog_cc_works = no; then
1236
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1238
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1239
echo "configure:1240: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1240
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1241
cross_compiling=$ac_cv_prog_cc_cross
1243
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1244
echo "configure:1245: checking whether we are using GNU C" >&5
1245
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1246
echo $ac_n "(cached) $ac_c" 1>&6
1248
cat > conftest.c <<EOF
1253
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1260
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1262
if test $ac_cv_prog_gcc = yes; then
1268
ac_test_CFLAGS="${CFLAGS+set}"
1269
ac_save_CFLAGS="$CFLAGS"
1271
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1272
echo "configure:1273: checking whether ${CC-cc} accepts -g" >&5
1273
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1274
echo $ac_n "(cached) $ac_c" 1>&6
1276
echo 'void f(){}' > conftest.c
1277
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1286
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1287
if test "$ac_test_CFLAGS" = set; then
1288
CFLAGS="$ac_save_CFLAGS"
1289
elif test $ac_cv_prog_cc_g = yes; then
1290
if test "$GCC" = yes; then
1296
if test "$GCC" = yes; then
1303
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1304
echo "configure:1305: checking how to run the C preprocessor" >&5
1305
# On Suns, sometimes $CPP names a directory.
1306
if test -n "$CPP" && test -d "$CPP"; then
1309
if test -z "$CPP"; then
1310
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1311
echo $ac_n "(cached) $ac_c" 1>&6
1313
# This must be in double quotes, not single quotes, because CPP may get
1314
# substituted into the Makefile and "${CC-cc}" will confuse make.
1316
# On the NeXT, cc -E runs the code through the compiler's parser,
1317
# not just through cpp.
1318
cat > conftest.$ac_ext <<EOF
1319
#line 1320 "configure"
1320
#include "confdefs.h"
1324
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1325
{ (eval echo configure:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1326
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1327
if test -z "$ac_err"; then
1331
echo "configure: failed program was:" >&5
1332
cat conftest.$ac_ext >&5
1334
CPP="${CC-cc} -E -traditional-cpp"
1335
cat > conftest.$ac_ext <<EOF
1336
#line 1337 "configure"
1337
#include "confdefs.h"
1341
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1342
{ (eval echo configure:1343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1343
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1344
if test -z "$ac_err"; then
1348
echo "configure: failed program was:" >&5
1349
cat conftest.$ac_ext >&5
1351
CPP="${CC-cc} -nologo -E"
1352
cat > conftest.$ac_ext <<EOF
1353
#line 1354 "configure"
1354
#include "confdefs.h"
1358
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1359
{ (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1360
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1361
if test -z "$ac_err"; then
1365
echo "configure: failed program was:" >&5
1366
cat conftest.$ac_ext >&5
1375
ac_cv_prog_CPP="$CPP"
1377
CPP="$ac_cv_prog_CPP"
1379
ac_cv_prog_CPP="$CPP"
1381
echo "$ac_t""$CPP" 1>&6
1383
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1384
echo "configure:1385: checking for ANSI C header files" >&5
1385
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1386
echo $ac_n "(cached) $ac_c" 1>&6
1388
cat > conftest.$ac_ext <<EOF
1389
#line 1390 "configure"
1390
#include "confdefs.h"
1396
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1397
{ (eval echo configure:1398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1398
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1399
if test -z "$ac_err"; then
1401
ac_cv_header_stdc=yes
1404
echo "configure: failed program was:" >&5
1405
cat conftest.$ac_ext >&5
1407
ac_cv_header_stdc=no
1411
if test $ac_cv_header_stdc = yes; then
1412
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1413
cat > conftest.$ac_ext <<EOF
1414
#line 1415 "configure"
1415
#include "confdefs.h"
1418
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1419
egrep "memchr" >/dev/null 2>&1; then
1423
ac_cv_header_stdc=no
1429
if test $ac_cv_header_stdc = yes; then
1430
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1431
cat > conftest.$ac_ext <<EOF
1432
#line 1433 "configure"
1433
#include "confdefs.h"
1436
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1437
egrep "free" >/dev/null 2>&1; then
1441
ac_cv_header_stdc=no
1447
if test $ac_cv_header_stdc = yes; then
1448
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1449
if test "$cross_compiling" = yes; then
1452
cat > conftest.$ac_ext <<EOF
1453
#line 1454 "configure"
1454
#include "confdefs.h"
1456
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1457
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1458
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1459
int main () { int i; for (i = 0; i < 256; i++)
1460
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1464
if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1468
echo "configure: failed program was:" >&5
1469
cat conftest.$ac_ext >&5
1471
ac_cv_header_stdc=no
1479
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1480
if test $ac_cv_header_stdc = yes; then
1481
cat >> confdefs.h <<\EOF
1482
#define STDC_HEADERS 1
1487
if test "$program_transform_name" = s,x,x,; then
1488
program_transform_name=
1490
# Double any \ or $. echo might interpret backslashes.
1491
cat <<\EOF_SED > conftestsed
1492
s,\\,\\\\,g; s,\$,$$,g
1494
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1497
test "$program_prefix" != NONE &&
1498
program_transform_name="s,^,${program_prefix},; $program_transform_name"
1499
# Use a double $ so make ignores it.
1500
test "$program_suffix" != NONE &&
1501
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1503
# sed with no file args requires a program.
1504
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1506
missing_dir=`cd $ac_aux_dir && pwd`
1507
for ac_prog in flex lex
1509
# Extract the first word of "$ac_prog", so it can be a program name with args.
1510
set dummy $ac_prog; ac_word=$2
1511
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512
echo "configure:1513: checking for $ac_word" >&5
1513
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1514
echo $ac_n "(cached) $ac_c" 1>&6
1516
if test -n "$LEX"; then
1517
ac_cv_prog_LEX="$LEX" # Let the user override the test.
1519
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1521
for ac_dir in $ac_dummy; do
1522
test -z "$ac_dir" && ac_dir=.
1523
if test -f $ac_dir/$ac_word; then
1524
ac_cv_prog_LEX="$ac_prog"
1531
LEX="$ac_cv_prog_LEX"
1532
if test -n "$LEX"; then
1533
echo "$ac_t""$LEX" 1>&6
1535
echo "$ac_t""no" 1>&6
1538
test -n "$LEX" && break
1540
test -n "$LEX" || LEX=""$missing_dir/missing flex""
1542
# Extract the first word of "flex", so it can be a program name with args.
1543
set dummy flex; ac_word=$2
1544
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1545
echo "configure:1546: checking for $ac_word" >&5
1546
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1547
echo $ac_n "(cached) $ac_c" 1>&6
1549
if test -n "$LEX"; then
1550
ac_cv_prog_LEX="$LEX" # Let the user override the test.
1552
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1554
for ac_dir in $ac_dummy; do
1555
test -z "$ac_dir" && ac_dir=.
1556
if test -f $ac_dir/$ac_word; then
1557
ac_cv_prog_LEX="flex"
1562
test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1565
LEX="$ac_cv_prog_LEX"
1566
if test -n "$LEX"; then
1567
echo "$ac_t""$LEX" 1>&6
1569
echo "$ac_t""no" 1>&6
1572
if test -z "$LEXLIB"
1578
echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1579
echo "configure:1580: checking for yywrap in -l$ac_lib" >&5
1580
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1581
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1582
echo $ac_n "(cached) $ac_c" 1>&6
1584
ac_save_LIBS="$LIBS"
1585
LIBS="-l$ac_lib $LIBS"
1586
cat > conftest.$ac_ext <<EOF
1587
#line 1588 "configure"
1588
#include "confdefs.h"
1589
/* Override any gcc2 internal prototype to avoid an error. */
1590
/* We use char because int might match the return type of a gcc2
1591
builtin and then its argument prototype would still apply. */
1598
if { (eval echo configure:1599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1600
eval "ac_cv_lib_$ac_lib_var=yes"
1602
echo "configure: failed program was:" >&5
1603
cat conftest.$ac_ext >&5
1605
eval "ac_cv_lib_$ac_lib_var=no"
1608
LIBS="$ac_save_LIBS"
1611
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1612
echo "$ac_t""yes" 1>&6
1615
echo "$ac_t""no" 1>&6
1620
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1621
echo "configure:1622: checking lex output file root" >&5
1622
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1623
echo $ac_n "(cached) $ac_c" 1>&6
1625
# The minimal lex program is just a single line: %%. But some broken lexes
1626
# (Solaris, I think it was) want two %% lines, so accommodate them.
1629
if test -f lex.yy.c; then
1630
ac_cv_prog_lex_root=lex.yy
1631
elif test -f lexyy.c; then
1632
ac_cv_prog_lex_root=lexyy
1634
{ echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1638
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1639
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1641
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1642
echo "configure:1643: checking whether yytext is a pointer" >&5
1643
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1644
echo $ac_n "(cached) $ac_c" 1>&6
1646
# POSIX says lex can declare yytext either as a pointer or an array; the
1647
# default is implementation-dependent. Figure out which it is, since
1648
# not all implementations provide the %pointer and %array declarations.
1649
ac_cv_prog_lex_yytext_pointer=no
1650
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1651
ac_save_LIBS="$LIBS"
1652
LIBS="$LIBS $LEXLIB"
1653
cat > conftest.$ac_ext <<EOF
1654
#line 1655 "configure"
1655
#include "confdefs.h"
1656
`cat $LEX_OUTPUT_ROOT.c`
1661
if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1663
ac_cv_prog_lex_yytext_pointer=yes
1665
echo "configure: failed program was:" >&5
1666
cat conftest.$ac_ext >&5
1669
LIBS="$ac_save_LIBS"
1670
rm -f "${LEX_OUTPUT_ROOT}.c"
1674
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1675
if test $ac_cv_prog_lex_yytext_pointer = yes; then
1676
cat >> confdefs.h <<\EOF
1677
#define YYTEXT_POINTER 1
1988
1143
echo "$ac_t""unknown library" 1>&6
1145
EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
1146
GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
1995
## this should come after `AC_PROG_CC'
1151
# Extract the first word of "gcc", so it can be a program name with args.
1152
set dummy gcc; ac_word=$2
1153
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154
echo "configure:1155: checking for $ac_word" >&5
1155
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1156
echo $ac_n "(cached) $ac_c" 1>&6
1158
if test -n "$CC"; then
1159
ac_cv_prog_CC="$CC" # Let the user override the test.
1161
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1163
for ac_dir in $ac_dummy; do
1164
test -z "$ac_dir" && ac_dir=.
1165
if test -f $ac_dir/$ac_word; then
1174
if test -n "$CC"; then
1175
echo "$ac_t""$CC" 1>&6
1177
echo "$ac_t""no" 1>&6
1180
if test -z "$CC"; then
1181
# Extract the first word of "cc", so it can be a program name with args.
1182
set dummy cc; ac_word=$2
1183
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184
echo "configure:1185: checking for $ac_word" >&5
1185
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1186
echo $ac_n "(cached) $ac_c" 1>&6
1188
if test -n "$CC"; then
1189
ac_cv_prog_CC="$CC" # Let the user override the test.
1191
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1194
for ac_dir in $ac_dummy; do
1195
test -z "$ac_dir" && ac_dir=.
1196
if test -f $ac_dir/$ac_word; then
1197
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1198
ac_prog_rejected=yes
1206
if test $ac_prog_rejected = yes; then
1207
# We found a bogon in the path, so make sure we never use it.
1208
set dummy $ac_cv_prog_CC
1210
if test $# -gt 0; then
1211
# We chose a different compiler from the bogus one.
1212
# However, it has the same basename, so the bogon will be chosen
1213
# first if we set CC to just the basename; use the full file name.
1215
set dummy "$ac_dir/$ac_word" "$@"
1223
if test -n "$CC"; then
1224
echo "$ac_t""$CC" 1>&6
1226
echo "$ac_t""no" 1>&6
1229
if test -z "$CC"; then
1230
case "`uname -s`" in
1232
# Extract the first word of "cl", so it can be a program name with args.
1233
set dummy cl; ac_word=$2
1234
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1235
echo "configure:1236: checking for $ac_word" >&5
1236
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1237
echo $ac_n "(cached) $ac_c" 1>&6
1239
if test -n "$CC"; then
1240
ac_cv_prog_CC="$CC" # Let the user override the test.
1242
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1244
for ac_dir in $ac_dummy; do
1245
test -z "$ac_dir" && ac_dir=.
1246
if test -f $ac_dir/$ac_word; then
1255
if test -n "$CC"; then
1256
echo "$ac_t""$CC" 1>&6
1258
echo "$ac_t""no" 1>&6
1263
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1266
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1267
echo "configure:1268: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1270
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1271
ac_cpp='$CPP $CPPFLAGS'
1272
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1273
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1274
cross_compiling=$ac_cv_prog_cc_cross
1276
cat > conftest.$ac_ext << EOF
1278
#line 1279 "configure"
1279
#include "confdefs.h"
1283
if { (eval echo configure:1284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1284
ac_cv_prog_cc_works=yes
1285
# If we can't run a trivial program, we are probably using a cross compiler.
1286
if (./conftest; exit) 2>/dev/null; then
1287
ac_cv_prog_cc_cross=no
1289
ac_cv_prog_cc_cross=yes
1292
echo "configure: failed program was:" >&5
1293
cat conftest.$ac_ext >&5
1294
ac_cv_prog_cc_works=no
1298
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1299
ac_cpp='$CPP $CPPFLAGS'
1300
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1301
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1302
cross_compiling=$ac_cv_prog_cc_cross
1304
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1305
if test $ac_cv_prog_cc_works = no; then
1306
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1308
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1309
echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1310
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1311
cross_compiling=$ac_cv_prog_cc_cross
1313
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1314
echo "configure:1315: checking whether we are using GNU C" >&5
1315
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1316
echo $ac_n "(cached) $ac_c" 1>&6
1318
cat > conftest.c <<EOF
1323
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1330
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1332
if test $ac_cv_prog_gcc = yes; then
1338
ac_test_CFLAGS="${CFLAGS+set}"
1339
ac_save_CFLAGS="$CFLAGS"
1341
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1342
echo "configure:1343: checking whether ${CC-cc} accepts -g" >&5
1343
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1344
echo $ac_n "(cached) $ac_c" 1>&6
1346
echo 'void f(){}' > conftest.c
1347
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1356
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1357
if test "$ac_test_CFLAGS" = set; then
1358
CFLAGS="$ac_save_CFLAGS"
1359
elif test $ac_cv_prog_cc_g = yes; then
1360
if test "$GCC" = yes; then
1366
if test "$GCC" = yes; then
1373
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1374
echo "configure:1375: checking for POSIXized ISC" >&5
1375
if test -d /etc/conf/kconfig.d &&
1376
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1378
echo "$ac_t""yes" 1>&6
1379
ISC=yes # If later tests want to check for ISC.
1380
cat >> confdefs.h <<\EOF
1381
#define _POSIX_SOURCE 1
1384
if test "$GCC" = yes; then
1390
echo "$ac_t""no" 1>&6
1394
# Extract the first word of "gcc", so it can be a program name with args.
1395
set dummy gcc; ac_word=$2
1396
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397
echo "configure:1398: checking for $ac_word" >&5
1398
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1399
echo $ac_n "(cached) $ac_c" 1>&6
1401
if test -n "$CC"; then
1402
ac_cv_prog_CC="$CC" # Let the user override the test.
1404
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1406
for ac_dir in $ac_dummy; do
1407
test -z "$ac_dir" && ac_dir=.
1408
if test -f $ac_dir/$ac_word; then
1417
if test -n "$CC"; then
1418
echo "$ac_t""$CC" 1>&6
1420
echo "$ac_t""no" 1>&6
1423
if test -z "$CC"; then
1424
# Extract the first word of "cc", so it can be a program name with args.
1425
set dummy cc; ac_word=$2
1426
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1427
echo "configure:1428: checking for $ac_word" >&5
1428
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1429
echo $ac_n "(cached) $ac_c" 1>&6
1431
if test -n "$CC"; then
1432
ac_cv_prog_CC="$CC" # Let the user override the test.
1434
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1437
for ac_dir in $ac_dummy; do
1438
test -z "$ac_dir" && ac_dir=.
1439
if test -f $ac_dir/$ac_word; then
1440
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1441
ac_prog_rejected=yes
1449
if test $ac_prog_rejected = yes; then
1450
# We found a bogon in the path, so make sure we never use it.
1451
set dummy $ac_cv_prog_CC
1453
if test $# -gt 0; then
1454
# We chose a different compiler from the bogus one.
1455
# However, it has the same basename, so the bogon will be chosen
1456
# first if we set CC to just the basename; use the full file name.
1458
set dummy "$ac_dir/$ac_word" "$@"
1466
if test -n "$CC"; then
1467
echo "$ac_t""$CC" 1>&6
1469
echo "$ac_t""no" 1>&6
1472
if test -z "$CC"; then
1473
case "`uname -s`" in
1475
# Extract the first word of "cl", so it can be a program name with args.
1476
set dummy cl; ac_word=$2
1477
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1478
echo "configure:1479: checking for $ac_word" >&5
1479
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1480
echo $ac_n "(cached) $ac_c" 1>&6
1482
if test -n "$CC"; then
1483
ac_cv_prog_CC="$CC" # Let the user override the test.
1485
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1487
for ac_dir in $ac_dummy; do
1488
test -z "$ac_dir" && ac_dir=.
1489
if test -f $ac_dir/$ac_word; then
1498
if test -n "$CC"; then
1499
echo "$ac_t""$CC" 1>&6
1501
echo "$ac_t""no" 1>&6
1506
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1509
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1510
echo "configure:1511: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1513
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1514
ac_cpp='$CPP $CPPFLAGS'
1515
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1516
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1517
cross_compiling=$ac_cv_prog_cc_cross
1519
cat > conftest.$ac_ext << EOF
1521
#line 1522 "configure"
1522
#include "confdefs.h"
1526
if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1527
ac_cv_prog_cc_works=yes
1528
# If we can't run a trivial program, we are probably using a cross compiler.
1529
if (./conftest; exit) 2>/dev/null; then
1530
ac_cv_prog_cc_cross=no
1532
ac_cv_prog_cc_cross=yes
1535
echo "configure: failed program was:" >&5
1536
cat conftest.$ac_ext >&5
1537
ac_cv_prog_cc_works=no
1541
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1542
ac_cpp='$CPP $CPPFLAGS'
1543
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1544
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1545
cross_compiling=$ac_cv_prog_cc_cross
1547
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1548
if test $ac_cv_prog_cc_works = no; then
1549
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1551
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1552
echo "configure:1553: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1553
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1554
cross_compiling=$ac_cv_prog_cc_cross
1556
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1557
echo "configure:1558: checking whether we are using GNU C" >&5
1558
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1559
echo $ac_n "(cached) $ac_c" 1>&6
1561
cat > conftest.c <<EOF
1566
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1573
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1575
if test $ac_cv_prog_gcc = yes; then
1581
ac_test_CFLAGS="${CFLAGS+set}"
1582
ac_save_CFLAGS="$CFLAGS"
1584
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1585
echo "configure:1586: checking whether ${CC-cc} accepts -g" >&5
1586
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1587
echo $ac_n "(cached) $ac_c" 1>&6
1589
echo 'void f(){}' > conftest.c
1590
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1599
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1600
if test "$ac_test_CFLAGS" = set; then
1601
CFLAGS="$ac_save_CFLAGS"
1602
elif test $ac_cv_prog_cc_g = yes; then
1603
if test "$GCC" = yes; then
1609
if test "$GCC" = yes; then
1616
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1617
echo "configure:1618: checking how to run the C preprocessor" >&5
1618
# On Suns, sometimes $CPP names a directory.
1619
if test -n "$CPP" && test -d "$CPP"; then
1622
if test -z "$CPP"; then
1623
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1624
echo $ac_n "(cached) $ac_c" 1>&6
1626
# This must be in double quotes, not single quotes, because CPP may get
1627
# substituted into the Makefile and "${CC-cc}" will confuse make.
1629
# On the NeXT, cc -E runs the code through the compiler's parser,
1630
# not just through cpp.
1631
cat > conftest.$ac_ext <<EOF
1632
#line 1633 "configure"
1633
#include "confdefs.h"
1637
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638
{ (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640
if test -z "$ac_err"; then
1644
echo "configure: failed program was:" >&5
1645
cat conftest.$ac_ext >&5
1647
CPP="${CC-cc} -E -traditional-cpp"
1648
cat > conftest.$ac_ext <<EOF
1649
#line 1650 "configure"
1650
#include "confdefs.h"
1654
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1655
{ (eval echo configure:1656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1656
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1657
if test -z "$ac_err"; then
1661
echo "configure: failed program was:" >&5
1662
cat conftest.$ac_ext >&5
1664
CPP="${CC-cc} -nologo -E"
1665
cat > conftest.$ac_ext <<EOF
1666
#line 1667 "configure"
1667
#include "confdefs.h"
1671
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1672
{ (eval echo configure:1673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1673
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1674
if test -z "$ac_err"; then
1678
echo "configure: failed program was:" >&5
1679
cat conftest.$ac_ext >&5
1688
ac_cv_prog_CPP="$CPP"
1690
CPP="$ac_cv_prog_CPP"
1692
ac_cv_prog_CPP="$CPP"
1694
echo "$ac_t""$CPP" 1>&6
1696
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1697
echo "configure:1698: checking for ANSI C header files" >&5
1698
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1699
echo $ac_n "(cached) $ac_c" 1>&6
1701
cat > conftest.$ac_ext <<EOF
1702
#line 1703 "configure"
1703
#include "confdefs.h"
1709
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1710
{ (eval echo configure:1711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1711
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1712
if test -z "$ac_err"; then
1714
ac_cv_header_stdc=yes
1717
echo "configure: failed program was:" >&5
1718
cat conftest.$ac_ext >&5
1720
ac_cv_header_stdc=no
1724
if test $ac_cv_header_stdc = yes; then
1725
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1726
cat > conftest.$ac_ext <<EOF
1727
#line 1728 "configure"
1728
#include "confdefs.h"
1731
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1732
egrep "memchr" >/dev/null 2>&1; then
1736
ac_cv_header_stdc=no
1742
if test $ac_cv_header_stdc = yes; then
1743
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1744
cat > conftest.$ac_ext <<EOF
1745
#line 1746 "configure"
1746
#include "confdefs.h"
1749
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1750
egrep "free" >/dev/null 2>&1; then
1754
ac_cv_header_stdc=no
1760
if test $ac_cv_header_stdc = yes; then
1761
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1762
if test "$cross_compiling" = yes; then
1765
cat > conftest.$ac_ext <<EOF
1766
#line 1767 "configure"
1767
#include "confdefs.h"
1769
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1770
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1771
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1772
int main () { int i; for (i = 0; i < 256; i++)
1773
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1777
if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1781
echo "configure: failed program was:" >&5
1782
cat conftest.$ac_ext >&5
1784
ac_cv_header_stdc=no
1792
echo "$ac_t""$ac_cv_header_stdc" 1>&6
1793
if test $ac_cv_header_stdc = yes; then
1794
cat >> confdefs.h <<\EOF
1795
#define STDC_HEADERS 1
1800
if test "$program_transform_name" = s,x,x,; then
1801
program_transform_name=
1803
# Double any \ or $. echo might interpret backslashes.
1804
cat <<\EOF_SED > conftestsed
1805
s,\\,\\\\,g; s,\$,$$,g
1807
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1810
test "$program_prefix" != NONE &&
1811
program_transform_name="s,^,${program_prefix},; $program_transform_name"
1812
# Use a double $ so make ignores it.
1813
test "$program_suffix" != NONE &&
1814
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1816
# sed with no file args requires a program.
1817
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1819
missing_dir=`cd $ac_aux_dir && pwd`
1820
for ac_prog in flex lex
1822
# Extract the first word of "$ac_prog", so it can be a program name with args.
1823
set dummy $ac_prog; ac_word=$2
1824
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1825
echo "configure:1826: checking for $ac_word" >&5
1826
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1827
echo $ac_n "(cached) $ac_c" 1>&6
1829
if test -n "$LEX"; then
1830
ac_cv_prog_LEX="$LEX" # Let the user override the test.
1832
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1834
for ac_dir in $ac_dummy; do
1835
test -z "$ac_dir" && ac_dir=.
1836
if test -f $ac_dir/$ac_word; then
1837
ac_cv_prog_LEX="$ac_prog"
1844
LEX="$ac_cv_prog_LEX"
1845
if test -n "$LEX"; then
1846
echo "$ac_t""$LEX" 1>&6
1848
echo "$ac_t""no" 1>&6
1851
test -n "$LEX" && break
1853
test -n "$LEX" || LEX=""$missing_dir/missing flex""
1855
# Extract the first word of "flex", so it can be a program name with args.
1856
set dummy flex; ac_word=$2
1857
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1858
echo "configure:1859: checking for $ac_word" >&5
1859
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1860
echo $ac_n "(cached) $ac_c" 1>&6
1862
if test -n "$LEX"; then
1863
ac_cv_prog_LEX="$LEX" # Let the user override the test.
1865
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1867
for ac_dir in $ac_dummy; do
1868
test -z "$ac_dir" && ac_dir=.
1869
if test -f $ac_dir/$ac_word; then
1870
ac_cv_prog_LEX="flex"
1875
test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1878
LEX="$ac_cv_prog_LEX"
1879
if test -n "$LEX"; then
1880
echo "$ac_t""$LEX" 1>&6
1882
echo "$ac_t""no" 1>&6
1885
if test -z "$LEXLIB"
1891
echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1892
echo "configure:1893: checking for yywrap in -l$ac_lib" >&5
1893
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1894
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1895
echo $ac_n "(cached) $ac_c" 1>&6
1897
ac_save_LIBS="$LIBS"
1898
LIBS="-l$ac_lib $LIBS"
1899
cat > conftest.$ac_ext <<EOF
1900
#line 1901 "configure"
1901
#include "confdefs.h"
1902
/* Override any gcc2 internal prototype to avoid an error. */
1903
/* We use char because int might match the return type of a gcc2
1904
builtin and then its argument prototype would still apply. */
1911
if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1913
eval "ac_cv_lib_$ac_lib_var=yes"
1915
echo "configure: failed program was:" >&5
1916
cat conftest.$ac_ext >&5
1918
eval "ac_cv_lib_$ac_lib_var=no"
1921
LIBS="$ac_save_LIBS"
1924
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1925
echo "$ac_t""yes" 1>&6
1928
echo "$ac_t""no" 1>&6
1933
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1934
echo "configure:1935: checking lex output file root" >&5
1935
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1936
echo $ac_n "(cached) $ac_c" 1>&6
1938
# The minimal lex program is just a single line: %%. But some broken lexes
1939
# (Solaris, I think it was) want two %% lines, so accommodate them.
1942
if test -f lex.yy.c; then
1943
ac_cv_prog_lex_root=lex.yy
1944
elif test -f lexyy.c; then
1945
ac_cv_prog_lex_root=lexyy
1947
{ echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1951
echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1952
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1954
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1955
echo "configure:1956: checking whether yytext is a pointer" >&5
1956
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1957
echo $ac_n "(cached) $ac_c" 1>&6
1959
# POSIX says lex can declare yytext either as a pointer or an array; the
1960
# default is implementation-dependent. Figure out which it is, since
1961
# not all implementations provide the %pointer and %array declarations.
1962
ac_cv_prog_lex_yytext_pointer=no
1963
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1964
ac_save_LIBS="$LIBS"
1965
LIBS="$LIBS $LEXLIB"
1966
cat > conftest.$ac_ext <<EOF
1967
#line 1968 "configure"
1968
#include "confdefs.h"
1969
`cat $LEX_OUTPUT_ROOT.c`
1974
if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1976
ac_cv_prog_lex_yytext_pointer=yes
1978
echo "configure: failed program was:" >&5
1979
cat conftest.$ac_ext >&5
1982
LIBS="$ac_save_LIBS"
1983
rm -f "${LEX_OUTPUT_ROOT}.c"
1987
echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1988
if test $ac_cv_prog_lex_yytext_pointer = yes; then
1989
cat >> confdefs.h <<\EOF
1990
#define YYTEXT_POINTER 1
1998
1998
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6