comparison configure @ 231:557eaa0339bf r20-5b14

Import from CVS: tag r20-5b14
author cvs
date Mon, 13 Aug 2007 10:13:48 +0200
parents 0e522484dd2a
children 41f2f0e326e9
comparison
equal deleted inserted replaced
230:39ed1d2bdd9d 231:557eaa0339bf
1178 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; 1178 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1179 fi ;; 1179 fi ;;
1180 *-386bsd* ) opsys=386bsd ;; 1180 *-386bsd* ) opsys=386bsd ;;
1181 *-freebsd* ) opsys=freebsd ;; 1181 *-freebsd* ) opsys=freebsd ;;
1182 *-nextstep* ) opsys=nextstep ;; 1182 *-nextstep* ) opsys=nextstep ;;
1183 *-pc-cygwin32 ) opsys=cygwin32 ;;
1183 esac 1184 esac
1184 ;; 1185 ;;
1185 1186
1186 m68k-*-linux* ) machine=m68k opsys=linux ;; 1187 m68k-*-linux* ) machine=m68k opsys=linux ;;
1187 1188
1269 xe_save_CFLAGS="$CFLAGS" 1270 xe_save_CFLAGS="$CFLAGS"
1270 1271
1271 # Extract the first word of "gcc", so it can be a program name with args. 1272 # Extract the first word of "gcc", so it can be a program name with args.
1272 set dummy gcc; ac_word=$2 1273 set dummy gcc; ac_word=$2
1273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1274 echo "configure:1275: checking for $ac_word" >&5 1275 echo "configure:1276: checking for $ac_word" >&5
1275 1276
1276 if test -n "$CC"; then 1277 if test -n "$CC"; then
1277 ac_cv_prog_CC="$CC" # Let the user override the test. 1278 ac_cv_prog_CC="$CC" # Let the user override the test.
1278 else 1279 else
1279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1295 1296
1296 if test -z "$CC"; then 1297 if test -z "$CC"; then
1297 # Extract the first word of "cc", so it can be a program name with args. 1298 # Extract the first word of "cc", so it can be a program name with args.
1298 set dummy cc; ac_word=$2 1299 set dummy cc; ac_word=$2
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1300 echo "configure:1301: checking for $ac_word" >&5 1301 echo "configure:1302: checking for $ac_word" >&5
1301 1302
1302 if test -n "$CC"; then 1303 if test -n "$CC"; then
1303 ac_cv_prog_CC="$CC" # Let the user override the test. 1304 ac_cv_prog_CC="$CC" # Let the user override the test.
1304 else 1305 else
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1340 1341
1341 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1342 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1342 fi 1343 fi
1343 1344
1344 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1345 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1346 echo "configure:1347: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1346 1347
1347 ac_ext=c 1348 ac_ext=c
1348 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1349 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1349 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1350 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1350 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1351 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1352 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1353 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1353 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1354 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1354 cross_compiling=no 1355 cross_compiling=no
1355 1356
1356 cat > conftest.$ac_ext <<EOF 1357 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure" 1358 #line 1359 "configure"
1358 #include "confdefs.h" 1359 #include "confdefs.h"
1359 main(){return(0);} 1360 main(){return(0);}
1360 EOF 1361 EOF
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1362 if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1362 ac_cv_prog_cc_works=yes 1363 ac_cv_prog_cc_works=yes
1363 # If we can't run a trivial program, we are probably using a cross compiler. 1364 # If we can't run a trivial program, we are probably using a cross compiler.
1364 if (./conftest; exit) 2>/dev/null; then 1365 if (./conftest; exit) 2>/dev/null; then
1365 ac_cv_prog_cc_cross=no 1366 ac_cv_prog_cc_cross=no
1366 else 1367 else
1376 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1377 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1377 if test $ac_cv_prog_cc_works = no; then 1378 if test $ac_cv_prog_cc_works = no; then
1378 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1379 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1379 fi 1380 fi
1380 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1381 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1382 echo "configure:1383: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1382 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1383 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1383 cross_compiling=$ac_cv_prog_cc_cross 1384 cross_compiling=$ac_cv_prog_cc_cross
1384 1385
1385 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1386 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether we are using GNU C" >&5 1387 echo "configure:1388: checking whether we are using GNU C" >&5
1387 1388
1388 cat > conftest.c <<EOF 1389 cat > conftest.c <<EOF
1389 #ifdef __GNUC__ 1390 #ifdef __GNUC__
1390 yes; 1391 yes;
1391 #endif 1392 #endif
1392 EOF 1393 EOF
1393 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1394 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1394 ac_cv_prog_gcc=yes 1395 ac_cv_prog_gcc=yes
1395 else 1396 else
1396 ac_cv_prog_gcc=no 1397 ac_cv_prog_gcc=no
1397 fi 1398 fi
1398 1399
1402 GCC=yes 1403 GCC=yes
1403 ac_test_CFLAGS="${CFLAGS+set}" 1404 ac_test_CFLAGS="${CFLAGS+set}"
1404 ac_save_CFLAGS="$CFLAGS" 1405 ac_save_CFLAGS="$CFLAGS"
1405 CFLAGS= 1406 CFLAGS=
1406 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1407 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether ${CC-cc} accepts -g" >&5 1408 echo "configure:1409: checking whether ${CC-cc} accepts -g" >&5
1408 1409
1409 echo 'void f(){}' > conftest.c 1410 echo 'void f(){}' > conftest.c
1410 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1411 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1411 ac_cv_prog_cc_g=yes 1412 ac_cv_prog_cc_g=yes
1412 else 1413 else
1431 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1432 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1432 CC=${NON_GNU_CC-cc} 1433 CC=${NON_GNU_CC-cc}
1433 # Extract the first word of "gcc", so it can be a program name with args. 1434 # Extract the first word of "gcc", so it can be a program name with args.
1434 set dummy gcc; ac_word=$2 1435 set dummy gcc; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5 1437 echo "configure:1438: checking for $ac_word" >&5
1437 1438
1438 if test -n "$CC"; then 1439 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test. 1440 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else 1441 else
1441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1457 1458
1458 if test -z "$CC"; then 1459 if test -z "$CC"; then
1459 # Extract the first word of "cc", so it can be a program name with args. 1460 # Extract the first word of "cc", so it can be a program name with args.
1460 set dummy cc; ac_word=$2 1461 set dummy cc; ac_word=$2
1461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1462 echo "configure:1463: checking for $ac_word" >&5 1463 echo "configure:1464: checking for $ac_word" >&5
1463 1464
1464 if test -n "$CC"; then 1465 if test -n "$CC"; then
1465 ac_cv_prog_CC="$CC" # Let the user override the test. 1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1466 else 1467 else
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1502 1503
1503 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1504 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1504 fi 1505 fi
1505 1506
1506 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1507 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1508 echo "configure:1509: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1508 1509
1509 ac_ext=c 1510 ac_ext=c
1510 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1511 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1511 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1512 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1512 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1513 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1514 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1515 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1515 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1516 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1516 cross_compiling=no 1517 cross_compiling=no
1517 1518
1518 cat > conftest.$ac_ext <<EOF 1519 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure" 1520 #line 1521 "configure"
1520 #include "confdefs.h" 1521 #include "confdefs.h"
1521 main(){return(0);} 1522 main(){return(0);}
1522 EOF 1523 EOF
1523 if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1524 if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1524 ac_cv_prog_cc_works=yes 1525 ac_cv_prog_cc_works=yes
1525 # If we can't run a trivial program, we are probably using a cross compiler. 1526 # If we can't run a trivial program, we are probably using a cross compiler.
1526 if (./conftest; exit) 2>/dev/null; then 1527 if (./conftest; exit) 2>/dev/null; then
1527 ac_cv_prog_cc_cross=no 1528 ac_cv_prog_cc_cross=no
1528 else 1529 else
1538 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1539 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1539 if test $ac_cv_prog_cc_works = no; then 1540 if test $ac_cv_prog_cc_works = no; then
1540 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1541 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1541 fi 1542 fi
1542 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1543 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1543 echo "configure:1544: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1544 echo "configure:1545: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1544 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1545 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1545 cross_compiling=$ac_cv_prog_cc_cross 1546 cross_compiling=$ac_cv_prog_cc_cross
1546 1547
1547 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1548 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1548 echo "configure:1549: checking whether we are using GNU C" >&5 1549 echo "configure:1550: checking whether we are using GNU C" >&5
1549 1550
1550 cat > conftest.c <<EOF 1551 cat > conftest.c <<EOF
1551 #ifdef __GNUC__ 1552 #ifdef __GNUC__
1552 yes; 1553 yes;
1553 #endif 1554 #endif
1554 EOF 1555 EOF
1555 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1556 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1556 ac_cv_prog_gcc=yes 1557 ac_cv_prog_gcc=yes
1557 else 1558 else
1558 ac_cv_prog_gcc=no 1559 ac_cv_prog_gcc=no
1559 fi 1560 fi
1560 1561
1564 GCC=yes 1565 GCC=yes
1565 ac_test_CFLAGS="${CFLAGS+set}" 1566 ac_test_CFLAGS="${CFLAGS+set}"
1566 ac_save_CFLAGS="$CFLAGS" 1567 ac_save_CFLAGS="$CFLAGS"
1567 CFLAGS= 1568 CFLAGS=
1568 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1569 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1569 echo "configure:1570: checking whether ${CC-cc} accepts -g" >&5 1570 echo "configure:1571: checking whether ${CC-cc} accepts -g" >&5
1570 1571
1571 echo 'void f(){}' > conftest.c 1572 echo 'void f(){}' > conftest.c
1572 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1573 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1573 ac_cv_prog_cc_g=yes 1574 ac_cv_prog_cc_g=yes
1574 else 1575 else
1593 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1594 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1594 CC=gcc 1595 CC=gcc
1595 # Extract the first word of "gcc", so it can be a program name with args. 1596 # Extract the first word of "gcc", so it can be a program name with args.
1596 set dummy gcc; ac_word=$2 1597 set dummy gcc; ac_word=$2
1597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_word" >&5 1599 echo "configure:1600: checking for $ac_word" >&5
1599 1600
1600 if test -n "$CC"; then 1601 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test. 1602 ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else 1603 else
1603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1619 1620
1620 if test -z "$CC"; then 1621 if test -z "$CC"; then
1621 # Extract the first word of "cc", so it can be a program name with args. 1622 # Extract the first word of "cc", so it can be a program name with args.
1622 set dummy cc; ac_word=$2 1623 set dummy cc; ac_word=$2
1623 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1624 echo "configure:1625: checking for $ac_word" >&5 1625 echo "configure:1626: checking for $ac_word" >&5
1625 1626
1626 if test -n "$CC"; then 1627 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test. 1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1628 else 1629 else
1629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1664 1665
1665 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1666 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1666 fi 1667 fi
1667 1668
1668 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1669 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1670 echo "configure:1671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1670 1671
1671 ac_ext=c 1672 ac_ext=c
1672 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1673 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1673 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1674 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1674 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1675 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1676 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1677 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1677 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1678 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1678 cross_compiling=no 1679 cross_compiling=no
1679 1680
1680 cat > conftest.$ac_ext <<EOF 1681 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure" 1682 #line 1683 "configure"
1682 #include "confdefs.h" 1683 #include "confdefs.h"
1683 main(){return(0);} 1684 main(){return(0);}
1684 EOF 1685 EOF
1685 if { (eval echo configure:1686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1686 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1686 ac_cv_prog_cc_works=yes 1687 ac_cv_prog_cc_works=yes
1687 # If we can't run a trivial program, we are probably using a cross compiler. 1688 # If we can't run a trivial program, we are probably using a cross compiler.
1688 if (./conftest; exit) 2>/dev/null; then 1689 if (./conftest; exit) 2>/dev/null; then
1689 ac_cv_prog_cc_cross=no 1690 ac_cv_prog_cc_cross=no
1690 else 1691 else
1700 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1701 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1701 if test $ac_cv_prog_cc_works = no; then 1702 if test $ac_cv_prog_cc_works = no; then
1702 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1703 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1703 fi 1704 fi
1704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1705 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1705 echo "configure:1706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1706 echo "configure:1707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1706 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1707 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1707 cross_compiling=$ac_cv_prog_cc_cross 1708 cross_compiling=$ac_cv_prog_cc_cross
1708 1709
1709 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1710 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1710 echo "configure:1711: checking whether we are using GNU C" >&5 1711 echo "configure:1712: checking whether we are using GNU C" >&5
1711 1712
1712 cat > conftest.c <<EOF 1713 cat > conftest.c <<EOF
1713 #ifdef __GNUC__ 1714 #ifdef __GNUC__
1714 yes; 1715 yes;
1715 #endif 1716 #endif
1716 EOF 1717 EOF
1717 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1718 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1718 ac_cv_prog_gcc=yes 1719 ac_cv_prog_gcc=yes
1719 else 1720 else
1720 ac_cv_prog_gcc=no 1721 ac_cv_prog_gcc=no
1721 fi 1722 fi
1722 1723
1726 GCC=yes 1727 GCC=yes
1727 ac_test_CFLAGS="${CFLAGS+set}" 1728 ac_test_CFLAGS="${CFLAGS+set}"
1728 ac_save_CFLAGS="$CFLAGS" 1729 ac_save_CFLAGS="$CFLAGS"
1729 CFLAGS= 1730 CFLAGS=
1730 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1731 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether ${CC-cc} accepts -g" >&5 1732 echo "configure:1733: checking whether ${CC-cc} accepts -g" >&5
1732 1733
1733 echo 'void f(){}' > conftest.c 1734 echo 'void f(){}' > conftest.c
1734 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1735 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1735 ac_cv_prog_cc_g=yes 1736 ac_cv_prog_cc_g=yes
1736 else 1737 else
1759 test -n "$CPP" -a -d "$CPP" && CPP= 1760 test -n "$CPP" -a -d "$CPP" && CPP=
1760 1761
1761 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1762 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1762 1763
1763 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1764 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1764 echo "configure:1765: checking how to run the C preprocessor" >&5 1765 echo "configure:1766: checking how to run the C preprocessor" >&5
1765 # On Suns, sometimes $CPP names a directory. 1766 # On Suns, sometimes $CPP names a directory.
1766 if test -n "$CPP" && test -d "$CPP"; then 1767 if test -n "$CPP" && test -d "$CPP"; then
1767 CPP= 1768 CPP=
1768 fi 1769 fi
1769 if test -z "$CPP"; then 1770 if test -z "$CPP"; then
1772 # substituted into the Makefile and "${CC-cc}" will confuse make. 1773 # substituted into the Makefile and "${CC-cc}" will confuse make.
1773 CPP="${CC-cc} -E" 1774 CPP="${CC-cc} -E"
1774 # On the NeXT, cc -E runs the code through the compiler's parser, 1775 # On the NeXT, cc -E runs the code through the compiler's parser,
1775 # not just through cpp. 1776 # not just through cpp.
1776 cat > conftest.$ac_ext <<EOF 1777 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure" 1778 #line 1779 "configure"
1778 #include "confdefs.h" 1779 #include "confdefs.h"
1779 #include <assert.h> 1780 #include <assert.h>
1780 Syntax Error 1781 Syntax Error
1781 EOF 1782 EOF
1782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1783 { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1784 { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1784 ac_err=`grep -v '^ *+' conftest.out` 1785 ac_err=`grep -v '^ *+' conftest.out`
1785 if test -z "$ac_err"; then 1786 if test -z "$ac_err"; then
1786 : 1787 :
1787 else 1788 else
1788 echo "$ac_err" >&5 1789 echo "$ac_err" >&5
1789 echo "configure: failed program was:" >&5 1790 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5 1791 cat conftest.$ac_ext >&5
1791 rm -rf conftest* 1792 rm -rf conftest*
1792 CPP="${CC-cc} -E -traditional-cpp" 1793 CPP="${CC-cc} -E -traditional-cpp"
1793 cat > conftest.$ac_ext <<EOF 1794 cat > conftest.$ac_ext <<EOF
1794 #line 1795 "configure" 1795 #line 1796 "configure"
1795 #include "confdefs.h" 1796 #include "confdefs.h"
1796 #include <assert.h> 1797 #include <assert.h>
1797 Syntax Error 1798 Syntax Error
1798 EOF 1799 EOF
1799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1800 { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1801 { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1801 ac_err=`grep -v '^ *+' conftest.out` 1802 ac_err=`grep -v '^ *+' conftest.out`
1802 if test -z "$ac_err"; then 1803 if test -z "$ac_err"; then
1803 : 1804 :
1804 else 1805 else
1805 echo "$ac_err" >&5 1806 echo "$ac_err" >&5
1818 fi 1819 fi
1819 echo "$ac_t""$CPP" 1>&6 1820 echo "$ac_t""$CPP" 1>&6
1820 1821
1821 1822
1822 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1823 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1823 echo "configure:1824: checking for AIX" >&5 1824 echo "configure:1825: checking for AIX" >&5
1824 cat > conftest.$ac_ext <<EOF 1825 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure" 1826 #line 1827 "configure"
1826 #include "confdefs.h" 1827 #include "confdefs.h"
1827 #ifdef _AIX 1828 #ifdef _AIX
1828 yes 1829 yes
1829 #endif 1830 #endif
1830 1831
1847 rm -f conftest* 1848 rm -f conftest*
1848 1849
1849 1850
1850 1851
1851 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 1852 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
1852 echo "configure:1853: checking whether we are using SunPro C" >&5 1853 echo "configure:1854: checking whether we are using SunPro C" >&5
1853 cat > conftest.$ac_ext <<EOF 1854 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure" 1855 #line 1856 "configure"
1855 #include "confdefs.h" 1856 #include "confdefs.h"
1856 1857
1857 int main() { 1858 int main() {
1858 #ifndef __SUNPRO_C 1859 #ifndef __SUNPRO_C
1859 #error Not a SunPro compiler :-( 1860 #error Not a SunPro compiler :-(
1860 ******* ======= ******** &&&&&&&& 1861 ******* ======= ******** &&&&&&&&
1861 #endif 1862 #endif
1862 1863
1863 ; return 0; } 1864 ; return 0; }
1864 EOF 1865 EOF
1865 if { (eval echo configure:1866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1866 if { (eval echo configure:1867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1866 rm -rf conftest* 1867 rm -rf conftest*
1867 __sunpro_c=yes 1868 __sunpro_c=yes
1868 else 1869 else
1869 echo "configure: failed program was:" >&5 1870 echo "configure: failed program was:" >&5
1870 cat conftest.$ac_ext >&5 1871 cat conftest.$ac_ext >&5
2136 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2137 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2137 echo " xemacs will be linked with \"$unexec\"" 2138 echo " xemacs will be linked with \"$unexec\""
2138 fi 2139 fi
2139 2140
2140 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2141 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2141 echo "configure:2142: checking for dynodump" >&5 2142 echo "configure:2143: checking for dynodump" >&5
2142 if test "$unexec" != "unexsol2.o"; then 2143 if test "$unexec" != "unexsol2.o"; then
2143 echo "$ac_t""no" 1>&6 2144 echo "$ac_t""no" 1>&6
2144 else 2145 else
2145 echo "$ac_t""yes" 1>&6 2146 echo "$ac_t""yes" 1>&6
2146 { test "$extra_verbose" = "yes" && cat << \EOF 2147 { test "$extra_verbose" = "yes" && cat << \EOF
2234 esac 2235 esac
2235 fi 2236 fi
2236 2237
2237 if test "$add_runtime_path" = "yes"; then 2238 if test "$add_runtime_path" = "yes"; then
2238 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2239 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2239 echo "configure:2240: checking "for runtime libraries flag"" >&5 2240 echo "configure:2241: checking "for runtime libraries flag"" >&5
2240 dash_r="" 2241 dash_r=""
2241 for try_dash_r in "-R" "-R " "-rpath "; do 2242 for try_dash_r in "-R" "-R " "-rpath "; do
2242 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2243 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2243 cat > conftest.$ac_ext <<EOF 2244 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure" 2245 #line 2246 "configure"
2245 #include "confdefs.h" 2246 #include "confdefs.h"
2246 2247
2247 int main() { 2248 int main() {
2248 2249
2249 ; return 0; } 2250 ; return 0; }
2250 EOF 2251 EOF
2251 if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2252 rm -rf conftest* 2253 rm -rf conftest*
2253 dash_r="$try_dash_r" 2254 dash_r="$try_dash_r"
2254 else 2255 else
2255 echo "configure: failed program was:" >&5 2256 echo "configure: failed program was:" >&5
2256 cat conftest.$ac_ext >&5 2257 cat conftest.$ac_ext >&5
2344 2345
2345 2346
2346 # Extract the first word of "ranlib", so it can be a program name with args. 2347 # Extract the first word of "ranlib", so it can be a program name with args.
2347 set dummy ranlib; ac_word=$2 2348 set dummy ranlib; ac_word=$2
2348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2349 echo "configure:2350: checking for $ac_word" >&5 2350 echo "configure:2351: checking for $ac_word" >&5
2350 2351
2351 if test -n "$RANLIB"; then 2352 if test -n "$RANLIB"; then
2352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2353 else 2354 else
2354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2397 # AIX /bin/install 2398 # AIX /bin/install
2398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2399 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2400 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2400 # ./install, which can be erroneously created by make from ./install.sh. 2401 # ./install, which can be erroneously created by make from ./install.sh.
2401 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2402 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2402 echo "configure:2403: checking for a BSD compatible install" >&5 2403 echo "configure:2404: checking for a BSD compatible install" >&5
2403 if test -z "$INSTALL"; then 2404 if test -z "$INSTALL"; then
2404 2405
2405 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2406 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2406 for ac_dir in $PATH; do 2407 for ac_dir in $PATH; do
2407 # Account for people who put trailing slashes in PATH elements. 2408 # Account for people who put trailing slashes in PATH elements.
2448 for ac_prog in 'bison -y' byacc 2449 for ac_prog in 'bison -y' byacc
2449 do 2450 do
2450 # Extract the first word of "$ac_prog", so it can be a program name with args. 2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2 2452 set dummy $ac_prog; ac_word=$2
2452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2453 echo "configure:2454: checking for $ac_word" >&5 2454 echo "configure:2455: checking for $ac_word" >&5
2454 2455
2455 if test -n "$YACC"; then 2456 if test -n "$YACC"; then
2456 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2457 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2457 else 2458 else
2458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2479 2480
2480 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2481 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2481 do 2482 do
2482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2484 echo "configure:2485: checking for $ac_hdr" >&5 2485 echo "configure:2486: checking for $ac_hdr" >&5
2485 2486
2486 cat > conftest.$ac_ext <<EOF 2487 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure" 2488 #line 2489 "configure"
2488 #include "confdefs.h" 2489 #include "confdefs.h"
2489 #include <$ac_hdr> 2490 #include <$ac_hdr>
2490 EOF 2491 EOF
2491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2492 { (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2493 { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2493 ac_err=`grep -v '^ *+' conftest.out` 2494 ac_err=`grep -v '^ *+' conftest.out`
2494 if test -z "$ac_err"; then 2495 if test -z "$ac_err"; then
2495 rm -rf conftest* 2496 rm -rf conftest*
2496 eval "ac_cv_header_$ac_safe=yes" 2497 eval "ac_cv_header_$ac_safe=yes"
2497 else 2498 else
2520 2521
2521 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2522 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2522 do 2523 do
2523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_hdr" >&5 2526 echo "configure:2527: checking for $ac_hdr" >&5
2526 2527
2527 cat > conftest.$ac_ext <<EOF 2528 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure" 2529 #line 2530 "configure"
2529 #include "confdefs.h" 2530 #include "confdefs.h"
2530 #include <$ac_hdr> 2531 #include <$ac_hdr>
2531 EOF 2532 EOF
2532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2533 { (eval echo configure:2534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2534 { (eval echo configure:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2534 ac_err=`grep -v '^ *+' conftest.out` 2535 ac_err=`grep -v '^ *+' conftest.out`
2535 if test -z "$ac_err"; then 2536 if test -z "$ac_err"; then
2536 rm -rf conftest* 2537 rm -rf conftest*
2537 eval "ac_cv_header_$ac_safe=yes" 2538 eval "ac_cv_header_$ac_safe=yes"
2538 else 2539 else
2561 2562
2562 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h 2563 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
2563 do 2564 do
2564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_hdr" >&5 2567 echo "configure:2568: checking for $ac_hdr" >&5
2567 2568
2568 cat > conftest.$ac_ext <<EOF 2569 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure" 2570 #line 2571 "configure"
2570 #include "confdefs.h" 2571 #include "confdefs.h"
2571 #include <$ac_hdr> 2572 #include <$ac_hdr>
2572 EOF 2573 EOF
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2575 { (eval echo configure:2576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out` 2576 ac_err=`grep -v '^ *+' conftest.out`
2576 if test -z "$ac_err"; then 2577 if test -z "$ac_err"; then
2577 rm -rf conftest* 2578 rm -rf conftest*
2578 eval "ac_cv_header_$ac_safe=yes" 2579 eval "ac_cv_header_$ac_safe=yes"
2579 else 2580 else
2599 echo "$ac_t""no" 1>&6 2600 echo "$ac_t""no" 1>&6
2600 fi 2601 fi
2601 done 2602 done
2602 2603
2603 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2604 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2604 echo "configure:2605: checking for sys/wait.h that is POSIX.1 compatible" >&5 2605 echo "configure:2606: checking for sys/wait.h that is POSIX.1 compatible" >&5
2605 2606
2606 cat > conftest.$ac_ext <<EOF 2607 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure" 2608 #line 2609 "configure"
2608 #include "confdefs.h" 2609 #include "confdefs.h"
2609 #include <sys/types.h> 2610 #include <sys/types.h>
2610 #include <sys/wait.h> 2611 #include <sys/wait.h>
2611 #ifndef WEXITSTATUS 2612 #ifndef WEXITSTATUS
2612 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2613 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2618 int s; 2619 int s;
2619 wait (&s); 2620 wait (&s);
2620 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2621 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2621 ; return 0; } 2622 ; return 0; }
2622 EOF 2623 EOF
2623 if { (eval echo configure:2624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2624 if { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2624 rm -rf conftest* 2625 rm -rf conftest*
2625 ac_cv_header_sys_wait_h=yes 2626 ac_cv_header_sys_wait_h=yes
2626 else 2627 else
2627 echo "configure: failed program was:" >&5 2628 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5 2629 cat conftest.$ac_ext >&5
2642 } 2643 }
2643 2644
2644 fi 2645 fi
2645 2646
2646 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2647 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2647 echo "configure:2648: checking for ANSI C header files" >&5 2648 echo "configure:2649: checking for ANSI C header files" >&5
2648 2649
2649 cat > conftest.$ac_ext <<EOF 2650 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure" 2651 #line 2652 "configure"
2651 #include "confdefs.h" 2652 #include "confdefs.h"
2652 #include <stdlib.h> 2653 #include <stdlib.h>
2653 #include <stdarg.h> 2654 #include <stdarg.h>
2654 #include <string.h> 2655 #include <string.h>
2655 #include <float.h> 2656 #include <float.h>
2656 EOF 2657 EOF
2657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2658 { (eval echo configure:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2659 { (eval echo configure:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2659 ac_err=`grep -v '^ *+' conftest.out` 2660 ac_err=`grep -v '^ *+' conftest.out`
2660 if test -z "$ac_err"; then 2661 if test -z "$ac_err"; then
2661 rm -rf conftest* 2662 rm -rf conftest*
2662 ac_cv_header_stdc=yes 2663 ac_cv_header_stdc=yes
2663 else 2664 else
2670 rm -f conftest* 2671 rm -f conftest*
2671 2672
2672 if test $ac_cv_header_stdc = yes; then 2673 if test $ac_cv_header_stdc = yes; then
2673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2674 cat > conftest.$ac_ext <<EOF 2675 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure" 2676 #line 2677 "configure"
2676 #include "confdefs.h" 2677 #include "confdefs.h"
2677 #include <string.h> 2678 #include <string.h>
2678 EOF 2679 EOF
2679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2680 egrep "memchr" >/dev/null 2>&1; then 2681 egrep "memchr" >/dev/null 2>&1; then
2688 fi 2689 fi
2689 2690
2690 if test $ac_cv_header_stdc = yes; then 2691 if test $ac_cv_header_stdc = yes; then
2691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2692 cat > conftest.$ac_ext <<EOF 2693 cat > conftest.$ac_ext <<EOF
2693 #line 2694 "configure" 2694 #line 2695 "configure"
2694 #include "confdefs.h" 2695 #include "confdefs.h"
2695 #include <stdlib.h> 2696 #include <stdlib.h>
2696 EOF 2697 EOF
2697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2698 egrep "free" >/dev/null 2>&1; then 2699 egrep "free" >/dev/null 2>&1; then
2706 fi 2707 fi
2707 2708
2708 if test $ac_cv_header_stdc = yes; then 2709 if test $ac_cv_header_stdc = yes; then
2709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2710 cat > conftest.$ac_ext <<EOF 2711 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure" 2712 #line 2713 "configure"
2712 #include "confdefs.h" 2713 #include "confdefs.h"
2713 #include <ctype.h> 2714 #include <ctype.h>
2714 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2715 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2715 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2716 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2717 int main () { int i; for (i = 0; i < 256; i++) 2718 int main () { int i; for (i = 0; i < 256; i++)
2718 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2719 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2719 exit (0); } 2720 exit (0); }
2720 2721
2721 EOF 2722 EOF
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2723 if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2723 then 2724 then
2724 : 2725 :
2725 else 2726 else
2726 echo "configure: failed program was:" >&5 2727 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5 2728 cat conftest.$ac_ext >&5
2742 } 2743 }
2743 2744
2744 fi 2745 fi
2745 2746
2746 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2747 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2747 echo "configure:2748: checking whether time.h and sys/time.h may both be included" >&5 2748 echo "configure:2749: checking whether time.h and sys/time.h may both be included" >&5
2748 2749
2749 cat > conftest.$ac_ext <<EOF 2750 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure" 2751 #line 2752 "configure"
2751 #include "confdefs.h" 2752 #include "confdefs.h"
2752 #include <sys/types.h> 2753 #include <sys/types.h>
2753 #include <sys/time.h> 2754 #include <sys/time.h>
2754 #include <time.h> 2755 #include <time.h>
2755 int main() { 2756 int main() {
2756 struct tm *tp; 2757 struct tm *tp;
2757 ; return 0; } 2758 ; return 0; }
2758 EOF 2759 EOF
2759 if { (eval echo configure:2760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2760 if { (eval echo configure:2761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2760 rm -rf conftest* 2761 rm -rf conftest*
2761 ac_cv_header_time=yes 2762 ac_cv_header_time=yes
2762 else 2763 else
2763 echo "configure: failed program was:" >&5 2764 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5 2765 cat conftest.$ac_ext >&5
2778 } 2779 }
2779 2780
2780 fi 2781 fi
2781 2782
2782 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2783 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2783 echo "configure:2784: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2784 echo "configure:2785: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2784 2785
2785 cat > conftest.$ac_ext <<EOF 2786 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure" 2787 #line 2788 "configure"
2787 #include "confdefs.h" 2788 #include "confdefs.h"
2788 #include <sys/types.h> 2789 #include <sys/types.h>
2789 #include <signal.h> 2790 #include <signal.h>
2790 /* NetBSD declares sys_siglist in unistd.h. */ 2791 /* NetBSD declares sys_siglist in unistd.h. */
2791 #ifdef HAVE_UNISTD_H 2792 #ifdef HAVE_UNISTD_H
2793 #endif 2794 #endif
2794 int main() { 2795 int main() {
2795 char *msg = *(sys_siglist + 1); 2796 char *msg = *(sys_siglist + 1);
2796 ; return 0; } 2797 ; return 0; }
2797 EOF 2798 EOF
2798 if { (eval echo configure:2799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2799 if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2799 rm -rf conftest* 2800 rm -rf conftest*
2800 ac_cv_decl_sys_siglist=yes 2801 ac_cv_decl_sys_siglist=yes
2801 else 2802 else
2802 echo "configure: failed program was:" >&5 2803 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5 2804 cat conftest.$ac_ext >&5
2818 2819
2819 fi 2820 fi
2820 2821
2821 2822
2822 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2823 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2823 echo "configure:2824: checking for struct utimbuf" >&5 2824 echo "configure:2825: checking for struct utimbuf" >&5
2824 cat > conftest.$ac_ext <<EOF 2825 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure" 2826 #line 2827 "configure"
2826 #include "confdefs.h" 2827 #include "confdefs.h"
2827 #ifdef TIME_WITH_SYS_TIME 2828 #ifdef TIME_WITH_SYS_TIME
2828 #include <sys/time.h> 2829 #include <sys/time.h>
2829 #include <time.h> 2830 #include <time.h>
2830 #else 2831 #else
2839 #endif 2840 #endif
2840 int main() { 2841 int main() {
2841 static struct utimbuf x; x.actime = x.modtime; 2842 static struct utimbuf x; x.actime = x.modtime;
2842 ; return 0; } 2843 ; return 0; }
2843 EOF 2844 EOF
2844 if { (eval echo configure:2845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2845 if { (eval echo configure:2846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2845 rm -rf conftest* 2846 rm -rf conftest*
2846 echo "$ac_t""yes" 1>&6 2847 echo "$ac_t""yes" 1>&6
2847 { test "$extra_verbose" = "yes" && cat << \EOF 2848 { test "$extra_verbose" = "yes" && cat << \EOF
2848 Defining HAVE_STRUCT_UTIMBUF 2849 Defining HAVE_STRUCT_UTIMBUF
2849 EOF 2850 EOF
2859 echo "$ac_t""no" 1>&6 2860 echo "$ac_t""no" 1>&6
2860 fi 2861 fi
2861 rm -f conftest* 2862 rm -f conftest*
2862 2863
2863 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2864 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2864 echo "configure:2865: checking return type of signal handlers" >&5 2865 echo "configure:2866: checking return type of signal handlers" >&5
2865 2866
2866 cat > conftest.$ac_ext <<EOF 2867 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure" 2868 #line 2869 "configure"
2868 #include "confdefs.h" 2869 #include "confdefs.h"
2869 #include <sys/types.h> 2870 #include <sys/types.h>
2870 #include <signal.h> 2871 #include <signal.h>
2871 #ifdef signal 2872 #ifdef signal
2872 #undef signal 2873 #undef signal
2879 2880
2880 int main() { 2881 int main() {
2881 int i; 2882 int i;
2882 ; return 0; } 2883 ; return 0; }
2883 EOF 2884 EOF
2884 if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2885 if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2885 rm -rf conftest* 2886 rm -rf conftest*
2886 ac_cv_type_signal=void 2887 ac_cv_type_signal=void
2887 else 2888 else
2888 echo "configure: failed program was:" >&5 2889 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5 2890 cat conftest.$ac_ext >&5
2901 EOF 2902 EOF
2902 } 2903 }
2903 2904
2904 2905
2905 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2906 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2906 echo "configure:2907: checking for size_t" >&5 2907 echo "configure:2908: checking for size_t" >&5
2907 2908
2908 cat > conftest.$ac_ext <<EOF 2909 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure" 2910 #line 2911 "configure"
2910 #include "confdefs.h" 2911 #include "confdefs.h"
2911 #include <sys/types.h> 2912 #include <sys/types.h>
2912 #if STDC_HEADERS 2913 #if STDC_HEADERS
2913 #include <stdlib.h> 2914 #include <stdlib.h>
2914 #include <stddef.h> 2915 #include <stddef.h>
2935 } 2936 }
2936 2937
2937 fi 2938 fi
2938 2939
2939 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 2940 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2940 echo "configure:2941: checking for pid_t" >&5 2941 echo "configure:2942: checking for pid_t" >&5
2941 2942
2942 cat > conftest.$ac_ext <<EOF 2943 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure" 2944 #line 2945 "configure"
2944 #include "confdefs.h" 2945 #include "confdefs.h"
2945 #include <sys/types.h> 2946 #include <sys/types.h>
2946 #if STDC_HEADERS 2947 #if STDC_HEADERS
2947 #include <stdlib.h> 2948 #include <stdlib.h>
2948 #include <stddef.h> 2949 #include <stddef.h>
2969 } 2970 }
2970 2971
2971 fi 2972 fi
2972 2973
2973 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 2974 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2974 echo "configure:2975: checking for uid_t in sys/types.h" >&5 2975 echo "configure:2976: checking for uid_t in sys/types.h" >&5
2975 2976
2976 cat > conftest.$ac_ext <<EOF 2977 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure" 2978 #line 2979 "configure"
2978 #include "confdefs.h" 2979 #include "confdefs.h"
2979 #include <sys/types.h> 2980 #include <sys/types.h>
2980 EOF 2981 EOF
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 egrep "uid_t" >/dev/null 2>&1; then 2983 egrep "uid_t" >/dev/null 2>&1; then
3008 } 3009 }
3009 3010
3010 fi 3011 fi
3011 3012
3012 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3013 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3013 echo "configure:3014: checking for mode_t" >&5 3014 echo "configure:3015: checking for mode_t" >&5
3014 3015
3015 cat > conftest.$ac_ext <<EOF 3016 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure" 3017 #line 3018 "configure"
3017 #include "confdefs.h" 3018 #include "confdefs.h"
3018 #include <sys/types.h> 3019 #include <sys/types.h>
3019 #if STDC_HEADERS 3020 #if STDC_HEADERS
3020 #include <stdlib.h> 3021 #include <stdlib.h>
3021 #include <stddef.h> 3022 #include <stddef.h>
3042 } 3043 }
3043 3044
3044 fi 3045 fi
3045 3046
3046 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3047 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3047 echo "configure:3048: checking for off_t" >&5 3048 echo "configure:3049: checking for off_t" >&5
3048 3049
3049 cat > conftest.$ac_ext <<EOF 3050 cat > conftest.$ac_ext <<EOF
3050 #line 3051 "configure" 3051 #line 3052 "configure"
3051 #include "confdefs.h" 3052 #include "confdefs.h"
3052 #include <sys/types.h> 3053 #include <sys/types.h>
3053 #if STDC_HEADERS 3054 #if STDC_HEADERS
3054 #include <stdlib.h> 3055 #include <stdlib.h>
3055 #include <stddef.h> 3056 #include <stddef.h>
3077 3078
3078 fi 3079 fi
3079 3080
3080 3081
3081 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3082 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3082 echo "configure:3083: checking for struct timeval" >&5 3083 echo "configure:3084: checking for struct timeval" >&5
3083 cat > conftest.$ac_ext <<EOF 3084 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure" 3085 #line 3086 "configure"
3085 #include "confdefs.h" 3086 #include "confdefs.h"
3086 #ifdef TIME_WITH_SYS_TIME 3087 #ifdef TIME_WITH_SYS_TIME
3087 #include <sys/time.h> 3088 #include <sys/time.h>
3088 #include <time.h> 3089 #include <time.h>
3089 #else 3090 #else
3095 #endif 3096 #endif
3096 int main() { 3097 int main() {
3097 static struct timeval x; x.tv_sec = x.tv_usec; 3098 static struct timeval x; x.tv_sec = x.tv_usec;
3098 ; return 0; } 3099 ; return 0; }
3099 EOF 3100 EOF
3100 if { (eval echo configure:3101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3101 if { (eval echo configure:3102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3101 rm -rf conftest* 3102 rm -rf conftest*
3102 echo "$ac_t""yes" 1>&6 3103 echo "$ac_t""yes" 1>&6
3103 HAVE_TIMEVAL=yes 3104 HAVE_TIMEVAL=yes
3104 { test "$extra_verbose" = "yes" && cat << \EOF 3105 { test "$extra_verbose" = "yes" && cat << \EOF
3105 Defining HAVE_TIMEVAL 3106 Defining HAVE_TIMEVAL
3117 HAVE_TIMEVAL=no 3118 HAVE_TIMEVAL=no
3118 fi 3119 fi
3119 rm -f conftest* 3120 rm -f conftest*
3120 3121
3121 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3122 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3122 echo "configure:3123: checking whether struct tm is in sys/time.h or time.h" >&5 3123 echo "configure:3124: checking whether struct tm is in sys/time.h or time.h" >&5
3123 3124
3124 cat > conftest.$ac_ext <<EOF 3125 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure" 3126 #line 3127 "configure"
3126 #include "confdefs.h" 3127 #include "confdefs.h"
3127 #include <sys/types.h> 3128 #include <sys/types.h>
3128 #include <time.h> 3129 #include <time.h>
3129 int main() { 3130 int main() {
3130 struct tm *tp; tp->tm_sec; 3131 struct tm *tp; tp->tm_sec;
3131 ; return 0; } 3132 ; return 0; }
3132 EOF 3133 EOF
3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3134 if { (eval echo configure:3135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134 rm -rf conftest* 3135 rm -rf conftest*
3135 ac_cv_struct_tm=time.h 3136 ac_cv_struct_tm=time.h
3136 else 3137 else
3137 echo "configure: failed program was:" >&5 3138 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5 3139 cat conftest.$ac_ext >&5
3152 } 3153 }
3153 3154
3154 fi 3155 fi
3155 3156
3156 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3157 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3157 echo "configure:3158: checking for tm_zone in struct tm" >&5 3158 echo "configure:3159: checking for tm_zone in struct tm" >&5
3158 3159
3159 cat > conftest.$ac_ext <<EOF 3160 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure" 3161 #line 3162 "configure"
3161 #include "confdefs.h" 3162 #include "confdefs.h"
3162 #include <sys/types.h> 3163 #include <sys/types.h>
3163 #include <$ac_cv_struct_tm> 3164 #include <$ac_cv_struct_tm>
3164 int main() { 3165 int main() {
3165 struct tm tm; tm.tm_zone; 3166 struct tm tm; tm.tm_zone;
3166 ; return 0; } 3167 ; return 0; }
3167 EOF 3168 EOF
3168 if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3169 if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 rm -rf conftest* 3170 rm -rf conftest*
3170 ac_cv_struct_tm_zone=yes 3171 ac_cv_struct_tm_zone=yes
3171 else 3172 else
3172 echo "configure: failed program was:" >&5 3173 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5 3174 cat conftest.$ac_ext >&5
3186 EOF 3187 EOF
3187 } 3188 }
3188 3189
3189 else 3190 else
3190 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3191 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3191 echo "configure:3192: checking for tzname" >&5 3192 echo "configure:3193: checking for tzname" >&5
3192 3193
3193 cat > conftest.$ac_ext <<EOF 3194 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure" 3195 #line 3196 "configure"
3195 #include "confdefs.h" 3196 #include "confdefs.h"
3196 #include <time.h> 3197 #include <time.h>
3197 #ifndef tzname /* For SGI. */ 3198 #ifndef tzname /* For SGI. */
3198 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3199 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3199 #endif 3200 #endif
3200 int main() { 3201 int main() {
3201 atoi(*tzname); 3202 atoi(*tzname);
3202 ; return 0; } 3203 ; return 0; }
3203 EOF 3204 EOF
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3205 rm -rf conftest* 3206 rm -rf conftest*
3206 ac_cv_var_tzname=yes 3207 ac_cv_var_tzname=yes
3207 else 3208 else
3208 echo "configure: failed program was:" >&5 3209 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5 3210 cat conftest.$ac_ext >&5
3225 fi 3226 fi
3226 fi 3227 fi
3227 3228
3228 3229
3229 echo $ac_n "checking for working const""... $ac_c" 1>&6 3230 echo $ac_n "checking for working const""... $ac_c" 1>&6
3230 echo "configure:3231: checking for working const" >&5 3231 echo "configure:3232: checking for working const" >&5
3231 3232
3232 cat > conftest.$ac_ext <<EOF 3233 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure" 3234 #line 3235 "configure"
3234 #include "confdefs.h" 3235 #include "confdefs.h"
3235 3236
3236 int main() { 3237 int main() {
3237 3238
3238 /* Ultrix mips cc rejects this. */ 3239 /* Ultrix mips cc rejects this. */
3277 const int foo = 10; 3278 const int foo = 10;
3278 } 3279 }
3279 3280
3280 ; return 0; } 3281 ; return 0; }
3281 EOF 3282 EOF
3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3283 if { (eval echo configure:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3283 rm -rf conftest* 3284 rm -rf conftest*
3284 ac_cv_c_const=yes 3285 ac_cv_c_const=yes
3285 else 3286 else
3286 echo "configure: failed program was:" >&5 3287 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5 3288 cat conftest.$ac_ext >&5
3302 3303
3303 fi 3304 fi
3304 3305
3305 3306
3306 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3307 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3307 echo "configure:3308: checking whether ${MAKE-make} sets \${MAKE}" >&5 3308 echo "configure:3309: checking whether ${MAKE-make} sets \${MAKE}" >&5
3308 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3309 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3309 3310
3310 cat > conftestmake <<\EOF 3311 cat > conftestmake <<\EOF
3311 all: 3312 all:
3312 @echo 'ac_maketemp="${MAKE}"' 3313 @echo 'ac_maketemp="${MAKE}"'
3327 SET_MAKE="MAKE=${MAKE-make}" 3328 SET_MAKE="MAKE=${MAKE-make}"
3328 fi 3329 fi
3329 3330
3330 3331
3331 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3332 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3332 echo "configure:3333: checking whether byte ordering is bigendian" >&5 3333 echo "configure:3334: checking whether byte ordering is bigendian" >&5
3333 3334
3334 ac_cv_c_bigendian=unknown 3335 ac_cv_c_bigendian=unknown
3335 # See if sys/param.h defines the BYTE_ORDER macro. 3336 # See if sys/param.h defines the BYTE_ORDER macro.
3336 cat > conftest.$ac_ext <<EOF 3337 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure" 3338 #line 3339 "configure"
3338 #include "confdefs.h" 3339 #include "confdefs.h"
3339 #include <sys/types.h> 3340 #include <sys/types.h>
3340 #include <sys/param.h> 3341 #include <sys/param.h>
3341 int main() { 3342 int main() {
3342 3343
3343 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3344 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3344 bogus endian macros 3345 bogus endian macros
3345 #endif 3346 #endif
3346 ; return 0; } 3347 ; return 0; }
3347 EOF 3348 EOF
3348 if { (eval echo configure:3349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3349 if { (eval echo configure:3350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3349 rm -rf conftest* 3350 rm -rf conftest*
3350 # It does; now see whether it defined to BIG_ENDIAN or not. 3351 # It does; now see whether it defined to BIG_ENDIAN or not.
3351 cat > conftest.$ac_ext <<EOF 3352 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure" 3353 #line 3354 "configure"
3353 #include "confdefs.h" 3354 #include "confdefs.h"
3354 #include <sys/types.h> 3355 #include <sys/types.h>
3355 #include <sys/param.h> 3356 #include <sys/param.h>
3356 int main() { 3357 int main() {
3357 3358
3358 #if BYTE_ORDER != BIG_ENDIAN 3359 #if BYTE_ORDER != BIG_ENDIAN
3359 not big endian 3360 not big endian
3360 #endif 3361 #endif
3361 ; return 0; } 3362 ; return 0; }
3362 EOF 3363 EOF
3363 if { (eval echo configure:3364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3364 if { (eval echo configure:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3364 rm -rf conftest* 3365 rm -rf conftest*
3365 ac_cv_c_bigendian=yes 3366 ac_cv_c_bigendian=yes
3366 else 3367 else
3367 echo "configure: failed program was:" >&5 3368 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5 3369 cat conftest.$ac_ext >&5
3375 cat conftest.$ac_ext >&5 3376 cat conftest.$ac_ext >&5
3376 fi 3377 fi
3377 rm -f conftest* 3378 rm -f conftest*
3378 if test $ac_cv_c_bigendian = unknown; then 3379 if test $ac_cv_c_bigendian = unknown; then
3379 cat > conftest.$ac_ext <<EOF 3380 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure" 3381 #line 3382 "configure"
3381 #include "confdefs.h" 3382 #include "confdefs.h"
3382 main () { 3383 main () {
3383 /* Are we little or big endian? From Harbison&Steele. */ 3384 /* Are we little or big endian? From Harbison&Steele. */
3384 union 3385 union
3385 { 3386 {
3388 } u; 3389 } u;
3389 u.l = 1; 3390 u.l = 1;
3390 exit (u.c[sizeof (long) - 1] == 1); 3391 exit (u.c[sizeof (long) - 1] == 1);
3391 } 3392 }
3392 EOF 3393 EOF
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3394 then 3395 then
3395 ac_cv_c_bigendian=no 3396 ac_cv_c_bigendian=no
3396 else 3397 else
3397 echo "configure: failed program was:" >&5 3398 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5 3399 cat conftest.$ac_ext >&5
3414 3415
3415 fi 3416 fi
3416 3417
3417 3418
3418 echo $ac_n "checking size of short""... $ac_c" 1>&6 3419 echo $ac_n "checking size of short""... $ac_c" 1>&6
3419 echo "configure:3420: checking size of short" >&5 3420 echo "configure:3421: checking size of short" >&5
3420 3421
3421 cat > conftest.$ac_ext <<EOF 3422 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure" 3423 #line 3424 "configure"
3423 #include "confdefs.h" 3424 #include "confdefs.h"
3424 #include <stdio.h> 3425 #include <stdio.h>
3425 main() 3426 main()
3426 { 3427 {
3427 FILE *f=fopen("conftestval", "w"); 3428 FILE *f=fopen("conftestval", "w");
3428 if (!f) exit(1); 3429 if (!f) exit(1);
3429 fprintf(f, "%d\n", sizeof(short)); 3430 fprintf(f, "%d\n", sizeof(short));
3430 exit(0); 3431 exit(0);
3431 } 3432 }
3432 EOF 3433 EOF
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3434 then 3435 then
3435 ac_cv_sizeof_short=`cat conftestval` 3436 ac_cv_sizeof_short=`cat conftestval`
3436 else 3437 else
3437 echo "configure: failed program was:" >&5 3438 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5 3439 cat conftest.$ac_ext >&5
3455 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3456 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3456 echo "*** PANIC *** Please examine config.log for compilation errors." 3457 echo "*** PANIC *** Please examine config.log for compilation errors."
3457 exit 1 3458 exit 1
3458 fi 3459 fi
3459 echo $ac_n "checking size of int""... $ac_c" 1>&6 3460 echo $ac_n "checking size of int""... $ac_c" 1>&6
3460 echo "configure:3461: checking size of int" >&5 3461 echo "configure:3462: checking size of int" >&5
3461 3462
3462 cat > conftest.$ac_ext <<EOF 3463 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure" 3464 #line 3465 "configure"
3464 #include "confdefs.h" 3465 #include "confdefs.h"
3465 #include <stdio.h> 3466 #include <stdio.h>
3466 main() 3467 main()
3467 { 3468 {
3468 FILE *f=fopen("conftestval", "w"); 3469 FILE *f=fopen("conftestval", "w");
3469 if (!f) exit(1); 3470 if (!f) exit(1);
3470 fprintf(f, "%d\n", sizeof(int)); 3471 fprintf(f, "%d\n", sizeof(int));
3471 exit(0); 3472 exit(0);
3472 } 3473 }
3473 EOF 3474 EOF
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3475 then 3476 then
3476 ac_cv_sizeof_int=`cat conftestval` 3477 ac_cv_sizeof_int=`cat conftestval`
3477 else 3478 else
3478 echo "configure: failed program was:" >&5 3479 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5 3480 cat conftest.$ac_ext >&5
3490 EOF 3491 EOF
3491 } 3492 }
3492 3493
3493 3494
3494 echo $ac_n "checking size of long""... $ac_c" 1>&6 3495 echo $ac_n "checking size of long""... $ac_c" 1>&6
3495 echo "configure:3496: checking size of long" >&5 3496 echo "configure:3497: checking size of long" >&5
3496 3497
3497 cat > conftest.$ac_ext <<EOF 3498 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure" 3499 #line 3500 "configure"
3499 #include "confdefs.h" 3500 #include "confdefs.h"
3500 #include <stdio.h> 3501 #include <stdio.h>
3501 main() 3502 main()
3502 { 3503 {
3503 FILE *f=fopen("conftestval", "w"); 3504 FILE *f=fopen("conftestval", "w");
3504 if (!f) exit(1); 3505 if (!f) exit(1);
3505 fprintf(f, "%d\n", sizeof(long)); 3506 fprintf(f, "%d\n", sizeof(long));
3506 exit(0); 3507 exit(0);
3507 } 3508 }
3508 EOF 3509 EOF
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3510 if { (eval echo configure:3511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3510 then 3511 then
3511 ac_cv_sizeof_long=`cat conftestval` 3512 ac_cv_sizeof_long=`cat conftestval`
3512 else 3513 else
3513 echo "configure: failed program was:" >&5 3514 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5 3515 cat conftest.$ac_ext >&5
3525 EOF 3526 EOF
3526 } 3527 }
3527 3528
3528 3529
3529 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3530 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3530 echo "configure:3531: checking size of long long" >&5 3531 echo "configure:3532: checking size of long long" >&5
3531 3532
3532 cat > conftest.$ac_ext <<EOF 3533 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure" 3534 #line 3535 "configure"
3534 #include "confdefs.h" 3535 #include "confdefs.h"
3535 #include <stdio.h> 3536 #include <stdio.h>
3536 main() 3537 main()
3537 { 3538 {
3538 FILE *f=fopen("conftestval", "w"); 3539 FILE *f=fopen("conftestval", "w");
3539 if (!f) exit(1); 3540 if (!f) exit(1);
3540 fprintf(f, "%d\n", sizeof(long long)); 3541 fprintf(f, "%d\n", sizeof(long long));
3541 exit(0); 3542 exit(0);
3542 } 3543 }
3543 EOF 3544 EOF
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3545 if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3545 then 3546 then
3546 ac_cv_sizeof_long_long=`cat conftestval` 3547 ac_cv_sizeof_long_long=`cat conftestval`
3547 else 3548 else
3548 echo "configure: failed program was:" >&5 3549 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5 3550 cat conftest.$ac_ext >&5
3560 EOF 3561 EOF
3561 } 3562 }
3562 3563
3563 3564
3564 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3565 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3565 echo "configure:3566: checking size of void *" >&5 3566 echo "configure:3567: checking size of void *" >&5
3566 3567
3567 cat > conftest.$ac_ext <<EOF 3568 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure" 3569 #line 3570 "configure"
3569 #include "confdefs.h" 3570 #include "confdefs.h"
3570 #include <stdio.h> 3571 #include <stdio.h>
3571 main() 3572 main()
3572 { 3573 {
3573 FILE *f=fopen("conftestval", "w"); 3574 FILE *f=fopen("conftestval", "w");
3574 if (!f) exit(1); 3575 if (!f) exit(1);
3575 fprintf(f, "%d\n", sizeof(void *)); 3576 fprintf(f, "%d\n", sizeof(void *));
3576 exit(0); 3577 exit(0);
3577 } 3578 }
3578 EOF 3579 EOF
3579 if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3580 then 3581 then
3581 ac_cv_sizeof_void_p=`cat conftestval` 3582 ac_cv_sizeof_void_p=`cat conftestval`
3582 else 3583 else
3583 echo "configure: failed program was:" >&5 3584 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5 3585 cat conftest.$ac_ext >&5
3596 } 3597 }
3597 3598
3598 3599
3599 3600
3600 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3601 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3601 echo "configure:3602: checking for long file names" >&5 3602 echo "configure:3603: checking for long file names" >&5
3602 3603
3603 ac_cv_sys_long_file_names=yes 3604 ac_cv_sys_long_file_names=yes
3604 # Test for long file names in all the places we know might matter: 3605 # Test for long file names in all the places we know might matter:
3605 # . the current directory, where building will happen 3606 # . the current directory, where building will happen
3606 # $prefix/lib where we will be installing things 3607 # $prefix/lib where we will be installing things
3643 fi 3644 fi
3644 3645
3645 3646
3646 3647
3647 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 3648 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3648 echo "configure:3649: checking for sin in -lm" >&5 3649 echo "configure:3650: checking for sin in -lm" >&5
3649 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 3650 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3650 3651
3651 xe_check_libs=" -lm " 3652 xe_check_libs=" -lm "
3652 cat > conftest.$ac_ext <<EOF 3653 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure" 3654 #line 3655 "configure"
3654 #include "confdefs.h" 3655 #include "confdefs.h"
3655 /* Override any gcc2 internal prototype to avoid an error. */ 3656 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2 3657 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */ 3658 builtin and then its argument prototype would still apply. */
3658 char sin(); 3659 char sin();
3659 3660
3660 int main() { 3661 int main() {
3661 sin() 3662 sin()
3662 ; return 0; } 3663 ; return 0; }
3663 EOF 3664 EOF
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3665 rm -rf conftest* 3666 rm -rf conftest*
3666 eval "ac_cv_lib_$ac_lib_var=yes" 3667 eval "ac_cv_lib_$ac_lib_var=yes"
3667 else 3668 else
3668 echo "configure: failed program was:" >&5 3669 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5 3670 cat conftest.$ac_ext >&5
3701 EOF 3702 EOF
3702 } 3703 }
3703 3704
3704 3705
3705 echo "checking type of mail spool file locking" 1>&6 3706 echo "checking type of mail spool file locking" 1>&6
3706 echo "configure:3707: checking type of mail spool file locking" >&5 3707 echo "configure:3708: checking type of mail spool file locking" >&5
3707 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3708 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3708 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3709 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3709 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3710 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3710 Defining REAL_MAIL_USE_LOCKF 3711 Defining REAL_MAIL_USE_LOCKF
3711 EOF 3712 EOF
3725 else mail_locking="dot-locking" 3726 else mail_locking="dot-locking"
3726 fi 3727 fi
3727 3728
3728 3729
3729 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3730 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3730 echo "configure:3731: checking for kstat_open in -lkstat" >&5 3731 echo "configure:3732: checking for kstat_open in -lkstat" >&5
3731 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3732 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3732 3733
3733 xe_check_libs=" -lkstat " 3734 xe_check_libs=" -lkstat "
3734 cat > conftest.$ac_ext <<EOF 3735 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure" 3736 #line 3737 "configure"
3736 #include "confdefs.h" 3737 #include "confdefs.h"
3737 /* Override any gcc2 internal prototype to avoid an error. */ 3738 /* Override any gcc2 internal prototype to avoid an error. */
3738 /* We use char because int might match the return type of a gcc2 3739 /* We use char because int might match the return type of a gcc2
3739 builtin and then its argument prototype would still apply. */ 3740 builtin and then its argument prototype would still apply. */
3740 char kstat_open(); 3741 char kstat_open();
3741 3742
3742 int main() { 3743 int main() {
3743 kstat_open() 3744 kstat_open()
3744 ; return 0; } 3745 ; return 0; }
3745 EOF 3746 EOF
3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3747 rm -rf conftest* 3748 rm -rf conftest*
3748 eval "ac_cv_lib_$ac_lib_var=yes" 3749 eval "ac_cv_lib_$ac_lib_var=yes"
3749 else 3750 else
3750 echo "configure: failed program was:" >&5 3751 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5 3752 cat conftest.$ac_ext >&5
3775 3776
3776 3777
3777 3778
3778 3779
3779 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3780 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3780 echo "configure:3781: checking for kvm_read in -lkvm" >&5 3781 echo "configure:3782: checking for kvm_read in -lkvm" >&5
3781 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3782 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3782 3783
3783 xe_check_libs=" -lkvm " 3784 xe_check_libs=" -lkvm "
3784 cat > conftest.$ac_ext <<EOF 3785 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure" 3786 #line 3787 "configure"
3786 #include "confdefs.h" 3787 #include "confdefs.h"
3787 /* Override any gcc2 internal prototype to avoid an error. */ 3788 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2 3789 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */ 3790 builtin and then its argument prototype would still apply. */
3790 char kvm_read(); 3791 char kvm_read();
3791 3792
3792 int main() { 3793 int main() {
3793 kvm_read() 3794 kvm_read()
3794 ; return 0; } 3795 ; return 0; }
3795 EOF 3796 EOF
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3797 rm -rf conftest* 3798 rm -rf conftest*
3798 eval "ac_cv_lib_$ac_lib_var=yes" 3799 eval "ac_cv_lib_$ac_lib_var=yes"
3799 else 3800 else
3800 echo "configure: failed program was:" >&5 3801 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5 3802 cat conftest.$ac_ext >&5
3825 3826
3826 3827
3827 3828
3828 3829
3829 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3830 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3830 echo "configure:3831: checking for cma_open in -lpthreads" >&5 3831 echo "configure:3832: checking for cma_open in -lpthreads" >&5
3831 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3832 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3832 3833
3833 xe_check_libs=" -lpthreads " 3834 xe_check_libs=" -lpthreads "
3834 cat > conftest.$ac_ext <<EOF 3835 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure" 3836 #line 3837 "configure"
3836 #include "confdefs.h" 3837 #include "confdefs.h"
3837 /* Override any gcc2 internal prototype to avoid an error. */ 3838 /* Override any gcc2 internal prototype to avoid an error. */
3838 /* We use char because int might match the return type of a gcc2 3839 /* We use char because int might match the return type of a gcc2
3839 builtin and then its argument prototype would still apply. */ 3840 builtin and then its argument prototype would still apply. */
3840 char cma_open(); 3841 char cma_open();
3841 3842
3842 int main() { 3843 int main() {
3843 cma_open() 3844 cma_open()
3844 ; return 0; } 3845 ; return 0; }
3845 EOF 3846 EOF
3846 if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3847 if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3847 rm -rf conftest* 3848 rm -rf conftest*
3848 eval "ac_cv_lib_$ac_lib_var=yes" 3849 eval "ac_cv_lib_$ac_lib_var=yes"
3849 else 3850 else
3850 echo "configure: failed program was:" >&5 3851 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5 3852 cat conftest.$ac_ext >&5
3877 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 3878 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
3878 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 3879 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
3879 fi 3880 fi
3880 3881
3881 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 3882 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
3882 echo "configure:3883: checking whether the -xildoff compiler flag is required" >&5 3883 echo "configure:3884: checking whether the -xildoff compiler flag is required" >&5
3883 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 3884 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
3884 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 3885 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
3885 then echo "$ac_t""no" 1>&6; 3886 then echo "$ac_t""no" 1>&6;
3886 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 3887 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
3887 fi 3888 fi
3888 else echo "$ac_t""no" 1>&6 3889 else echo "$ac_t""no" 1>&6
3889 fi 3890 fi
3890 3891
3891 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 3892 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
3892 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 3893 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
3893 echo "configure:3894: checking for \"-z ignore\" linker flag" >&5 3894 echo "configure:3895: checking for \"-z ignore\" linker flag" >&5
3894 case "`ld -h 2>&1`" in 3895 case "`ld -h 2>&1`" in
3895 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 3896 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
3896 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 3897 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
3897 *) echo "$ac_t""no" 1>&6 ;; 3898 *) echo "$ac_t""no" 1>&6 ;;
3898 esac 3899 esac
3899 fi 3900 fi
3900 3901
3901 3902
3902 echo "checking "for specified window system"" 1>&6 3903 echo "checking "for specified window system"" 1>&6
3903 echo "configure:3904: checking "for specified window system"" >&5 3904 echo "configure:3905: checking "for specified window system"" >&5
3904 3905
3905 if test "$with_x11" != "no"; then 3906 if test "$with_x11" != "no"; then
3906 test "$x_includes $x_libraries" != "NONE NONE" && \ 3907 test "$x_includes $x_libraries" != "NONE NONE" && \
3907 window_system=x11 with_x11=yes 3908 window_system=x11 with_x11=yes
3908 3909
3928 # If we find X, set shell vars x_includes and x_libraries to the 3929 # If we find X, set shell vars x_includes and x_libraries to the
3929 # paths, otherwise set no_x=yes. 3930 # paths, otherwise set no_x=yes.
3930 # Uses ac_ vars as temps to allow command line to override cache and checks. 3931 # Uses ac_ vars as temps to allow command line to override cache and checks.
3931 # --without-x overrides everything else, but does not touch the cache. 3932 # --without-x overrides everything else, but does not touch the cache.
3932 echo $ac_n "checking for X""... $ac_c" 1>&6 3933 echo $ac_n "checking for X""... $ac_c" 1>&6
3933 echo "configure:3934: checking for X" >&5 3934 echo "configure:3935: checking for X" >&5
3934 3935
3935 # Check whether --with-x or --without-x was given. 3936 # Check whether --with-x or --without-x was given.
3936 if test "${with_x+set}" = set; then 3937 if test "${with_x+set}" = set; then
3937 withval="$with_x" 3938 withval="$with_x"
3938 : 3939 :
3988 # Guess where to find include files, by looking for this one X11 .h file. 3989 # Guess where to find include files, by looking for this one X11 .h file.
3989 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3990 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3990 3991
3991 # First, try using that file with no special directory specified. 3992 # First, try using that file with no special directory specified.
3992 cat > conftest.$ac_ext <<EOF 3993 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure" 3994 #line 3995 "configure"
3994 #include "confdefs.h" 3995 #include "confdefs.h"
3995 #include <$x_direct_test_include> 3996 #include <$x_direct_test_include>
3996 EOF 3997 EOF
3997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3998 { (eval echo configure:3999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3999 { (eval echo configure:4000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3999 ac_err=`grep -v '^ *+' conftest.out` 4000 ac_err=`grep -v '^ *+' conftest.out`
4000 if test -z "$ac_err"; then 4001 if test -z "$ac_err"; then
4001 rm -rf conftest* 4002 rm -rf conftest*
4002 # We can compile using X headers with no special include directory. 4003 # We can compile using X headers with no special include directory.
4003 ac_x_includes= 4004 ac_x_includes=
4062 # See if we find them without any special options. 4063 # See if we find them without any special options.
4063 # Don't add to $LIBS permanently. 4064 # Don't add to $LIBS permanently.
4064 ac_save_LIBS="$LIBS" 4065 ac_save_LIBS="$LIBS"
4065 LIBS="-l$x_direct_test_library $LIBS" 4066 LIBS="-l$x_direct_test_library $LIBS"
4066 cat > conftest.$ac_ext <<EOF 4067 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure" 4068 #line 4069 "configure"
4068 #include "confdefs.h" 4069 #include "confdefs.h"
4069 4070
4070 int main() { 4071 int main() {
4071 ${x_direct_test_function}() 4072 ${x_direct_test_function}()
4072 ; return 0; } 4073 ; return 0; }
4073 EOF 4074 EOF
4074 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4075 rm -rf conftest* 4076 rm -rf conftest*
4076 LIBS="$ac_save_LIBS" 4077 LIBS="$ac_save_LIBS"
4077 # We can link X programs with no special library path. 4078 # We can link X programs with no special library path.
4078 ac_x_libraries= 4079 ac_x_libraries=
4079 else 4080 else
4178 # For Solaris; some versions of Sun CC require a space after -R and 4179 # For Solaris; some versions of Sun CC require a space after -R and
4179 # others require no space. Words are not sufficient . . . . 4180 # others require no space. Words are not sufficient . . . .
4180 case "`(uname -sr) 2>/dev/null`" in 4181 case "`(uname -sr) 2>/dev/null`" in
4181 "SunOS 5"*) 4182 "SunOS 5"*)
4182 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4183 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4183 echo "configure:4184: checking whether -R must be followed by a space" >&5 4184 echo "configure:4185: checking whether -R must be followed by a space" >&5
4184 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4185 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4185 cat > conftest.$ac_ext <<EOF 4186 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure" 4187 #line 4188 "configure"
4187 #include "confdefs.h" 4188 #include "confdefs.h"
4188 4189
4189 int main() { 4190 int main() {
4190 4191
4191 ; return 0; } 4192 ; return 0; }
4192 EOF 4193 EOF
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4194 rm -rf conftest* 4195 rm -rf conftest*
4195 ac_R_nospace=yes 4196 ac_R_nospace=yes
4196 else 4197 else
4197 echo "configure: failed program was:" >&5 4198 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5 4199 cat conftest.$ac_ext >&5
4204 echo "$ac_t""no" 1>&6 4205 echo "$ac_t""no" 1>&6
4205 X_LIBS="$X_LIBS -R$x_libraries" 4206 X_LIBS="$X_LIBS -R$x_libraries"
4206 else 4207 else
4207 LIBS="$ac_xsave_LIBS -R $x_libraries" 4208 LIBS="$ac_xsave_LIBS -R $x_libraries"
4208 cat > conftest.$ac_ext <<EOF 4209 cat > conftest.$ac_ext <<EOF
4209 #line 4210 "configure" 4210 #line 4211 "configure"
4210 #include "confdefs.h" 4211 #include "confdefs.h"
4211 4212
4212 int main() { 4213 int main() {
4213 4214
4214 ; return 0; } 4215 ; return 0; }
4215 EOF 4216 EOF
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4217 if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4217 rm -rf conftest* 4218 rm -rf conftest*
4218 ac_R_space=yes 4219 ac_R_space=yes
4219 else 4220 else
4220 echo "configure: failed program was:" >&5 4221 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5 4222 cat conftest.$ac_ext >&5
4247 if test "$with_dnet" = "no" ; then 4248 if test "$with_dnet" = "no" ; then
4248 ac_cv_lib_dnet_dnet_ntoa=no 4249 ac_cv_lib_dnet_dnet_ntoa=no
4249 else 4250 else
4250 4251
4251 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4252 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4252 echo "configure:4253: checking for dnet_ntoa in -ldnet" >&5 4253 echo "configure:4254: checking for dnet_ntoa in -ldnet" >&5
4253 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4254 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4254 4255
4255 xe_check_libs=" -ldnet " 4256 xe_check_libs=" -ldnet "
4256 cat > conftest.$ac_ext <<EOF 4257 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure" 4258 #line 4259 "configure"
4258 #include "confdefs.h" 4259 #include "confdefs.h"
4259 /* Override any gcc2 internal prototype to avoid an error. */ 4260 /* Override any gcc2 internal prototype to avoid an error. */
4260 /* We use char because int might match the return type of a gcc2 4261 /* We use char because int might match the return type of a gcc2
4261 builtin and then its argument prototype would still apply. */ 4262 builtin and then its argument prototype would still apply. */
4262 char dnet_ntoa(); 4263 char dnet_ntoa();
4263 4264
4264 int main() { 4265 int main() {
4265 dnet_ntoa() 4266 dnet_ntoa()
4266 ; return 0; } 4267 ; return 0; }
4267 EOF 4268 EOF
4268 if { (eval echo configure:4269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4269 rm -rf conftest* 4270 rm -rf conftest*
4270 eval "ac_cv_lib_$ac_lib_var=yes" 4271 eval "ac_cv_lib_$ac_lib_var=yes"
4271 else 4272 else
4272 echo "configure: failed program was:" >&5 4273 echo "configure: failed program was:" >&5
4273 cat conftest.$ac_ext >&5 4274 cat conftest.$ac_ext >&5
4287 fi 4288 fi
4288 4289
4289 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4290 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4290 4291
4291 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4292 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4292 echo "configure:4293: checking for dnet_ntoa in -ldnet_stub" >&5 4293 echo "configure:4294: checking for dnet_ntoa in -ldnet_stub" >&5
4293 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4294 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4294 4295
4295 xe_check_libs=" -ldnet_stub " 4296 xe_check_libs=" -ldnet_stub "
4296 cat > conftest.$ac_ext <<EOF 4297 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure" 4298 #line 4299 "configure"
4298 #include "confdefs.h" 4299 #include "confdefs.h"
4299 /* Override any gcc2 internal prototype to avoid an error. */ 4300 /* Override any gcc2 internal prototype to avoid an error. */
4300 /* We use char because int might match the return type of a gcc2 4301 /* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */ 4302 builtin and then its argument prototype would still apply. */
4302 char dnet_ntoa(); 4303 char dnet_ntoa();
4303 4304
4304 int main() { 4305 int main() {
4305 dnet_ntoa() 4306 dnet_ntoa()
4306 ; return 0; } 4307 ; return 0; }
4307 EOF 4308 EOF
4308 if { (eval echo configure:4309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4309 rm -rf conftest* 4310 rm -rf conftest*
4310 eval "ac_cv_lib_$ac_lib_var=yes" 4311 eval "ac_cv_lib_$ac_lib_var=yes"
4311 else 4312 else
4312 echo "configure: failed program was:" >&5 4313 echo "configure: failed program was:" >&5
4313 cat conftest.$ac_ext >&5 4314 cat conftest.$ac_ext >&5
4332 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4333 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4333 # needs -lnsl. 4334 # needs -lnsl.
4334 # The nsl library prevents programs from opening the X display 4335 # The nsl library prevents programs from opening the X display
4335 # on Irix 5.2, according to dickey@clark.net. 4336 # on Irix 5.2, according to dickey@clark.net.
4336 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4337 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4337 echo "configure:4338: checking for gethostbyname" >&5 4338 echo "configure:4339: checking for gethostbyname" >&5
4338 4339
4339 cat > conftest.$ac_ext <<EOF 4340 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure" 4341 #line 4342 "configure"
4341 #include "confdefs.h" 4342 #include "confdefs.h"
4342 /* System header to define __stub macros and hopefully few prototypes, 4343 /* System header to define __stub macros and hopefully few prototypes,
4343 which can conflict with char gethostbyname(); below. */ 4344 which can conflict with char gethostbyname(); below. */
4344 #include <assert.h> 4345 #include <assert.h>
4345 /* Override any gcc2 internal prototype to avoid an error. */ 4346 /* Override any gcc2 internal prototype to avoid an error. */
4358 gethostbyname(); 4359 gethostbyname();
4359 #endif 4360 #endif
4360 4361
4361 ; return 0; } 4362 ; return 0; }
4362 EOF 4363 EOF
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4364 rm -rf conftest* 4365 rm -rf conftest*
4365 eval "ac_cv_func_gethostbyname=yes" 4366 eval "ac_cv_func_gethostbyname=yes"
4366 else 4367 else
4367 echo "configure: failed program was:" >&5 4368 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5 4369 cat conftest.$ac_ext >&5
4379 fi 4380 fi
4380 4381
4381 if test $ac_cv_func_gethostbyname = no; then 4382 if test $ac_cv_func_gethostbyname = no; then
4382 4383
4383 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4384 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4384 echo "configure:4385: checking for gethostbyname in -lnsl" >&5 4385 echo "configure:4386: checking for gethostbyname in -lnsl" >&5
4385 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4386 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4386 4387
4387 xe_check_libs=" -lnsl " 4388 xe_check_libs=" -lnsl "
4388 cat > conftest.$ac_ext <<EOF 4389 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure" 4390 #line 4391 "configure"
4390 #include "confdefs.h" 4391 #include "confdefs.h"
4391 /* Override any gcc2 internal prototype to avoid an error. */ 4392 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2 4393 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */ 4394 builtin and then its argument prototype would still apply. */
4394 char gethostbyname(); 4395 char gethostbyname();
4395 4396
4396 int main() { 4397 int main() {
4397 gethostbyname() 4398 gethostbyname()
4398 ; return 0; } 4399 ; return 0; }
4399 EOF 4400 EOF
4400 if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4401 if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4401 rm -rf conftest* 4402 rm -rf conftest*
4402 eval "ac_cv_lib_$ac_lib_var=yes" 4403 eval "ac_cv_lib_$ac_lib_var=yes"
4403 else 4404 else
4404 echo "configure: failed program was:" >&5 4405 echo "configure: failed program was:" >&5
4405 cat conftest.$ac_ext >&5 4406 cat conftest.$ac_ext >&5
4425 # on later versions), says simon@lia.di.epfl.ch: it contains 4426 # on later versions), says simon@lia.di.epfl.ch: it contains
4426 # gethostby* variants that don't use the nameserver (or something). 4427 # gethostby* variants that don't use the nameserver (or something).
4427 # -lsocket must be given before -lnsl if both are needed. 4428 # -lsocket must be given before -lnsl if both are needed.
4428 # We assume that if connect needs -lnsl, so does gethostbyname. 4429 # We assume that if connect needs -lnsl, so does gethostbyname.
4429 echo $ac_n "checking for connect""... $ac_c" 1>&6 4430 echo $ac_n "checking for connect""... $ac_c" 1>&6
4430 echo "configure:4431: checking for connect" >&5 4431 echo "configure:4432: checking for connect" >&5
4431 4432
4432 cat > conftest.$ac_ext <<EOF 4433 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure" 4434 #line 4435 "configure"
4434 #include "confdefs.h" 4435 #include "confdefs.h"
4435 /* System header to define __stub macros and hopefully few prototypes, 4436 /* System header to define __stub macros and hopefully few prototypes,
4436 which can conflict with char connect(); below. */ 4437 which can conflict with char connect(); below. */
4437 #include <assert.h> 4438 #include <assert.h>
4438 /* Override any gcc2 internal prototype to avoid an error. */ 4439 /* Override any gcc2 internal prototype to avoid an error. */
4451 connect(); 4452 connect();
4452 #endif 4453 #endif
4453 4454
4454 ; return 0; } 4455 ; return 0; }
4455 EOF 4456 EOF
4456 if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4457 rm -rf conftest* 4458 rm -rf conftest*
4458 eval "ac_cv_func_connect=yes" 4459 eval "ac_cv_func_connect=yes"
4459 else 4460 else
4460 echo "configure: failed program was:" >&5 4461 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5 4462 cat conftest.$ac_ext >&5
4474 if test $ac_cv_func_connect = no; then 4475 if test $ac_cv_func_connect = no; then
4475 4476
4476 xe_msg_checking="for connect in -lsocket" 4477 xe_msg_checking="for connect in -lsocket"
4477 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4478 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4478 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4479 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4479 echo "configure:4480: checking "$xe_msg_checking"" >&5 4480 echo "configure:4481: checking "$xe_msg_checking"" >&5
4480 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4481 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4481 4482
4482 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4483 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4483 cat > conftest.$ac_ext <<EOF 4484 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure" 4485 #line 4486 "configure"
4485 #include "confdefs.h" 4486 #include "confdefs.h"
4486 /* Override any gcc2 internal prototype to avoid an error. */ 4487 /* Override any gcc2 internal prototype to avoid an error. */
4487 /* We use char because int might match the return type of a gcc2 4488 /* We use char because int might match the return type of a gcc2
4488 builtin and then its argument prototype would still apply. */ 4489 builtin and then its argument prototype would still apply. */
4489 char connect(); 4490 char connect();
4490 4491
4491 int main() { 4492 int main() {
4492 connect() 4493 connect()
4493 ; return 0; } 4494 ; return 0; }
4494 EOF 4495 EOF
4495 if { (eval echo configure:4496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4496 rm -rf conftest* 4497 rm -rf conftest*
4497 eval "ac_cv_lib_$ac_lib_var=yes" 4498 eval "ac_cv_lib_$ac_lib_var=yes"
4498 else 4499 else
4499 echo "configure: failed program was:" >&5 4500 echo "configure: failed program was:" >&5
4500 cat conftest.$ac_ext >&5 4501 cat conftest.$ac_ext >&5
4514 4515
4515 fi 4516 fi
4516 4517
4517 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4518 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4518 echo $ac_n "checking for remove""... $ac_c" 1>&6 4519 echo $ac_n "checking for remove""... $ac_c" 1>&6
4519 echo "configure:4520: checking for remove" >&5 4520 echo "configure:4521: checking for remove" >&5
4520 4521
4521 cat > conftest.$ac_ext <<EOF 4522 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure" 4523 #line 4524 "configure"
4523 #include "confdefs.h" 4524 #include "confdefs.h"
4524 /* System header to define __stub macros and hopefully few prototypes, 4525 /* System header to define __stub macros and hopefully few prototypes,
4525 which can conflict with char remove(); below. */ 4526 which can conflict with char remove(); below. */
4526 #include <assert.h> 4527 #include <assert.h>
4527 /* Override any gcc2 internal prototype to avoid an error. */ 4528 /* Override any gcc2 internal prototype to avoid an error. */
4540 remove(); 4541 remove();
4541 #endif 4542 #endif
4542 4543
4543 ; return 0; } 4544 ; return 0; }
4544 EOF 4545 EOF
4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4546 rm -rf conftest* 4547 rm -rf conftest*
4547 eval "ac_cv_func_remove=yes" 4548 eval "ac_cv_func_remove=yes"
4548 else 4549 else
4549 echo "configure: failed program was:" >&5 4550 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5 4551 cat conftest.$ac_ext >&5
4561 fi 4562 fi
4562 4563
4563 if test $ac_cv_func_remove = no; then 4564 if test $ac_cv_func_remove = no; then
4564 4565
4565 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4566 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4566 echo "configure:4567: checking for remove in -lposix" >&5 4567 echo "configure:4568: checking for remove in -lposix" >&5
4567 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4568 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4568 4569
4569 xe_check_libs=" -lposix " 4570 xe_check_libs=" -lposix "
4570 cat > conftest.$ac_ext <<EOF 4571 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure" 4572 #line 4573 "configure"
4572 #include "confdefs.h" 4573 #include "confdefs.h"
4573 /* Override any gcc2 internal prototype to avoid an error. */ 4574 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2 4575 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */ 4576 builtin and then its argument prototype would still apply. */
4576 char remove(); 4577 char remove();
4577 4578
4578 int main() { 4579 int main() {
4579 remove() 4580 remove()
4580 ; return 0; } 4581 ; return 0; }
4581 EOF 4582 EOF
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4583 rm -rf conftest* 4584 rm -rf conftest*
4584 eval "ac_cv_lib_$ac_lib_var=yes" 4585 eval "ac_cv_lib_$ac_lib_var=yes"
4585 else 4586 else
4586 echo "configure: failed program was:" >&5 4587 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5 4588 cat conftest.$ac_ext >&5
4601 4602
4602 fi 4603 fi
4603 4604
4604 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4605 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4605 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4606 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4606 echo "configure:4607: checking for shmat" >&5 4607 echo "configure:4608: checking for shmat" >&5
4607 4608
4608 cat > conftest.$ac_ext <<EOF 4609 cat > conftest.$ac_ext <<EOF
4609 #line 4610 "configure" 4610 #line 4611 "configure"
4610 #include "confdefs.h" 4611 #include "confdefs.h"
4611 /* System header to define __stub macros and hopefully few prototypes, 4612 /* System header to define __stub macros and hopefully few prototypes,
4612 which can conflict with char shmat(); below. */ 4613 which can conflict with char shmat(); below. */
4613 #include <assert.h> 4614 #include <assert.h>
4614 /* Override any gcc2 internal prototype to avoid an error. */ 4615 /* Override any gcc2 internal prototype to avoid an error. */
4627 shmat(); 4628 shmat();
4628 #endif 4629 #endif
4629 4630
4630 ; return 0; } 4631 ; return 0; }
4631 EOF 4632 EOF
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4633 rm -rf conftest* 4634 rm -rf conftest*
4634 eval "ac_cv_func_shmat=yes" 4635 eval "ac_cv_func_shmat=yes"
4635 else 4636 else
4636 echo "configure: failed program was:" >&5 4637 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5 4638 cat conftest.$ac_ext >&5
4648 fi 4649 fi
4649 4650
4650 if test $ac_cv_func_shmat = no; then 4651 if test $ac_cv_func_shmat = no; then
4651 4652
4652 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4653 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4653 echo "configure:4654: checking for shmat in -lipc" >&5 4654 echo "configure:4655: checking for shmat in -lipc" >&5
4654 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4655 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4655 4656
4656 xe_check_libs=" -lipc " 4657 xe_check_libs=" -lipc "
4657 cat > conftest.$ac_ext <<EOF 4658 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure" 4659 #line 4660 "configure"
4659 #include "confdefs.h" 4660 #include "confdefs.h"
4660 /* Override any gcc2 internal prototype to avoid an error. */ 4661 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2 4662 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */ 4663 builtin and then its argument prototype would still apply. */
4663 char shmat(); 4664 char shmat();
4664 4665
4665 int main() { 4666 int main() {
4666 shmat() 4667 shmat()
4667 ; return 0; } 4668 ; return 0; }
4668 EOF 4669 EOF
4669 if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4670 if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4670 rm -rf conftest* 4671 rm -rf conftest*
4671 eval "ac_cv_lib_$ac_lib_var=yes" 4672 eval "ac_cv_lib_$ac_lib_var=yes"
4672 else 4673 else
4673 echo "configure: failed program was:" >&5 4674 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5 4675 cat conftest.$ac_ext >&5
4698 # These have to be linked with before -lX11, unlike the other 4699 # These have to be linked with before -lX11, unlike the other
4699 # libraries we check for below, so use a different variable. 4700 # libraries we check for below, so use a different variable.
4700 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4701 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4701 4702
4702 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4703 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4703 echo "configure:4704: checking for IceConnectionNumber in -lICE" >&5 4704 echo "configure:4705: checking for IceConnectionNumber in -lICE" >&5
4704 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4705 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4705 4706
4706 xe_check_libs=" -lICE " 4707 xe_check_libs=" -lICE "
4707 cat > conftest.$ac_ext <<EOF 4708 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure" 4709 #line 4710 "configure"
4709 #include "confdefs.h" 4710 #include "confdefs.h"
4710 /* Override any gcc2 internal prototype to avoid an error. */ 4711 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2 4712 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */ 4713 builtin and then its argument prototype would still apply. */
4713 char IceConnectionNumber(); 4714 char IceConnectionNumber();
4714 4715
4715 int main() { 4716 int main() {
4716 IceConnectionNumber() 4717 IceConnectionNumber()
4717 ; return 0; } 4718 ; return 0; }
4718 EOF 4719 EOF
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4720 rm -rf conftest* 4721 rm -rf conftest*
4721 eval "ac_cv_lib_$ac_lib_var=yes" 4722 eval "ac_cv_lib_$ac_lib_var=yes"
4722 else 4723 else
4723 echo "configure: failed program was:" >&5 4724 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5 4725 cat conftest.$ac_ext >&5
4748 4749
4749 case "$with_x11" in 4750 case "$with_x11" in
4750 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; 4751 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
4751 no ) window_system=none HAVE_X_WINDOWS=no ;; 4752 no ) window_system=none HAVE_X_WINDOWS=no ;;
4752 esac 4753 esac
4754
4755 if test "$window_system" = "none"; then
4756 echo "checking for MS-Windows" 1>&6
4757 echo "configure:4758: checking for MS-Windows" >&5
4758
4759 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
4760 echo "configure:4761: checking for main in -lgdi32" >&5
4761 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
4762
4763 xe_check_libs=" -lgdi32 "
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767
4768 int main() {
4769 main()
4770 ; return 0; }
4771 EOF
4772 if { (eval echo configure:4773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4773 rm -rf conftest*
4774 eval "ac_cv_lib_$ac_lib_var=yes"
4775 else
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4778 rm -rf conftest*
4779 eval "ac_cv_lib_$ac_lib_var=no"
4780 fi
4781 rm -f conftest*
4782 xe_check_libs=""
4783
4784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
4785 echo "$ac_t""yes" 1>&6
4786 have_msw=yes
4787 else
4788 echo "$ac_t""no" 1>&6
4789 fi
4790
4791
4792 if test "$have_msw" = "yes"; then
4793 { test "$extra_verbose" = "yes" && cat << \EOF
4794 Defining HAVE_MS_WINDOWS
4795 EOF
4796 cat >> confdefs.h <<\EOF
4797 #define HAVE_MS_WINDOWS 1
4798 EOF
4799 }
4800
4801 window_system=msw
4802 with_scrollbars=msw
4803 with_dialogs=msw
4804 with_menubars=no
4805 with_toolbars=no
4806 with_tty=no
4807 extra_objs="$extra_objs console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
4808 echo " xemacs will be linked with \"console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o msw-proc.o scrollbar-msw.o\""
4809 fi
4810 fi
4811 fi
4753 4812
4754 if test "$with_x11" = "yes"; then 4813 if test "$with_x11" = "yes"; then
4755 { test "$extra_verbose" = "yes" && cat << \EOF 4814 { test "$extra_verbose" = "yes" && cat << \EOF
4756 Defining HAVE_X_WINDOWS 4815 Defining HAVE_X_WINDOWS
4757 EOF 4816 EOF
4847 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done 4906 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
4848 echo 4907 echo
4849 fi 4908 fi
4850 4909
4851 echo "checking for X defines extracted by xmkmf" 1>&6 4910 echo "checking for X defines extracted by xmkmf" 1>&6
4852 echo "configure:4853: checking for X defines extracted by xmkmf" >&5 4911 echo "configure:4912: checking for X defines extracted by xmkmf" >&5
4853 rm -fr conftestdir 4912 rm -fr conftestdir
4854 if mkdir conftestdir; then 4913 if mkdir conftestdir; then
4855 cd conftestdir 4914 cd conftestdir
4856 cat > Imakefile <<'EOF' 4915 cat > Imakefile <<'EOF'
4857 xetest: 4916 xetest:
4879 done 4938 done
4880 fi 4939 fi
4881 4940
4882 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 4941 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
4883 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 4942 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
4884 echo "configure:4885: checking for X11/Intrinsic.h" >&5 4943 echo "configure:4944: checking for X11/Intrinsic.h" >&5
4885 4944
4886 cat > conftest.$ac_ext <<EOF 4945 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure" 4946 #line 4947 "configure"
4888 #include "confdefs.h" 4947 #include "confdefs.h"
4889 #include <X11/Intrinsic.h> 4948 #include <X11/Intrinsic.h>
4890 EOF 4949 EOF
4891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4892 { (eval echo configure:4893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4951 { (eval echo configure:4952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4893 ac_err=`grep -v '^ *+' conftest.out` 4952 ac_err=`grep -v '^ *+' conftest.out`
4894 if test -z "$ac_err"; then 4953 if test -z "$ac_err"; then
4895 rm -rf conftest* 4954 rm -rf conftest*
4896 eval "ac_cv_header_$ac_safe=yes" 4955 eval "ac_cv_header_$ac_safe=yes"
4897 else 4956 else
4911 fi 4970 fi
4912 4971
4913 4972
4914 4973
4915 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 4974 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
4916 echo "configure:4917: checking for XOpenDisplay in -lX11" >&5 4975 echo "configure:4976: checking for XOpenDisplay in -lX11" >&5
4917 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 4976 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
4918 4977
4919 xe_check_libs=" -lX11 " 4978 xe_check_libs=" -lX11 "
4920 cat > conftest.$ac_ext <<EOF 4979 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure" 4980 #line 4981 "configure"
4922 #include "confdefs.h" 4981 #include "confdefs.h"
4923 /* Override any gcc2 internal prototype to avoid an error. */ 4982 /* Override any gcc2 internal prototype to avoid an error. */
4924 /* We use char because int might match the return type of a gcc2 4983 /* We use char because int might match the return type of a gcc2
4925 builtin and then its argument prototype would still apply. */ 4984 builtin and then its argument prototype would still apply. */
4926 char XOpenDisplay(); 4985 char XOpenDisplay();
4927 4986
4928 int main() { 4987 int main() {
4929 XOpenDisplay() 4988 XOpenDisplay()
4930 ; return 0; } 4989 ; return 0; }
4931 EOF 4990 EOF
4932 if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4933 rm -rf conftest* 4992 rm -rf conftest*
4934 eval "ac_cv_lib_$ac_lib_var=yes" 4993 eval "ac_cv_lib_$ac_lib_var=yes"
4935 else 4994 else
4936 echo "configure: failed program was:" >&5 4995 echo "configure: failed program was:" >&5
4937 cat conftest.$ac_ext >&5 4996 cat conftest.$ac_ext >&5
4952 if test "$have_lib_x11" != "yes"; then 5011 if test "$have_lib_x11" != "yes"; then
4953 5012
4954 xe_msg_checking="for XGetFontProperty in -lX11" 5013 xe_msg_checking="for XGetFontProperty in -lX11"
4955 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5014 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
4956 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5015 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4957 echo "configure:4958: checking "$xe_msg_checking"" >&5 5016 echo "configure:5017: checking "$xe_msg_checking"" >&5
4958 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5017 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
4959 5018
4960 xe_check_libs=" -lX11 -b i486-linuxaout" 5019 xe_check_libs=" -lX11 -b i486-linuxaout"
4961 cat > conftest.$ac_ext <<EOF 5020 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure" 5021 #line 5022 "configure"
4963 #include "confdefs.h" 5022 #include "confdefs.h"
4964 /* Override any gcc2 internal prototype to avoid an error. */ 5023 /* Override any gcc2 internal prototype to avoid an error. */
4965 /* We use char because int might match the return type of a gcc2 5024 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */ 5025 builtin and then its argument prototype would still apply. */
4967 char XGetFontProperty(); 5026 char XGetFontProperty();
4968 5027
4969 int main() { 5028 int main() {
4970 XGetFontProperty() 5029 XGetFontProperty()
4971 ; return 0; } 5030 ; return 0; }
4972 EOF 5031 EOF
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4974 rm -rf conftest* 5033 rm -rf conftest*
4975 eval "ac_cv_lib_$ac_lib_var=yes" 5034 eval "ac_cv_lib_$ac_lib_var=yes"
4976 else 5035 else
4977 echo "configure: failed program was:" >&5 5036 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5 5037 cat conftest.$ac_ext >&5
4995 libs_x="-lX11" 5054 libs_x="-lX11"
4996 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5055 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
4997 5056
4998 5057
4999 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5058 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5000 echo "configure:5001: checking for XShapeSelectInput in -lXext" >&5 5059 echo "configure:5060: checking for XShapeSelectInput in -lXext" >&5
5001 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5060 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5002 5061
5003 xe_check_libs=" -lXext " 5062 xe_check_libs=" -lXext "
5004 cat > conftest.$ac_ext <<EOF 5063 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure" 5064 #line 5065 "configure"
5006 #include "confdefs.h" 5065 #include "confdefs.h"
5007 /* Override any gcc2 internal prototype to avoid an error. */ 5066 /* Override any gcc2 internal prototype to avoid an error. */
5008 /* We use char because int might match the return type of a gcc2 5067 /* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */ 5068 builtin and then its argument prototype would still apply. */
5010 char XShapeSelectInput(); 5069 char XShapeSelectInput();
5011 5070
5012 int main() { 5071 int main() {
5013 XShapeSelectInput() 5072 XShapeSelectInput()
5014 ; return 0; } 5073 ; return 0; }
5015 EOF 5074 EOF
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5075 if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5017 rm -rf conftest* 5076 rm -rf conftest*
5018 eval "ac_cv_lib_$ac_lib_var=yes" 5077 eval "ac_cv_lib_$ac_lib_var=yes"
5019 else 5078 else
5020 echo "configure: failed program was:" >&5 5079 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5 5080 cat conftest.$ac_ext >&5
5034 5093
5035 5094
5036 5095
5037 5096
5038 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5097 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5039 echo "configure:5040: checking for XtOpenDisplay in -lXt" >&5 5098 echo "configure:5099: checking for XtOpenDisplay in -lXt" >&5
5040 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5099 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5041 5100
5042 xe_check_libs=" -lXt " 5101 xe_check_libs=" -lXt "
5043 cat > conftest.$ac_ext <<EOF 5102 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure" 5103 #line 5104 "configure"
5045 #include "confdefs.h" 5104 #include "confdefs.h"
5046 /* Override any gcc2 internal prototype to avoid an error. */ 5105 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2 5106 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */ 5107 builtin and then its argument prototype would still apply. */
5049 char XtOpenDisplay(); 5108 char XtOpenDisplay();
5050 5109
5051 int main() { 5110 int main() {
5052 XtOpenDisplay() 5111 XtOpenDisplay()
5053 ; return 0; } 5112 ; return 0; }
5054 EOF 5113 EOF
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5056 rm -rf conftest* 5115 rm -rf conftest*
5057 eval "ac_cv_lib_$ac_lib_var=yes" 5116 eval "ac_cv_lib_$ac_lib_var=yes"
5058 else 5117 else
5059 echo "configure: failed program was:" >&5 5118 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5 5119 cat conftest.$ac_ext >&5
5073 fi 5132 fi
5074 5133
5075 5134
5076 5135
5077 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5136 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5078 echo "configure:5079: checking the version of X11 being used" >&5 5137 echo "configure:5138: checking the version of X11 being used" >&5
5079 cat > conftest.$ac_ext <<EOF 5138 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure" 5139 #line 5140 "configure"
5081 #include "confdefs.h" 5140 #include "confdefs.h"
5082 #include <X11/Intrinsic.h> 5141 #include <X11/Intrinsic.h>
5083 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5142 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5084 EOF 5143 EOF
5085 if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5086 then 5145 then
5087 ./conftest foobar; x11_release=$? 5146 ./conftest foobar; x11_release=$?
5088 else 5147 else
5089 echo "configure: failed program was:" >&5 5148 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5 5149 cat conftest.$ac_ext >&5
5104 5163
5105 for ac_hdr in X11/Xlocale.h 5164 for ac_hdr in X11/Xlocale.h
5106 do 5165 do
5107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5109 echo "configure:5110: checking for $ac_hdr" >&5 5168 echo "configure:5169: checking for $ac_hdr" >&5
5110 5169
5111 cat > conftest.$ac_ext <<EOF 5170 cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure" 5171 #line 5172 "configure"
5113 #include "confdefs.h" 5172 #include "confdefs.h"
5114 #include <$ac_hdr> 5173 #include <$ac_hdr>
5115 EOF 5174 EOF
5116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5117 { (eval echo configure:5118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5176 { (eval echo configure:5177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5118 ac_err=`grep -v '^ *+' conftest.out` 5177 ac_err=`grep -v '^ *+' conftest.out`
5119 if test -z "$ac_err"; then 5178 if test -z "$ac_err"; then
5120 rm -rf conftest* 5179 rm -rf conftest*
5121 eval "ac_cv_header_$ac_safe=yes" 5180 eval "ac_cv_header_$ac_safe=yes"
5122 else 5181 else
5143 fi 5202 fi
5144 done 5203 done
5145 5204
5146 5205
5147 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5206 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5148 echo "configure:5149: checking for XFree86" >&5 5207 echo "configure:5208: checking for XFree86" >&5
5149 if test -d "/usr/X386/include" -o \ 5208 if test -d "/usr/X386/include" -o \
5150 -f "/etc/XF86Config" -o \ 5209 -f "/etc/XF86Config" -o \
5151 -f "/etc/X11/XF86Config" -o \ 5210 -f "/etc/X11/XF86Config" -o \
5152 -f "/usr/X11R6/lib/X11/XF86Config"; then 5211 -f "/usr/X11R6/lib/X11/XF86Config"; then
5153 echo "$ac_t""yes" 1>&6 5212 echo "$ac_t""yes" 1>&6
5163 echo "$ac_t""no" 1>&6 5222 echo "$ac_t""no" 1>&6
5164 fi 5223 fi
5165 5224
5166 test -z "$with_xmu" && { 5225 test -z "$with_xmu" && {
5167 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5226 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5168 echo "configure:5169: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5227 echo "configure:5228: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5169 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5228 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5170 5229
5171 xe_check_libs=" -lXmu " 5230 xe_check_libs=" -lXmu "
5172 cat > conftest.$ac_ext <<EOF 5231 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure" 5232 #line 5233 "configure"
5174 #include "confdefs.h" 5233 #include "confdefs.h"
5175 /* Override any gcc2 internal prototype to avoid an error. */ 5234 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2 5235 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */ 5236 builtin and then its argument prototype would still apply. */
5178 char XmuReadBitmapDataFromFile(); 5237 char XmuReadBitmapDataFromFile();
5179 5238
5180 int main() { 5239 int main() {
5181 XmuReadBitmapDataFromFile() 5240 XmuReadBitmapDataFromFile()
5182 ; return 0; } 5241 ; return 0; }
5183 EOF 5242 EOF
5184 if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5185 rm -rf conftest* 5244 rm -rf conftest*
5186 eval "ac_cv_lib_$ac_lib_var=yes" 5245 eval "ac_cv_lib_$ac_lib_var=yes"
5187 else 5246 else
5188 echo "configure: failed program was:" >&5 5247 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5 5248 cat conftest.$ac_ext >&5
5218 5277
5219 fi 5278 fi
5220 5279
5221 5280
5222 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5281 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5223 echo "configure:5224: checking for main in -lXbsd" >&5 5282 echo "configure:5283: checking for main in -lXbsd" >&5
5224 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5283 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5225 5284
5226 xe_check_libs=" -lXbsd " 5285 xe_check_libs=" -lXbsd "
5227 cat > conftest.$ac_ext <<EOF 5286 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure" 5287 #line 5288 "configure"
5229 #include "confdefs.h" 5288 #include "confdefs.h"
5230 5289
5231 int main() { 5290 int main() {
5232 main() 5291 main()
5233 ; return 0; } 5292 ; return 0; }
5234 EOF 5293 EOF
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5236 rm -rf conftest* 5295 rm -rf conftest*
5237 eval "ac_cv_lib_$ac_lib_var=yes" 5296 eval "ac_cv_lib_$ac_lib_var=yes"
5238 else 5297 else
5239 echo "configure: failed program was:" >&5 5298 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5 5299 cat conftest.$ac_ext >&5
5275 5334
5276 bitmapdir= 5335 bitmapdir=
5277 5336
5278 case "$window_system" in 5337 case "$window_system" in
5279 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; 5338 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
5339 msw ) HAVE_X_WINDOWS=no; echo " Using MS-Windows." ;;
5280 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; 5340 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
5281 esac 5341 esac
5282 5342
5283 case "$x_libraries" in *X11R4* ) 5343 case "$x_libraries" in *X11R4* )
5284 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5344 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5285 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5345 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5286 esac 5346 esac
5287 5347
5288 echo "checking for session-management option" 1>&6 5348 echo "checking for session-management option" 1>&6
5289 echo "configure:5290: checking for session-management option" >&5; 5349 echo "configure:5350: checking for session-management option" >&5;
5290 if test "$with_session" != "no"; then 5350 if test "$with_session" != "no"; then
5291 { test "$extra_verbose" = "yes" && cat << \EOF 5351 { test "$extra_verbose" = "yes" && cat << \EOF
5292 Defining HAVE_SESSION 5352 Defining HAVE_SESSION
5293 EOF 5353 EOF
5294 cat >> confdefs.h <<\EOF 5354 cat >> confdefs.h <<\EOF
5299 fi 5359 fi
5300 5360
5301 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5361 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5302 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5362 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5303 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5363 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5304 echo "configure:5305: checking for X11/Xauth.h" >&5 5364 echo "configure:5365: checking for X11/Xauth.h" >&5
5305 5365
5306 cat > conftest.$ac_ext <<EOF 5366 cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure" 5367 #line 5368 "configure"
5308 #include "confdefs.h" 5368 #include "confdefs.h"
5309 #include <X11/Xauth.h> 5369 #include <X11/Xauth.h>
5310 EOF 5370 EOF
5311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5312 { (eval echo configure:5313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5372 { (eval echo configure:5373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5313 ac_err=`grep -v '^ *+' conftest.out` 5373 ac_err=`grep -v '^ *+' conftest.out`
5314 if test -z "$ac_err"; then 5374 if test -z "$ac_err"; then
5315 rm -rf conftest* 5375 rm -rf conftest*
5316 eval "ac_cv_header_$ac_safe=yes" 5376 eval "ac_cv_header_$ac_safe=yes"
5317 else 5377 else
5330 with_xauth=no 5390 with_xauth=no
5331 fi 5391 fi
5332 } 5392 }
5333 test -z "$with_xauth" && { 5393 test -z "$with_xauth" && {
5334 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5394 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5335 echo "configure:5336: checking for XauGetAuthByAddr in -lXau" >&5 5395 echo "configure:5396: checking for XauGetAuthByAddr in -lXau" >&5
5336 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5396 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5337 5397
5338 xe_check_libs=" -lXau " 5398 xe_check_libs=" -lXau "
5339 cat > conftest.$ac_ext <<EOF 5399 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure" 5400 #line 5401 "configure"
5341 #include "confdefs.h" 5401 #include "confdefs.h"
5342 /* Override any gcc2 internal prototype to avoid an error. */ 5402 /* Override any gcc2 internal prototype to avoid an error. */
5343 /* We use char because int might match the return type of a gcc2 5403 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */ 5404 builtin and then its argument prototype would still apply. */
5345 char XauGetAuthByAddr(); 5405 char XauGetAuthByAddr();
5346 5406
5347 int main() { 5407 int main() {
5348 XauGetAuthByAddr() 5408 XauGetAuthByAddr()
5349 ; return 0; } 5409 ; return 0; }
5350 EOF 5410 EOF
5351 if { (eval echo configure:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5352 rm -rf conftest* 5412 rm -rf conftest*
5353 eval "ac_cv_lib_$ac_lib_var=yes" 5413 eval "ac_cv_lib_$ac_lib_var=yes"
5354 else 5414 else
5355 echo "configure: failed program was:" >&5 5415 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5 5416 cat conftest.$ac_ext >&5
5406 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5466 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5407 if test "$with_tooltalk" != "no" ; then 5467 if test "$with_tooltalk" != "no" ; then
5408 for dir in "" "Tt/" "desktop/" ; do 5468 for dir in "" "Tt/" "desktop/" ; do
5409 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5469 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5410 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5470 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5411 echo "configure:5412: checking for ${dir}tt_c.h" >&5 5471 echo "configure:5472: checking for ${dir}tt_c.h" >&5
5412 5472
5413 cat > conftest.$ac_ext <<EOF 5473 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure" 5474 #line 5475 "configure"
5415 #include "confdefs.h" 5475 #include "confdefs.h"
5416 #include <${dir}tt_c.h> 5476 #include <${dir}tt_c.h>
5417 EOF 5477 EOF
5418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5419 { (eval echo configure:5420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5479 { (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5420 ac_err=`grep -v '^ *+' conftest.out` 5480 ac_err=`grep -v '^ *+' conftest.out`
5421 if test -z "$ac_err"; then 5481 if test -z "$ac_err"; then
5422 rm -rf conftest* 5482 rm -rf conftest*
5423 eval "ac_cv_header_$ac_safe=yes" 5483 eval "ac_cv_header_$ac_safe=yes"
5424 else 5484 else
5443 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5503 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5444 5504
5445 xe_msg_checking="for tt_message_create in -ltt" 5505 xe_msg_checking="for tt_message_create in -ltt"
5446 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5506 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5447 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5507 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5448 echo "configure:5449: checking "$xe_msg_checking"" >&5 5508 echo "configure:5509: checking "$xe_msg_checking"" >&5
5449 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5509 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5450 5510
5451 xe_check_libs=" -ltt $extra_libs" 5511 xe_check_libs=" -ltt $extra_libs"
5452 cat > conftest.$ac_ext <<EOF 5512 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure" 5513 #line 5514 "configure"
5454 #include "confdefs.h" 5514 #include "confdefs.h"
5455 /* Override any gcc2 internal prototype to avoid an error. */ 5515 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2 5516 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */ 5517 builtin and then its argument prototype would still apply. */
5458 char tt_message_create(); 5518 char tt_message_create();
5459 5519
5460 int main() { 5520 int main() {
5461 tt_message_create() 5521 tt_message_create()
5462 ; return 0; } 5522 ; return 0; }
5463 EOF 5523 EOF
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5465 rm -rf conftest* 5525 rm -rf conftest*
5466 eval "ac_cv_lib_$ac_lib_var=yes" 5526 eval "ac_cv_lib_$ac_lib_var=yes"
5467 else 5527 else
5468 echo "configure: failed program was:" >&5 5528 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5 5529 cat conftest.$ac_ext >&5
5508 fi 5568 fi
5509 fi 5569 fi
5510 5570
5511 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5571 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5512 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5572 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5513 echo "configure:5514: checking for Dt/Dt.h" >&5 5573 echo "configure:5574: checking for Dt/Dt.h" >&5
5514 5574
5515 cat > conftest.$ac_ext <<EOF 5575 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure" 5576 #line 5577 "configure"
5517 #include "confdefs.h" 5577 #include "confdefs.h"
5518 #include <Dt/Dt.h> 5578 #include <Dt/Dt.h>
5519 EOF 5579 EOF
5520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5521 { (eval echo configure:5522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5581 { (eval echo configure:5582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5522 ac_err=`grep -v '^ *+' conftest.out` 5582 ac_err=`grep -v '^ *+' conftest.out`
5523 if test -z "$ac_err"; then 5583 if test -z "$ac_err"; then
5524 rm -rf conftest* 5584 rm -rf conftest*
5525 eval "ac_cv_header_$ac_safe=yes" 5585 eval "ac_cv_header_$ac_safe=yes"
5526 else 5586 else
5539 with_cde=no 5599 with_cde=no
5540 fi 5600 fi
5541 } 5601 }
5542 test -z "$with_cde" && { 5602 test -z "$with_cde" && {
5543 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5603 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5544 echo "configure:5545: checking for DtDndDragStart in -lDtSvc" >&5 5604 echo "configure:5605: checking for DtDndDragStart in -lDtSvc" >&5
5545 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5605 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5546 5606
5547 xe_check_libs=" -lDtSvc " 5607 xe_check_libs=" -lDtSvc "
5548 cat > conftest.$ac_ext <<EOF 5608 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure" 5609 #line 5610 "configure"
5550 #include "confdefs.h" 5610 #include "confdefs.h"
5551 /* Override any gcc2 internal prototype to avoid an error. */ 5611 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2 5612 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */ 5613 builtin and then its argument prototype would still apply. */
5554 char DtDndDragStart(); 5614 char DtDndDragStart();
5555 5615
5556 int main() { 5616 int main() {
5557 DtDndDragStart() 5617 DtDndDragStart()
5558 ; return 0; } 5618 ; return 0; }
5559 EOF 5619 EOF
5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5561 rm -rf conftest* 5621 rm -rf conftest*
5562 eval "ac_cv_lib_$ac_lib_var=yes" 5622 eval "ac_cv_lib_$ac_lib_var=yes"
5563 else 5623 else
5564 echo "configure: failed program was:" >&5 5624 echo "configure: failed program was:" >&5
5565 cat conftest.$ac_ext >&5 5625 cat conftest.$ac_ext >&5
5595 5655
5596 5656
5597 if test "$with_x11" = "yes"; then 5657 if test "$with_x11" = "yes"; then
5598 5658
5599 echo "checking for X11 graphics libraries" 1>&6 5659 echo "checking for X11 graphics libraries" 1>&6
5600 echo "configure:5601: checking for X11 graphics libraries" >&5 5660 echo "configure:5661: checking for X11 graphics libraries" >&5
5601 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 5661 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
5602 echo "configure:5603: checking for Xpm - no older than 3.4f" >&5 5662 echo "configure:5663: checking for Xpm - no older than 3.4f" >&5
5603 xe_check_libs=-lXpm 5663 xe_check_libs=-lXpm
5604 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 5664 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure" 5665 #line 5666 "configure"
5606 #include "confdefs.h" 5666 #include "confdefs.h"
5607 #include <X11/xpm.h> 5667 #include <X11/xpm.h>
5608 int main(int c, char **v) { 5668 int main(int c, char **v) {
5609 return c == 1 ? 0 : 5669 return c == 1 ? 0 :
5610 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 5670 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
5611 XpmIncludeVersion < 30406 ? 2 : 5671 XpmIncludeVersion < 30406 ? 2 :
5612 0 ; 5672 0 ;
5613 } 5673 }
5614 EOF 5674 EOF
5615 if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5675 if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5616 then 5676 then
5617 ./conftest foobar; xpm_status=$?; 5677 ./conftest foobar; xpm_status=$?;
5618 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 5678 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
5619 else 5679 else
5620 echo "configure: failed program was:" >&5 5680 echo "configure: failed program was:" >&5
5648 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 5708 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5649 fi 5709 fi
5650 5710
5651 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 5711 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5652 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 5712 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5653 echo "configure:5654: checking for compface.h" >&5 5713 echo "configure:5714: checking for compface.h" >&5
5654 5714
5655 cat > conftest.$ac_ext <<EOF 5715 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure" 5716 #line 5717 "configure"
5657 #include "confdefs.h" 5717 #include "confdefs.h"
5658 #include <compface.h> 5718 #include <compface.h>
5659 EOF 5719 EOF
5660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5661 { (eval echo configure:5662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5721 { (eval echo configure:5722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5662 ac_err=`grep -v '^ *+' conftest.out` 5722 ac_err=`grep -v '^ *+' conftest.out`
5663 if test -z "$ac_err"; then 5723 if test -z "$ac_err"; then
5664 rm -rf conftest* 5724 rm -rf conftest*
5665 eval "ac_cv_header_$ac_safe=yes" 5725 eval "ac_cv_header_$ac_safe=yes"
5666 else 5726 else
5679 with_xface=no 5739 with_xface=no
5680 fi 5740 fi
5681 } 5741 }
5682 test -z "$with_xface" && { 5742 test -z "$with_xface" && {
5683 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 5743 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5684 echo "configure:5685: checking for UnGenFace in -lcompface" >&5 5744 echo "configure:5745: checking for UnGenFace in -lcompface" >&5
5685 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 5745 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5686 5746
5687 xe_check_libs=" -lcompface " 5747 xe_check_libs=" -lcompface "
5688 cat > conftest.$ac_ext <<EOF 5748 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure" 5749 #line 5750 "configure"
5690 #include "confdefs.h" 5750 #include "confdefs.h"
5691 /* Override any gcc2 internal prototype to avoid an error. */ 5751 /* Override any gcc2 internal prototype to avoid an error. */
5692 /* We use char because int might match the return type of a gcc2 5752 /* We use char because int might match the return type of a gcc2
5693 builtin and then its argument prototype would still apply. */ 5753 builtin and then its argument prototype would still apply. */
5694 char UnGenFace(); 5754 char UnGenFace();
5695 5755
5696 int main() { 5756 int main() {
5697 UnGenFace() 5757 UnGenFace()
5698 ; return 0; } 5758 ; return 0; }
5699 EOF 5759 EOF
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5701 rm -rf conftest* 5761 rm -rf conftest*
5702 eval "ac_cv_lib_$ac_lib_var=yes" 5762 eval "ac_cv_lib_$ac_lib_var=yes"
5703 else 5763 else
5704 echo "configure: failed program was:" >&5 5764 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5 5765 cat conftest.$ac_ext >&5
5731 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 5791 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
5732 fi 5792 fi
5733 5793
5734 test "$with_imagick" != "no" && { ac_safe=`echo "magick/magick.h" | sed 'y%./+-%__p_%'` 5794 test "$with_imagick" != "no" && { ac_safe=`echo "magick/magick.h" | sed 'y%./+-%__p_%'`
5735 echo $ac_n "checking for magick/magick.h""... $ac_c" 1>&6 5795 echo $ac_n "checking for magick/magick.h""... $ac_c" 1>&6
5736 echo "configure:5737: checking for magick/magick.h" >&5 5796 echo "configure:5797: checking for magick/magick.h" >&5
5737 5797
5738 cat > conftest.$ac_ext <<EOF 5798 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure" 5799 #line 5800 "configure"
5740 #include "confdefs.h" 5800 #include "confdefs.h"
5741 #include <magick/magick.h> 5801 #include <magick/magick.h>
5742 EOF 5802 EOF
5743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5744 { (eval echo configure:5745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5804 { (eval echo configure:5805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5745 ac_err=`grep -v '^ *+' conftest.out` 5805 ac_err=`grep -v '^ *+' conftest.out`
5746 if test -z "$ac_err"; then 5806 if test -z "$ac_err"; then
5747 rm -rf conftest* 5807 rm -rf conftest*
5748 eval "ac_cv_header_$ac_safe=yes" 5808 eval "ac_cv_header_$ac_safe=yes"
5749 else 5809 else
5759 : 5819 :
5760 else 5820 else
5761 echo "$ac_t""no" 1>&6 5821 echo "$ac_t""no" 1>&6
5762 ac_safe=`echo "X11/magick/magick.h" | sed 'y%./+-%__p_%'` 5822 ac_safe=`echo "X11/magick/magick.h" | sed 'y%./+-%__p_%'`
5763 echo $ac_n "checking for X11/magick/magick.h""... $ac_c" 1>&6 5823 echo $ac_n "checking for X11/magick/magick.h""... $ac_c" 1>&6
5764 echo "configure:5765: checking for X11/magick/magick.h" >&5 5824 echo "configure:5825: checking for X11/magick/magick.h" >&5
5765 5825
5766 cat > conftest.$ac_ext <<EOF 5826 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure" 5827 #line 5828 "configure"
5768 #include "confdefs.h" 5828 #include "confdefs.h"
5769 #include <X11/magick/magick.h> 5829 #include <X11/magick/magick.h>
5770 EOF 5830 EOF
5771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5772 { (eval echo configure:5773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5832 { (eval echo configure:5833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5773 ac_err=`grep -v '^ *+' conftest.out` 5833 ac_err=`grep -v '^ *+' conftest.out`
5774 if test -z "$ac_err"; then 5834 if test -z "$ac_err"; then
5775 rm -rf conftest* 5835 rm -rf conftest*
5776 eval "ac_cv_header_$ac_safe=yes" 5836 eval "ac_cv_header_$ac_safe=yes"
5777 else 5837 else
5801 } 5861 }
5802 test "$with_imagick" != "no" && { 5862 test "$with_imagick" != "no" && {
5803 imagick_libs="" 5863 imagick_libs=""
5804 5864
5805 echo $ac_n "checking for XDPSPixelsPerPoint in -ldps""... $ac_c" 1>&6 5865 echo $ac_n "checking for XDPSPixelsPerPoint in -ldps""... $ac_c" 1>&6
5806 echo "configure:5807: checking for XDPSPixelsPerPoint in -ldps" >&5 5866 echo "configure:5867: checking for XDPSPixelsPerPoint in -ldps" >&5
5807 ac_lib_var=`echo dps'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'` 5867 ac_lib_var=`echo dps'_'XDPSPixelsPerPoint | sed 'y%./+-%__p_%'`
5808 5868
5809 xe_check_libs="-ldpstk -ldps " 5869 xe_check_libs="-ldpstk -ldps "
5810 cat > conftest.$ac_ext <<EOF 5870 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure" 5871 #line 5872 "configure"
5812 #include "confdefs.h" 5872 #include "confdefs.h"
5813 /* Override any gcc2 internal prototype to avoid an error. */ 5873 /* Override any gcc2 internal prototype to avoid an error. */
5814 /* We use char because int might match the return type of a gcc2 5874 /* We use char because int might match the return type of a gcc2
5815 builtin and then its argument prototype would still apply. */ 5875 builtin and then its argument prototype would still apply. */
5816 char XDPSPixelsPerPoint(); 5876 char XDPSPixelsPerPoint();
5817 5877
5818 int main() { 5878 int main() {
5819 XDPSPixelsPerPoint() 5879 XDPSPixelsPerPoint()
5820 ; return 0; } 5880 ; return 0; }
5821 EOF 5881 EOF
5822 if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5823 rm -rf conftest* 5883 rm -rf conftest*
5824 eval "ac_cv_lib_$ac_lib_var=yes" 5884 eval "ac_cv_lib_$ac_lib_var=yes"
5825 else 5885 else
5826 echo "configure: failed program was:" >&5 5886 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5 5887 cat conftest.$ac_ext >&5
5839 fi 5899 fi
5840 5900
5841 5901
5842 5902
5843 echo $ac_n "checking for FPX_SetToolkitMemoryLimit in -lfpx""... $ac_c" 1>&6 5903 echo $ac_n "checking for FPX_SetToolkitMemoryLimit in -lfpx""... $ac_c" 1>&6
5844 echo "configure:5845: checking for FPX_SetToolkitMemoryLimit in -lfpx" >&5 5904 echo "configure:5905: checking for FPX_SetToolkitMemoryLimit in -lfpx" >&5
5845 ac_lib_var=`echo fpx'_'FPX_SetToolkitMemoryLimit | sed 'y%./+-%__p_%'` 5905 ac_lib_var=`echo fpx'_'FPX_SetToolkitMemoryLimit | sed 'y%./+-%__p_%'`
5846 5906
5847 xe_check_libs=" -lfpx " 5907 xe_check_libs=" -lfpx "
5848 cat > conftest.$ac_ext <<EOF 5908 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure" 5909 #line 5910 "configure"
5850 #include "confdefs.h" 5910 #include "confdefs.h"
5851 /* Override any gcc2 internal prototype to avoid an error. */ 5911 /* Override any gcc2 internal prototype to avoid an error. */
5852 /* We use char because int might match the return type of a gcc2 5912 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */ 5913 builtin and then its argument prototype would still apply. */
5854 char FPX_SetToolkitMemoryLimit(); 5914 char FPX_SetToolkitMemoryLimit();
5855 5915
5856 int main() { 5916 int main() {
5857 FPX_SetToolkitMemoryLimit() 5917 FPX_SetToolkitMemoryLimit()
5858 ; return 0; } 5918 ; return 0; }
5859 EOF 5919 EOF
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5861 rm -rf conftest* 5921 rm -rf conftest*
5862 eval "ac_cv_lib_$ac_lib_var=yes" 5922 eval "ac_cv_lib_$ac_lib_var=yes"
5863 else 5923 else
5864 echo "configure: failed program was:" >&5 5924 echo "configure: failed program was:" >&5
5865 cat conftest.$ac_ext >&5 5925 cat conftest.$ac_ext >&5
5877 fi 5937 fi
5878 5938
5879 5939
5880 5940
5881 echo $ac_n "checking for DF24getdims in -ldf""... $ac_c" 1>&6 5941 echo $ac_n "checking for DF24getdims in -ldf""... $ac_c" 1>&6
5882 echo "configure:5883: checking for DF24getdims in -ldf" >&5 5942 echo "configure:5943: checking for DF24getdims in -ldf" >&5
5883 ac_lib_var=`echo df'_'DF24getdims | sed 'y%./+-%__p_%'` 5943 ac_lib_var=`echo df'_'DF24getdims | sed 'y%./+-%__p_%'`
5884 5944
5885 xe_check_libs=" -ldf " 5945 xe_check_libs=" -ldf "
5886 cat > conftest.$ac_ext <<EOF 5946 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure" 5947 #line 5948 "configure"
5888 #include "confdefs.h" 5948 #include "confdefs.h"
5889 /* Override any gcc2 internal prototype to avoid an error. */ 5949 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2 5950 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */ 5951 builtin and then its argument prototype would still apply. */
5892 char DF24getdims(); 5952 char DF24getdims();
5893 5953
5894 int main() { 5954 int main() {
5895 DF24getdims() 5955 DF24getdims()
5896 ; return 0; } 5956 ; return 0; }
5897 EOF 5957 EOF
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5899 rm -rf conftest* 5959 rm -rf conftest*
5900 eval "ac_cv_lib_$ac_lib_var=yes" 5960 eval "ac_cv_lib_$ac_lib_var=yes"
5901 else 5961 else
5902 echo "configure: failed program was:" >&5 5962 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5 5963 cat conftest.$ac_ext >&5
5915 fi 5975 fi
5916 5976
5917 5977
5918 5978
5919 echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6 5979 echo $ac_n "checking for jbg_dec_init in -ljbig""... $ac_c" 1>&6
5920 echo "configure:5921: checking for jbg_dec_init in -ljbig" >&5 5980 echo "configure:5981: checking for jbg_dec_init in -ljbig" >&5
5921 ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'` 5981 ac_lib_var=`echo jbig'_'jbg_dec_init | sed 'y%./+-%__p_%'`
5922 5982
5923 xe_check_libs=" -ljbig " 5983 xe_check_libs=" -ljbig "
5924 cat > conftest.$ac_ext <<EOF 5984 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure" 5985 #line 5986 "configure"
5926 #include "confdefs.h" 5986 #include "confdefs.h"
5927 /* Override any gcc2 internal prototype to avoid an error. */ 5987 /* Override any gcc2 internal prototype to avoid an error. */
5928 /* We use char because int might match the return type of a gcc2 5988 /* We use char because int might match the return type of a gcc2
5929 builtin and then its argument prototype would still apply. */ 5989 builtin and then its argument prototype would still apply. */
5930 char jbg_dec_init(); 5990 char jbg_dec_init();
5931 5991
5932 int main() { 5992 int main() {
5933 jbg_dec_init() 5993 jbg_dec_init()
5934 ; return 0; } 5994 ; return 0; }
5935 EOF 5995 EOF
5936 if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5937 rm -rf conftest* 5997 rm -rf conftest*
5938 eval "ac_cv_lib_$ac_lib_var=yes" 5998 eval "ac_cv_lib_$ac_lib_var=yes"
5939 else 5999 else
5940 echo "configure: failed program was:" >&5 6000 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5 6001 cat conftest.$ac_ext >&5
5953 fi 6013 fi
5954 6014
5955 6015
5956 6016
5957 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 6017 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
5958 echo "configure:5959: checking for jpeg_read_header in -ljpeg" >&5 6018 echo "configure:6019: checking for jpeg_read_header in -ljpeg" >&5
5959 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` 6019 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
5960 6020
5961 xe_check_libs=" -ljpeg " 6021 xe_check_libs=" -ljpeg "
5962 cat > conftest.$ac_ext <<EOF 6022 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure" 6023 #line 6024 "configure"
5964 #include "confdefs.h" 6024 #include "confdefs.h"
5965 /* Override any gcc2 internal prototype to avoid an error. */ 6025 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2 6026 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */ 6027 builtin and then its argument prototype would still apply. */
5968 char jpeg_read_header(); 6028 char jpeg_read_header();
5969 6029
5970 int main() { 6030 int main() {
5971 jpeg_read_header() 6031 jpeg_read_header()
5972 ; return 0; } 6032 ; return 0; }
5973 EOF 6033 EOF
5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5975 rm -rf conftest* 6035 rm -rf conftest*
5976 eval "ac_cv_lib_$ac_lib_var=yes" 6036 eval "ac_cv_lib_$ac_lib_var=yes"
5977 else 6037 else
5978 echo "configure: failed program was:" >&5 6038 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5 6039 cat conftest.$ac_ext >&5
5991 fi 6051 fi
5992 6052
5993 6053
5994 6054
5995 echo $ac_n "checking for OpenMPEG in -lmpeg""... $ac_c" 1>&6 6055 echo $ac_n "checking for OpenMPEG in -lmpeg""... $ac_c" 1>&6
5996 echo "configure:5997: checking for OpenMPEG in -lmpeg" >&5 6056 echo "configure:6057: checking for OpenMPEG in -lmpeg" >&5
5997 ac_lib_var=`echo mpeg'_'OpenMPEG | sed 'y%./+-%__p_%'` 6057 ac_lib_var=`echo mpeg'_'OpenMPEG | sed 'y%./+-%__p_%'`
5998 6058
5999 xe_check_libs=" -lmpeg " 6059 xe_check_libs=" -lmpeg "
6000 cat > conftest.$ac_ext <<EOF 6060 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure" 6061 #line 6062 "configure"
6002 #include "confdefs.h" 6062 #include "confdefs.h"
6003 /* Override any gcc2 internal prototype to avoid an error. */ 6063 /* Override any gcc2 internal prototype to avoid an error. */
6004 /* We use char because int might match the return type of a gcc2 6064 /* We use char because int might match the return type of a gcc2
6005 builtin and then its argument prototype would still apply. */ 6065 builtin and then its argument prototype would still apply. */
6006 char OpenMPEG(); 6066 char OpenMPEG();
6007 6067
6008 int main() { 6068 int main() {
6009 OpenMPEG() 6069 OpenMPEG()
6010 ; return 0; } 6070 ; return 0; }
6011 EOF 6071 EOF
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6072 if { (eval echo configure:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6013 rm -rf conftest* 6073 rm -rf conftest*
6014 eval "ac_cv_lib_$ac_lib_var=yes" 6074 eval "ac_cv_lib_$ac_lib_var=yes"
6015 else 6075 else
6016 echo "configure: failed program was:" >&5 6076 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5 6077 cat conftest.$ac_ext >&5
6029 fi 6089 fi
6030 6090
6031 6091
6032 6092
6033 echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6 6093 echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6
6034 echo "configure:6035: checking for TT_Init_FreeType in -lttf" >&5 6094 echo "configure:6095: checking for TT_Init_FreeType in -lttf" >&5
6035 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'` 6095 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'`
6036 6096
6037 xe_check_libs=" -lttf " 6097 xe_check_libs=" -lttf "
6038 cat > conftest.$ac_ext <<EOF 6098 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure" 6099 #line 6100 "configure"
6040 #include "confdefs.h" 6100 #include "confdefs.h"
6041 /* Override any gcc2 internal prototype to avoid an error. */ 6101 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2 6102 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */ 6103 builtin and then its argument prototype would still apply. */
6044 char TT_Init_FreeType(); 6104 char TT_Init_FreeType();
6045 6105
6046 int main() { 6106 int main() {
6047 TT_Init_FreeType() 6107 TT_Init_FreeType()
6048 ; return 0; } 6108 ; return 0; }
6049 EOF 6109 EOF
6050 if { (eval echo configure:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6051 rm -rf conftest* 6111 rm -rf conftest*
6052 eval "ac_cv_lib_$ac_lib_var=yes" 6112 eval "ac_cv_lib_$ac_lib_var=yes"
6053 else 6113 else
6054 echo "configure: failed program was:" >&5 6114 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5 6115 cat conftest.$ac_ext >&5
6067 fi 6127 fi
6068 6128
6069 6129
6070 6130
6071 echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6 6131 echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6
6072 echo "configure:6073: checking for png_create_read_struct in -lpng" >&5 6132 echo "configure:6133: checking for png_create_read_struct in -lpng" >&5
6073 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'` 6133 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
6074 6134
6075 xe_check_libs=" -lpng " 6135 xe_check_libs=" -lpng "
6076 cat > conftest.$ac_ext <<EOF 6136 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure" 6137 #line 6138 "configure"
6078 #include "confdefs.h" 6138 #include "confdefs.h"
6079 /* Override any gcc2 internal prototype to avoid an error. */ 6139 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2 6140 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */ 6141 builtin and then its argument prototype would still apply. */
6082 char png_create_read_struct(); 6142 char png_create_read_struct();
6083 6143
6084 int main() { 6144 int main() {
6085 png_create_read_struct() 6145 png_create_read_struct()
6086 ; return 0; } 6146 ; return 0; }
6087 EOF 6147 EOF
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6089 rm -rf conftest* 6149 rm -rf conftest*
6090 eval "ac_cv_lib_$ac_lib_var=yes" 6150 eval "ac_cv_lib_$ac_lib_var=yes"
6091 else 6151 else
6092 echo "configure: failed program was:" >&5 6152 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5 6153 cat conftest.$ac_ext >&5
6103 else 6163 else
6104 echo "$ac_t""no" 1>&6 6164 echo "$ac_t""no" 1>&6
6105 xe_msg_checking="for png_create_read_struct in -lpng" 6165 xe_msg_checking="for png_create_read_struct in -lpng"
6106 test -n "-lz" && xe_msg_checking="$xe_msg_checking using extra libs -lz" 6166 test -n "-lz" && xe_msg_checking="$xe_msg_checking using extra libs -lz"
6107 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6167 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6108 echo "configure:6109: checking "$xe_msg_checking"" >&5 6168 echo "configure:6169: checking "$xe_msg_checking"" >&5
6109 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'` 6169 ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'`
6110 6170
6111 xe_check_libs=" -lpng -lz" 6171 xe_check_libs=" -lpng -lz"
6112 cat > conftest.$ac_ext <<EOF 6172 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure" 6173 #line 6174 "configure"
6114 #include "confdefs.h" 6174 #include "confdefs.h"
6115 /* Override any gcc2 internal prototype to avoid an error. */ 6175 /* Override any gcc2 internal prototype to avoid an error. */
6116 /* We use char because int might match the return type of a gcc2 6176 /* We use char because int might match the return type of a gcc2
6117 builtin and then its argument prototype would still apply. */ 6177 builtin and then its argument prototype would still apply. */
6118 char png_create_read_struct(); 6178 char png_create_read_struct();
6119 6179
6120 int main() { 6180 int main() {
6121 png_create_read_struct() 6181 png_create_read_struct()
6122 ; return 0; } 6182 ; return 0; }
6123 EOF 6183 EOF
6124 if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6125 rm -rf conftest* 6185 rm -rf conftest*
6126 eval "ac_cv_lib_$ac_lib_var=yes" 6186 eval "ac_cv_lib_$ac_lib_var=yes"
6127 else 6187 else
6128 echo "configure: failed program was:" >&5 6188 echo "configure: failed program was:" >&5
6129 cat conftest.$ac_ext >&5 6189 cat conftest.$ac_ext >&5
6144 fi 6204 fi
6145 6205
6146 6206
6147 6207
6148 echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6 6208 echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
6149 echo "configure:6150: checking for TIFFOpen in -ltiff" >&5 6209 echo "configure:6210: checking for TIFFOpen in -ltiff" >&5
6150 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'` 6210 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
6151 6211
6152 xe_check_libs=" -ltiff " 6212 xe_check_libs=" -ltiff "
6153 cat > conftest.$ac_ext <<EOF 6213 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure" 6214 #line 6215 "configure"
6155 #include "confdefs.h" 6215 #include "confdefs.h"
6156 /* Override any gcc2 internal prototype to avoid an error. */ 6216 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2 6217 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */ 6218 builtin and then its argument prototype would still apply. */
6159 char TIFFOpen(); 6219 char TIFFOpen();
6160 6220
6161 int main() { 6221 int main() {
6162 TIFFOpen() 6222 TIFFOpen()
6163 ; return 0; } 6223 ; return 0; }
6164 EOF 6224 EOF
6165 if { (eval echo configure:6166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6166 rm -rf conftest* 6226 rm -rf conftest*
6167 eval "ac_cv_lib_$ac_lib_var=yes" 6227 eval "ac_cv_lib_$ac_lib_var=yes"
6168 else 6228 else
6169 echo "configure: failed program was:" >&5 6229 echo "configure: failed program was:" >&5
6170 cat conftest.$ac_ext >&5 6230 cat conftest.$ac_ext >&5
6180 else 6240 else
6181 echo "$ac_t""no" 1>&6 6241 echo "$ac_t""no" 1>&6
6182 xe_msg_checking="for TIFFOpen in -ltiff" 6242 xe_msg_checking="for TIFFOpen in -ltiff"
6183 test -n "-ljpeg -lz" && xe_msg_checking="$xe_msg_checking using extra libs -ljpeg -lz" 6243 test -n "-ljpeg -lz" && xe_msg_checking="$xe_msg_checking using extra libs -ljpeg -lz"
6184 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6244 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6185 echo "configure:6186: checking "$xe_msg_checking"" >&5 6245 echo "configure:6246: checking "$xe_msg_checking"" >&5
6186 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'` 6246 ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
6187 6247
6188 xe_check_libs=" -ltiff -ljpeg -lz" 6248 xe_check_libs=" -ltiff -ljpeg -lz"
6189 cat > conftest.$ac_ext <<EOF 6249 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure" 6250 #line 6251 "configure"
6191 #include "confdefs.h" 6251 #include "confdefs.h"
6192 /* Override any gcc2 internal prototype to avoid an error. */ 6252 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2 6253 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */ 6254 builtin and then its argument prototype would still apply. */
6195 char TIFFOpen(); 6255 char TIFFOpen();
6196 6256
6197 int main() { 6257 int main() {
6198 TIFFOpen() 6258 TIFFOpen()
6199 ; return 0; } 6259 ; return 0; }
6200 EOF 6260 EOF
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6202 rm -rf conftest* 6262 rm -rf conftest*
6203 eval "ac_cv_lib_$ac_lib_var=yes" 6263 eval "ac_cv_lib_$ac_lib_var=yes"
6204 else 6264 else
6205 echo "configure: failed program was:" >&5 6265 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5 6266 cat conftest.$ac_ext >&5
6223 6283
6224 libs_x="$libs_x $imagick_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$imagick_libs\" to \$libs_x"; fi 6284 libs_x="$libs_x $imagick_libs" && if test "$extra_verbose" = "yes"; then echo " Appending \"$imagick_libs\" to \$libs_x"; fi
6225 } 6285 }
6226 test -z "$with_imagick" && { 6286 test -z "$with_imagick" && {
6227 echo $ac_n "checking for MogrifyImage in -lMagick""... $ac_c" 1>&6 6287 echo $ac_n "checking for MogrifyImage in -lMagick""... $ac_c" 1>&6
6228 echo "configure:6229: checking for MogrifyImage in -lMagick" >&5 6288 echo "configure:6289: checking for MogrifyImage in -lMagick" >&5
6229 ac_lib_var=`echo Magick'_'MogrifyImage | sed 'y%./+-%__p_%'` 6289 ac_lib_var=`echo Magick'_'MogrifyImage | sed 'y%./+-%__p_%'`
6230 6290
6231 xe_check_libs=" -lMagick " 6291 xe_check_libs=" -lMagick "
6232 cat > conftest.$ac_ext <<EOF 6292 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure" 6293 #line 6294 "configure"
6234 #include "confdefs.h" 6294 #include "confdefs.h"
6235 /* Override any gcc2 internal prototype to avoid an error. */ 6295 /* Override any gcc2 internal prototype to avoid an error. */
6236 /* We use char because int might match the return type of a gcc2 6296 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */ 6297 builtin and then its argument prototype would still apply. */
6238 char MogrifyImage(); 6298 char MogrifyImage();
6239 6299
6240 int main() { 6300 int main() {
6241 MogrifyImage() 6301 MogrifyImage()
6242 ; return 0; } 6302 ; return 0; }
6243 EOF 6303 EOF
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6245 rm -rf conftest* 6305 rm -rf conftest*
6246 eval "ac_cv_lib_$ac_lib_var=yes" 6306 eval "ac_cv_lib_$ac_lib_var=yes"
6247 else 6307 else
6248 echo "configure: failed program was:" >&5 6308 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5 6309 cat conftest.$ac_ext >&5
6275 libs_x="-lMagick $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lMagick\" to \$libs_x"; fi 6335 libs_x="-lMagick $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lMagick\" to \$libs_x"; fi
6276 fi 6336 fi
6277 6337
6278 6338
6279 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 6339 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6280 echo "configure:6281: checking for XawScrollbarSetThumb in -lXaw" >&5 6340 echo "configure:6341: checking for XawScrollbarSetThumb in -lXaw" >&5
6281 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 6341 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6282 6342
6283 xe_check_libs=" -lXaw " 6343 xe_check_libs=" -lXaw "
6284 cat > conftest.$ac_ext <<EOF 6344 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure" 6345 #line 6346 "configure"
6286 #include "confdefs.h" 6346 #include "confdefs.h"
6287 /* Override any gcc2 internal prototype to avoid an error. */ 6347 /* Override any gcc2 internal prototype to avoid an error. */
6288 /* We use char because int might match the return type of a gcc2 6348 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */ 6349 builtin and then its argument prototype would still apply. */
6290 char XawScrollbarSetThumb(); 6350 char XawScrollbarSetThumb();
6291 6351
6292 int main() { 6352 int main() {
6293 XawScrollbarSetThumb() 6353 XawScrollbarSetThumb()
6294 ; return 0; } 6354 ; return 0; }
6295 EOF 6355 EOF
6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6297 rm -rf conftest* 6357 rm -rf conftest*
6298 eval "ac_cv_lib_$ac_lib_var=yes" 6358 eval "ac_cv_lib_$ac_lib_var=yes"
6299 else 6359 else
6300 echo "configure: failed program was:" >&5 6360 echo "configure: failed program was:" >&5
6301 cat conftest.$ac_ext >&5 6361 cat conftest.$ac_ext >&5
6315 6375
6316 6376
6317 6377
6318 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6378 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6319 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6379 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6320 echo "configure:6321: checking for Xm/Xm.h" >&5 6380 echo "configure:6381: checking for Xm/Xm.h" >&5
6321 6381
6322 cat > conftest.$ac_ext <<EOF 6382 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure" 6383 #line 6384 "configure"
6324 #include "confdefs.h" 6384 #include "confdefs.h"
6325 #include <Xm/Xm.h> 6385 #include <Xm/Xm.h>
6326 EOF 6386 EOF
6327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6328 { (eval echo configure:6329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6388 { (eval echo configure:6389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6329 ac_err=`grep -v '^ *+' conftest.out` 6389 ac_err=`grep -v '^ *+' conftest.out`
6330 if test -z "$ac_err"; then 6390 if test -z "$ac_err"; then
6331 rm -rf conftest* 6391 rm -rf conftest*
6332 eval "ac_cv_header_$ac_safe=yes" 6392 eval "ac_cv_header_$ac_safe=yes"
6333 else 6393 else
6340 rm -f conftest* 6400 rm -f conftest*
6341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6 6402 echo "$ac_t""yes" 1>&6
6343 6403
6344 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6404 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6345 echo "configure:6346: checking for XmStringFree in -lXm" >&5 6405 echo "configure:6406: checking for XmStringFree in -lXm" >&5
6346 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6406 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6347 6407
6348 xe_check_libs=" -lXm " 6408 xe_check_libs=" -lXm "
6349 cat > conftest.$ac_ext <<EOF 6409 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure" 6410 #line 6411 "configure"
6351 #include "confdefs.h" 6411 #include "confdefs.h"
6352 /* Override any gcc2 internal prototype to avoid an error. */ 6412 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2 6413 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */ 6414 builtin and then its argument prototype would still apply. */
6355 char XmStringFree(); 6415 char XmStringFree();
6356 6416
6357 int main() { 6417 int main() {
6358 XmStringFree() 6418 XmStringFree()
6359 ; return 0; } 6419 ; return 0; }
6360 EOF 6420 EOF
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6362 rm -rf conftest* 6422 rm -rf conftest*
6363 eval "ac_cv_lib_$ac_lib_var=yes" 6423 eval "ac_cv_lib_$ac_lib_var=yes"
6364 else 6424 else
6365 echo "configure: failed program was:" >&5 6425 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5 6426 cat conftest.$ac_ext >&5
6613 test -z "$with_mule" && with_mule=no 6673 test -z "$with_mule" && with_mule=no
6614 6674
6615 6675
6616 if test "$with_mule" = "yes" ; then 6676 if test "$with_mule" = "yes" ; then
6617 echo "checking for Mule-related features" 1>&6 6677 echo "checking for Mule-related features" 1>&6
6618 echo "configure:6619: checking for Mule-related features" >&5 6678 echo "configure:6679: checking for Mule-related features" >&5
6619 { test "$extra_verbose" = "yes" && cat << \EOF 6679 { test "$extra_verbose" = "yes" && cat << \EOF
6620 Defining MULE 6680 Defining MULE
6621 EOF 6681 EOF
6622 cat >> confdefs.h <<\EOF 6682 cat >> confdefs.h <<\EOF
6623 #define MULE 1 6683 #define MULE 1
6630 6690
6631 for ac_hdr in libintl.h 6691 for ac_hdr in libintl.h
6632 do 6692 do
6633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6635 echo "configure:6636: checking for $ac_hdr" >&5 6695 echo "configure:6696: checking for $ac_hdr" >&5
6636 6696
6637 cat > conftest.$ac_ext <<EOF 6697 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure" 6698 #line 6699 "configure"
6639 #include "confdefs.h" 6699 #include "confdefs.h"
6640 #include <$ac_hdr> 6700 #include <$ac_hdr>
6641 EOF 6701 EOF
6642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6643 { (eval echo configure:6644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6703 { (eval echo configure:6704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6644 ac_err=`grep -v '^ *+' conftest.out` 6704 ac_err=`grep -v '^ *+' conftest.out`
6645 if test -z "$ac_err"; then 6705 if test -z "$ac_err"; then
6646 rm -rf conftest* 6706 rm -rf conftest*
6647 eval "ac_cv_header_$ac_safe=yes" 6707 eval "ac_cv_header_$ac_safe=yes"
6648 else 6708 else
6669 fi 6729 fi
6670 done 6730 done
6671 6731
6672 6732
6673 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6733 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6674 echo "configure:6675: checking for strerror in -lintl" >&5 6734 echo "configure:6735: checking for strerror in -lintl" >&5
6675 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6735 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6676 6736
6677 xe_check_libs=" -lintl " 6737 xe_check_libs=" -lintl "
6678 cat > conftest.$ac_ext <<EOF 6738 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure" 6739 #line 6740 "configure"
6680 #include "confdefs.h" 6740 #include "confdefs.h"
6681 /* Override any gcc2 internal prototype to avoid an error. */ 6741 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2 6742 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */ 6743 builtin and then its argument prototype would still apply. */
6684 char strerror(); 6744 char strerror();
6685 6745
6686 int main() { 6746 int main() {
6687 strerror() 6747 strerror()
6688 ; return 0; } 6748 ; return 0; }
6689 EOF 6749 EOF
6690 if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6691 rm -rf conftest* 6751 rm -rf conftest*
6692 eval "ac_cv_lib_$ac_lib_var=yes" 6752 eval "ac_cv_lib_$ac_lib_var=yes"
6693 else 6753 else
6694 echo "configure: failed program was:" >&5 6754 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5 6755 cat conftest.$ac_ext >&5
6718 fi 6778 fi
6719 6779
6720 6780
6721 6781
6722 echo "checking for Mule input methods" 1>&6 6782 echo "checking for Mule input methods" 1>&6
6723 echo "configure:6724: checking for Mule input methods" >&5 6783 echo "configure:6784: checking for Mule input methods" >&5
6724 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6784 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6725 case "$with_xim" in "" | "yes" ) 6785 case "$with_xim" in "" | "yes" )
6726 echo "checking for XIM" 1>&6 6786 echo "checking for XIM" 1>&6
6727 echo "configure:6728: checking for XIM" >&5 6787 echo "configure:6788: checking for XIM" >&5
6728 6788
6729 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6789 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6730 echo "configure:6731: checking for XmImMbLookupString in -lXm" >&5 6790 echo "configure:6791: checking for XmImMbLookupString in -lXm" >&5
6731 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6791 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6732 6792
6733 xe_check_libs=" -lXm " 6793 xe_check_libs=" -lXm "
6734 cat > conftest.$ac_ext <<EOF 6794 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure" 6795 #line 6796 "configure"
6736 #include "confdefs.h" 6796 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */ 6797 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2 6798 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */ 6799 builtin and then its argument prototype would still apply. */
6740 char XmImMbLookupString(); 6800 char XmImMbLookupString();
6741 6801
6742 int main() { 6802 int main() {
6743 XmImMbLookupString() 6803 XmImMbLookupString()
6744 ; return 0; } 6804 ; return 0; }
6745 EOF 6805 EOF
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6747 rm -rf conftest* 6807 rm -rf conftest*
6748 eval "ac_cv_lib_$ac_lib_var=yes" 6808 eval "ac_cv_lib_$ac_lib_var=yes"
6749 else 6809 else
6750 echo "configure: failed program was:" >&5 6810 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5 6811 cat conftest.$ac_ext >&5
6806 fi 6866 fi
6807 fi 6867 fi
6808 6868
6809 if test "$with_xfs" = "yes" ; then 6869 if test "$with_xfs" = "yes" ; then
6810 echo "checking for XFontSet" 1>&6 6870 echo "checking for XFontSet" 1>&6
6811 echo "configure:6812: checking for XFontSet" >&5 6871 echo "configure:6872: checking for XFontSet" >&5
6812 6872
6813 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 6873 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6814 echo "configure:6815: checking for XmbDrawString in -lX11" >&5 6874 echo "configure:6875: checking for XmbDrawString in -lX11" >&5
6815 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 6875 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6816 6876
6817 xe_check_libs=" -lX11 " 6877 xe_check_libs=" -lX11 "
6818 cat > conftest.$ac_ext <<EOF 6878 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure" 6879 #line 6880 "configure"
6820 #include "confdefs.h" 6880 #include "confdefs.h"
6821 /* Override any gcc2 internal prototype to avoid an error. */ 6881 /* Override any gcc2 internal prototype to avoid an error. */
6822 /* We use char because int might match the return type of a gcc2 6882 /* We use char because int might match the return type of a gcc2
6823 builtin and then its argument prototype would still apply. */ 6883 builtin and then its argument prototype would still apply. */
6824 char XmbDrawString(); 6884 char XmbDrawString();
6825 6885
6826 int main() { 6886 int main() {
6827 XmbDrawString() 6887 XmbDrawString()
6828 ; return 0; } 6888 ; return 0; }
6829 EOF 6889 EOF
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6831 rm -rf conftest* 6891 rm -rf conftest*
6832 eval "ac_cv_lib_$ac_lib_var=yes" 6892 eval "ac_cv_lib_$ac_lib_var=yes"
6833 else 6893 else
6834 echo "configure: failed program was:" >&5 6894 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5 6895 cat conftest.$ac_ext >&5
6865 fi 6925 fi
6866 fi 6926 fi
6867 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6927 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6868 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6928 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6869 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6929 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6870 echo "configure:6871: checking for wnn/jllib.h" >&5 6930 echo "configure:6931: checking for wnn/jllib.h" >&5
6871 6931
6872 cat > conftest.$ac_ext <<EOF 6932 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure" 6933 #line 6934 "configure"
6874 #include "confdefs.h" 6934 #include "confdefs.h"
6875 #include <wnn/jllib.h> 6935 #include <wnn/jllib.h>
6876 EOF 6936 EOF
6877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6878 { (eval echo configure:6879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6879 ac_err=`grep -v '^ *+' conftest.out` 6939 ac_err=`grep -v '^ *+' conftest.out`
6880 if test -z "$ac_err"; then 6940 if test -z "$ac_err"; then
6881 rm -rf conftest* 6941 rm -rf conftest*
6882 eval "ac_cv_header_$ac_safe=yes" 6942 eval "ac_cv_header_$ac_safe=yes"
6883 else 6943 else
6898 } 6958 }
6899 if test "$with_wnn" != "no"; then 6959 if test "$with_wnn" != "no"; then
6900 for ac_func in crypt 6960 for ac_func in crypt
6901 do 6961 do
6902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6903 echo "configure:6904: checking for $ac_func" >&5 6963 echo "configure:6964: checking for $ac_func" >&5
6904 6964
6905 cat > conftest.$ac_ext <<EOF 6965 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure" 6966 #line 6967 "configure"
6907 #include "confdefs.h" 6967 #include "confdefs.h"
6908 /* System header to define __stub macros and hopefully few prototypes, 6968 /* System header to define __stub macros and hopefully few prototypes,
6909 which can conflict with char $ac_func(); below. */ 6969 which can conflict with char $ac_func(); below. */
6910 #include <assert.h> 6970 #include <assert.h>
6911 /* Override any gcc2 internal prototype to avoid an error. */ 6971 /* Override any gcc2 internal prototype to avoid an error. */
6924 $ac_func(); 6984 $ac_func();
6925 #endif 6985 #endif
6926 6986
6927 ; return 0; } 6987 ; return 0; }
6928 EOF 6988 EOF
6929 if { (eval echo configure:6930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6930 rm -rf conftest* 6990 rm -rf conftest*
6931 eval "ac_cv_func_$ac_func=yes" 6991 eval "ac_cv_func_$ac_func=yes"
6932 else 6992 else
6933 echo "configure: failed program was:" >&5 6993 echo "configure: failed program was:" >&5
6934 cat conftest.$ac_ext >&5 6994 cat conftest.$ac_ext >&5
6953 fi 7013 fi
6954 done 7014 done
6955 7015
6956 test "$ac_cv_func_crypt" != "yes" && { 7016 test "$ac_cv_func_crypt" != "yes" && {
6957 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7017 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6958 echo "configure:6959: checking for crypt in -lcrypt" >&5 7018 echo "configure:7019: checking for crypt in -lcrypt" >&5
6959 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7019 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6960 7020
6961 xe_check_libs=" -lcrypt " 7021 xe_check_libs=" -lcrypt "
6962 cat > conftest.$ac_ext <<EOF 7022 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure" 7023 #line 7024 "configure"
6964 #include "confdefs.h" 7024 #include "confdefs.h"
6965 /* Override any gcc2 internal prototype to avoid an error. */ 7025 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2 7026 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */ 7027 builtin and then its argument prototype would still apply. */
6968 char crypt(); 7028 char crypt();
6969 7029
6970 int main() { 7030 int main() {
6971 crypt() 7031 crypt()
6972 ; return 0; } 7032 ; return 0; }
6973 EOF 7033 EOF
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7034 if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6975 rm -rf conftest* 7035 rm -rf conftest*
6976 eval "ac_cv_lib_$ac_lib_var=yes" 7036 eval "ac_cv_lib_$ac_lib_var=yes"
6977 else 7037 else
6978 echo "configure: failed program was:" >&5 7038 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5 7039 cat conftest.$ac_ext >&5
7003 7063
7004 } 7064 }
7005 fi 7065 fi
7006 test -z "$with_wnn" && { 7066 test -z "$with_wnn" && {
7007 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7067 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7008 echo "configure:7009: checking for jl_dic_list_e in -lwnn" >&5 7068 echo "configure:7069: checking for jl_dic_list_e in -lwnn" >&5
7009 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7069 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7010 7070
7011 xe_check_libs=" -lwnn " 7071 xe_check_libs=" -lwnn "
7012 cat > conftest.$ac_ext <<EOF 7072 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure" 7073 #line 7074 "configure"
7014 #include "confdefs.h" 7074 #include "confdefs.h"
7015 /* Override any gcc2 internal prototype to avoid an error. */ 7075 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2 7076 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */ 7077 builtin and then its argument prototype would still apply. */
7018 char jl_dic_list_e(); 7078 char jl_dic_list_e();
7019 7079
7020 int main() { 7080 int main() {
7021 jl_dic_list_e() 7081 jl_dic_list_e()
7022 ; return 0; } 7082 ; return 0; }
7023 EOF 7083 EOF
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7025 rm -rf conftest* 7085 rm -rf conftest*
7026 eval "ac_cv_lib_$ac_lib_var=yes" 7086 eval "ac_cv_lib_$ac_lib_var=yes"
7027 else 7087 else
7028 echo "configure: failed program was:" >&5 7088 echo "configure: failed program was:" >&5
7029 cat conftest.$ac_ext >&5 7089 cat conftest.$ac_ext >&5
7056 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7116 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7057 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7117 echo " xemacs will be linked with \"mule-wnnfns.o\""
7058 fi 7118 fi
7059 7119
7060 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7120 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7061 echo "configure:7062: checking for jl_fi_dic_list in -lwnn" >&5 7121 echo "configure:7122: checking for jl_fi_dic_list in -lwnn" >&5
7062 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7122 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7063 7123
7064 xe_check_libs=" -lwnn " 7124 xe_check_libs=" -lwnn "
7065 cat > conftest.$ac_ext <<EOF 7125 cat > conftest.$ac_ext <<EOF
7066 #line 7067 "configure" 7126 #line 7127 "configure"
7067 #include "confdefs.h" 7127 #include "confdefs.h"
7068 /* Override any gcc2 internal prototype to avoid an error. */ 7128 /* Override any gcc2 internal prototype to avoid an error. */
7069 /* We use char because int might match the return type of a gcc2 7129 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */ 7130 builtin and then its argument prototype would still apply. */
7071 char jl_fi_dic_list(); 7131 char jl_fi_dic_list();
7072 7132
7073 int main() { 7133 int main() {
7074 jl_fi_dic_list() 7134 jl_fi_dic_list()
7075 ; return 0; } 7135 ; return 0; }
7076 EOF 7136 EOF
7077 if { (eval echo configure:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7078 rm -rf conftest* 7138 rm -rf conftest*
7079 eval "ac_cv_lib_$ac_lib_var=yes" 7139 eval "ac_cv_lib_$ac_lib_var=yes"
7080 else 7140 else
7081 echo "configure: failed program was:" >&5 7141 echo "configure: failed program was:" >&5
7082 cat conftest.$ac_ext >&5 7142 cat conftest.$ac_ext >&5
7104 7164
7105 fi 7165 fi
7106 7166
7107 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7167 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7108 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7168 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7109 echo "configure:7110: checking for canna/RK.h" >&5 7169 echo "configure:7170: checking for canna/RK.h" >&5
7110 7170
7111 cat > conftest.$ac_ext <<EOF 7171 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure" 7172 #line 7173 "configure"
7113 #include "confdefs.h" 7173 #include "confdefs.h"
7114 #include <canna/RK.h> 7174 #include <canna/RK.h>
7115 EOF 7175 EOF
7116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7117 { (eval echo configure:7118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7177 { (eval echo configure:7178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7118 ac_err=`grep -v '^ *+' conftest.out` 7178 ac_err=`grep -v '^ *+' conftest.out`
7119 if test -z "$ac_err"; then 7179 if test -z "$ac_err"; then
7120 rm -rf conftest* 7180 rm -rf conftest*
7121 eval "ac_cv_header_$ac_safe=yes" 7181 eval "ac_cv_header_$ac_safe=yes"
7122 else 7182 else
7135 with_canna=no 7195 with_canna=no
7136 fi 7196 fi
7137 } 7197 }
7138 test -z "$with_canna" && { 7198 test -z "$with_canna" && {
7139 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7199 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7140 echo "configure:7141: checking for RkBgnBun in -lRKC" >&5 7200 echo "configure:7201: checking for RkBgnBun in -lRKC" >&5
7141 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7201 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7142 7202
7143 xe_check_libs=" -lRKC " 7203 xe_check_libs=" -lRKC "
7144 cat > conftest.$ac_ext <<EOF 7204 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure" 7205 #line 7206 "configure"
7146 #include "confdefs.h" 7206 #include "confdefs.h"
7147 /* Override any gcc2 internal prototype to avoid an error. */ 7207 /* Override any gcc2 internal prototype to avoid an error. */
7148 /* We use char because int might match the return type of a gcc2 7208 /* We use char because int might match the return type of a gcc2
7149 builtin and then its argument prototype would still apply. */ 7209 builtin and then its argument prototype would still apply. */
7150 char RkBgnBun(); 7210 char RkBgnBun();
7151 7211
7152 int main() { 7212 int main() {
7153 RkBgnBun() 7213 RkBgnBun()
7154 ; return 0; } 7214 ; return 0; }
7155 EOF 7215 EOF
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7216 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7157 rm -rf conftest* 7217 rm -rf conftest*
7158 eval "ac_cv_lib_$ac_lib_var=yes" 7218 eval "ac_cv_lib_$ac_lib_var=yes"
7159 else 7219 else
7160 echo "configure: failed program was:" >&5 7220 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5 7221 cat conftest.$ac_ext >&5
7174 fi 7234 fi
7175 7235
7176 } 7236 }
7177 test -z "$with_canna" && { 7237 test -z "$with_canna" && {
7178 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7238 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7179 echo "configure:7180: checking for jrKanjiControl in -lcanna" >&5 7239 echo "configure:7240: checking for jrKanjiControl in -lcanna" >&5
7180 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7240 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7181 7241
7182 xe_check_libs=" -lcanna " 7242 xe_check_libs=" -lcanna "
7183 cat > conftest.$ac_ext <<EOF 7243 cat > conftest.$ac_ext <<EOF
7184 #line 7185 "configure" 7244 #line 7245 "configure"
7185 #include "confdefs.h" 7245 #include "confdefs.h"
7186 /* Override any gcc2 internal prototype to avoid an error. */ 7246 /* Override any gcc2 internal prototype to avoid an error. */
7187 /* We use char because int might match the return type of a gcc2 7247 /* We use char because int might match the return type of a gcc2
7188 builtin and then its argument prototype would still apply. */ 7248 builtin and then its argument prototype would still apply. */
7189 char jrKanjiControl(); 7249 char jrKanjiControl();
7190 7250
7191 int main() { 7251 int main() {
7192 jrKanjiControl() 7252 jrKanjiControl()
7193 ; return 0; } 7253 ; return 0; }
7194 EOF 7254 EOF
7195 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7196 rm -rf conftest* 7256 rm -rf conftest*
7197 eval "ac_cv_lib_$ac_lib_var=yes" 7257 eval "ac_cv_lib_$ac_lib_var=yes"
7198 else 7258 else
7199 echo "configure: failed program was:" >&5 7259 echo "configure: failed program was:" >&5
7200 cat conftest.$ac_ext >&5 7260 cat conftest.$ac_ext >&5
7239 7299
7240 if test "$need_motif" = "yes" ; then 7300 if test "$need_motif" = "yes" ; then
7241 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 7301 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
7242 7302
7243 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 7303 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
7244 echo "configure:7245: checking for layout_object_getvalue in -li18n" >&5 7304 echo "configure:7305: checking for layout_object_getvalue in -li18n" >&5
7245 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 7305 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
7246 7306
7247 xe_check_libs=" -li18n " 7307 xe_check_libs=" -li18n "
7248 cat > conftest.$ac_ext <<EOF 7308 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure" 7309 #line 7310 "configure"
7250 #include "confdefs.h" 7310 #include "confdefs.h"
7251 /* Override any gcc2 internal prototype to avoid an error. */ 7311 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2 7312 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */ 7313 builtin and then its argument prototype would still apply. */
7254 char layout_object_getvalue(); 7314 char layout_object_getvalue();
7255 7315
7256 int main() { 7316 int main() {
7257 layout_object_getvalue() 7317 layout_object_getvalue()
7258 ; return 0; } 7318 ; return 0; }
7259 EOF 7319 EOF
7260 if { (eval echo configure:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7261 rm -rf conftest* 7321 rm -rf conftest*
7262 eval "ac_cv_lib_$ac_lib_var=yes" 7322 eval "ac_cv_lib_$ac_lib_var=yes"
7263 else 7323 else
7264 echo "configure: failed program was:" >&5 7324 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5 7325 cat conftest.$ac_ext >&5
7328 fi 7388 fi
7329 7389
7330 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid 7390 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid
7331 do 7391 do
7332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7333 echo "configure:7334: checking for $ac_func" >&5 7393 echo "configure:7394: checking for $ac_func" >&5
7334 7394
7335 cat > conftest.$ac_ext <<EOF 7395 cat > conftest.$ac_ext <<EOF
7336 #line 7337 "configure" 7396 #line 7397 "configure"
7337 #include "confdefs.h" 7397 #include "confdefs.h"
7338 /* System header to define __stub macros and hopefully few prototypes, 7398 /* System header to define __stub macros and hopefully few prototypes,
7339 which can conflict with char $ac_func(); below. */ 7399 which can conflict with char $ac_func(); below. */
7340 #include <assert.h> 7400 #include <assert.h>
7341 /* Override any gcc2 internal prototype to avoid an error. */ 7401 /* Override any gcc2 internal prototype to avoid an error. */
7354 $ac_func(); 7414 $ac_func();
7355 #endif 7415 #endif
7356 7416
7357 ; return 0; } 7417 ; return 0; }
7358 EOF 7418 EOF
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7360 rm -rf conftest* 7420 rm -rf conftest*
7361 eval "ac_cv_func_$ac_func=yes" 7421 eval "ac_cv_func_$ac_func=yes"
7362 else 7422 else
7363 echo "configure: failed program was:" >&5 7423 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5 7424 cat conftest.$ac_ext >&5
7391 fi ;; 7451 fi ;;
7392 * ) 7452 * )
7393 for ac_func in realpath 7453 for ac_func in realpath
7394 do 7454 do
7395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7396 echo "configure:7397: checking for $ac_func" >&5 7456 echo "configure:7457: checking for $ac_func" >&5
7397 7457
7398 cat > conftest.$ac_ext <<EOF 7458 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure" 7459 #line 7460 "configure"
7400 #include "confdefs.h" 7460 #include "confdefs.h"
7401 /* System header to define __stub macros and hopefully few prototypes, 7461 /* System header to define __stub macros and hopefully few prototypes,
7402 which can conflict with char $ac_func(); below. */ 7462 which can conflict with char $ac_func(); below. */
7403 #include <assert.h> 7463 #include <assert.h>
7404 /* Override any gcc2 internal prototype to avoid an error. */ 7464 /* Override any gcc2 internal prototype to avoid an error. */
7417 $ac_func(); 7477 $ac_func();
7418 #endif 7478 #endif
7419 7479
7420 ; return 0; } 7480 ; return 0; }
7421 EOF 7481 EOF
7422 if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7423 rm -rf conftest* 7483 rm -rf conftest*
7424 eval "ac_cv_func_$ac_func=yes" 7484 eval "ac_cv_func_$ac_func=yes"
7425 else 7485 else
7426 echo "configure: failed program was:" >&5 7486 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5 7487 cat conftest.$ac_ext >&5
7450 echo " xemacs will be linked with \"realpath.o\"" 7510 echo " xemacs will be linked with \"realpath.o\""
7451 fi ;; 7511 fi ;;
7452 esac 7512 esac
7453 7513
7454 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7514 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7455 echo "configure:7456: checking whether netdb declares h_errno" >&5 7515 echo "configure:7516: checking whether netdb declares h_errno" >&5
7456 cat > conftest.$ac_ext <<EOF 7516 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure" 7517 #line 7518 "configure"
7458 #include "confdefs.h" 7518 #include "confdefs.h"
7459 #include <netdb.h> 7519 #include <netdb.h>
7460 int main() { 7520 int main() {
7461 return h_errno; 7521 return h_errno;
7462 ; return 0; } 7522 ; return 0; }
7463 EOF 7523 EOF
7464 if { (eval echo configure:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7465 rm -rf conftest* 7525 rm -rf conftest*
7466 echo "$ac_t""yes" 1>&6 7526 echo "$ac_t""yes" 1>&6
7467 { test "$extra_verbose" = "yes" && cat << \EOF 7527 { test "$extra_verbose" = "yes" && cat << \EOF
7468 Defining HAVE_H_ERRNO 7528 Defining HAVE_H_ERRNO
7469 EOF 7529 EOF
7479 echo "$ac_t""no" 1>&6 7539 echo "$ac_t""no" 1>&6
7480 fi 7540 fi
7481 rm -f conftest* 7541 rm -f conftest*
7482 7542
7483 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7543 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7484 echo "configure:7485: checking for sigsetjmp" >&5 7544 echo "configure:7545: checking for sigsetjmp" >&5
7485 cat > conftest.$ac_ext <<EOF 7545 cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure" 7546 #line 7547 "configure"
7487 #include "confdefs.h" 7547 #include "confdefs.h"
7488 #include <setjmp.h> 7548 #include <setjmp.h>
7489 int main() { 7549 int main() {
7490 sigjmp_buf bar; sigsetjmp (bar, 0); 7550 sigjmp_buf bar; sigsetjmp (bar, 0);
7491 ; return 0; } 7551 ; return 0; }
7492 EOF 7552 EOF
7493 if { (eval echo configure:7494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7553 if { (eval echo configure:7554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7494 rm -rf conftest* 7554 rm -rf conftest*
7495 echo "$ac_t""yes" 1>&6 7555 echo "$ac_t""yes" 1>&6
7496 { test "$extra_verbose" = "yes" && cat << \EOF 7556 { test "$extra_verbose" = "yes" && cat << \EOF
7497 Defining HAVE_SIGSETJMP 7557 Defining HAVE_SIGSETJMP
7498 EOF 7558 EOF
7508 echo "$ac_t""no" 1>&6 7568 echo "$ac_t""no" 1>&6
7509 fi 7569 fi
7510 rm -f conftest* 7570 rm -f conftest*
7511 7571
7512 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7572 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7513 echo "configure:7514: checking whether localtime caches TZ" >&5 7573 echo "configure:7574: checking whether localtime caches TZ" >&5
7514 7574
7515 if test "$ac_cv_func_tzset" = "yes"; then 7575 if test "$ac_cv_func_tzset" = "yes"; then
7516 cat > conftest.$ac_ext <<EOF 7576 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure" 7577 #line 7578 "configure"
7518 #include "confdefs.h" 7578 #include "confdefs.h"
7519 #include <time.h> 7579 #include <time.h>
7520 #if STDC_HEADERS 7580 #if STDC_HEADERS
7521 # include <stdlib.h> 7581 # include <stdlib.h>
7522 #endif 7582 #endif
7547 if (localtime (&now)->tm_hour != hour_unset) 7607 if (localtime (&now)->tm_hour != hour_unset)
7548 exit (1); 7608 exit (1);
7549 exit (0); 7609 exit (0);
7550 } 7610 }
7551 EOF 7611 EOF
7552 if { (eval echo configure:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7553 then 7613 then
7554 emacs_cv_localtime_cache=no 7614 emacs_cv_localtime_cache=no
7555 else 7615 else
7556 echo "configure: failed program was:" >&5 7616 echo "configure: failed program was:" >&5
7557 cat conftest.$ac_ext >&5 7617 cat conftest.$ac_ext >&5
7576 7636
7577 fi 7637 fi
7578 7638
7579 if test "$HAVE_TIMEVAL" = "yes"; then 7639 if test "$HAVE_TIMEVAL" = "yes"; then
7580 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7640 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7581 echo "configure:7582: checking whether gettimeofday cannot accept two arguments" >&5 7641 echo "configure:7642: checking whether gettimeofday cannot accept two arguments" >&5
7582 cat > conftest.$ac_ext <<EOF 7642 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure" 7643 #line 7644 "configure"
7584 #include "confdefs.h" 7644 #include "confdefs.h"
7585 7645
7586 #ifdef TIME_WITH_SYS_TIME 7646 #ifdef TIME_WITH_SYS_TIME
7587 #include <sys/time.h> 7647 #include <sys/time.h>
7588 #include <time.h> 7648 #include <time.h>
7600 struct timezone dummy; 7660 struct timezone dummy;
7601 gettimeofday (&time, &dummy); 7661 gettimeofday (&time, &dummy);
7602 7662
7603 ; return 0; } 7663 ; return 0; }
7604 EOF 7664 EOF
7605 if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7665 if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7606 rm -rf conftest* 7666 rm -rf conftest*
7607 echo "$ac_t""no" 1>&6 7667 echo "$ac_t""no" 1>&6
7608 else 7668 else
7609 echo "configure: failed program was:" >&5 7669 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5 7670 cat conftest.$ac_ext >&5
7622 rm -f conftest* 7682 rm -f conftest*
7623 fi 7683 fi
7624 7684
7625 7685
7626 echo $ac_n "checking for inline""... $ac_c" 1>&6 7686 echo $ac_n "checking for inline""... $ac_c" 1>&6
7627 echo "configure:7628: checking for inline" >&5 7687 echo "configure:7688: checking for inline" >&5
7628 7688
7629 ac_cv_c_inline=no 7689 ac_cv_c_inline=no
7630 for ac_kw in inline __inline__ __inline; do 7690 for ac_kw in inline __inline__ __inline; do
7631 cat > conftest.$ac_ext <<EOF 7691 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure" 7692 #line 7693 "configure"
7633 #include "confdefs.h" 7693 #include "confdefs.h"
7634 7694
7635 int main() { 7695 int main() {
7636 } $ac_kw foo() { 7696 } $ac_kw foo() {
7637 ; return 0; } 7697 ; return 0; }
7638 EOF 7698 EOF
7639 if { (eval echo configure:7640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7699 if { (eval echo configure:7700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7640 rm -rf conftest* 7700 rm -rf conftest*
7641 ac_cv_c_inline=$ac_kw; break 7701 ac_cv_c_inline=$ac_kw; break
7642 else 7702 else
7643 echo "configure: failed program was:" >&5 7703 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5 7704 cat conftest.$ac_ext >&5
7684 7744
7685 7745
7686 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7746 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7687 # for constant arguments. Useless! 7747 # for constant arguments. Useless!
7688 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7748 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7689 echo "configure:7690: checking for working alloca.h" >&5 7749 echo "configure:7750: checking for working alloca.h" >&5
7690 7750
7691 cat > conftest.$ac_ext <<EOF 7751 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure" 7752 #line 7753 "configure"
7693 #include "confdefs.h" 7753 #include "confdefs.h"
7694 #include <alloca.h> 7754 #include <alloca.h>
7695 int main() { 7755 int main() {
7696 char *p = alloca(2 * sizeof(int)); 7756 char *p = alloca(2 * sizeof(int));
7697 ; return 0; } 7757 ; return 0; }
7698 EOF 7758 EOF
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7700 rm -rf conftest* 7760 rm -rf conftest*
7701 ac_cv_header_alloca_h=yes 7761 ac_cv_header_alloca_h=yes
7702 else 7762 else
7703 echo "configure: failed program was:" >&5 7763 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5 7764 cat conftest.$ac_ext >&5
7718 } 7778 }
7719 7779
7720 fi 7780 fi
7721 7781
7722 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7782 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7723 echo "configure:7724: checking for alloca" >&5 7783 echo "configure:7784: checking for alloca" >&5
7724 7784
7725 cat > conftest.$ac_ext <<EOF 7785 cat > conftest.$ac_ext <<EOF
7726 #line 7727 "configure" 7786 #line 7787 "configure"
7727 #include "confdefs.h" 7787 #include "confdefs.h"
7728 7788
7729 #ifdef __GNUC__ 7789 #ifdef __GNUC__
7730 # define alloca __builtin_alloca 7790 # define alloca __builtin_alloca
7731 #else 7791 #else
7744 7804
7745 int main() { 7805 int main() {
7746 char *p = (char *) alloca(1); 7806 char *p = (char *) alloca(1);
7747 ; return 0; } 7807 ; return 0; }
7748 EOF 7808 EOF
7749 if { (eval echo configure:7750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7750 rm -rf conftest* 7810 rm -rf conftest*
7751 ac_cv_func_alloca_works=yes 7811 ac_cv_func_alloca_works=yes
7752 else 7812 else
7753 echo "configure: failed program was:" >&5 7813 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5 7814 cat conftest.$ac_ext >&5
7783 EOF 7843 EOF
7784 } 7844 }
7785 7845
7786 7846
7787 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7847 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7788 echo "configure:7789: checking whether alloca needs Cray hooks" >&5 7848 echo "configure:7849: checking whether alloca needs Cray hooks" >&5
7789 7849
7790 cat > conftest.$ac_ext <<EOF 7850 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure" 7851 #line 7852 "configure"
7792 #include "confdefs.h" 7852 #include "confdefs.h"
7793 #if defined(CRAY) && ! defined(CRAY2) 7853 #if defined(CRAY) && ! defined(CRAY2)
7794 webecray 7854 webecray
7795 #else 7855 #else
7796 wenotbecray 7856 wenotbecray
7810 7870
7811 echo "$ac_t""$ac_cv_os_cray" 1>&6 7871 echo "$ac_t""$ac_cv_os_cray" 1>&6
7812 if test $ac_cv_os_cray = yes; then 7872 if test $ac_cv_os_cray = yes; then
7813 for ac_func in _getb67 GETB67 getb67; do 7873 for ac_func in _getb67 GETB67 getb67; do
7814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7815 echo "configure:7816: checking for $ac_func" >&5 7875 echo "configure:7876: checking for $ac_func" >&5
7816 7876
7817 cat > conftest.$ac_ext <<EOF 7877 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure" 7878 #line 7879 "configure"
7819 #include "confdefs.h" 7879 #include "confdefs.h"
7820 /* System header to define __stub macros and hopefully few prototypes, 7880 /* System header to define __stub macros and hopefully few prototypes,
7821 which can conflict with char $ac_func(); below. */ 7881 which can conflict with char $ac_func(); below. */
7822 #include <assert.h> 7882 #include <assert.h>
7823 /* Override any gcc2 internal prototype to avoid an error. */ 7883 /* Override any gcc2 internal prototype to avoid an error. */
7836 $ac_func(); 7896 $ac_func();
7837 #endif 7897 #endif
7838 7898
7839 ; return 0; } 7899 ; return 0; }
7840 EOF 7900 EOF
7841 if { (eval echo configure:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7842 rm -rf conftest* 7902 rm -rf conftest*
7843 eval "ac_cv_func_$ac_func=yes" 7903 eval "ac_cv_func_$ac_func=yes"
7844 else 7904 else
7845 echo "configure: failed program was:" >&5 7905 echo "configure: failed program was:" >&5
7846 cat conftest.$ac_ext >&5 7906 cat conftest.$ac_ext >&5
7866 7926
7867 done 7927 done
7868 fi 7928 fi
7869 7929
7870 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7930 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7871 echo "configure:7872: checking stack direction for C alloca" >&5 7931 echo "configure:7932: checking stack direction for C alloca" >&5
7872 7932
7873 cat > conftest.$ac_ext <<EOF 7933 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure" 7934 #line 7935 "configure"
7875 #include "confdefs.h" 7935 #include "confdefs.h"
7876 find_stack_direction () 7936 find_stack_direction ()
7877 { 7937 {
7878 static char *addr = 0; 7938 static char *addr = 0;
7879 auto char dummy; 7939 auto char dummy;
7888 main () 7948 main ()
7889 { 7949 {
7890 exit (find_stack_direction() < 0); 7950 exit (find_stack_direction() < 0);
7891 } 7951 }
7892 EOF 7952 EOF
7893 if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7894 then 7954 then
7895 ac_cv_c_stack_direction=1 7955 ac_cv_c_stack_direction=1
7896 else 7956 else
7897 echo "configure: failed program was:" >&5 7957 echo "configure: failed program was:" >&5
7898 cat conftest.$ac_ext >&5 7958 cat conftest.$ac_ext >&5
7916 echo " xemacs will be linked with \"$ALLOCA\"" 7976 echo " xemacs will be linked with \"$ALLOCA\""
7917 fi 7977 fi
7918 7978
7919 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7979 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7920 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7980 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7921 echo "configure:7922: checking for vfork.h" >&5 7981 echo "configure:7982: checking for vfork.h" >&5
7922 7982
7923 cat > conftest.$ac_ext <<EOF 7983 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure" 7984 #line 7985 "configure"
7925 #include "confdefs.h" 7985 #include "confdefs.h"
7926 #include <vfork.h> 7986 #include <vfork.h>
7927 EOF 7987 EOF
7928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7929 { (eval echo configure:7930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7989 { (eval echo configure:7990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7930 ac_err=`grep -v '^ *+' conftest.out` 7990 ac_err=`grep -v '^ *+' conftest.out`
7931 if test -z "$ac_err"; then 7991 if test -z "$ac_err"; then
7932 rm -rf conftest* 7992 rm -rf conftest*
7933 eval "ac_cv_header_$ac_safe=yes" 7993 eval "ac_cv_header_$ac_safe=yes"
7934 else 7994 else
7952 else 8012 else
7953 echo "$ac_t""no" 1>&6 8013 echo "$ac_t""no" 1>&6
7954 fi 8014 fi
7955 8015
7956 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8016 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7957 echo "configure:7958: checking for working vfork" >&5 8017 echo "configure:8018: checking for working vfork" >&5
7958 8018
7959 cat > conftest.$ac_ext <<EOF 8019 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure" 8020 #line 8021 "configure"
7961 #include "confdefs.h" 8021 #include "confdefs.h"
7962 /* Thanks to Paul Eggert for this test. */ 8022 /* Thanks to Paul Eggert for this test. */
7963 #include <stdio.h> 8023 #include <stdio.h>
7964 #include <sys/types.h> 8024 #include <sys/types.h>
7965 #include <sys/stat.h> 8025 #include <sys/stat.h>
8050 || fstat(fileno(stdout), &st) != 0 8110 || fstat(fileno(stdout), &st) != 0
8051 ); 8111 );
8052 } 8112 }
8053 } 8113 }
8054 EOF 8114 EOF
8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8056 then 8116 then
8057 ac_cv_func_vfork_works=yes 8117 ac_cv_func_vfork_works=yes
8058 else 8118 else
8059 echo "configure: failed program was:" >&5 8119 echo "configure: failed program was:" >&5
8060 cat conftest.$ac_ext >&5 8120 cat conftest.$ac_ext >&5
8075 8135
8076 fi 8136 fi
8077 8137
8078 8138
8079 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8139 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8080 echo "configure:8081: checking for working strcoll" >&5 8140 echo "configure:8141: checking for working strcoll" >&5
8081 8141
8082 cat > conftest.$ac_ext <<EOF 8142 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure" 8143 #line 8144 "configure"
8084 #include "confdefs.h" 8144 #include "confdefs.h"
8085 #include <string.h> 8145 #include <string.h>
8086 main () 8146 main ()
8087 { 8147 {
8088 exit (strcoll ("abc", "def") >= 0 || 8148 exit (strcoll ("abc", "def") >= 0 ||
8089 strcoll ("ABC", "DEF") >= 0 || 8149 strcoll ("ABC", "DEF") >= 0 ||
8090 strcoll ("123", "456") >= 0); 8150 strcoll ("123", "456") >= 0);
8091 } 8151 }
8092 EOF 8152 EOF
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8094 then 8154 then
8095 ac_cv_func_strcoll_works=yes 8155 ac_cv_func_strcoll_works=yes
8096 else 8156 else
8097 echo "configure: failed program was:" >&5 8157 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5 8158 cat conftest.$ac_ext >&5
8115 8175
8116 8176
8117 for ac_func in getpgrp 8177 for ac_func in getpgrp
8118 do 8178 do
8119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8120 echo "configure:8121: checking for $ac_func" >&5 8180 echo "configure:8181: checking for $ac_func" >&5
8121 8181
8122 cat > conftest.$ac_ext <<EOF 8182 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure" 8183 #line 8184 "configure"
8124 #include "confdefs.h" 8184 #include "confdefs.h"
8125 /* System header to define __stub macros and hopefully few prototypes, 8185 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char $ac_func(); below. */ 8186 which can conflict with char $ac_func(); below. */
8127 #include <assert.h> 8187 #include <assert.h>
8128 /* Override any gcc2 internal prototype to avoid an error. */ 8188 /* Override any gcc2 internal prototype to avoid an error. */
8141 $ac_func(); 8201 $ac_func();
8142 #endif 8202 #endif
8143 8203
8144 ; return 0; } 8204 ; return 0; }
8145 EOF 8205 EOF
8146 if { (eval echo configure:8147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8206 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8147 rm -rf conftest* 8207 rm -rf conftest*
8148 eval "ac_cv_func_$ac_func=yes" 8208 eval "ac_cv_func_$ac_func=yes"
8149 else 8209 else
8150 echo "configure: failed program was:" >&5 8210 echo "configure: failed program was:" >&5
8151 cat conftest.$ac_ext >&5 8211 cat conftest.$ac_ext >&5
8169 echo "$ac_t""no" 1>&6 8229 echo "$ac_t""no" 1>&6
8170 fi 8230 fi
8171 done 8231 done
8172 8232
8173 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8233 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8174 echo "configure:8175: checking whether getpgrp takes no argument" >&5 8234 echo "configure:8235: checking whether getpgrp takes no argument" >&5
8175 8235
8176 cat > conftest.$ac_ext <<EOF 8236 cat > conftest.$ac_ext <<EOF
8177 #line 8178 "configure" 8237 #line 8238 "configure"
8178 #include "confdefs.h" 8238 #include "confdefs.h"
8179 8239
8180 /* 8240 /*
8181 * If this system has a BSD-style getpgrp(), 8241 * If this system has a BSD-style getpgrp(),
8182 * which takes a pid argument, exit unsuccessfully. 8242 * which takes a pid argument, exit unsuccessfully.
8227 exit(s>>8); 8287 exit(s>>8);
8228 } 8288 }
8229 } 8289 }
8230 8290
8231 EOF 8291 EOF
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8233 then 8293 then
8234 ac_cv_func_getpgrp_void=yes 8294 ac_cv_func_getpgrp_void=yes
8235 else 8295 else
8236 echo "configure: failed program was:" >&5 8296 echo "configure: failed program was:" >&5
8237 cat conftest.$ac_ext >&5 8297 cat conftest.$ac_ext >&5
8253 8313
8254 fi 8314 fi
8255 8315
8256 8316
8257 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8317 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8258 echo "configure:8259: checking for working mmap" >&5 8318 echo "configure:8319: checking for working mmap" >&5
8259 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8319 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8260 cat > conftest.$ac_ext <<EOF 8320 cat > conftest.$ac_ext <<EOF
8261 #line 8262 "configure" 8321 #line 8322 "configure"
8262 #include "confdefs.h" 8322 #include "confdefs.h"
8263 #include <stdio.h> 8323 #include <stdio.h>
8264 #include <unistd.h> 8324 #include <unistd.h>
8265 #include <fcntl.h> 8325 #include <fcntl.h>
8266 #include <sys/mman.h> 8326 #include <sys/mman.h>
8289 return 0; 8349 return 0;
8290 perror ("conftest: mmap failed"); 8350 perror ("conftest: mmap failed");
8291 return 1; 8351 return 1;
8292 } 8352 }
8293 EOF 8353 EOF
8294 if { (eval echo configure:8295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8354 if { (eval echo configure:8355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8295 then 8355 then
8296 have_mmap=yes 8356 have_mmap=yes
8297 else 8357 else
8298 echo "configure: failed program was:" >&5 8358 echo "configure: failed program was:" >&5
8299 cat conftest.$ac_ext >&5 8359 cat conftest.$ac_ext >&5
8323 } 8383 }
8324 8384
8325 8385
8326 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8386 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8327 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8387 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8328 echo "configure:8329: checking for termios.h" >&5 8388 echo "configure:8389: checking for termios.h" >&5
8329 8389
8330 cat > conftest.$ac_ext <<EOF 8390 cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure" 8391 #line 8392 "configure"
8332 #include "confdefs.h" 8392 #include "confdefs.h"
8333 #include <termios.h> 8393 #include <termios.h>
8334 EOF 8394 EOF
8335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8336 { (eval echo configure:8337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8337 ac_err=`grep -v '^ *+' conftest.out` 8397 ac_err=`grep -v '^ *+' conftest.out`
8338 if test -z "$ac_err"; then 8398 if test -z "$ac_err"; then
8339 rm -rf conftest* 8399 rm -rf conftest*
8340 eval "ac_cv_header_$ac_safe=yes" 8400 eval "ac_cv_header_$ac_safe=yes"
8341 else 8401 else
8374 8434
8375 else 8435 else
8376 echo "$ac_t""no" 1>&6 8436 echo "$ac_t""no" 1>&6
8377 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8437 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8378 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8438 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8379 echo "configure:8380: checking for termio.h" >&5 8439 echo "configure:8440: checking for termio.h" >&5
8380 8440
8381 cat > conftest.$ac_ext <<EOF 8441 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure" 8442 #line 8443 "configure"
8383 #include "confdefs.h" 8443 #include "confdefs.h"
8384 #include <termio.h> 8444 #include <termio.h>
8385 EOF 8445 EOF
8386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8387 { (eval echo configure:8388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8447 { (eval echo configure:8448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8388 ac_err=`grep -v '^ *+' conftest.out` 8448 ac_err=`grep -v '^ *+' conftest.out`
8389 if test -z "$ac_err"; then 8449 if test -z "$ac_err"; then
8390 rm -rf conftest* 8450 rm -rf conftest*
8391 eval "ac_cv_header_$ac_safe=yes" 8451 eval "ac_cv_header_$ac_safe=yes"
8392 else 8452 else
8414 fi 8474 fi
8415 8475
8416 8476
8417 8477
8418 echo $ac_n "checking for socket""... $ac_c" 1>&6 8478 echo $ac_n "checking for socket""... $ac_c" 1>&6
8419 echo "configure:8420: checking for socket" >&5 8479 echo "configure:8480: checking for socket" >&5
8420 8480
8421 cat > conftest.$ac_ext <<EOF 8481 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure" 8482 #line 8483 "configure"
8423 #include "confdefs.h" 8483 #include "confdefs.h"
8424 /* System header to define __stub macros and hopefully few prototypes, 8484 /* System header to define __stub macros and hopefully few prototypes,
8425 which can conflict with char socket(); below. */ 8485 which can conflict with char socket(); below. */
8426 #include <assert.h> 8486 #include <assert.h>
8427 /* Override any gcc2 internal prototype to avoid an error. */ 8487 /* Override any gcc2 internal prototype to avoid an error. */
8440 socket(); 8500 socket();
8441 #endif 8501 #endif
8442 8502
8443 ; return 0; } 8503 ; return 0; }
8444 EOF 8504 EOF
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8446 rm -rf conftest* 8506 rm -rf conftest*
8447 eval "ac_cv_func_socket=yes" 8507 eval "ac_cv_func_socket=yes"
8448 else 8508 else
8449 echo "configure: failed program was:" >&5 8509 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5 8510 cat conftest.$ac_ext >&5
8455 8515
8456 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8516 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8457 echo "$ac_t""yes" 1>&6 8517 echo "$ac_t""yes" 1>&6
8458 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8518 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8459 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8519 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8460 echo "configure:8461: checking for netinet/in.h" >&5 8520 echo "configure:8521: checking for netinet/in.h" >&5
8461 8521
8462 cat > conftest.$ac_ext <<EOF 8522 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure" 8523 #line 8524 "configure"
8464 #include "confdefs.h" 8524 #include "confdefs.h"
8465 #include <netinet/in.h> 8525 #include <netinet/in.h>
8466 EOF 8526 EOF
8467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8468 { (eval echo configure:8469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8528 { (eval echo configure:8529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8469 ac_err=`grep -v '^ *+' conftest.out` 8529 ac_err=`grep -v '^ *+' conftest.out`
8470 if test -z "$ac_err"; then 8530 if test -z "$ac_err"; then
8471 rm -rf conftest* 8531 rm -rf conftest*
8472 eval "ac_cv_header_$ac_safe=yes" 8532 eval "ac_cv_header_$ac_safe=yes"
8473 else 8533 else
8480 rm -f conftest* 8540 rm -f conftest*
8481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8482 echo "$ac_t""yes" 1>&6 8542 echo "$ac_t""yes" 1>&6
8483 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8543 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8484 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8544 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8485 echo "configure:8486: checking for arpa/inet.h" >&5 8545 echo "configure:8546: checking for arpa/inet.h" >&5
8486 8546
8487 cat > conftest.$ac_ext <<EOF 8547 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure" 8548 #line 8549 "configure"
8489 #include "confdefs.h" 8549 #include "confdefs.h"
8490 #include <arpa/inet.h> 8550 #include <arpa/inet.h>
8491 EOF 8551 EOF
8492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8493 { (eval echo configure:8494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8553 { (eval echo configure:8554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8494 ac_err=`grep -v '^ *+' conftest.out` 8554 ac_err=`grep -v '^ *+' conftest.out`
8495 if test -z "$ac_err"; then 8555 if test -z "$ac_err"; then
8496 rm -rf conftest* 8556 rm -rf conftest*
8497 eval "ac_cv_header_$ac_safe=yes" 8557 eval "ac_cv_header_$ac_safe=yes"
8498 else 8558 else
8513 #define HAVE_SOCKETS 1 8573 #define HAVE_SOCKETS 1
8514 EOF 8574 EOF
8515 } 8575 }
8516 8576
8517 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8577 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8518 echo "configure:8519: checking "for sun_len member in struct sockaddr_un"" >&5 8578 echo "configure:8579: checking "for sun_len member in struct sockaddr_un"" >&5
8519 cat > conftest.$ac_ext <<EOF 8579 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure" 8580 #line 8581 "configure"
8521 #include "confdefs.h" 8581 #include "confdefs.h"
8522 8582
8523 #include <sys/types.h> 8583 #include <sys/types.h>
8524 #include <sys/socket.h> 8584 #include <sys/socket.h>
8525 #include <sys/un.h> 8585 #include <sys/un.h>
8526 8586
8527 int main() { 8587 int main() {
8528 static struct sockaddr_un x; x.sun_len = 1; 8588 static struct sockaddr_un x; x.sun_len = 1;
8529 ; return 0; } 8589 ; return 0; }
8530 EOF 8590 EOF
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8532 rm -rf conftest* 8592 rm -rf conftest*
8533 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8593 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8534 Defining HAVE_SOCKADDR_SUN_LEN 8594 Defining HAVE_SOCKADDR_SUN_LEN
8535 EOF 8595 EOF
8536 cat >> confdefs.h <<\EOF 8596 cat >> confdefs.h <<\EOF
8557 echo "$ac_t""no" 1>&6 8617 echo "$ac_t""no" 1>&6
8558 fi 8618 fi
8559 8619
8560 8620
8561 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8621 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8562 echo "configure:8563: checking for msgget" >&5 8622 echo "configure:8623: checking for msgget" >&5
8563 8623
8564 cat > conftest.$ac_ext <<EOF 8624 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure" 8625 #line 8626 "configure"
8566 #include "confdefs.h" 8626 #include "confdefs.h"
8567 /* System header to define __stub macros and hopefully few prototypes, 8627 /* System header to define __stub macros and hopefully few prototypes,
8568 which can conflict with char msgget(); below. */ 8628 which can conflict with char msgget(); below. */
8569 #include <assert.h> 8629 #include <assert.h>
8570 /* Override any gcc2 internal prototype to avoid an error. */ 8630 /* Override any gcc2 internal prototype to avoid an error. */
8583 msgget(); 8643 msgget();
8584 #endif 8644 #endif
8585 8645
8586 ; return 0; } 8646 ; return 0; }
8587 EOF 8647 EOF
8588 if { (eval echo configure:8589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8589 rm -rf conftest* 8649 rm -rf conftest*
8590 eval "ac_cv_func_msgget=yes" 8650 eval "ac_cv_func_msgget=yes"
8591 else 8651 else
8592 echo "configure: failed program was:" >&5 8652 echo "configure: failed program was:" >&5
8593 cat conftest.$ac_ext >&5 8653 cat conftest.$ac_ext >&5
8598 8658
8599 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8659 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8600 echo "$ac_t""yes" 1>&6 8660 echo "$ac_t""yes" 1>&6
8601 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8661 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8602 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8662 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8603 echo "configure:8604: checking for sys/ipc.h" >&5 8663 echo "configure:8664: checking for sys/ipc.h" >&5
8604 8664
8605 cat > conftest.$ac_ext <<EOF 8665 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure" 8666 #line 8667 "configure"
8607 #include "confdefs.h" 8667 #include "confdefs.h"
8608 #include <sys/ipc.h> 8668 #include <sys/ipc.h>
8609 EOF 8669 EOF
8610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8611 { (eval echo configure:8612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8612 ac_err=`grep -v '^ *+' conftest.out` 8672 ac_err=`grep -v '^ *+' conftest.out`
8613 if test -z "$ac_err"; then 8673 if test -z "$ac_err"; then
8614 rm -rf conftest* 8674 rm -rf conftest*
8615 eval "ac_cv_header_$ac_safe=yes" 8675 eval "ac_cv_header_$ac_safe=yes"
8616 else 8676 else
8623 rm -f conftest* 8683 rm -f conftest*
8624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6 8685 echo "$ac_t""yes" 1>&6
8626 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8686 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8627 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8687 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8628 echo "configure:8629: checking for sys/msg.h" >&5 8688 echo "configure:8689: checking for sys/msg.h" >&5
8629 8689
8630 cat > conftest.$ac_ext <<EOF 8690 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure" 8691 #line 8692 "configure"
8632 #include "confdefs.h" 8692 #include "confdefs.h"
8633 #include <sys/msg.h> 8693 #include <sys/msg.h>
8634 EOF 8694 EOF
8635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8636 { (eval echo configure:8637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8696 { (eval echo configure:8697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8637 ac_err=`grep -v '^ *+' conftest.out` 8697 ac_err=`grep -v '^ *+' conftest.out`
8638 if test -z "$ac_err"; then 8698 if test -z "$ac_err"; then
8639 rm -rf conftest* 8699 rm -rf conftest*
8640 eval "ac_cv_header_$ac_safe=yes" 8700 eval "ac_cv_header_$ac_safe=yes"
8641 else 8701 else
8669 fi 8729 fi
8670 8730
8671 8731
8672 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8732 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8673 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8733 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8674 echo "configure:8675: checking for dirent.h" >&5 8734 echo "configure:8735: checking for dirent.h" >&5
8675 8735
8676 cat > conftest.$ac_ext <<EOF 8736 cat > conftest.$ac_ext <<EOF
8677 #line 8678 "configure" 8737 #line 8738 "configure"
8678 #include "confdefs.h" 8738 #include "confdefs.h"
8679 #include <dirent.h> 8739 #include <dirent.h>
8680 EOF 8740 EOF
8681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8682 { (eval echo configure:8683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8742 { (eval echo configure:8743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8683 ac_err=`grep -v '^ *+' conftest.out` 8743 ac_err=`grep -v '^ *+' conftest.out`
8684 if test -z "$ac_err"; then 8744 if test -z "$ac_err"; then
8685 rm -rf conftest* 8745 rm -rf conftest*
8686 eval "ac_cv_header_$ac_safe=yes" 8746 eval "ac_cv_header_$ac_safe=yes"
8687 else 8747 else
8704 8764
8705 else 8765 else
8706 echo "$ac_t""no" 1>&6 8766 echo "$ac_t""no" 1>&6
8707 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8767 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8708 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8768 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8709 echo "configure:8710: checking for sys/dir.h" >&5 8769 echo "configure:8770: checking for sys/dir.h" >&5
8710 8770
8711 cat > conftest.$ac_ext <<EOF 8771 cat > conftest.$ac_ext <<EOF
8712 #line 8713 "configure" 8772 #line 8773 "configure"
8713 #include "confdefs.h" 8773 #include "confdefs.h"
8714 #include <sys/dir.h> 8774 #include <sys/dir.h>
8715 EOF 8775 EOF
8716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8717 { (eval echo configure:8718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8777 { (eval echo configure:8778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8718 ac_err=`grep -v '^ *+' conftest.out` 8778 ac_err=`grep -v '^ *+' conftest.out`
8719 if test -z "$ac_err"; then 8779 if test -z "$ac_err"; then
8720 rm -rf conftest* 8780 rm -rf conftest*
8721 eval "ac_cv_header_$ac_safe=yes" 8781 eval "ac_cv_header_$ac_safe=yes"
8722 else 8782 else
8745 fi 8805 fi
8746 8806
8747 8807
8748 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8808 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8749 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8809 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8750 echo "configure:8751: checking for nlist.h" >&5 8810 echo "configure:8811: checking for nlist.h" >&5
8751 8811
8752 cat > conftest.$ac_ext <<EOF 8812 cat > conftest.$ac_ext <<EOF
8753 #line 8754 "configure" 8813 #line 8814 "configure"
8754 #include "confdefs.h" 8814 #include "confdefs.h"
8755 #include <nlist.h> 8815 #include <nlist.h>
8756 EOF 8816 EOF
8757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8758 { (eval echo configure:8759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8818 { (eval echo configure:8819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8759 ac_err=`grep -v '^ *+' conftest.out` 8819 ac_err=`grep -v '^ *+' conftest.out`
8760 if test -z "$ac_err"; then 8820 if test -z "$ac_err"; then
8761 rm -rf conftest* 8821 rm -rf conftest*
8762 eval "ac_cv_header_$ac_safe=yes" 8822 eval "ac_cv_header_$ac_safe=yes"
8763 else 8823 else
8783 fi 8843 fi
8784 8844
8785 8845
8786 8846
8787 echo "checking "for sound support"" 1>&6 8847 echo "checking "for sound support"" 1>&6
8788 echo "configure:8789: checking "for sound support"" >&5 8848 echo "configure:8849: checking "for sound support"" >&5
8789 case "$with_sound" in 8849 case "$with_sound" in
8790 native | both ) with_native_sound=yes;; 8850 native | both ) with_native_sound=yes;;
8791 nas | no ) with_native_sound=no;; 8851 nas | no ) with_native_sound=no;;
8792 esac 8852 esac
8793 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8853 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8794 8854
8795 if test "$with_native_sound" != "no"; then 8855 if test "$with_native_sound" != "no"; then
8796 if test -n "$native_sound_lib"; then 8856 if test -n "$native_sound_lib"; then
8797 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8857 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8798 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8858 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8799 echo "configure:8800: checking for multimedia/audio_device.h" >&5 8859 echo "configure:8860: checking for multimedia/audio_device.h" >&5
8800 8860
8801 cat > conftest.$ac_ext <<EOF 8861 cat > conftest.$ac_ext <<EOF
8802 #line 8803 "configure" 8862 #line 8863 "configure"
8803 #include "confdefs.h" 8863 #include "confdefs.h"
8804 #include <multimedia/audio_device.h> 8864 #include <multimedia/audio_device.h>
8805 EOF 8865 EOF
8806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8807 { (eval echo configure:8808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8867 { (eval echo configure:8868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8808 ac_err=`grep -v '^ *+' conftest.out` 8868 ac_err=`grep -v '^ *+' conftest.out`
8809 if test -z "$ac_err"; then 8869 if test -z "$ac_err"; then
8810 rm -rf conftest* 8870 rm -rf conftest*
8811 eval "ac_cv_header_$ac_safe=yes" 8871 eval "ac_cv_header_$ac_safe=yes"
8812 else 8872 else
8850 case "$canonical" in 8910 case "$canonical" in
8851 *-sgi-* ) 8911 *-sgi-* )
8852 if test -z "$native_sound_lib"; then 8912 if test -z "$native_sound_lib"; then
8853 8913
8854 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8914 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8855 echo "configure:8856: checking for ALopenport in -laudio" >&5 8915 echo "configure:8916: checking for ALopenport in -laudio" >&5
8856 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8916 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8857 8917
8858 xe_check_libs=" -laudio " 8918 xe_check_libs=" -laudio "
8859 cat > conftest.$ac_ext <<EOF 8919 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure" 8920 #line 8921 "configure"
8861 #include "confdefs.h" 8921 #include "confdefs.h"
8862 /* Override any gcc2 internal prototype to avoid an error. */ 8922 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2 8923 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */ 8924 builtin and then its argument prototype would still apply. */
8865 char ALopenport(); 8925 char ALopenport();
8866 8926
8867 int main() { 8927 int main() {
8868 ALopenport() 8928 ALopenport()
8869 ; return 0; } 8929 ; return 0; }
8870 EOF 8930 EOF
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8872 rm -rf conftest* 8932 rm -rf conftest*
8873 eval "ac_cv_lib_$ac_lib_var=yes" 8933 eval "ac_cv_lib_$ac_lib_var=yes"
8874 else 8934 else
8875 echo "configure: failed program was:" >&5 8935 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5 8936 cat conftest.$ac_ext >&5
8897 fi ;; 8957 fi ;;
8898 hppa*-hp-hpux* ) 8958 hppa*-hp-hpux* )
8899 if test -z "$native_sound_lib"; then 8959 if test -z "$native_sound_lib"; then
8900 8960
8901 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8961 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8902 echo "configure:8903: checking for AOpenAudio in -lAlib" >&5 8962 echo "configure:8963: checking for AOpenAudio in -lAlib" >&5
8903 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8963 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8904 8964
8905 xe_check_libs=" -lAlib " 8965 xe_check_libs=" -lAlib "
8906 cat > conftest.$ac_ext <<EOF 8966 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure" 8967 #line 8968 "configure"
8908 #include "confdefs.h" 8968 #include "confdefs.h"
8909 /* Override any gcc2 internal prototype to avoid an error. */ 8969 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2 8970 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */ 8971 builtin and then its argument prototype would still apply. */
8912 char AOpenAudio(); 8972 char AOpenAudio();
8913 8973
8914 int main() { 8974 int main() {
8915 AOpenAudio() 8975 AOpenAudio()
8916 ; return 0; } 8976 ; return 0; }
8917 EOF 8977 EOF
8918 if { (eval echo configure:8919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8978 if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8919 rm -rf conftest* 8979 rm -rf conftest*
8920 eval "ac_cv_lib_$ac_lib_var=yes" 8980 eval "ac_cv_lib_$ac_lib_var=yes"
8921 else 8981 else
8922 echo "configure: failed program was:" >&5 8982 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5 8983 cat conftest.$ac_ext >&5
8951 9011
8952 if test -z "$sound_found"; then 9012 if test -z "$sound_found"; then
8953 for dir in "machine" "sys" "linux"; do 9013 for dir in "machine" "sys" "linux"; do
8954 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9014 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
8955 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9015 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
8956 echo "configure:8957: checking for ${dir}/soundcard.h" >&5 9016 echo "configure:9017: checking for ${dir}/soundcard.h" >&5
8957 9017
8958 cat > conftest.$ac_ext <<EOF 9018 cat > conftest.$ac_ext <<EOF
8959 #line 8960 "configure" 9019 #line 9020 "configure"
8960 #include "confdefs.h" 9020 #include "confdefs.h"
8961 #include <${dir}/soundcard.h> 9021 #include <${dir}/soundcard.h>
8962 EOF 9022 EOF
8963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8964 { (eval echo configure:8965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9024 { (eval echo configure:9025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8965 ac_err=`grep -v '^ *+' conftest.out` 9025 ac_err=`grep -v '^ *+' conftest.out`
8966 if test -z "$ac_err"; then 9026 if test -z "$ac_err"; then
8967 rm -rf conftest* 9027 rm -rf conftest*
8968 eval "ac_cv_header_$ac_safe=yes" 9028 eval "ac_cv_header_$ac_safe=yes"
8969 else 9029 else
9029 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9089 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9030 echo " xemacs will be linked with \"nas.o\"" 9090 echo " xemacs will be linked with \"nas.o\""
9031 fi 9091 fi
9032 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 9092 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
9033 cat > conftest.$ac_ext <<EOF 9093 cat > conftest.$ac_ext <<EOF
9034 #line 9035 "configure" 9094 #line 9095 "configure"
9035 #include "confdefs.h" 9095 #include "confdefs.h"
9036 #include <audio/Xtutil.h> 9096 #include <audio/Xtutil.h>
9037 EOF 9097 EOF
9038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9039 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9099 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9056 9116
9057 test -z "$with_tty" && with_tty=yes 9117 test -z "$with_tty" && with_tty=yes
9058 9118
9059 if test "$with_tty" = "yes" ; then 9119 if test "$with_tty" = "yes" ; then
9060 echo "checking for TTY-related features" 1>&6 9120 echo "checking for TTY-related features" 1>&6
9061 echo "configure:9062: checking for TTY-related features" >&5 9121 echo "configure:9122: checking for TTY-related features" >&5
9062 { test "$extra_verbose" = "yes" && cat << \EOF 9122 { test "$extra_verbose" = "yes" && cat << \EOF
9063 Defining HAVE_TTY 9123 Defining HAVE_TTY
9064 EOF 9124 EOF
9065 cat >> confdefs.h <<\EOF 9125 cat >> confdefs.h <<\EOF
9066 #define HAVE_TTY 1 9126 #define HAVE_TTY 1
9072 fi 9132 fi
9073 9133
9074 if test -z "$with_ncurses"; then 9134 if test -z "$with_ncurses"; then
9075 9135
9076 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9136 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9077 echo "configure:9078: checking for tgetent in -lncurses" >&5 9137 echo "configure:9138: checking for tgetent in -lncurses" >&5
9078 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9138 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9079 9139
9080 xe_check_libs=" -lncurses " 9140 xe_check_libs=" -lncurses "
9081 cat > conftest.$ac_ext <<EOF 9141 cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure" 9142 #line 9143 "configure"
9083 #include "confdefs.h" 9143 #include "confdefs.h"
9084 /* Override any gcc2 internal prototype to avoid an error. */ 9144 /* Override any gcc2 internal prototype to avoid an error. */
9085 /* We use char because int might match the return type of a gcc2 9145 /* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */ 9146 builtin and then its argument prototype would still apply. */
9087 char tgetent(); 9147 char tgetent();
9088 9148
9089 int main() { 9149 int main() {
9090 tgetent() 9150 tgetent()
9091 ; return 0; } 9151 ; return 0; }
9092 EOF 9152 EOF
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9153 if { (eval echo configure:9154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9094 rm -rf conftest* 9154 rm -rf conftest*
9095 eval "ac_cv_lib_$ac_lib_var=yes" 9155 eval "ac_cv_lib_$ac_lib_var=yes"
9096 else 9156 else
9097 echo "configure: failed program was:" >&5 9157 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5 9158 cat conftest.$ac_ext >&5
9121 EOF 9181 EOF
9122 } 9182 }
9123 9183
9124 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9184 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9125 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9185 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9126 echo "configure:9127: checking for ncurses/curses.h" >&5 9186 echo "configure:9187: checking for ncurses/curses.h" >&5
9127 9187
9128 cat > conftest.$ac_ext <<EOF 9188 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure" 9189 #line 9190 "configure"
9130 #include "confdefs.h" 9190 #include "confdefs.h"
9131 #include <ncurses/curses.h> 9191 #include <ncurses/curses.h>
9132 EOF 9192 EOF
9133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9134 { (eval echo configure:9135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9194 { (eval echo configure:9195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9135 ac_err=`grep -v '^ *+' conftest.out` 9195 ac_err=`grep -v '^ *+' conftest.out`
9136 if test -z "$ac_err"; then 9196 if test -z "$ac_err"; then
9137 rm -rf conftest* 9197 rm -rf conftest*
9138 eval "ac_cv_header_$ac_safe=yes" 9198 eval "ac_cv_header_$ac_safe=yes"
9139 else 9199 else
9151 echo "$ac_t""no" 1>&6 9211 echo "$ac_t""no" 1>&6
9152 fi 9212 fi
9153 9213
9154 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9214 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9155 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9215 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9156 echo "configure:9157: checking for ncurses/term.h" >&5 9216 echo "configure:9217: checking for ncurses/term.h" >&5
9157 9217
9158 cat > conftest.$ac_ext <<EOF 9218 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure" 9219 #line 9220 "configure"
9160 #include "confdefs.h" 9220 #include "confdefs.h"
9161 #include <ncurses/term.h> 9221 #include <ncurses/term.h>
9162 EOF 9222 EOF
9163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9164 { (eval echo configure:9165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9224 { (eval echo configure:9225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9165 ac_err=`grep -v '^ *+' conftest.out` 9225 ac_err=`grep -v '^ *+' conftest.out`
9166 if test -z "$ac_err"; then 9226 if test -z "$ac_err"; then
9167 rm -rf conftest* 9227 rm -rf conftest*
9168 eval "ac_cv_header_$ac_safe=yes" 9228 eval "ac_cv_header_$ac_safe=yes"
9169 else 9229 else
9189 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9249 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9190 save_c_switch_site="$c_switch_site" 9250 save_c_switch_site="$c_switch_site"
9191 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9251 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9192 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9252 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9193 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9253 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9194 echo "configure:9195: checking for ncurses/curses.h" >&5 9254 echo "configure:9255: checking for ncurses/curses.h" >&5
9195 9255
9196 cat > conftest.$ac_ext <<EOF 9256 cat > conftest.$ac_ext <<EOF
9197 #line 9198 "configure" 9257 #line 9258 "configure"
9198 #include "confdefs.h" 9258 #include "confdefs.h"
9199 #include <ncurses/curses.h> 9259 #include <ncurses/curses.h>
9200 EOF 9260 EOF
9201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9202 { (eval echo configure:9203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9262 { (eval echo configure:9263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9203 ac_err=`grep -v '^ *+' conftest.out` 9263 ac_err=`grep -v '^ *+' conftest.out`
9204 if test -z "$ac_err"; then 9264 if test -z "$ac_err"; then
9205 rm -rf conftest* 9265 rm -rf conftest*
9206 eval "ac_cv_header_$ac_safe=yes" 9266 eval "ac_cv_header_$ac_safe=yes"
9207 else 9267 else
9232 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9292 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9233 else 9293 else
9234 for lib in curses termlib termcap; do 9294 for lib in curses termlib termcap; do
9235 9295
9236 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9296 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9237 echo "configure:9238: checking for tgetent in -l$lib" >&5 9297 echo "configure:9298: checking for tgetent in -l$lib" >&5
9238 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9298 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9239 9299
9240 xe_check_libs=" -l$lib " 9300 xe_check_libs=" -l$lib "
9241 cat > conftest.$ac_ext <<EOF 9301 cat > conftest.$ac_ext <<EOF
9242 #line 9243 "configure" 9302 #line 9303 "configure"
9243 #include "confdefs.h" 9303 #include "confdefs.h"
9244 /* Override any gcc2 internal prototype to avoid an error. */ 9304 /* Override any gcc2 internal prototype to avoid an error. */
9245 /* We use char because int might match the return type of a gcc2 9305 /* We use char because int might match the return type of a gcc2
9246 builtin and then its argument prototype would still apply. */ 9306 builtin and then its argument prototype would still apply. */
9247 char tgetent(); 9307 char tgetent();
9248 9308
9249 int main() { 9309 int main() {
9250 tgetent() 9310 tgetent()
9251 ; return 0; } 9311 ; return 0; }
9252 EOF 9312 EOF
9253 if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9254 rm -rf conftest* 9314 rm -rf conftest*
9255 eval "ac_cv_lib_$ac_lib_var=yes" 9315 eval "ac_cv_lib_$ac_lib_var=yes"
9256 else 9316 else
9257 echo "configure: failed program was:" >&5 9317 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5 9318 cat conftest.$ac_ext >&5
9279 if test -n "$libs_termcap"; then 9339 if test -n "$libs_termcap"; then
9280 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9340 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9281 else 9341 else
9282 9342
9283 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9343 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9284 echo "configure:9285: checking for tgetent in -lcurses" >&5 9344 echo "configure:9345: checking for tgetent in -lcurses" >&5
9285 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9345 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9286 9346
9287 xe_check_libs=" -lcurses " 9347 xe_check_libs=" -lcurses "
9288 cat > conftest.$ac_ext <<EOF 9348 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure" 9349 #line 9350 "configure"
9290 #include "confdefs.h" 9350 #include "confdefs.h"
9291 /* Override any gcc2 internal prototype to avoid an error. */ 9351 /* Override any gcc2 internal prototype to avoid an error. */
9292 /* We use char because int might match the return type of a gcc2 9352 /* We use char because int might match the return type of a gcc2
9293 builtin and then its argument prototype would still apply. */ 9353 builtin and then its argument prototype would still apply. */
9294 char tgetent(); 9354 char tgetent();
9295 9355
9296 int main() { 9356 int main() {
9297 tgetent() 9357 tgetent()
9298 ; return 0; } 9358 ; return 0; }
9299 EOF 9359 EOF
9300 if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9301 rm -rf conftest* 9361 rm -rf conftest*
9302 eval "ac_cv_lib_$ac_lib_var=yes" 9362 eval "ac_cv_lib_$ac_lib_var=yes"
9303 else 9363 else
9304 echo "configure: failed program was:" >&5 9364 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5 9365 cat conftest.$ac_ext >&5
9313 echo "$ac_t""yes" 1>&6 9373 echo "$ac_t""yes" 1>&6
9314 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9374 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9315 else 9375 else
9316 echo "$ac_t""no" 1>&6 9376 echo "$ac_t""no" 1>&6
9317 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9377 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9318 echo "configure:9319: checking for tgetent in -ltermcap" >&5 9378 echo "configure:9379: checking for tgetent in -ltermcap" >&5
9319 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9379 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9320 9380
9321 xe_check_libs=" -ltermcap " 9381 xe_check_libs=" -ltermcap "
9322 cat > conftest.$ac_ext <<EOF 9382 cat > conftest.$ac_ext <<EOF
9323 #line 9324 "configure" 9383 #line 9384 "configure"
9324 #include "confdefs.h" 9384 #include "confdefs.h"
9325 /* Override any gcc2 internal prototype to avoid an error. */ 9385 /* Override any gcc2 internal prototype to avoid an error. */
9326 /* We use char because int might match the return type of a gcc2 9386 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */ 9387 builtin and then its argument prototype would still apply. */
9328 char tgetent(); 9388 char tgetent();
9329 9389
9330 int main() { 9390 int main() {
9331 tgetent() 9391 tgetent()
9332 ; return 0; } 9392 ; return 0; }
9333 EOF 9393 EOF
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9394 if { (eval echo configure:9395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9335 rm -rf conftest* 9395 rm -rf conftest*
9336 eval "ac_cv_lib_$ac_lib_var=yes" 9396 eval "ac_cv_lib_$ac_lib_var=yes"
9337 else 9397 else
9338 echo "configure: failed program was:" >&5 9398 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5 9399 cat conftest.$ac_ext >&5
9377 } 9437 }
9378 9438
9379 9439
9380 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9440 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9381 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9441 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9382 echo "configure:9383: checking for gpm.h" >&5 9442 echo "configure:9443: checking for gpm.h" >&5
9383 9443
9384 cat > conftest.$ac_ext <<EOF 9444 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure" 9445 #line 9446 "configure"
9386 #include "confdefs.h" 9446 #include "confdefs.h"
9387 #include <gpm.h> 9447 #include <gpm.h>
9388 EOF 9448 EOF
9389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9390 { (eval echo configure:9391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9450 { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9391 ac_err=`grep -v '^ *+' conftest.out` 9451 ac_err=`grep -v '^ *+' conftest.out`
9392 if test -z "$ac_err"; then 9452 if test -z "$ac_err"; then
9393 rm -rf conftest* 9453 rm -rf conftest*
9394 eval "ac_cv_header_$ac_safe=yes" 9454 eval "ac_cv_header_$ac_safe=yes"
9395 else 9455 else
9408 with_gpm=no 9468 with_gpm=no
9409 fi 9469 fi
9410 } 9470 }
9411 test -z "$with_gpm" && { 9471 test -z "$with_gpm" && {
9412 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9472 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9413 echo "configure:9414: checking for Gpm_Open in -lgpm" >&5 9473 echo "configure:9474: checking for Gpm_Open in -lgpm" >&5
9414 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9474 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9415 9475
9416 xe_check_libs=" -lgpm " 9476 xe_check_libs=" -lgpm "
9417 cat > conftest.$ac_ext <<EOF 9477 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure" 9478 #line 9479 "configure"
9419 #include "confdefs.h" 9479 #include "confdefs.h"
9420 /* Override any gcc2 internal prototype to avoid an error. */ 9480 /* Override any gcc2 internal prototype to avoid an error. */
9421 /* We use char because int might match the return type of a gcc2 9481 /* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */ 9482 builtin and then its argument prototype would still apply. */
9423 char Gpm_Open(); 9483 char Gpm_Open();
9424 9484
9425 int main() { 9485 int main() {
9426 Gpm_Open() 9486 Gpm_Open()
9427 ; return 0; } 9487 ; return 0; }
9428 EOF 9488 EOF
9429 if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9489 if { (eval echo configure:9490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9430 rm -rf conftest* 9490 rm -rf conftest*
9431 eval "ac_cv_lib_$ac_lib_var=yes" 9491 eval "ac_cv_lib_$ac_lib_var=yes"
9432 else 9492 else
9433 echo "configure: failed program was:" >&5 9493 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5 9494 cat conftest.$ac_ext >&5
9473 echo " xemacs will be linked with \"event-unixoid.o\"" 9533 echo " xemacs will be linked with \"event-unixoid.o\""
9474 fi 9534 fi
9475 9535
9476 9536
9477 echo "checking for database support" 1>&6 9537 echo "checking for database support" 1>&6
9478 echo "configure:9479: checking for database support" >&5 9538 echo "configure:9539: checking for database support" >&5
9479 9539
9480 if test "$with_database_gnudbm" != "no"; then 9540 if test "$with_database_gnudbm" != "no"; then
9481 9541
9482 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9542 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9483 echo "configure:9484: checking for dbm_open in -lgdbm" >&5 9543 echo "configure:9544: checking for dbm_open in -lgdbm" >&5
9484 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9544 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9485 9545
9486 xe_check_libs=" -lgdbm " 9546 xe_check_libs=" -lgdbm "
9487 cat > conftest.$ac_ext <<EOF 9547 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure" 9548 #line 9549 "configure"
9489 #include "confdefs.h" 9549 #include "confdefs.h"
9490 /* Override any gcc2 internal prototype to avoid an error. */ 9550 /* Override any gcc2 internal prototype to avoid an error. */
9491 /* We use char because int might match the return type of a gcc2 9551 /* We use char because int might match the return type of a gcc2
9492 builtin and then its argument prototype would still apply. */ 9552 builtin and then its argument prototype would still apply. */
9493 char dbm_open(); 9553 char dbm_open();
9494 9554
9495 int main() { 9555 int main() {
9496 dbm_open() 9556 dbm_open()
9497 ; return 0; } 9557 ; return 0; }
9498 EOF 9558 EOF
9499 if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9500 rm -rf conftest* 9560 rm -rf conftest*
9501 eval "ac_cv_lib_$ac_lib_var=yes" 9561 eval "ac_cv_lib_$ac_lib_var=yes"
9502 else 9562 else
9503 echo "configure: failed program was:" >&5 9563 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5 9564 cat conftest.$ac_ext >&5
9516 fi 9576 fi
9517 9577
9518 9578
9519 if test "$with_database_gnudbm" != "yes"; then 9579 if test "$with_database_gnudbm" != "yes"; then
9520 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9580 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9521 echo "configure:9522: checking for dbm_open" >&5 9581 echo "configure:9582: checking for dbm_open" >&5
9522 9582
9523 cat > conftest.$ac_ext <<EOF 9583 cat > conftest.$ac_ext <<EOF
9524 #line 9525 "configure" 9584 #line 9585 "configure"
9525 #include "confdefs.h" 9585 #include "confdefs.h"
9526 /* System header to define __stub macros and hopefully few prototypes, 9586 /* System header to define __stub macros and hopefully few prototypes,
9527 which can conflict with char dbm_open(); below. */ 9587 which can conflict with char dbm_open(); below. */
9528 #include <assert.h> 9588 #include <assert.h>
9529 /* Override any gcc2 internal prototype to avoid an error. */ 9589 /* Override any gcc2 internal prototype to avoid an error. */
9542 dbm_open(); 9602 dbm_open();
9543 #endif 9603 #endif
9544 9604
9545 ; return 0; } 9605 ; return 0; }
9546 EOF 9606 EOF
9547 if { (eval echo configure:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9548 rm -rf conftest* 9608 rm -rf conftest*
9549 eval "ac_cv_func_dbm_open=yes" 9609 eval "ac_cv_func_dbm_open=yes"
9550 else 9610 else
9551 echo "configure: failed program was:" >&5 9611 echo "configure: failed program was:" >&5
9552 cat conftest.$ac_ext >&5 9612 cat conftest.$ac_ext >&5
9578 fi 9638 fi
9579 fi 9639 fi
9580 9640
9581 if test "$with_database_dbm" != "no"; then 9641 if test "$with_database_dbm" != "no"; then
9582 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9642 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9583 echo "configure:9584: checking for dbm_open" >&5 9643 echo "configure:9644: checking for dbm_open" >&5
9584 9644
9585 cat > conftest.$ac_ext <<EOF 9645 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure" 9646 #line 9647 "configure"
9587 #include "confdefs.h" 9647 #include "confdefs.h"
9588 /* System header to define __stub macros and hopefully few prototypes, 9648 /* System header to define __stub macros and hopefully few prototypes,
9589 which can conflict with char dbm_open(); below. */ 9649 which can conflict with char dbm_open(); below. */
9590 #include <assert.h> 9650 #include <assert.h>
9591 /* Override any gcc2 internal prototype to avoid an error. */ 9651 /* Override any gcc2 internal prototype to avoid an error. */
9604 dbm_open(); 9664 dbm_open();
9605 #endif 9665 #endif
9606 9666
9607 ; return 0; } 9667 ; return 0; }
9608 EOF 9668 EOF
9609 if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9610 rm -rf conftest* 9670 rm -rf conftest*
9611 eval "ac_cv_func_dbm_open=yes" 9671 eval "ac_cv_func_dbm_open=yes"
9612 else 9672 else
9613 echo "configure: failed program was:" >&5 9673 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5 9674 cat conftest.$ac_ext >&5
9625 fi 9685 fi
9626 9686
9627 if test "$need_libdbm" != "no"; then 9687 if test "$need_libdbm" != "no"; then
9628 9688
9629 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9689 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9630 echo "configure:9631: checking for dbm_open in -ldbm" >&5 9690 echo "configure:9691: checking for dbm_open in -ldbm" >&5
9631 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9691 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9632 9692
9633 xe_check_libs=" -ldbm " 9693 xe_check_libs=" -ldbm "
9634 cat > conftest.$ac_ext <<EOF 9694 cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure" 9695 #line 9696 "configure"
9636 #include "confdefs.h" 9696 #include "confdefs.h"
9637 /* Override any gcc2 internal prototype to avoid an error. */ 9697 /* Override any gcc2 internal prototype to avoid an error. */
9638 /* We use char because int might match the return type of a gcc2 9698 /* We use char because int might match the return type of a gcc2
9639 builtin and then its argument prototype would still apply. */ 9699 builtin and then its argument prototype would still apply. */
9640 char dbm_open(); 9700 char dbm_open();
9641 9701
9642 int main() { 9702 int main() {
9643 dbm_open() 9703 dbm_open()
9644 ; return 0; } 9704 ; return 0; }
9645 EOF 9705 EOF
9646 if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9647 rm -rf conftest* 9707 rm -rf conftest*
9648 eval "ac_cv_lib_$ac_lib_var=yes" 9708 eval "ac_cv_lib_$ac_lib_var=yes"
9649 else 9709 else
9650 echo "configure: failed program was:" >&5 9710 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5 9711 cat conftest.$ac_ext >&5
9678 fi 9738 fi
9679 fi 9739 fi
9680 9740
9681 if test "$with_database_berkdb" != "no"; then 9741 if test "$with_database_berkdb" != "no"; then
9682 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9742 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9683 echo "configure:9684: checking for dbopen" >&5 9743 echo "configure:9744: checking for dbopen" >&5
9684 9744
9685 cat > conftest.$ac_ext <<EOF 9745 cat > conftest.$ac_ext <<EOF
9686 #line 9687 "configure" 9746 #line 9747 "configure"
9687 #include "confdefs.h" 9747 #include "confdefs.h"
9688 /* System header to define __stub macros and hopefully few prototypes, 9748 /* System header to define __stub macros and hopefully few prototypes,
9689 which can conflict with char dbopen(); below. */ 9749 which can conflict with char dbopen(); below. */
9690 #include <assert.h> 9750 #include <assert.h>
9691 /* Override any gcc2 internal prototype to avoid an error. */ 9751 /* Override any gcc2 internal prototype to avoid an error. */
9704 dbopen(); 9764 dbopen();
9705 #endif 9765 #endif
9706 9766
9707 ; return 0; } 9767 ; return 0; }
9708 EOF 9768 EOF
9709 if { (eval echo configure:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9769 if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9710 rm -rf conftest* 9770 rm -rf conftest*
9711 eval "ac_cv_func_dbopen=yes" 9771 eval "ac_cv_func_dbopen=yes"
9712 else 9772 else
9713 echo "configure: failed program was:" >&5 9773 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5 9774 cat conftest.$ac_ext >&5
9725 fi 9785 fi
9726 9786
9727 if test "$need_libdb" != "no"; then 9787 if test "$need_libdb" != "no"; then
9728 9788
9729 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9789 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9730 echo "configure:9731: checking for dbopen in -ldb" >&5 9790 echo "configure:9791: checking for dbopen in -ldb" >&5
9731 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9791 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9732 9792
9733 xe_check_libs=" -ldb " 9793 xe_check_libs=" -ldb "
9734 cat > conftest.$ac_ext <<EOF 9794 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure" 9795 #line 9796 "configure"
9736 #include "confdefs.h" 9796 #include "confdefs.h"
9737 /* Override any gcc2 internal prototype to avoid an error. */ 9797 /* Override any gcc2 internal prototype to avoid an error. */
9738 /* We use char because int might match the return type of a gcc2 9798 /* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */ 9799 builtin and then its argument prototype would still apply. */
9740 char dbopen(); 9800 char dbopen();
9741 9801
9742 int main() { 9802 int main() {
9743 dbopen() 9803 dbopen()
9744 ; return 0; } 9804 ; return 0; }
9745 EOF 9805 EOF
9746 if { (eval echo configure:9747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9806 if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9747 rm -rf conftest* 9807 rm -rf conftest*
9748 eval "ac_cv_lib_$ac_lib_var=yes" 9808 eval "ac_cv_lib_$ac_lib_var=yes"
9749 else 9809 else
9750 echo "configure: failed program was:" >&5 9810 echo "configure: failed program was:" >&5
9751 cat conftest.$ac_ext >&5 9811 cat conftest.$ac_ext >&5
9765 9825
9766 fi 9826 fi
9767 if test "$with_database_berkdb" = "yes"; then 9827 if test "$with_database_berkdb" = "yes"; then
9768 for path in "db/db.h" "db.h"; do 9828 for path in "db/db.h" "db.h"; do
9769 cat > conftest.$ac_ext <<EOF 9829 cat > conftest.$ac_ext <<EOF
9770 #line 9771 "configure" 9830 #line 9831 "configure"
9771 #include "confdefs.h" 9831 #include "confdefs.h"
9772 #ifdef HAVE_INTTYPES_H 9832 #ifdef HAVE_INTTYPES_H
9773 #define __BIT_TYPES_DEFINED__ 9833 #define __BIT_TYPES_DEFINED__
9774 #include <inttypes.h> 9834 #include <inttypes.h>
9775 typedef uint8_t u_int8_t; 9835 typedef uint8_t u_int8_t;
9783 9843
9784 int main() { 9844 int main() {
9785 9845
9786 ; return 0; } 9846 ; return 0; }
9787 EOF 9847 EOF
9788 if { (eval echo configure:9789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9848 if { (eval echo configure:9849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9789 rm -rf conftest* 9849 rm -rf conftest*
9790 db_h_path="$path"; break 9850 db_h_path="$path"; break
9791 else 9851 else
9792 echo "configure: failed program was:" >&5 9852 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5 9853 cat conftest.$ac_ext >&5
9835 fi 9895 fi
9836 9896
9837 if test "$with_socks" = "yes"; then 9897 if test "$with_socks" = "yes"; then
9838 9898
9839 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9899 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9840 echo "configure:9841: checking for SOCKSinit in -lsocks" >&5 9900 echo "configure:9901: checking for SOCKSinit in -lsocks" >&5
9841 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9901 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9842 9902
9843 xe_check_libs=" -lsocks " 9903 xe_check_libs=" -lsocks "
9844 cat > conftest.$ac_ext <<EOF 9904 cat > conftest.$ac_ext <<EOF
9845 #line 9846 "configure" 9905 #line 9906 "configure"
9846 #include "confdefs.h" 9906 #include "confdefs.h"
9847 /* Override any gcc2 internal prototype to avoid an error. */ 9907 /* Override any gcc2 internal prototype to avoid an error. */
9848 /* We use char because int might match the return type of a gcc2 9908 /* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */ 9909 builtin and then its argument prototype would still apply. */
9850 char SOCKSinit(); 9910 char SOCKSinit();
9851 9911
9852 int main() { 9912 int main() {
9853 SOCKSinit() 9913 SOCKSinit()
9854 ; return 0; } 9914 ; return 0; }
9855 EOF 9915 EOF
9856 if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9857 rm -rf conftest* 9917 rm -rf conftest*
9858 eval "ac_cv_lib_$ac_lib_var=yes" 9918 eval "ac_cv_lib_$ac_lib_var=yes"
9859 else 9919 else
9860 echo "configure: failed program was:" >&5 9920 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5 9921 cat conftest.$ac_ext >&5