comparison configure @ 257:65c19d2020f7 r20-5b27

Import from CVS: tag r20-5b27
author cvs
date Mon, 13 Aug 2007 10:22:03 +0200
parents 084402c475ba
children 11cf20601dec
comparison
equal deleted inserted replaced
256:19076a51efde 257:65c19d2020f7
238 const_is_losing='yes' 238 const_is_losing='yes'
239 puresize='' 239 puresize=''
240 cflags='UNSPECIFIED' 240 cflags='UNSPECIFIED'
241 dynamic='' 241 dynamic=''
242 with_x11='' 242 with_x11=''
243 with_gung='no'
244 with_minimal_tagbits='no'
243 rel_alloc='default' 245 rel_alloc='default'
244 with_system_malloc='default' 246 with_system_malloc='default'
245 native_sound_lib='' 247 native_sound_lib=''
246 use_assertions="yes" 248 use_assertions="yes"
247 with_gif="" 249 with_gif=""
300 with_x | \ 302 with_x | \
301 with_x11 | \ 303 with_x11 | \
302 with_gcc | \ 304 with_gcc | \
303 with_gnu_make | \ 305 with_gnu_make | \
304 dynamic | \ 306 dynamic | \
307 with_gung | \
305 with_ncurses | \ 308 with_ncurses | \
306 with_dnet | \ 309 with_dnet | \
307 with_term | \
308 with_socks | \ 310 with_socks | \
309 with_cde | \ 311 with_cde | \
310 with_offix | \ 312 with_offix | \
311 with_gpm | \ 313 with_gpm | \
312 with_xpm | \ 314 with_xpm | \
634 ;; 636 ;;
635 esac 637 esac
636 638
637 if test -z "$configuration"; then 639 if test -z "$configuration"; then
638 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 640 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
639 echo "configure:640: checking "host system type"" >&5 641 echo "configure:642: checking "host system type"" >&5
640 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \ 642 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
641 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then 643 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
642 echo "$ac_t""$configuration" 1>&6 644 echo "$ac_t""$configuration" 1>&6
643 else 645 else
644 echo "$ac_t""unknown" 1>&6 646 echo "$ac_t""unknown" 1>&6
648 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 650 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
649 fi 651 fi
650 fi 652 fi
651 653
652 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 654 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
653 echo "configure:654: checking whether ln -s works" >&5 655 echo "configure:656: checking whether ln -s works" >&5
654 656
655 rm -f conftestdata 657 rm -f conftestdata
656 if ln -s X conftestdata 2>/dev/null 658 if ln -s X conftestdata 2>/dev/null
657 then 659 then
658 rm -f conftestdata 660 rm -f conftestdata
825 } 827 }
826 828
827 829
828 830
829 echo "checking "the configuration name"" 1>&6 831 echo "checking "the configuration name"" 1>&6
830 echo "configure:831: checking "the configuration name"" >&5 832 echo "configure:833: checking "the configuration name"" >&5
831 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 833 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
832 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 834 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
833 exit $? 835 exit $?
834 fi 836 fi
835 837
1296 xe_save_CFLAGS="$CFLAGS" 1298 xe_save_CFLAGS="$CFLAGS"
1297 1299
1298 # Extract the first word of "gcc", so it can be a program name with args. 1300 # Extract the first word of "gcc", so it can be a program name with args.
1299 set dummy gcc; ac_word=$2 1301 set dummy gcc; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5 1303 echo "configure:1304: checking for $ac_word" >&5
1302 1304
1303 if test -n "$CC"; then 1305 if test -n "$CC"; then
1304 ac_cv_prog_CC="$CC" # Let the user override the test. 1306 ac_cv_prog_CC="$CC" # Let the user override the test.
1305 else 1307 else
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1322 1324
1323 if test -z "$CC"; then 1325 if test -z "$CC"; then
1324 # Extract the first word of "cc", so it can be a program name with args. 1326 # Extract the first word of "cc", so it can be a program name with args.
1325 set dummy cc; ac_word=$2 1327 set dummy cc; ac_word=$2
1326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1327 echo "configure:1328: checking for $ac_word" >&5 1329 echo "configure:1330: checking for $ac_word" >&5
1328 1330
1329 if test -n "$CC"; then 1331 if test -n "$CC"; then
1330 ac_cv_prog_CC="$CC" # Let the user override the test. 1332 ac_cv_prog_CC="$CC" # Let the user override the test.
1331 else 1333 else
1332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1367 1369
1368 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1370 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1369 fi 1371 fi
1370 1372
1371 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1373 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1372 echo "configure:1373: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1374 echo "configure:1375: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1373 1375
1374 ac_ext=c 1376 ac_ext=c
1375 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1377 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1376 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1378 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1377 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1379 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1379 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1381 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1380 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1382 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1381 cross_compiling=no 1383 cross_compiling=no
1382 1384
1383 cat > conftest.$ac_ext <<EOF 1385 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure" 1386 #line 1387 "configure"
1385 #include "confdefs.h" 1387 #include "confdefs.h"
1386 main(){return(0);} 1388 main(){return(0);}
1387 EOF 1389 EOF
1388 if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1389 ac_cv_prog_cc_works=yes 1391 ac_cv_prog_cc_works=yes
1390 # If we can't run a trivial program, we are probably using a cross compiler. 1392 # If we can't run a trivial program, we are probably using a cross compiler.
1391 if (./conftest; exit) 2>/dev/null; then 1393 if (./conftest; exit) 2>/dev/null; then
1392 ac_cv_prog_cc_cross=no 1394 ac_cv_prog_cc_cross=no
1393 else 1395 else
1403 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1405 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1404 if test $ac_cv_prog_cc_works = no; then 1406 if test $ac_cv_prog_cc_works = no; then
1405 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1407 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1406 fi 1408 fi
1407 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1409 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1408 echo "configure:1409: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1410 echo "configure:1411: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1409 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1411 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1410 cross_compiling=$ac_cv_prog_cc_cross 1412 cross_compiling=$ac_cv_prog_cc_cross
1411 1413
1412 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1414 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1413 echo "configure:1414: checking whether we are using GNU C" >&5 1415 echo "configure:1416: checking whether we are using GNU C" >&5
1414 1416
1415 cat > conftest.c <<EOF 1417 cat > conftest.c <<EOF
1416 #ifdef __GNUC__ 1418 #ifdef __GNUC__
1417 yes; 1419 yes;
1418 #endif 1420 #endif
1419 EOF 1421 EOF
1420 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1422 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1421 ac_cv_prog_gcc=yes 1423 ac_cv_prog_gcc=yes
1422 else 1424 else
1423 ac_cv_prog_gcc=no 1425 ac_cv_prog_gcc=no
1424 fi 1426 fi
1425 1427
1429 GCC=yes 1431 GCC=yes
1430 ac_test_CFLAGS="${CFLAGS+set}" 1432 ac_test_CFLAGS="${CFLAGS+set}"
1431 ac_save_CFLAGS="$CFLAGS" 1433 ac_save_CFLAGS="$CFLAGS"
1432 CFLAGS= 1434 CFLAGS=
1433 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1435 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1434 echo "configure:1435: checking whether ${CC-cc} accepts -g" >&5 1436 echo "configure:1437: checking whether ${CC-cc} accepts -g" >&5
1435 1437
1436 echo 'void f(){}' > conftest.c 1438 echo 'void f(){}' > conftest.c
1437 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1439 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1438 ac_cv_prog_cc_g=yes 1440 ac_cv_prog_cc_g=yes
1439 else 1441 else
1458 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1460 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1459 CC=${NON_GNU_CC-cc} 1461 CC=${NON_GNU_CC-cc}
1460 # Extract the first word of "gcc", so it can be a program name with args. 1462 # Extract the first word of "gcc", so it can be a program name with args.
1461 set dummy gcc; ac_word=$2 1463 set dummy gcc; ac_word=$2
1462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1463 echo "configure:1464: checking for $ac_word" >&5 1465 echo "configure:1466: checking for $ac_word" >&5
1464 1466
1465 if test -n "$CC"; then 1467 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test. 1468 ac_cv_prog_CC="$CC" # Let the user override the test.
1467 else 1469 else
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1484 1486
1485 if test -z "$CC"; then 1487 if test -z "$CC"; then
1486 # Extract the first word of "cc", so it can be a program name with args. 1488 # Extract the first word of "cc", so it can be a program name with args.
1487 set dummy cc; ac_word=$2 1489 set dummy cc; ac_word=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5 1491 echo "configure:1492: checking for $ac_word" >&5
1490 1492
1491 if test -n "$CC"; then 1493 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test. 1494 ac_cv_prog_CC="$CC" # Let the user override the test.
1493 else 1495 else
1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1529 1531
1530 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1532 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1531 fi 1533 fi
1532 1534
1533 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1535 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1534 echo "configure:1535: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1536 echo "configure:1537: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1535 1537
1536 ac_ext=c 1538 ac_ext=c
1537 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1539 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1538 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1540 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1539 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1541 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1541 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1543 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1542 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1544 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1543 cross_compiling=no 1545 cross_compiling=no
1544 1546
1545 cat > conftest.$ac_ext <<EOF 1547 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure" 1548 #line 1549 "configure"
1547 #include "confdefs.h" 1549 #include "confdefs.h"
1548 main(){return(0);} 1550 main(){return(0);}
1549 EOF 1551 EOF
1550 if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1552 if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1551 ac_cv_prog_cc_works=yes 1553 ac_cv_prog_cc_works=yes
1552 # If we can't run a trivial program, we are probably using a cross compiler. 1554 # If we can't run a trivial program, we are probably using a cross compiler.
1553 if (./conftest; exit) 2>/dev/null; then 1555 if (./conftest; exit) 2>/dev/null; then
1554 ac_cv_prog_cc_cross=no 1556 ac_cv_prog_cc_cross=no
1555 else 1557 else
1565 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1567 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1566 if test $ac_cv_prog_cc_works = no; then 1568 if test $ac_cv_prog_cc_works = no; then
1567 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1569 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1568 fi 1570 fi
1569 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1571 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1570 echo "configure:1571: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1572 echo "configure:1573: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1571 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1573 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1572 cross_compiling=$ac_cv_prog_cc_cross 1574 cross_compiling=$ac_cv_prog_cc_cross
1573 1575
1574 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1576 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1575 echo "configure:1576: checking whether we are using GNU C" >&5 1577 echo "configure:1578: checking whether we are using GNU C" >&5
1576 1578
1577 cat > conftest.c <<EOF 1579 cat > conftest.c <<EOF
1578 #ifdef __GNUC__ 1580 #ifdef __GNUC__
1579 yes; 1581 yes;
1580 #endif 1582 #endif
1581 EOF 1583 EOF
1582 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1584 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1583 ac_cv_prog_gcc=yes 1585 ac_cv_prog_gcc=yes
1584 else 1586 else
1585 ac_cv_prog_gcc=no 1587 ac_cv_prog_gcc=no
1586 fi 1588 fi
1587 1589
1591 GCC=yes 1593 GCC=yes
1592 ac_test_CFLAGS="${CFLAGS+set}" 1594 ac_test_CFLAGS="${CFLAGS+set}"
1593 ac_save_CFLAGS="$CFLAGS" 1595 ac_save_CFLAGS="$CFLAGS"
1594 CFLAGS= 1596 CFLAGS=
1595 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1597 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1596 echo "configure:1597: checking whether ${CC-cc} accepts -g" >&5 1598 echo "configure:1599: checking whether ${CC-cc} accepts -g" >&5
1597 1599
1598 echo 'void f(){}' > conftest.c 1600 echo 'void f(){}' > conftest.c
1599 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1601 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1600 ac_cv_prog_cc_g=yes 1602 ac_cv_prog_cc_g=yes
1601 else 1603 else
1620 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1622 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1621 CC=gcc 1623 CC=gcc
1622 # Extract the first word of "gcc", so it can be a program name with args. 1624 # Extract the first word of "gcc", so it can be a program name with args.
1623 set dummy gcc; ac_word=$2 1625 set dummy gcc; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5 1627 echo "configure:1628: checking for $ac_word" >&5
1626 1628
1627 if test -n "$CC"; then 1629 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test. 1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else 1631 else
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1646 1648
1647 if test -z "$CC"; then 1649 if test -z "$CC"; then
1648 # Extract the first word of "cc", so it can be a program name with args. 1650 # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2 1651 set dummy cc; ac_word=$2
1650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_word" >&5 1653 echo "configure:1654: checking for $ac_word" >&5
1652 1654
1653 if test -n "$CC"; then 1655 if test -n "$CC"; then
1654 ac_cv_prog_CC="$CC" # Let the user override the test. 1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1655 else 1657 else
1656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1691 1693
1692 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1694 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1693 fi 1695 fi
1694 1696
1695 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1697 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1696 echo "configure:1697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1698 echo "configure:1699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1697 1699
1698 ac_ext=c 1700 ac_ext=c
1699 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1701 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1700 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1702 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1701 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1703 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1703 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1705 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1704 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1706 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1705 cross_compiling=no 1707 cross_compiling=no
1706 1708
1707 cat > conftest.$ac_ext <<EOF 1709 cat > conftest.$ac_ext <<EOF
1708 #line 1709 "configure" 1710 #line 1711 "configure"
1709 #include "confdefs.h" 1711 #include "confdefs.h"
1710 main(){return(0);} 1712 main(){return(0);}
1711 EOF 1713 EOF
1712 if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1714 if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1713 ac_cv_prog_cc_works=yes 1715 ac_cv_prog_cc_works=yes
1714 # If we can't run a trivial program, we are probably using a cross compiler. 1716 # If we can't run a trivial program, we are probably using a cross compiler.
1715 if (./conftest; exit) 2>/dev/null; then 1717 if (./conftest; exit) 2>/dev/null; then
1716 ac_cv_prog_cc_cross=no 1718 ac_cv_prog_cc_cross=no
1717 else 1719 else
1727 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1729 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1728 if test $ac_cv_prog_cc_works = no; then 1730 if test $ac_cv_prog_cc_works = no; then
1729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1731 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1730 fi 1732 fi
1731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1733 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1734 echo "configure:1735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1733 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1735 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1734 cross_compiling=$ac_cv_prog_cc_cross 1736 cross_compiling=$ac_cv_prog_cc_cross
1735 1737
1736 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1738 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1737 echo "configure:1738: checking whether we are using GNU C" >&5 1739 echo "configure:1740: checking whether we are using GNU C" >&5
1738 1740
1739 cat > conftest.c <<EOF 1741 cat > conftest.c <<EOF
1740 #ifdef __GNUC__ 1742 #ifdef __GNUC__
1741 yes; 1743 yes;
1742 #endif 1744 #endif
1743 EOF 1745 EOF
1744 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1746 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1745 ac_cv_prog_gcc=yes 1747 ac_cv_prog_gcc=yes
1746 else 1748 else
1747 ac_cv_prog_gcc=no 1749 ac_cv_prog_gcc=no
1748 fi 1750 fi
1749 1751
1753 GCC=yes 1755 GCC=yes
1754 ac_test_CFLAGS="${CFLAGS+set}" 1756 ac_test_CFLAGS="${CFLAGS+set}"
1755 ac_save_CFLAGS="$CFLAGS" 1757 ac_save_CFLAGS="$CFLAGS"
1756 CFLAGS= 1758 CFLAGS=
1757 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1759 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1758 echo "configure:1759: checking whether ${CC-cc} accepts -g" >&5 1760 echo "configure:1761: checking whether ${CC-cc} accepts -g" >&5
1759 1761
1760 echo 'void f(){}' > conftest.c 1762 echo 'void f(){}' > conftest.c
1761 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1763 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1762 ac_cv_prog_cc_g=yes 1764 ac_cv_prog_cc_g=yes
1763 else 1765 else
1786 test -n "$CPP" -a -d "$CPP" && CPP= 1788 test -n "$CPP" -a -d "$CPP" && CPP=
1787 1789
1788 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1790 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1789 1791
1790 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1792 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1791 echo "configure:1792: checking how to run the C preprocessor" >&5 1793 echo "configure:1794: checking how to run the C preprocessor" >&5
1792 # On Suns, sometimes $CPP names a directory. 1794 # On Suns, sometimes $CPP names a directory.
1793 if test -n "$CPP" && test -d "$CPP"; then 1795 if test -n "$CPP" && test -d "$CPP"; then
1794 CPP= 1796 CPP=
1795 fi 1797 fi
1796 if test -z "$CPP"; then 1798 if test -z "$CPP"; then
1799 # substituted into the Makefile and "${CC-cc}" will confuse make. 1801 # substituted into the Makefile and "${CC-cc}" will confuse make.
1800 CPP="${CC-cc} -E" 1802 CPP="${CC-cc} -E"
1801 # On the NeXT, cc -E runs the code through the compiler's parser, 1803 # On the NeXT, cc -E runs the code through the compiler's parser,
1802 # not just through cpp. 1804 # not just through cpp.
1803 cat > conftest.$ac_ext <<EOF 1805 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure" 1806 #line 1807 "configure"
1805 #include "confdefs.h" 1807 #include "confdefs.h"
1806 #include <assert.h> 1808 #include <assert.h>
1807 Syntax Error 1809 Syntax Error
1808 EOF 1810 EOF
1809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1810 { (eval echo configure:1811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1812 { (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1811 ac_err=`grep -v '^ *+' conftest.out` 1813 ac_err=`grep -v '^ *+' conftest.out`
1812 if test -z "$ac_err"; then 1814 if test -z "$ac_err"; then
1813 : 1815 :
1814 else 1816 else
1815 echo "$ac_err" >&5 1817 echo "$ac_err" >&5
1816 echo "configure: failed program was:" >&5 1818 echo "configure: failed program was:" >&5
1817 cat conftest.$ac_ext >&5 1819 cat conftest.$ac_ext >&5
1818 rm -rf conftest* 1820 rm -rf conftest*
1819 CPP="${CC-cc} -E -traditional-cpp" 1821 CPP="${CC-cc} -E -traditional-cpp"
1820 cat > conftest.$ac_ext <<EOF 1822 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure" 1823 #line 1824 "configure"
1822 #include "confdefs.h" 1824 #include "confdefs.h"
1823 #include <assert.h> 1825 #include <assert.h>
1824 Syntax Error 1826 Syntax Error
1825 EOF 1827 EOF
1826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1827 { (eval echo configure:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1829 { (eval echo configure:1830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1828 ac_err=`grep -v '^ *+' conftest.out` 1830 ac_err=`grep -v '^ *+' conftest.out`
1829 if test -z "$ac_err"; then 1831 if test -z "$ac_err"; then
1830 : 1832 :
1831 else 1833 else
1832 echo "$ac_err" >&5 1834 echo "$ac_err" >&5
1845 fi 1847 fi
1846 echo "$ac_t""$CPP" 1>&6 1848 echo "$ac_t""$CPP" 1>&6
1847 1849
1848 1850
1849 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1851 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1850 echo "configure:1851: checking for AIX" >&5 1852 echo "configure:1853: checking for AIX" >&5
1851 cat > conftest.$ac_ext <<EOF 1853 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure" 1854 #line 1855 "configure"
1853 #include "confdefs.h" 1855 #include "confdefs.h"
1854 #ifdef _AIX 1856 #ifdef _AIX
1855 yes 1857 yes
1856 #endif 1858 #endif
1857 1859
1874 rm -f conftest* 1876 rm -f conftest*
1875 1877
1876 1878
1877 1879
1878 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 1880 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
1879 echo "configure:1880: checking for GNU libc" >&5 1881 echo "configure:1882: checking for GNU libc" >&5
1880 cat > conftest.$ac_ext <<EOF 1882 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure" 1883 #line 1884 "configure"
1882 #include "confdefs.h" 1884 #include "confdefs.h"
1883 #include <features.h> 1885 #include <features.h>
1884 int main() { 1886 int main() {
1885 1887
1886 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 1888 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1888 ******* ======= ******** &&&&&&&& 1890 ******* ======= ******** &&&&&&&&
1889 #endif 1891 #endif
1890 1892
1891 ; return 0; } 1893 ; return 0; }
1892 EOF 1894 EOF
1893 if { (eval echo configure:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1895 if { (eval echo configure:1896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1894 rm -rf conftest* 1896 rm -rf conftest*
1895 have_glibc=yes 1897 have_glibc=yes
1896 else 1898 else
1897 echo "configure: failed program was:" >&5 1899 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5 1900 cat conftest.$ac_ext >&5
1909 EOF 1911 EOF
1910 } 1912 }
1911 1913
1912 1914
1913 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 1915 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
1914 echo "configure:1915: checking whether we are using SunPro C" >&5 1916 echo "configure:1917: checking whether we are using SunPro C" >&5
1915 cat > conftest.$ac_ext <<EOF 1917 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure" 1918 #line 1919 "configure"
1917 #include "confdefs.h" 1919 #include "confdefs.h"
1918 1920
1919 int main() { 1921 int main() {
1920 #ifndef __SUNPRO_C 1922 #ifndef __SUNPRO_C
1921 #error Not a SunPro compiler :-( 1923 #error Not a SunPro compiler :-(
1922 ******* ======= ******** &&&&&&&& 1924 ******* ======= ******** &&&&&&&&
1923 #endif 1925 #endif
1924 1926
1925 ; return 0; } 1927 ; return 0; }
1926 EOF 1928 EOF
1927 if { (eval echo configure:1928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1929 if { (eval echo configure:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1928 rm -rf conftest* 1930 rm -rf conftest*
1929 __sunpro_c=yes 1931 __sunpro_c=yes
1930 else 1932 else
1931 echo "configure: failed program was:" >&5 1933 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5 1934 cat conftest.$ac_ext >&5
2198 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2200 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2199 echo " xemacs will be linked with \"$unexec\"" 2201 echo " xemacs will be linked with \"$unexec\""
2200 fi 2202 fi
2201 2203
2202 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2204 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2203 echo "configure:2204: checking for dynodump" >&5 2205 echo "configure:2206: checking for dynodump" >&5
2204 if test "$unexec" != "unexsol2.o"; then 2206 if test "$unexec" != "unexsol2.o"; then
2205 echo "$ac_t""no" 1>&6 2207 echo "$ac_t""no" 1>&6
2206 else 2208 else
2207 echo "$ac_t""yes" 1>&6 2209 echo "$ac_t""yes" 1>&6
2208 { test "$extra_verbose" = "yes" && cat << \EOF 2210 { test "$extra_verbose" = "yes" && cat << \EOF
2296 esac 2298 esac
2297 fi 2299 fi
2298 2300
2299 if test "$add_runtime_path" = "yes"; then 2301 if test "$add_runtime_path" = "yes"; then
2300 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2302 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2301 echo "configure:2302: checking "for runtime libraries flag"" >&5 2303 echo "configure:2304: checking "for runtime libraries flag"" >&5
2302 dash_r="" 2304 dash_r=""
2303 for try_dash_r in "-R" "-R " "-rpath "; do 2305 for try_dash_r in "-R" "-R " "-rpath "; do
2304 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2306 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2305 cat > conftest.$ac_ext <<EOF 2307 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure" 2308 #line 2309 "configure"
2307 #include "confdefs.h" 2309 #include "confdefs.h"
2308 2310
2309 int main() { 2311 int main() {
2310 2312
2311 ; return 0; } 2313 ; return 0; }
2312 EOF 2314 EOF
2313 if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2314 rm -rf conftest* 2316 rm -rf conftest*
2315 dash_r="$try_dash_r" 2317 dash_r="$try_dash_r"
2316 else 2318 else
2317 echo "configure: failed program was:" >&5 2319 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5 2320 cat conftest.$ac_ext >&5
2390 2392
2391 2393
2392 GNU_MALLOC=yes 2394 GNU_MALLOC=yes
2393 doug_lea_malloc=yes 2395 doug_lea_malloc=yes
2394 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2396 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2395 echo "configure:2396: checking for malloc_get_state" >&5 2397 echo "configure:2398: checking for malloc_get_state" >&5
2396 2398
2397 cat > conftest.$ac_ext <<EOF 2399 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure" 2400 #line 2401 "configure"
2399 #include "confdefs.h" 2401 #include "confdefs.h"
2400 /* System header to define __stub macros and hopefully few prototypes, 2402 /* System header to define __stub macros and hopefully few prototypes,
2401 which can conflict with char malloc_get_state(); below. */ 2403 which can conflict with char malloc_get_state(); below. */
2402 #include <assert.h> 2404 #include <assert.h>
2403 /* Override any gcc2 internal prototype to avoid an error. */ 2405 /* Override any gcc2 internal prototype to avoid an error. */
2416 malloc_get_state(); 2418 malloc_get_state();
2417 #endif 2419 #endif
2418 2420
2419 ; return 0; } 2421 ; return 0; }
2420 EOF 2422 EOF
2421 if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2423 if { (eval echo configure:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2422 rm -rf conftest* 2424 rm -rf conftest*
2423 eval "ac_cv_func_malloc_get_state=yes" 2425 eval "ac_cv_func_malloc_get_state=yes"
2424 else 2426 else
2425 echo "configure: failed program was:" >&5 2427 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5 2428 cat conftest.$ac_ext >&5
2436 echo "$ac_t""no" 1>&6 2438 echo "$ac_t""no" 1>&6
2437 doug_lea_malloc=no 2439 doug_lea_malloc=no
2438 fi 2440 fi
2439 2441
2440 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2442 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2441 echo "configure:2442: checking for malloc_set_state" >&5 2443 echo "configure:2444: checking for malloc_set_state" >&5
2442 2444
2443 cat > conftest.$ac_ext <<EOF 2445 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure" 2446 #line 2447 "configure"
2445 #include "confdefs.h" 2447 #include "confdefs.h"
2446 /* System header to define __stub macros and hopefully few prototypes, 2448 /* System header to define __stub macros and hopefully few prototypes,
2447 which can conflict with char malloc_set_state(); below. */ 2449 which can conflict with char malloc_set_state(); below. */
2448 #include <assert.h> 2450 #include <assert.h>
2449 /* Override any gcc2 internal prototype to avoid an error. */ 2451 /* Override any gcc2 internal prototype to avoid an error. */
2462 malloc_set_state(); 2464 malloc_set_state();
2463 #endif 2465 #endif
2464 2466
2465 ; return 0; } 2467 ; return 0; }
2466 EOF 2468 EOF
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2469 if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2468 rm -rf conftest* 2470 rm -rf conftest*
2469 eval "ac_cv_func_malloc_set_state=yes" 2471 eval "ac_cv_func_malloc_set_state=yes"
2470 else 2472 else
2471 echo "configure: failed program was:" >&5 2473 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5 2474 cat conftest.$ac_ext >&5
2482 echo "$ac_t""no" 1>&6 2484 echo "$ac_t""no" 1>&6
2483 doug_lea_malloc=no 2485 doug_lea_malloc=no
2484 fi 2486 fi
2485 2487
2486 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2488 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2487 echo "configure:2488: checking whether __after_morecore_hook exists" >&5 2489 echo "configure:2490: checking whether __after_morecore_hook exists" >&5
2488 cat > conftest.$ac_ext <<EOF 2490 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure" 2491 #line 2492 "configure"
2490 #include "confdefs.h" 2492 #include "confdefs.h"
2491 extern void (* __after_morecore_hook)(); 2493 extern void (* __after_morecore_hook)();
2492 int main() { 2494 int main() {
2493 __after_morecore_hook = 0 2495 __after_morecore_hook = 0
2494 ; return 0; } 2496 ; return 0; }
2495 EOF 2497 EOF
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2498 if { (eval echo configure:2499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2497 rm -rf conftest* 2499 rm -rf conftest*
2498 echo "$ac_t""yes" 1>&6 2500 echo "$ac_t""yes" 1>&6
2499 else 2501 else
2500 echo "configure: failed program was:" >&5 2502 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5 2503 cat conftest.$ac_ext >&5
2529 cat >> confdefs.h <<\EOF 2531 cat >> confdefs.h <<\EOF
2530 #define DOUG_LEA_MALLOC 1 2532 #define DOUG_LEA_MALLOC 1
2531 EOF 2533 EOF
2532 } 2534 }
2533 2535
2536 { test "$extra_verbose" = "yes" && cat << \EOF
2537 Defining USE_MINIMAL_TAGBITS
2538 EOF
2539 cat >> confdefs.h <<\EOF
2540 #define USE_MINIMAL_TAGBITS 1
2541 EOF
2542 }
2543
2544 with_minimal_tagbits=yes
2534 fi 2545 fi
2535 2546
2536 2547
2537 # Extract the first word of "ranlib", so it can be a program name with args. 2548 # Extract the first word of "ranlib", so it can be a program name with args.
2538 set dummy ranlib; ac_word=$2 2549 set dummy ranlib; ac_word=$2
2539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_word" >&5 2551 echo "configure:2552: checking for $ac_word" >&5
2541 2552
2542 if test -n "$RANLIB"; then 2553 if test -n "$RANLIB"; then
2543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2544 else 2555 else
2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2588 # AIX /bin/install 2599 # AIX /bin/install
2589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2600 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2601 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2591 # ./install, which can be erroneously created by make from ./install.sh. 2602 # ./install, which can be erroneously created by make from ./install.sh.
2592 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2603 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2593 echo "configure:2594: checking for a BSD compatible install" >&5 2604 echo "configure:2605: checking for a BSD compatible install" >&5
2594 if test -z "$INSTALL"; then 2605 if test -z "$INSTALL"; then
2595 2606
2596 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2607 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2597 for ac_dir in $PATH; do 2608 for ac_dir in $PATH; do
2598 # Account for people who put trailing slashes in PATH elements. 2609 # Account for people who put trailing slashes in PATH elements.
2639 for ac_prog in 'bison -y' byacc 2650 for ac_prog in 'bison -y' byacc
2640 do 2651 do
2641 # Extract the first word of "$ac_prog", so it can be a program name with args. 2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2 2653 set dummy $ac_prog; ac_word=$2
2643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2644 echo "configure:2645: checking for $ac_word" >&5 2655 echo "configure:2656: checking for $ac_word" >&5
2645 2656
2646 if test -n "$YACC"; then 2657 if test -n "$YACC"; then
2647 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2658 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2648 else 2659 else
2649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2670 2681
2671 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2682 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2672 do 2683 do
2673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_hdr" >&5 2686 echo "configure:2687: checking for $ac_hdr" >&5
2676 2687
2677 cat > conftest.$ac_ext <<EOF 2688 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure" 2689 #line 2690 "configure"
2679 #include "confdefs.h" 2690 #include "confdefs.h"
2680 #include <$ac_hdr> 2691 #include <$ac_hdr>
2681 EOF 2692 EOF
2682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683 { (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2694 { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2684 ac_err=`grep -v '^ *+' conftest.out` 2695 ac_err=`grep -v '^ *+' conftest.out`
2685 if test -z "$ac_err"; then 2696 if test -z "$ac_err"; then
2686 rm -rf conftest* 2697 rm -rf conftest*
2687 eval "ac_cv_header_$ac_safe=yes" 2698 eval "ac_cv_header_$ac_safe=yes"
2688 else 2699 else
2711 2722
2712 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2723 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2713 do 2724 do
2714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2716 echo "configure:2717: checking for $ac_hdr" >&5 2727 echo "configure:2728: checking for $ac_hdr" >&5
2717 2728
2718 cat > conftest.$ac_ext <<EOF 2729 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure" 2730 #line 2731 "configure"
2720 #include "confdefs.h" 2731 #include "confdefs.h"
2721 #include <$ac_hdr> 2732 #include <$ac_hdr>
2722 EOF 2733 EOF
2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2735 { (eval echo configure:2736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err=`grep -v '^ *+' conftest.out` 2736 ac_err=`grep -v '^ *+' conftest.out`
2726 if test -z "$ac_err"; then 2737 if test -z "$ac_err"; then
2727 rm -rf conftest* 2738 rm -rf conftest*
2728 eval "ac_cv_header_$ac_safe=yes" 2739 eval "ac_cv_header_$ac_safe=yes"
2729 else 2740 else
2752 2763
2753 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 2764 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
2754 do 2765 do
2755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_hdr" >&5 2768 echo "configure:2769: checking for $ac_hdr" >&5
2758 2769
2759 cat > conftest.$ac_ext <<EOF 2770 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure" 2771 #line 2772 "configure"
2761 #include "confdefs.h" 2772 #include "confdefs.h"
2762 #include <$ac_hdr> 2773 #include <$ac_hdr>
2763 EOF 2774 EOF
2764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2765 { (eval echo configure:2766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2776 { (eval echo configure:2777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2766 ac_err=`grep -v '^ *+' conftest.out` 2777 ac_err=`grep -v '^ *+' conftest.out`
2767 if test -z "$ac_err"; then 2778 if test -z "$ac_err"; then
2768 rm -rf conftest* 2779 rm -rf conftest*
2769 eval "ac_cv_header_$ac_safe=yes" 2780 eval "ac_cv_header_$ac_safe=yes"
2770 else 2781 else
2790 echo "$ac_t""no" 1>&6 2801 echo "$ac_t""no" 1>&6
2791 fi 2802 fi
2792 done 2803 done
2793 2804
2794 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2805 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2795 echo "configure:2796: checking for sys/wait.h that is POSIX.1 compatible" >&5 2806 echo "configure:2807: checking for sys/wait.h that is POSIX.1 compatible" >&5
2796 2807
2797 cat > conftest.$ac_ext <<EOF 2808 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure" 2809 #line 2810 "configure"
2799 #include "confdefs.h" 2810 #include "confdefs.h"
2800 #include <sys/types.h> 2811 #include <sys/types.h>
2801 #include <sys/wait.h> 2812 #include <sys/wait.h>
2802 #ifndef WEXITSTATUS 2813 #ifndef WEXITSTATUS
2803 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2814 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2809 int s; 2820 int s;
2810 wait (&s); 2821 wait (&s);
2811 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2822 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2812 ; return 0; } 2823 ; return 0; }
2813 EOF 2824 EOF
2814 if { (eval echo configure:2815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2825 if { (eval echo configure:2826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2815 rm -rf conftest* 2826 rm -rf conftest*
2816 ac_cv_header_sys_wait_h=yes 2827 ac_cv_header_sys_wait_h=yes
2817 else 2828 else
2818 echo "configure: failed program was:" >&5 2829 echo "configure: failed program was:" >&5
2819 cat conftest.$ac_ext >&5 2830 cat conftest.$ac_ext >&5
2833 } 2844 }
2834 2845
2835 fi 2846 fi
2836 2847
2837 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2848 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2838 echo "configure:2839: checking for ANSI C header files" >&5 2849 echo "configure:2850: checking for ANSI C header files" >&5
2839 2850
2840 cat > conftest.$ac_ext <<EOF 2851 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure" 2852 #line 2853 "configure"
2842 #include "confdefs.h" 2853 #include "confdefs.h"
2843 #include <stdlib.h> 2854 #include <stdlib.h>
2844 #include <stdarg.h> 2855 #include <stdarg.h>
2845 #include <string.h> 2856 #include <string.h>
2846 #include <float.h> 2857 #include <float.h>
2847 EOF 2858 EOF
2848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2849 { (eval echo configure:2850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2860 { (eval echo configure:2861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2850 ac_err=`grep -v '^ *+' conftest.out` 2861 ac_err=`grep -v '^ *+' conftest.out`
2851 if test -z "$ac_err"; then 2862 if test -z "$ac_err"; then
2852 rm -rf conftest* 2863 rm -rf conftest*
2853 ac_cv_header_stdc=yes 2864 ac_cv_header_stdc=yes
2854 else 2865 else
2861 rm -f conftest* 2872 rm -f conftest*
2862 2873
2863 if test $ac_cv_header_stdc = yes; then 2874 if test $ac_cv_header_stdc = yes; then
2864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2865 cat > conftest.$ac_ext <<EOF 2876 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure" 2877 #line 2878 "configure"
2867 #include "confdefs.h" 2878 #include "confdefs.h"
2868 #include <string.h> 2879 #include <string.h>
2869 EOF 2880 EOF
2870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2871 egrep "memchr" >/dev/null 2>&1; then 2882 egrep "memchr" >/dev/null 2>&1; then
2879 fi 2890 fi
2880 2891
2881 if test $ac_cv_header_stdc = yes; then 2892 if test $ac_cv_header_stdc = yes; then
2882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2883 cat > conftest.$ac_ext <<EOF 2894 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure" 2895 #line 2896 "configure"
2885 #include "confdefs.h" 2896 #include "confdefs.h"
2886 #include <stdlib.h> 2897 #include <stdlib.h>
2887 EOF 2898 EOF
2888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2889 egrep "free" >/dev/null 2>&1; then 2900 egrep "free" >/dev/null 2>&1; then
2897 fi 2908 fi
2898 2909
2899 if test $ac_cv_header_stdc = yes; then 2910 if test $ac_cv_header_stdc = yes; then
2900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2901 cat > conftest.$ac_ext <<EOF 2912 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure" 2913 #line 2914 "configure"
2903 #include "confdefs.h" 2914 #include "confdefs.h"
2904 #include <ctype.h> 2915 #include <ctype.h>
2905 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2916 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2906 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2917 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2908 int main () { int i; for (i = 0; i < 256; i++) 2919 int main () { int i; for (i = 0; i < 256; i++)
2909 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2920 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2910 exit (0); } 2921 exit (0); }
2911 2922
2912 EOF 2923 EOF
2913 if { (eval echo configure:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2924 if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2914 then 2925 then
2915 : 2926 :
2916 else 2927 else
2917 echo "configure: failed program was:" >&5 2928 echo "configure: failed program was:" >&5
2918 cat conftest.$ac_ext >&5 2929 cat conftest.$ac_ext >&5
2933 } 2944 }
2934 2945
2935 fi 2946 fi
2936 2947
2937 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2948 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2938 echo "configure:2939: checking whether time.h and sys/time.h may both be included" >&5 2949 echo "configure:2950: checking whether time.h and sys/time.h may both be included" >&5
2939 2950
2940 cat > conftest.$ac_ext <<EOF 2951 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure" 2952 #line 2953 "configure"
2942 #include "confdefs.h" 2953 #include "confdefs.h"
2943 #include <sys/types.h> 2954 #include <sys/types.h>
2944 #include <sys/time.h> 2955 #include <sys/time.h>
2945 #include <time.h> 2956 #include <time.h>
2946 int main() { 2957 int main() {
2947 struct tm *tp; 2958 struct tm *tp;
2948 ; return 0; } 2959 ; return 0; }
2949 EOF 2960 EOF
2950 if { (eval echo configure:2951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2961 if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2951 rm -rf conftest* 2962 rm -rf conftest*
2952 ac_cv_header_time=yes 2963 ac_cv_header_time=yes
2953 else 2964 else
2954 echo "configure: failed program was:" >&5 2965 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5 2966 cat conftest.$ac_ext >&5
2969 } 2980 }
2970 2981
2971 fi 2982 fi
2972 2983
2973 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2984 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2974 echo "configure:2975: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2985 echo "configure:2986: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2975 2986
2976 cat > conftest.$ac_ext <<EOF 2987 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure" 2988 #line 2989 "configure"
2978 #include "confdefs.h" 2989 #include "confdefs.h"
2979 #include <sys/types.h> 2990 #include <sys/types.h>
2980 #include <signal.h> 2991 #include <signal.h>
2981 /* NetBSD declares sys_siglist in unistd.h. */ 2992 /* NetBSD declares sys_siglist in unistd.h. */
2982 #ifdef HAVE_UNISTD_H 2993 #ifdef HAVE_UNISTD_H
2984 #endif 2995 #endif
2985 int main() { 2996 int main() {
2986 char *msg = *(sys_siglist + 1); 2997 char *msg = *(sys_siglist + 1);
2987 ; return 0; } 2998 ; return 0; }
2988 EOF 2999 EOF
2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2990 rm -rf conftest* 3001 rm -rf conftest*
2991 ac_cv_decl_sys_siglist=yes 3002 ac_cv_decl_sys_siglist=yes
2992 else 3003 else
2993 echo "configure: failed program was:" >&5 3004 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5 3005 cat conftest.$ac_ext >&5
3009 3020
3010 fi 3021 fi
3011 3022
3012 3023
3013 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3024 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3014 echo "configure:3015: checking for struct utimbuf" >&5 3025 echo "configure:3026: checking for struct utimbuf" >&5
3015 cat > conftest.$ac_ext <<EOF 3026 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure" 3027 #line 3028 "configure"
3017 #include "confdefs.h" 3028 #include "confdefs.h"
3018 #ifdef TIME_WITH_SYS_TIME 3029 #ifdef TIME_WITH_SYS_TIME
3019 #include <sys/time.h> 3030 #include <sys/time.h>
3020 #include <time.h> 3031 #include <time.h>
3021 #else 3032 #else
3030 #endif 3041 #endif
3031 int main() { 3042 int main() {
3032 static struct utimbuf x; x.actime = x.modtime; 3043 static struct utimbuf x; x.actime = x.modtime;
3033 ; return 0; } 3044 ; return 0; }
3034 EOF 3045 EOF
3035 if { (eval echo configure:3036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3046 if { (eval echo configure:3047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3036 rm -rf conftest* 3047 rm -rf conftest*
3037 echo "$ac_t""yes" 1>&6 3048 echo "$ac_t""yes" 1>&6
3038 { test "$extra_verbose" = "yes" && cat << \EOF 3049 { test "$extra_verbose" = "yes" && cat << \EOF
3039 Defining HAVE_STRUCT_UTIMBUF 3050 Defining HAVE_STRUCT_UTIMBUF
3040 EOF 3051 EOF
3050 echo "$ac_t""no" 1>&6 3061 echo "$ac_t""no" 1>&6
3051 fi 3062 fi
3052 rm -f conftest* 3063 rm -f conftest*
3053 3064
3054 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3065 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3055 echo "configure:3056: checking return type of signal handlers" >&5 3066 echo "configure:3067: checking return type of signal handlers" >&5
3056 3067
3057 cat > conftest.$ac_ext <<EOF 3068 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure" 3069 #line 3070 "configure"
3059 #include "confdefs.h" 3070 #include "confdefs.h"
3060 #include <sys/types.h> 3071 #include <sys/types.h>
3061 #include <signal.h> 3072 #include <signal.h>
3062 #ifdef signal 3073 #ifdef signal
3063 #undef signal 3074 #undef signal
3070 3081
3071 int main() { 3082 int main() {
3072 int i; 3083 int i;
3073 ; return 0; } 3084 ; return 0; }
3074 EOF 3085 EOF
3075 if { (eval echo configure:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3086 if { (eval echo configure:3087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3076 rm -rf conftest* 3087 rm -rf conftest*
3077 ac_cv_type_signal=void 3088 ac_cv_type_signal=void
3078 else 3089 else
3079 echo "configure: failed program was:" >&5 3090 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5 3091 cat conftest.$ac_ext >&5
3092 EOF 3103 EOF
3093 } 3104 }
3094 3105
3095 3106
3096 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3107 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3097 echo "configure:3098: checking for size_t" >&5 3108 echo "configure:3109: checking for size_t" >&5
3098 3109
3099 cat > conftest.$ac_ext <<EOF 3110 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure" 3111 #line 3112 "configure"
3101 #include "confdefs.h" 3112 #include "confdefs.h"
3102 #include <sys/types.h> 3113 #include <sys/types.h>
3103 #if STDC_HEADERS 3114 #if STDC_HEADERS
3104 #include <stdlib.h> 3115 #include <stdlib.h>
3105 #include <stddef.h> 3116 #include <stddef.h>
3126 } 3137 }
3127 3138
3128 fi 3139 fi
3129 3140
3130 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3141 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3131 echo "configure:3132: checking for pid_t" >&5 3142 echo "configure:3143: checking for pid_t" >&5
3132 3143
3133 cat > conftest.$ac_ext <<EOF 3144 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure" 3145 #line 3146 "configure"
3135 #include "confdefs.h" 3146 #include "confdefs.h"
3136 #include <sys/types.h> 3147 #include <sys/types.h>
3137 #if STDC_HEADERS 3148 #if STDC_HEADERS
3138 #include <stdlib.h> 3149 #include <stdlib.h>
3139 #include <stddef.h> 3150 #include <stddef.h>
3160 } 3171 }
3161 3172
3162 fi 3173 fi
3163 3174
3164 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3175 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3165 echo "configure:3166: checking for uid_t in sys/types.h" >&5 3176 echo "configure:3177: checking for uid_t in sys/types.h" >&5
3166 3177
3167 cat > conftest.$ac_ext <<EOF 3178 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure" 3179 #line 3180 "configure"
3169 #include "confdefs.h" 3180 #include "confdefs.h"
3170 #include <sys/types.h> 3181 #include <sys/types.h>
3171 EOF 3182 EOF
3172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3173 egrep "uid_t" >/dev/null 2>&1; then 3184 egrep "uid_t" >/dev/null 2>&1; then
3199 } 3210 }
3200 3211
3201 fi 3212 fi
3202 3213
3203 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3214 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3204 echo "configure:3205: checking for mode_t" >&5 3215 echo "configure:3216: checking for mode_t" >&5
3205 3216
3206 cat > conftest.$ac_ext <<EOF 3217 cat > conftest.$ac_ext <<EOF
3207 #line 3208 "configure" 3218 #line 3219 "configure"
3208 #include "confdefs.h" 3219 #include "confdefs.h"
3209 #include <sys/types.h> 3220 #include <sys/types.h>
3210 #if STDC_HEADERS 3221 #if STDC_HEADERS
3211 #include <stdlib.h> 3222 #include <stdlib.h>
3212 #include <stddef.h> 3223 #include <stddef.h>
3233 } 3244 }
3234 3245
3235 fi 3246 fi
3236 3247
3237 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3248 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3238 echo "configure:3239: checking for off_t" >&5 3249 echo "configure:3250: checking for off_t" >&5
3239 3250
3240 cat > conftest.$ac_ext <<EOF 3251 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure" 3252 #line 3253 "configure"
3242 #include "confdefs.h" 3253 #include "confdefs.h"
3243 #include <sys/types.h> 3254 #include <sys/types.h>
3244 #if STDC_HEADERS 3255 #if STDC_HEADERS
3245 #include <stdlib.h> 3256 #include <stdlib.h>
3246 #include <stddef.h> 3257 #include <stddef.h>
3268 3279
3269 fi 3280 fi
3270 3281
3271 3282
3272 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3283 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3273 echo "configure:3274: checking for struct timeval" >&5 3284 echo "configure:3285: checking for struct timeval" >&5
3274 cat > conftest.$ac_ext <<EOF 3285 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure" 3286 #line 3287 "configure"
3276 #include "confdefs.h" 3287 #include "confdefs.h"
3277 #ifdef TIME_WITH_SYS_TIME 3288 #ifdef TIME_WITH_SYS_TIME
3278 #include <sys/time.h> 3289 #include <sys/time.h>
3279 #include <time.h> 3290 #include <time.h>
3280 #else 3291 #else
3286 #endif 3297 #endif
3287 int main() { 3298 int main() {
3288 static struct timeval x; x.tv_sec = x.tv_usec; 3299 static struct timeval x; x.tv_sec = x.tv_usec;
3289 ; return 0; } 3300 ; return 0; }
3290 EOF 3301 EOF
3291 if { (eval echo configure:3292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3302 if { (eval echo configure:3303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3292 rm -rf conftest* 3303 rm -rf conftest*
3293 echo "$ac_t""yes" 1>&6 3304 echo "$ac_t""yes" 1>&6
3294 HAVE_TIMEVAL=yes 3305 HAVE_TIMEVAL=yes
3295 { test "$extra_verbose" = "yes" && cat << \EOF 3306 { test "$extra_verbose" = "yes" && cat << \EOF
3296 Defining HAVE_TIMEVAL 3307 Defining HAVE_TIMEVAL
3308 HAVE_TIMEVAL=no 3319 HAVE_TIMEVAL=no
3309 fi 3320 fi
3310 rm -f conftest* 3321 rm -f conftest*
3311 3322
3312 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3323 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3313 echo "configure:3314: checking whether struct tm is in sys/time.h or time.h" >&5 3324 echo "configure:3325: checking whether struct tm is in sys/time.h or time.h" >&5
3314 3325
3315 cat > conftest.$ac_ext <<EOF 3326 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure" 3327 #line 3328 "configure"
3317 #include "confdefs.h" 3328 #include "confdefs.h"
3318 #include <sys/types.h> 3329 #include <sys/types.h>
3319 #include <time.h> 3330 #include <time.h>
3320 int main() { 3331 int main() {
3321 struct tm *tp; tp->tm_sec; 3332 struct tm *tp; tp->tm_sec;
3322 ; return 0; } 3333 ; return 0; }
3323 EOF 3334 EOF
3324 if { (eval echo configure:3325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3325 rm -rf conftest* 3336 rm -rf conftest*
3326 ac_cv_struct_tm=time.h 3337 ac_cv_struct_tm=time.h
3327 else 3338 else
3328 echo "configure: failed program was:" >&5 3339 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5 3340 cat conftest.$ac_ext >&5
3343 } 3354 }
3344 3355
3345 fi 3356 fi
3346 3357
3347 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3358 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3348 echo "configure:3349: checking for tm_zone in struct tm" >&5 3359 echo "configure:3360: checking for tm_zone in struct tm" >&5
3349 3360
3350 cat > conftest.$ac_ext <<EOF 3361 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure" 3362 #line 3363 "configure"
3352 #include "confdefs.h" 3363 #include "confdefs.h"
3353 #include <sys/types.h> 3364 #include <sys/types.h>
3354 #include <$ac_cv_struct_tm> 3365 #include <$ac_cv_struct_tm>
3355 int main() { 3366 int main() {
3356 struct tm tm; tm.tm_zone; 3367 struct tm tm; tm.tm_zone;
3357 ; return 0; } 3368 ; return 0; }
3358 EOF 3369 EOF
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3370 if { (eval echo configure:3371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360 rm -rf conftest* 3371 rm -rf conftest*
3361 ac_cv_struct_tm_zone=yes 3372 ac_cv_struct_tm_zone=yes
3362 else 3373 else
3363 echo "configure: failed program was:" >&5 3374 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5 3375 cat conftest.$ac_ext >&5
3377 EOF 3388 EOF
3378 } 3389 }
3379 3390
3380 else 3391 else
3381 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3392 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3382 echo "configure:3383: checking for tzname" >&5 3393 echo "configure:3394: checking for tzname" >&5
3383 3394
3384 cat > conftest.$ac_ext <<EOF 3395 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure" 3396 #line 3397 "configure"
3386 #include "confdefs.h" 3397 #include "confdefs.h"
3387 #include <time.h> 3398 #include <time.h>
3388 #ifndef tzname /* For SGI. */ 3399 #ifndef tzname /* For SGI. */
3389 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3400 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3390 #endif 3401 #endif
3391 int main() { 3402 int main() {
3392 atoi(*tzname); 3403 atoi(*tzname);
3393 ; return 0; } 3404 ; return 0; }
3394 EOF 3405 EOF
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3396 rm -rf conftest* 3407 rm -rf conftest*
3397 ac_cv_var_tzname=yes 3408 ac_cv_var_tzname=yes
3398 else 3409 else
3399 echo "configure: failed program was:" >&5 3410 echo "configure: failed program was:" >&5
3400 cat conftest.$ac_ext >&5 3411 cat conftest.$ac_ext >&5
3416 fi 3427 fi
3417 fi 3428 fi
3418 3429
3419 3430
3420 echo $ac_n "checking for working const""... $ac_c" 1>&6 3431 echo $ac_n "checking for working const""... $ac_c" 1>&6
3421 echo "configure:3422: checking for working const" >&5 3432 echo "configure:3433: checking for working const" >&5
3422 3433
3423 cat > conftest.$ac_ext <<EOF 3434 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure" 3435 #line 3436 "configure"
3425 #include "confdefs.h" 3436 #include "confdefs.h"
3426 3437
3427 int main() { 3438 int main() {
3428 3439
3429 /* Ultrix mips cc rejects this. */ 3440 /* Ultrix mips cc rejects this. */
3468 const int foo = 10; 3479 const int foo = 10;
3469 } 3480 }
3470 3481
3471 ; return 0; } 3482 ; return 0; }
3472 EOF 3483 EOF
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3484 if { (eval echo configure:3485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474 rm -rf conftest* 3485 rm -rf conftest*
3475 ac_cv_c_const=yes 3486 ac_cv_c_const=yes
3476 else 3487 else
3477 echo "configure: failed program was:" >&5 3488 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5 3489 cat conftest.$ac_ext >&5
3493 3504
3494 fi 3505 fi
3495 3506
3496 3507
3497 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3508 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3498 echo "configure:3499: checking whether ${MAKE-make} sets \${MAKE}" >&5 3509 echo "configure:3510: checking whether ${MAKE-make} sets \${MAKE}" >&5
3499 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3510 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3500 3511
3501 cat > conftestmake <<\EOF 3512 cat > conftestmake <<\EOF
3502 all: 3513 all:
3503 @echo 'ac_maketemp="${MAKE}"' 3514 @echo 'ac_maketemp="${MAKE}"'
3518 SET_MAKE="MAKE=${MAKE-make}" 3529 SET_MAKE="MAKE=${MAKE-make}"
3519 fi 3530 fi
3520 3531
3521 3532
3522 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3533 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3523 echo "configure:3524: checking whether byte ordering is bigendian" >&5 3534 echo "configure:3535: checking whether byte ordering is bigendian" >&5
3524 3535
3525 ac_cv_c_bigendian=unknown 3536 ac_cv_c_bigendian=unknown
3526 # See if sys/param.h defines the BYTE_ORDER macro. 3537 # See if sys/param.h defines the BYTE_ORDER macro.
3527 cat > conftest.$ac_ext <<EOF 3538 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure" 3539 #line 3540 "configure"
3529 #include "confdefs.h" 3540 #include "confdefs.h"
3530 #include <sys/types.h> 3541 #include <sys/types.h>
3531 #include <sys/param.h> 3542 #include <sys/param.h>
3532 int main() { 3543 int main() {
3533 3544
3534 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3545 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3535 bogus endian macros 3546 bogus endian macros
3536 #endif 3547 #endif
3537 ; return 0; } 3548 ; return 0; }
3538 EOF 3549 EOF
3539 if { (eval echo configure:3540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3540 rm -rf conftest* 3551 rm -rf conftest*
3541 # It does; now see whether it defined to BIG_ENDIAN or not. 3552 # It does; now see whether it defined to BIG_ENDIAN or not.
3542 cat > conftest.$ac_ext <<EOF 3553 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure" 3554 #line 3555 "configure"
3544 #include "confdefs.h" 3555 #include "confdefs.h"
3545 #include <sys/types.h> 3556 #include <sys/types.h>
3546 #include <sys/param.h> 3557 #include <sys/param.h>
3547 int main() { 3558 int main() {
3548 3559
3549 #if BYTE_ORDER != BIG_ENDIAN 3560 #if BYTE_ORDER != BIG_ENDIAN
3550 not big endian 3561 not big endian
3551 #endif 3562 #endif
3552 ; return 0; } 3563 ; return 0; }
3553 EOF 3564 EOF
3554 if { (eval echo configure:3555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3565 if { (eval echo configure:3566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3555 rm -rf conftest* 3566 rm -rf conftest*
3556 ac_cv_c_bigendian=yes 3567 ac_cv_c_bigendian=yes
3557 else 3568 else
3558 echo "configure: failed program was:" >&5 3569 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5 3570 cat conftest.$ac_ext >&5
3566 cat conftest.$ac_ext >&5 3577 cat conftest.$ac_ext >&5
3567 fi 3578 fi
3568 rm -f conftest* 3579 rm -f conftest*
3569 if test $ac_cv_c_bigendian = unknown; then 3580 if test $ac_cv_c_bigendian = unknown; then
3570 cat > conftest.$ac_ext <<EOF 3581 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure" 3582 #line 3583 "configure"
3572 #include "confdefs.h" 3583 #include "confdefs.h"
3573 main () { 3584 main () {
3574 /* Are we little or big endian? From Harbison&Steele. */ 3585 /* Are we little or big endian? From Harbison&Steele. */
3575 union 3586 union
3576 { 3587 {
3579 } u; 3590 } u;
3580 u.l = 1; 3591 u.l = 1;
3581 exit (u.c[sizeof (long) - 1] == 1); 3592 exit (u.c[sizeof (long) - 1] == 1);
3582 } 3593 }
3583 EOF 3594 EOF
3584 if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3595 if { (eval echo configure:3596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3585 then 3596 then
3586 ac_cv_c_bigendian=no 3597 ac_cv_c_bigendian=no
3587 else 3598 else
3588 echo "configure: failed program was:" >&5 3599 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5 3600 cat conftest.$ac_ext >&5
3605 3616
3606 fi 3617 fi
3607 3618
3608 3619
3609 echo $ac_n "checking size of short""... $ac_c" 1>&6 3620 echo $ac_n "checking size of short""... $ac_c" 1>&6
3610 echo "configure:3611: checking size of short" >&5 3621 echo "configure:3622: checking size of short" >&5
3611 3622
3612 cat > conftest.$ac_ext <<EOF 3623 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure" 3624 #line 3625 "configure"
3614 #include "confdefs.h" 3625 #include "confdefs.h"
3615 #include <stdio.h> 3626 #include <stdio.h>
3616 main() 3627 main()
3617 { 3628 {
3618 FILE *f=fopen("conftestval", "w"); 3629 FILE *f=fopen("conftestval", "w");
3619 if (!f) exit(1); 3630 if (!f) exit(1);
3620 fprintf(f, "%d\n", sizeof(short)); 3631 fprintf(f, "%d\n", sizeof(short));
3621 exit(0); 3632 exit(0);
3622 } 3633 }
3623 EOF 3634 EOF
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3625 then 3636 then
3626 ac_cv_sizeof_short=`cat conftestval` 3637 ac_cv_sizeof_short=`cat conftestval`
3627 else 3638 else
3628 echo "configure: failed program was:" >&5 3639 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5 3640 cat conftest.$ac_ext >&5
3646 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3657 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3647 echo "*** PANIC *** Please examine config.log for compilation errors." 3658 echo "*** PANIC *** Please examine config.log for compilation errors."
3648 exit 1 3659 exit 1
3649 fi 3660 fi
3650 echo $ac_n "checking size of int""... $ac_c" 1>&6 3661 echo $ac_n "checking size of int""... $ac_c" 1>&6
3651 echo "configure:3652: checking size of int" >&5 3662 echo "configure:3663: checking size of int" >&5
3652 3663
3653 cat > conftest.$ac_ext <<EOF 3664 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure" 3665 #line 3666 "configure"
3655 #include "confdefs.h" 3666 #include "confdefs.h"
3656 #include <stdio.h> 3667 #include <stdio.h>
3657 main() 3668 main()
3658 { 3669 {
3659 FILE *f=fopen("conftestval", "w"); 3670 FILE *f=fopen("conftestval", "w");
3660 if (!f) exit(1); 3671 if (!f) exit(1);
3661 fprintf(f, "%d\n", sizeof(int)); 3672 fprintf(f, "%d\n", sizeof(int));
3662 exit(0); 3673 exit(0);
3663 } 3674 }
3664 EOF 3675 EOF
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3666 then 3677 then
3667 ac_cv_sizeof_int=`cat conftestval` 3678 ac_cv_sizeof_int=`cat conftestval`
3668 else 3679 else
3669 echo "configure: failed program was:" >&5 3680 echo "configure: failed program was:" >&5
3670 cat conftest.$ac_ext >&5 3681 cat conftest.$ac_ext >&5
3681 EOF 3692 EOF
3682 } 3693 }
3683 3694
3684 3695
3685 echo $ac_n "checking size of long""... $ac_c" 1>&6 3696 echo $ac_n "checking size of long""... $ac_c" 1>&6
3686 echo "configure:3687: checking size of long" >&5 3697 echo "configure:3698: checking size of long" >&5
3687 3698
3688 cat > conftest.$ac_ext <<EOF 3699 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure" 3700 #line 3701 "configure"
3690 #include "confdefs.h" 3701 #include "confdefs.h"
3691 #include <stdio.h> 3702 #include <stdio.h>
3692 main() 3703 main()
3693 { 3704 {
3694 FILE *f=fopen("conftestval", "w"); 3705 FILE *f=fopen("conftestval", "w");
3695 if (!f) exit(1); 3706 if (!f) exit(1);
3696 fprintf(f, "%d\n", sizeof(long)); 3707 fprintf(f, "%d\n", sizeof(long));
3697 exit(0); 3708 exit(0);
3698 } 3709 }
3699 EOF 3710 EOF
3700 if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3701 then 3712 then
3702 ac_cv_sizeof_long=`cat conftestval` 3713 ac_cv_sizeof_long=`cat conftestval`
3703 else 3714 else
3704 echo "configure: failed program was:" >&5 3715 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5 3716 cat conftest.$ac_ext >&5
3716 EOF 3727 EOF
3717 } 3728 }
3718 3729
3719 3730
3720 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3731 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3721 echo "configure:3722: checking size of long long" >&5 3732 echo "configure:3733: checking size of long long" >&5
3722 3733
3723 cat > conftest.$ac_ext <<EOF 3734 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure" 3735 #line 3736 "configure"
3725 #include "confdefs.h" 3736 #include "confdefs.h"
3726 #include <stdio.h> 3737 #include <stdio.h>
3727 main() 3738 main()
3728 { 3739 {
3729 FILE *f=fopen("conftestval", "w"); 3740 FILE *f=fopen("conftestval", "w");
3730 if (!f) exit(1); 3741 if (!f) exit(1);
3731 fprintf(f, "%d\n", sizeof(long long)); 3742 fprintf(f, "%d\n", sizeof(long long));
3732 exit(0); 3743 exit(0);
3733 } 3744 }
3734 EOF 3745 EOF
3735 if { (eval echo configure:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3736 then 3747 then
3737 ac_cv_sizeof_long_long=`cat conftestval` 3748 ac_cv_sizeof_long_long=`cat conftestval`
3738 else 3749 else
3739 echo "configure: failed program was:" >&5 3750 echo "configure: failed program was:" >&5
3740 cat conftest.$ac_ext >&5 3751 cat conftest.$ac_ext >&5
3751 EOF 3762 EOF
3752 } 3763 }
3753 3764
3754 3765
3755 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3766 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3756 echo "configure:3757: checking size of void *" >&5 3767 echo "configure:3768: checking size of void *" >&5
3757 3768
3758 cat > conftest.$ac_ext <<EOF 3769 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure" 3770 #line 3771 "configure"
3760 #include "confdefs.h" 3771 #include "confdefs.h"
3761 #include <stdio.h> 3772 #include <stdio.h>
3762 main() 3773 main()
3763 { 3774 {
3764 FILE *f=fopen("conftestval", "w"); 3775 FILE *f=fopen("conftestval", "w");
3765 if (!f) exit(1); 3776 if (!f) exit(1);
3766 fprintf(f, "%d\n", sizeof(void *)); 3777 fprintf(f, "%d\n", sizeof(void *));
3767 exit(0); 3778 exit(0);
3768 } 3779 }
3769 EOF 3780 EOF
3770 if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3771 then 3782 then
3772 ac_cv_sizeof_void_p=`cat conftestval` 3783 ac_cv_sizeof_void_p=`cat conftestval`
3773 else 3784 else
3774 echo "configure: failed program was:" >&5 3785 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5 3786 cat conftest.$ac_ext >&5
3787 } 3798 }
3788 3799
3789 3800
3790 3801
3791 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3802 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3792 echo "configure:3793: checking for long file names" >&5 3803 echo "configure:3804: checking for long file names" >&5
3793 3804
3794 ac_cv_sys_long_file_names=yes 3805 ac_cv_sys_long_file_names=yes
3795 # Test for long file names in all the places we know might matter: 3806 # Test for long file names in all the places we know might matter:
3796 # . the current directory, where building will happen 3807 # . the current directory, where building will happen
3797 # $prefix/lib where we will be installing things 3808 # $prefix/lib where we will be installing things
3834 fi 3845 fi
3835 3846
3836 3847
3837 3848
3838 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 3849 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3839 echo "configure:3840: checking for sin in -lm" >&5 3850 echo "configure:3851: checking for sin in -lm" >&5
3840 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 3851 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3841 3852
3842 xe_check_libs=" -lm " 3853 xe_check_libs=" -lm "
3843 cat > conftest.$ac_ext <<EOF 3854 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure" 3855 #line 3856 "configure"
3845 #include "confdefs.h" 3856 #include "confdefs.h"
3846 /* Override any gcc2 internal prototype to avoid an error. */ 3857 /* Override any gcc2 internal prototype to avoid an error. */
3847 /* We use char because int might match the return type of a gcc2 3858 /* We use char because int might match the return type of a gcc2
3848 builtin and then its argument prototype would still apply. */ 3859 builtin and then its argument prototype would still apply. */
3849 char sin(); 3860 char sin();
3850 3861
3851 int main() { 3862 int main() {
3852 sin() 3863 sin()
3853 ; return 0; } 3864 ; return 0; }
3854 EOF 3865 EOF
3855 if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3866 if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3856 rm -rf conftest* 3867 rm -rf conftest*
3857 eval "ac_cv_lib_$ac_lib_var=yes" 3868 eval "ac_cv_lib_$ac_lib_var=yes"
3858 else 3869 else
3859 echo "configure: failed program was:" >&5 3870 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5 3871 cat conftest.$ac_ext >&5
3892 EOF 3903 EOF
3893 } 3904 }
3894 3905
3895 3906
3896 cat > conftest.$ac_ext <<EOF 3907 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure" 3908 #line 3909 "configure"
3898 #include "confdefs.h" 3909 #include "confdefs.h"
3899 #include <math.h> 3910 #include <math.h>
3900 int main() { 3911 int main() {
3901 return atanh(1.0) + asinh(1.0) + acosh(1.0); 3912 return atanh(1.0) + asinh(1.0) + acosh(1.0);
3902 ; return 0; } 3913 ; return 0; }
3903 EOF 3914 EOF
3904 if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3905 rm -rf conftest* 3916 rm -rf conftest*
3906 { test "$extra_verbose" = "yes" && cat << \EOF 3917 { test "$extra_verbose" = "yes" && cat << \EOF
3907 Defining HAVE_INVERSE_HYPERBOLIC 3918 Defining HAVE_INVERSE_HYPERBOLIC
3908 EOF 3919 EOF
3909 cat >> confdefs.h <<\EOF 3920 cat >> confdefs.h <<\EOF
3916 cat conftest.$ac_ext >&5 3927 cat conftest.$ac_ext >&5
3917 fi 3928 fi
3918 rm -f conftest* 3929 rm -f conftest*
3919 3930
3920 echo "checking type of mail spool file locking" 1>&6 3931 echo "checking type of mail spool file locking" 1>&6
3921 echo "configure:3922: checking type of mail spool file locking" >&5 3932 echo "configure:3933: checking type of mail spool file locking" >&5
3922 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3933 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3923 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3934 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3924 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3935 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3925 Defining REAL_MAIL_USE_LOCKF 3936 Defining REAL_MAIL_USE_LOCKF
3926 EOF 3937 EOF
3940 else mail_locking="dot-locking" 3951 else mail_locking="dot-locking"
3941 fi 3952 fi
3942 3953
3943 3954
3944 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3955 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3945 echo "configure:3946: checking for kstat_open in -lkstat" >&5 3956 echo "configure:3957: checking for kstat_open in -lkstat" >&5
3946 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3957 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3947 3958
3948 xe_check_libs=" -lkstat " 3959 xe_check_libs=" -lkstat "
3949 cat > conftest.$ac_ext <<EOF 3960 cat > conftest.$ac_ext <<EOF
3950 #line 3951 "configure" 3961 #line 3962 "configure"
3951 #include "confdefs.h" 3962 #include "confdefs.h"
3952 /* Override any gcc2 internal prototype to avoid an error. */ 3963 /* Override any gcc2 internal prototype to avoid an error. */
3953 /* We use char because int might match the return type of a gcc2 3964 /* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */ 3965 builtin and then its argument prototype would still apply. */
3955 char kstat_open(); 3966 char kstat_open();
3956 3967
3957 int main() { 3968 int main() {
3958 kstat_open() 3969 kstat_open()
3959 ; return 0; } 3970 ; return 0; }
3960 EOF 3971 EOF
3961 if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3962 rm -rf conftest* 3973 rm -rf conftest*
3963 eval "ac_cv_lib_$ac_lib_var=yes" 3974 eval "ac_cv_lib_$ac_lib_var=yes"
3964 else 3975 else
3965 echo "configure: failed program was:" >&5 3976 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5 3977 cat conftest.$ac_ext >&5
3990 4001
3991 4002
3992 4003
3993 4004
3994 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4005 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3995 echo "configure:3996: checking for kvm_read in -lkvm" >&5 4006 echo "configure:4007: checking for kvm_read in -lkvm" >&5
3996 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4007 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3997 4008
3998 xe_check_libs=" -lkvm " 4009 xe_check_libs=" -lkvm "
3999 cat > conftest.$ac_ext <<EOF 4010 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure" 4011 #line 4012 "configure"
4001 #include "confdefs.h" 4012 #include "confdefs.h"
4002 /* Override any gcc2 internal prototype to avoid an error. */ 4013 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2 4014 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */ 4015 builtin and then its argument prototype would still apply. */
4005 char kvm_read(); 4016 char kvm_read();
4006 4017
4007 int main() { 4018 int main() {
4008 kvm_read() 4019 kvm_read()
4009 ; return 0; } 4020 ; return 0; }
4010 EOF 4021 EOF
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4012 rm -rf conftest* 4023 rm -rf conftest*
4013 eval "ac_cv_lib_$ac_lib_var=yes" 4024 eval "ac_cv_lib_$ac_lib_var=yes"
4014 else 4025 else
4015 echo "configure: failed program was:" >&5 4026 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5 4027 cat conftest.$ac_ext >&5
4040 4051
4041 4052
4042 4053
4043 4054
4044 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4055 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4045 echo "configure:4046: checking for cma_open in -lpthreads" >&5 4056 echo "configure:4057: checking for cma_open in -lpthreads" >&5
4046 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4057 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4047 4058
4048 xe_check_libs=" -lpthreads " 4059 xe_check_libs=" -lpthreads "
4049 cat > conftest.$ac_ext <<EOF 4060 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure" 4061 #line 4062 "configure"
4051 #include "confdefs.h" 4062 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */ 4063 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2 4064 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */ 4065 builtin and then its argument prototype would still apply. */
4055 char cma_open(); 4066 char cma_open();
4056 4067
4057 int main() { 4068 int main() {
4058 cma_open() 4069 cma_open()
4059 ; return 0; } 4070 ; return 0; }
4060 EOF 4071 EOF
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4062 rm -rf conftest* 4073 rm -rf conftest*
4063 eval "ac_cv_lib_$ac_lib_var=yes" 4074 eval "ac_cv_lib_$ac_lib_var=yes"
4064 else 4075 else
4065 echo "configure: failed program was:" >&5 4076 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5 4077 cat conftest.$ac_ext >&5
4092 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 4103 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
4093 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 4104 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
4094 fi 4105 fi
4095 4106
4096 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4107 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4097 echo "configure:4098: checking whether the -xildoff compiler flag is required" >&5 4108 echo "configure:4109: checking whether the -xildoff compiler flag is required" >&5
4098 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4109 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4099 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4110 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4100 then echo "$ac_t""no" 1>&6; 4111 then echo "$ac_t""no" 1>&6;
4101 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 4112 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
4102 fi 4113 fi
4103 else echo "$ac_t""no" 1>&6 4114 else echo "$ac_t""no" 1>&6
4104 fi 4115 fi
4105 4116
4106 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4117 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4107 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4118 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4108 echo "configure:4109: checking for \"-z ignore\" linker flag" >&5 4119 echo "configure:4120: checking for \"-z ignore\" linker flag" >&5
4109 case "`ld -h 2>&1`" in 4120 case "`ld -h 2>&1`" in
4110 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4121 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4111 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4122 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4112 *) echo "$ac_t""no" 1>&6 ;; 4123 *) echo "$ac_t""no" 1>&6 ;;
4113 esac 4124 esac
4114 fi 4125 fi
4115 4126
4116 4127
4117 echo "checking "for specified window system"" 1>&6 4128 echo "checking "for specified window system"" 1>&6
4118 echo "configure:4119: checking "for specified window system"" >&5 4129 echo "configure:4130: checking "for specified window system"" >&5
4119 4130
4120 if test "$with_x11" != "no"; then 4131 if test "$with_x11" != "no"; then
4121 test "$x_includes $x_libraries" != "NONE NONE" && \ 4132 test "$x_includes $x_libraries" != "NONE NONE" && \
4122 window_system=x11 with_x11=yes 4133 window_system=x11 with_x11=yes
4123 4134
4143 # If we find X, set shell vars x_includes and x_libraries to the 4154 # If we find X, set shell vars x_includes and x_libraries to the
4144 # paths, otherwise set no_x=yes. 4155 # paths, otherwise set no_x=yes.
4145 # Uses ac_ vars as temps to allow command line to override cache and checks. 4156 # Uses ac_ vars as temps to allow command line to override cache and checks.
4146 # --without-x overrides everything else, but does not touch the cache. 4157 # --without-x overrides everything else, but does not touch the cache.
4147 echo $ac_n "checking for X""... $ac_c" 1>&6 4158 echo $ac_n "checking for X""... $ac_c" 1>&6
4148 echo "configure:4149: checking for X" >&5 4159 echo "configure:4160: checking for X" >&5
4149 4160
4150 # Check whether --with-x or --without-x was given. 4161 # Check whether --with-x or --without-x was given.
4151 if test "${with_x+set}" = set; then 4162 if test "${with_x+set}" = set; then
4152 withval="$with_x" 4163 withval="$with_x"
4153 : 4164 :
4203 # Guess where to find include files, by looking for this one X11 .h file. 4214 # Guess where to find include files, by looking for this one X11 .h file.
4204 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4215 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4205 4216
4206 # First, try using that file with no special directory specified. 4217 # First, try using that file with no special directory specified.
4207 cat > conftest.$ac_ext <<EOF 4218 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure" 4219 #line 4220 "configure"
4209 #include "confdefs.h" 4220 #include "confdefs.h"
4210 #include <$x_direct_test_include> 4221 #include <$x_direct_test_include>
4211 EOF 4222 EOF
4212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4213 { (eval echo configure:4214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4224 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4214 ac_err=`grep -v '^ *+' conftest.out` 4225 ac_err=`grep -v '^ *+' conftest.out`
4215 if test -z "$ac_err"; then 4226 if test -z "$ac_err"; then
4216 rm -rf conftest* 4227 rm -rf conftest*
4217 # We can compile using X headers with no special include directory. 4228 # We can compile using X headers with no special include directory.
4218 ac_x_includes= 4229 ac_x_includes=
4277 # See if we find them without any special options. 4288 # See if we find them without any special options.
4278 # Don't add to $LIBS permanently. 4289 # Don't add to $LIBS permanently.
4279 ac_save_LIBS="$LIBS" 4290 ac_save_LIBS="$LIBS"
4280 LIBS="-l$x_direct_test_library $LIBS" 4291 LIBS="-l$x_direct_test_library $LIBS"
4281 cat > conftest.$ac_ext <<EOF 4292 cat > conftest.$ac_ext <<EOF
4282 #line 4283 "configure" 4293 #line 4294 "configure"
4283 #include "confdefs.h" 4294 #include "confdefs.h"
4284 4295
4285 int main() { 4296 int main() {
4286 ${x_direct_test_function}() 4297 ${x_direct_test_function}()
4287 ; return 0; } 4298 ; return 0; }
4288 EOF 4299 EOF
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4290 rm -rf conftest* 4301 rm -rf conftest*
4291 LIBS="$ac_save_LIBS" 4302 LIBS="$ac_save_LIBS"
4292 # We can link X programs with no special library path. 4303 # We can link X programs with no special library path.
4293 ac_x_libraries= 4304 ac_x_libraries=
4294 else 4305 else
4393 # For Solaris; some versions of Sun CC require a space after -R and 4404 # For Solaris; some versions of Sun CC require a space after -R and
4394 # others require no space. Words are not sufficient . . . . 4405 # others require no space. Words are not sufficient . . . .
4395 case "`(uname -sr) 2>/dev/null`" in 4406 case "`(uname -sr) 2>/dev/null`" in
4396 "SunOS 5"*) 4407 "SunOS 5"*)
4397 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4408 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4398 echo "configure:4399: checking whether -R must be followed by a space" >&5 4409 echo "configure:4410: checking whether -R must be followed by a space" >&5
4399 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4410 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4400 cat > conftest.$ac_ext <<EOF 4411 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure" 4412 #line 4413 "configure"
4402 #include "confdefs.h" 4413 #include "confdefs.h"
4403 4414
4404 int main() { 4415 int main() {
4405 4416
4406 ; return 0; } 4417 ; return 0; }
4407 EOF 4418 EOF
4408 if { (eval echo configure:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4419 if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4409 rm -rf conftest* 4420 rm -rf conftest*
4410 ac_R_nospace=yes 4421 ac_R_nospace=yes
4411 else 4422 else
4412 echo "configure: failed program was:" >&5 4423 echo "configure: failed program was:" >&5
4413 cat conftest.$ac_ext >&5 4424 cat conftest.$ac_ext >&5
4419 echo "$ac_t""no" 1>&6 4430 echo "$ac_t""no" 1>&6
4420 X_LIBS="$X_LIBS -R$x_libraries" 4431 X_LIBS="$X_LIBS -R$x_libraries"
4421 else 4432 else
4422 LIBS="$ac_xsave_LIBS -R $x_libraries" 4433 LIBS="$ac_xsave_LIBS -R $x_libraries"
4423 cat > conftest.$ac_ext <<EOF 4434 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure" 4435 #line 4436 "configure"
4425 #include "confdefs.h" 4436 #include "confdefs.h"
4426 4437
4427 int main() { 4438 int main() {
4428 4439
4429 ; return 0; } 4440 ; return 0; }
4430 EOF 4441 EOF
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4442 if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4432 rm -rf conftest* 4443 rm -rf conftest*
4433 ac_R_space=yes 4444 ac_R_space=yes
4434 else 4445 else
4435 echo "configure: failed program was:" >&5 4446 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5 4447 cat conftest.$ac_ext >&5
4462 if test "$with_dnet" = "no" ; then 4473 if test "$with_dnet" = "no" ; then
4463 ac_cv_lib_dnet_dnet_ntoa=no 4474 ac_cv_lib_dnet_dnet_ntoa=no
4464 else 4475 else
4465 4476
4466 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4477 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4467 echo "configure:4468: checking for dnet_ntoa in -ldnet" >&5 4478 echo "configure:4479: checking for dnet_ntoa in -ldnet" >&5
4468 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4479 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4469 4480
4470 xe_check_libs=" -ldnet " 4481 xe_check_libs=" -ldnet "
4471 cat > conftest.$ac_ext <<EOF 4482 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure" 4483 #line 4484 "configure"
4473 #include "confdefs.h" 4484 #include "confdefs.h"
4474 /* Override any gcc2 internal prototype to avoid an error. */ 4485 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2 4486 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */ 4487 builtin and then its argument prototype would still apply. */
4477 char dnet_ntoa(); 4488 char dnet_ntoa();
4478 4489
4479 int main() { 4490 int main() {
4480 dnet_ntoa() 4491 dnet_ntoa()
4481 ; return 0; } 4492 ; return 0; }
4482 EOF 4493 EOF
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4484 rm -rf conftest* 4495 rm -rf conftest*
4485 eval "ac_cv_lib_$ac_lib_var=yes" 4496 eval "ac_cv_lib_$ac_lib_var=yes"
4486 else 4497 else
4487 echo "configure: failed program was:" >&5 4498 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5 4499 cat conftest.$ac_ext >&5
4502 fi 4513 fi
4503 4514
4504 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4515 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4505 4516
4506 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4517 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4507 echo "configure:4508: checking for dnet_ntoa in -ldnet_stub" >&5 4518 echo "configure:4519: checking for dnet_ntoa in -ldnet_stub" >&5
4508 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4519 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4509 4520
4510 xe_check_libs=" -ldnet_stub " 4521 xe_check_libs=" -ldnet_stub "
4511 cat > conftest.$ac_ext <<EOF 4522 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure" 4523 #line 4524 "configure"
4513 #include "confdefs.h" 4524 #include "confdefs.h"
4514 /* Override any gcc2 internal prototype to avoid an error. */ 4525 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2 4526 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */ 4527 builtin and then its argument prototype would still apply. */
4517 char dnet_ntoa(); 4528 char dnet_ntoa();
4518 4529
4519 int main() { 4530 int main() {
4520 dnet_ntoa() 4531 dnet_ntoa()
4521 ; return 0; } 4532 ; return 0; }
4522 EOF 4533 EOF
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4524 rm -rf conftest* 4535 rm -rf conftest*
4525 eval "ac_cv_lib_$ac_lib_var=yes" 4536 eval "ac_cv_lib_$ac_lib_var=yes"
4526 else 4537 else
4527 echo "configure: failed program was:" >&5 4538 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5 4539 cat conftest.$ac_ext >&5
4547 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4558 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4548 # needs -lnsl. 4559 # needs -lnsl.
4549 # The nsl library prevents programs from opening the X display 4560 # The nsl library prevents programs from opening the X display
4550 # on Irix 5.2, according to dickey@clark.net. 4561 # on Irix 5.2, according to dickey@clark.net.
4551 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4562 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4552 echo "configure:4553: checking for gethostbyname" >&5 4563 echo "configure:4564: checking for gethostbyname" >&5
4553 4564
4554 cat > conftest.$ac_ext <<EOF 4565 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure" 4566 #line 4567 "configure"
4556 #include "confdefs.h" 4567 #include "confdefs.h"
4557 /* System header to define __stub macros and hopefully few prototypes, 4568 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char gethostbyname(); below. */ 4569 which can conflict with char gethostbyname(); below. */
4559 #include <assert.h> 4570 #include <assert.h>
4560 /* Override any gcc2 internal prototype to avoid an error. */ 4571 /* Override any gcc2 internal prototype to avoid an error. */
4573 gethostbyname(); 4584 gethostbyname();
4574 #endif 4585 #endif
4575 4586
4576 ; return 0; } 4587 ; return 0; }
4577 EOF 4588 EOF
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4579 rm -rf conftest* 4590 rm -rf conftest*
4580 eval "ac_cv_func_gethostbyname=yes" 4591 eval "ac_cv_func_gethostbyname=yes"
4581 else 4592 else
4582 echo "configure: failed program was:" >&5 4593 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5 4594 cat conftest.$ac_ext >&5
4594 fi 4605 fi
4595 4606
4596 if test $ac_cv_func_gethostbyname = no; then 4607 if test $ac_cv_func_gethostbyname = no; then
4597 4608
4598 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4609 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4599 echo "configure:4600: checking for gethostbyname in -lnsl" >&5 4610 echo "configure:4611: checking for gethostbyname in -lnsl" >&5
4600 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4611 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4601 4612
4602 xe_check_libs=" -lnsl " 4613 xe_check_libs=" -lnsl "
4603 cat > conftest.$ac_ext <<EOF 4614 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure" 4615 #line 4616 "configure"
4605 #include "confdefs.h" 4616 #include "confdefs.h"
4606 /* Override any gcc2 internal prototype to avoid an error. */ 4617 /* Override any gcc2 internal prototype to avoid an error. */
4607 /* We use char because int might match the return type of a gcc2 4618 /* We use char because int might match the return type of a gcc2
4608 builtin and then its argument prototype would still apply. */ 4619 builtin and then its argument prototype would still apply. */
4609 char gethostbyname(); 4620 char gethostbyname();
4610 4621
4611 int main() { 4622 int main() {
4612 gethostbyname() 4623 gethostbyname()
4613 ; return 0; } 4624 ; return 0; }
4614 EOF 4625 EOF
4615 if { (eval echo configure:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4616 rm -rf conftest* 4627 rm -rf conftest*
4617 eval "ac_cv_lib_$ac_lib_var=yes" 4628 eval "ac_cv_lib_$ac_lib_var=yes"
4618 else 4629 else
4619 echo "configure: failed program was:" >&5 4630 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5 4631 cat conftest.$ac_ext >&5
4640 # on later versions), says simon@lia.di.epfl.ch: it contains 4651 # on later versions), says simon@lia.di.epfl.ch: it contains
4641 # gethostby* variants that don't use the nameserver (or something). 4652 # gethostby* variants that don't use the nameserver (or something).
4642 # -lsocket must be given before -lnsl if both are needed. 4653 # -lsocket must be given before -lnsl if both are needed.
4643 # We assume that if connect needs -lnsl, so does gethostbyname. 4654 # We assume that if connect needs -lnsl, so does gethostbyname.
4644 echo $ac_n "checking for connect""... $ac_c" 1>&6 4655 echo $ac_n "checking for connect""... $ac_c" 1>&6
4645 echo "configure:4646: checking for connect" >&5 4656 echo "configure:4657: checking for connect" >&5
4646 4657
4647 cat > conftest.$ac_ext <<EOF 4658 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure" 4659 #line 4660 "configure"
4649 #include "confdefs.h" 4660 #include "confdefs.h"
4650 /* System header to define __stub macros and hopefully few prototypes, 4661 /* System header to define __stub macros and hopefully few prototypes,
4651 which can conflict with char connect(); below. */ 4662 which can conflict with char connect(); below. */
4652 #include <assert.h> 4663 #include <assert.h>
4653 /* Override any gcc2 internal prototype to avoid an error. */ 4664 /* Override any gcc2 internal prototype to avoid an error. */
4666 connect(); 4677 connect();
4667 #endif 4678 #endif
4668 4679
4669 ; return 0; } 4680 ; return 0; }
4670 EOF 4681 EOF
4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4672 rm -rf conftest* 4683 rm -rf conftest*
4673 eval "ac_cv_func_connect=yes" 4684 eval "ac_cv_func_connect=yes"
4674 else 4685 else
4675 echo "configure: failed program was:" >&5 4686 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5 4687 cat conftest.$ac_ext >&5
4689 if test $ac_cv_func_connect = no; then 4700 if test $ac_cv_func_connect = no; then
4690 4701
4691 xe_msg_checking="for connect in -lsocket" 4702 xe_msg_checking="for connect in -lsocket"
4692 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4703 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4693 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4704 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4694 echo "configure:4695: checking "$xe_msg_checking"" >&5 4705 echo "configure:4706: checking "$xe_msg_checking"" >&5
4695 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4706 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4696 4707
4697 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4708 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4698 cat > conftest.$ac_ext <<EOF 4709 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure" 4710 #line 4711 "configure"
4700 #include "confdefs.h" 4711 #include "confdefs.h"
4701 /* Override any gcc2 internal prototype to avoid an error. */ 4712 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2 4713 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */ 4714 builtin and then its argument prototype would still apply. */
4704 char connect(); 4715 char connect();
4705 4716
4706 int main() { 4717 int main() {
4707 connect() 4718 connect()
4708 ; return 0; } 4719 ; return 0; }
4709 EOF 4720 EOF
4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4711 rm -rf conftest* 4722 rm -rf conftest*
4712 eval "ac_cv_lib_$ac_lib_var=yes" 4723 eval "ac_cv_lib_$ac_lib_var=yes"
4713 else 4724 else
4714 echo "configure: failed program was:" >&5 4725 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5 4726 cat conftest.$ac_ext >&5
4729 4740
4730 fi 4741 fi
4731 4742
4732 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4743 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4733 echo $ac_n "checking for remove""... $ac_c" 1>&6 4744 echo $ac_n "checking for remove""... $ac_c" 1>&6
4734 echo "configure:4735: checking for remove" >&5 4745 echo "configure:4746: checking for remove" >&5
4735 4746
4736 cat > conftest.$ac_ext <<EOF 4747 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure" 4748 #line 4749 "configure"
4738 #include "confdefs.h" 4749 #include "confdefs.h"
4739 /* System header to define __stub macros and hopefully few prototypes, 4750 /* System header to define __stub macros and hopefully few prototypes,
4740 which can conflict with char remove(); below. */ 4751 which can conflict with char remove(); below. */
4741 #include <assert.h> 4752 #include <assert.h>
4742 /* Override any gcc2 internal prototype to avoid an error. */ 4753 /* Override any gcc2 internal prototype to avoid an error. */
4755 remove(); 4766 remove();
4756 #endif 4767 #endif
4757 4768
4758 ; return 0; } 4769 ; return 0; }
4759 EOF 4770 EOF
4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4761 rm -rf conftest* 4772 rm -rf conftest*
4762 eval "ac_cv_func_remove=yes" 4773 eval "ac_cv_func_remove=yes"
4763 else 4774 else
4764 echo "configure: failed program was:" >&5 4775 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5 4776 cat conftest.$ac_ext >&5
4776 fi 4787 fi
4777 4788
4778 if test $ac_cv_func_remove = no; then 4789 if test $ac_cv_func_remove = no; then
4779 4790
4780 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4791 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4781 echo "configure:4782: checking for remove in -lposix" >&5 4792 echo "configure:4793: checking for remove in -lposix" >&5
4782 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4793 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4783 4794
4784 xe_check_libs=" -lposix " 4795 xe_check_libs=" -lposix "
4785 cat > conftest.$ac_ext <<EOF 4796 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure" 4797 #line 4798 "configure"
4787 #include "confdefs.h" 4798 #include "confdefs.h"
4788 /* Override any gcc2 internal prototype to avoid an error. */ 4799 /* Override any gcc2 internal prototype to avoid an error. */
4789 /* We use char because int might match the return type of a gcc2 4800 /* We use char because int might match the return type of a gcc2
4790 builtin and then its argument prototype would still apply. */ 4801 builtin and then its argument prototype would still apply. */
4791 char remove(); 4802 char remove();
4792 4803
4793 int main() { 4804 int main() {
4794 remove() 4805 remove()
4795 ; return 0; } 4806 ; return 0; }
4796 EOF 4807 EOF
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4808 if { (eval echo configure:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4798 rm -rf conftest* 4809 rm -rf conftest*
4799 eval "ac_cv_lib_$ac_lib_var=yes" 4810 eval "ac_cv_lib_$ac_lib_var=yes"
4800 else 4811 else
4801 echo "configure: failed program was:" >&5 4812 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5 4813 cat conftest.$ac_ext >&5
4816 4827
4817 fi 4828 fi
4818 4829
4819 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4830 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4820 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4831 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4821 echo "configure:4822: checking for shmat" >&5 4832 echo "configure:4833: checking for shmat" >&5
4822 4833
4823 cat > conftest.$ac_ext <<EOF 4834 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure" 4835 #line 4836 "configure"
4825 #include "confdefs.h" 4836 #include "confdefs.h"
4826 /* System header to define __stub macros and hopefully few prototypes, 4837 /* System header to define __stub macros and hopefully few prototypes,
4827 which can conflict with char shmat(); below. */ 4838 which can conflict with char shmat(); below. */
4828 #include <assert.h> 4839 #include <assert.h>
4829 /* Override any gcc2 internal prototype to avoid an error. */ 4840 /* Override any gcc2 internal prototype to avoid an error. */
4842 shmat(); 4853 shmat();
4843 #endif 4854 #endif
4844 4855
4845 ; return 0; } 4856 ; return 0; }
4846 EOF 4857 EOF
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4848 rm -rf conftest* 4859 rm -rf conftest*
4849 eval "ac_cv_func_shmat=yes" 4860 eval "ac_cv_func_shmat=yes"
4850 else 4861 else
4851 echo "configure: failed program was:" >&5 4862 echo "configure: failed program was:" >&5
4852 cat conftest.$ac_ext >&5 4863 cat conftest.$ac_ext >&5
4863 fi 4874 fi
4864 4875
4865 if test $ac_cv_func_shmat = no; then 4876 if test $ac_cv_func_shmat = no; then
4866 4877
4867 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4878 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4868 echo "configure:4869: checking for shmat in -lipc" >&5 4879 echo "configure:4880: checking for shmat in -lipc" >&5
4869 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4880 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4870 4881
4871 xe_check_libs=" -lipc " 4882 xe_check_libs=" -lipc "
4872 cat > conftest.$ac_ext <<EOF 4883 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure" 4884 #line 4885 "configure"
4874 #include "confdefs.h" 4885 #include "confdefs.h"
4875 /* Override any gcc2 internal prototype to avoid an error. */ 4886 /* Override any gcc2 internal prototype to avoid an error. */
4876 /* We use char because int might match the return type of a gcc2 4887 /* We use char because int might match the return type of a gcc2
4877 builtin and then its argument prototype would still apply. */ 4888 builtin and then its argument prototype would still apply. */
4878 char shmat(); 4889 char shmat();
4879 4890
4880 int main() { 4891 int main() {
4881 shmat() 4892 shmat()
4882 ; return 0; } 4893 ; return 0; }
4883 EOF 4894 EOF
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4885 rm -rf conftest* 4896 rm -rf conftest*
4886 eval "ac_cv_lib_$ac_lib_var=yes" 4897 eval "ac_cv_lib_$ac_lib_var=yes"
4887 else 4898 else
4888 echo "configure: failed program was:" >&5 4899 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5 4900 cat conftest.$ac_ext >&5
4913 # These have to be linked with before -lX11, unlike the other 4924 # These have to be linked with before -lX11, unlike the other
4914 # libraries we check for below, so use a different variable. 4925 # libraries we check for below, so use a different variable.
4915 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4926 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4916 4927
4917 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4928 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4918 echo "configure:4919: checking for IceConnectionNumber in -lICE" >&5 4929 echo "configure:4930: checking for IceConnectionNumber in -lICE" >&5
4919 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4930 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4920 4931
4921 xe_check_libs=" -lICE " 4932 xe_check_libs=" -lICE "
4922 cat > conftest.$ac_ext <<EOF 4933 cat > conftest.$ac_ext <<EOF
4923 #line 4924 "configure" 4934 #line 4935 "configure"
4924 #include "confdefs.h" 4935 #include "confdefs.h"
4925 /* Override any gcc2 internal prototype to avoid an error. */ 4936 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2 4937 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */ 4938 builtin and then its argument prototype would still apply. */
4928 char IceConnectionNumber(); 4939 char IceConnectionNumber();
4929 4940
4930 int main() { 4941 int main() {
4931 IceConnectionNumber() 4942 IceConnectionNumber()
4932 ; return 0; } 4943 ; return 0; }
4933 EOF 4944 EOF
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4935 rm -rf conftest* 4946 rm -rf conftest*
4936 eval "ac_cv_lib_$ac_lib_var=yes" 4947 eval "ac_cv_lib_$ac_lib_var=yes"
4937 else 4948 else
4938 echo "configure: failed program was:" >&5 4949 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5 4950 cat conftest.$ac_ext >&5
4966 no ) window_system=none HAVE_X_WINDOWS=no ;; 4977 no ) window_system=none HAVE_X_WINDOWS=no ;;
4967 esac 4978 esac
4968 4979
4969 if test "$window_system" = "none" && test -z "$with_tty"; then 4980 if test "$window_system" = "none" && test -z "$with_tty"; then
4970 echo "checking for MS-Windows" 1>&6 4981 echo "checking for MS-Windows" 1>&6
4971 echo "configure:4972: checking for MS-Windows" >&5 4982 echo "configure:4983: checking for MS-Windows" >&5
4972 4983
4973 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 4984 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
4974 echo "configure:4975: checking for main in -lgdi32" >&5 4985 echo "configure:4986: checking for main in -lgdi32" >&5
4975 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 4986 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
4976 4987
4977 xe_check_libs=" -lgdi32 " 4988 xe_check_libs=" -lgdi32 "
4978 cat > conftest.$ac_ext <<EOF 4989 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure" 4990 #line 4991 "configure"
4980 #include "confdefs.h" 4991 #include "confdefs.h"
4981 4992
4982 int main() { 4993 int main() {
4983 main() 4994 main()
4984 ; return 0; } 4995 ; return 0; }
4985 EOF 4996 EOF
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4997 if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4987 rm -rf conftest* 4998 rm -rf conftest*
4988 eval "ac_cv_lib_$ac_lib_var=yes" 4999 eval "ac_cv_lib_$ac_lib_var=yes"
4989 else 5000 else
4990 echo "configure: failed program was:" >&5 5001 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5 5002 cat conftest.$ac_ext >&5
5127 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done 5138 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5128 echo 5139 echo
5129 fi 5140 fi
5130 5141
5131 echo "checking for X defines extracted by xmkmf" 1>&6 5142 echo "checking for X defines extracted by xmkmf" 1>&6
5132 echo "configure:5133: checking for X defines extracted by xmkmf" >&5 5143 echo "configure:5144: checking for X defines extracted by xmkmf" >&5
5133 rm -fr conftestdir 5144 rm -fr conftestdir
5134 if mkdir conftestdir; then 5145 if mkdir conftestdir; then
5135 cd conftestdir 5146 cd conftestdir
5136 cat > Imakefile <<'EOF' 5147 cat > Imakefile <<'EOF'
5137 xetest: 5148 xetest:
5159 done 5170 done
5160 fi 5171 fi
5161 5172
5162 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5173 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5163 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5174 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5164 echo "configure:5165: checking for X11/Intrinsic.h" >&5 5175 echo "configure:5176: checking for X11/Intrinsic.h" >&5
5165 5176
5166 cat > conftest.$ac_ext <<EOF 5177 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure" 5178 #line 5179 "configure"
5168 #include "confdefs.h" 5179 #include "confdefs.h"
5169 #include <X11/Intrinsic.h> 5180 #include <X11/Intrinsic.h>
5170 EOF 5181 EOF
5171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5172 { (eval echo configure:5173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5183 { (eval echo configure:5184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5173 ac_err=`grep -v '^ *+' conftest.out` 5184 ac_err=`grep -v '^ *+' conftest.out`
5174 if test -z "$ac_err"; then 5185 if test -z "$ac_err"; then
5175 rm -rf conftest* 5186 rm -rf conftest*
5176 eval "ac_cv_header_$ac_safe=yes" 5187 eval "ac_cv_header_$ac_safe=yes"
5177 else 5188 else
5191 fi 5202 fi
5192 5203
5193 5204
5194 5205
5195 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5206 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5196 echo "configure:5197: checking for XOpenDisplay in -lX11" >&5 5207 echo "configure:5208: checking for XOpenDisplay in -lX11" >&5
5197 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5208 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5198 5209
5199 xe_check_libs=" -lX11 " 5210 xe_check_libs=" -lX11 "
5200 cat > conftest.$ac_ext <<EOF 5211 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure" 5212 #line 5213 "configure"
5202 #include "confdefs.h" 5213 #include "confdefs.h"
5203 /* Override any gcc2 internal prototype to avoid an error. */ 5214 /* Override any gcc2 internal prototype to avoid an error. */
5204 /* We use char because int might match the return type of a gcc2 5215 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */ 5216 builtin and then its argument prototype would still apply. */
5206 char XOpenDisplay(); 5217 char XOpenDisplay();
5207 5218
5208 int main() { 5219 int main() {
5209 XOpenDisplay() 5220 XOpenDisplay()
5210 ; return 0; } 5221 ; return 0; }
5211 EOF 5222 EOF
5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5223 if { (eval echo configure:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5213 rm -rf conftest* 5224 rm -rf conftest*
5214 eval "ac_cv_lib_$ac_lib_var=yes" 5225 eval "ac_cv_lib_$ac_lib_var=yes"
5215 else 5226 else
5216 echo "configure: failed program was:" >&5 5227 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5 5228 cat conftest.$ac_ext >&5
5232 if test "$have_lib_x11" != "yes"; then 5243 if test "$have_lib_x11" != "yes"; then
5233 5244
5234 xe_msg_checking="for XGetFontProperty in -lX11" 5245 xe_msg_checking="for XGetFontProperty in -lX11"
5235 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5246 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5236 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5247 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5237 echo "configure:5238: checking "$xe_msg_checking"" >&5 5248 echo "configure:5249: checking "$xe_msg_checking"" >&5
5238 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5249 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5239 5250
5240 xe_check_libs=" -lX11 -b i486-linuxaout" 5251 xe_check_libs=" -lX11 -b i486-linuxaout"
5241 cat > conftest.$ac_ext <<EOF 5252 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure" 5253 #line 5254 "configure"
5243 #include "confdefs.h" 5254 #include "confdefs.h"
5244 /* Override any gcc2 internal prototype to avoid an error. */ 5255 /* Override any gcc2 internal prototype to avoid an error. */
5245 /* We use char because int might match the return type of a gcc2 5256 /* We use char because int might match the return type of a gcc2
5246 builtin and then its argument prototype would still apply. */ 5257 builtin and then its argument prototype would still apply. */
5247 char XGetFontProperty(); 5258 char XGetFontProperty();
5248 5259
5249 int main() { 5260 int main() {
5250 XGetFontProperty() 5261 XGetFontProperty()
5251 ; return 0; } 5262 ; return 0; }
5252 EOF 5263 EOF
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5264 if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5254 rm -rf conftest* 5265 rm -rf conftest*
5255 eval "ac_cv_lib_$ac_lib_var=yes" 5266 eval "ac_cv_lib_$ac_lib_var=yes"
5256 else 5267 else
5257 echo "configure: failed program was:" >&5 5268 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5 5269 cat conftest.$ac_ext >&5
5275 libs_x="-lX11" 5286 libs_x="-lX11"
5276 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5287 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5277 5288
5278 5289
5279 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5290 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5280 echo "configure:5281: checking for XShapeSelectInput in -lXext" >&5 5291 echo "configure:5292: checking for XShapeSelectInput in -lXext" >&5
5281 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5292 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5282 5293
5283 xe_check_libs=" -lXext " 5294 xe_check_libs=" -lXext "
5284 cat > conftest.$ac_ext <<EOF 5295 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure" 5296 #line 5297 "configure"
5286 #include "confdefs.h" 5297 #include "confdefs.h"
5287 /* Override any gcc2 internal prototype to avoid an error. */ 5298 /* Override any gcc2 internal prototype to avoid an error. */
5288 /* We use char because int might match the return type of a gcc2 5299 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */ 5300 builtin and then its argument prototype would still apply. */
5290 char XShapeSelectInput(); 5301 char XShapeSelectInput();
5291 5302
5292 int main() { 5303 int main() {
5293 XShapeSelectInput() 5304 XShapeSelectInput()
5294 ; return 0; } 5305 ; return 0; }
5295 EOF 5306 EOF
5296 if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5297 rm -rf conftest* 5308 rm -rf conftest*
5298 eval "ac_cv_lib_$ac_lib_var=yes" 5309 eval "ac_cv_lib_$ac_lib_var=yes"
5299 else 5310 else
5300 echo "configure: failed program was:" >&5 5311 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5 5312 cat conftest.$ac_ext >&5
5314 5325
5315 5326
5316 5327
5317 5328
5318 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5329 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5319 echo "configure:5320: checking for XtOpenDisplay in -lXt" >&5 5330 echo "configure:5331: checking for XtOpenDisplay in -lXt" >&5
5320 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5331 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5321 5332
5322 xe_check_libs=" -lXt " 5333 xe_check_libs=" -lXt "
5323 cat > conftest.$ac_ext <<EOF 5334 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure" 5335 #line 5336 "configure"
5325 #include "confdefs.h" 5336 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */ 5337 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2 5338 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */ 5339 builtin and then its argument prototype would still apply. */
5329 char XtOpenDisplay(); 5340 char XtOpenDisplay();
5330 5341
5331 int main() { 5342 int main() {
5332 XtOpenDisplay() 5343 XtOpenDisplay()
5333 ; return 0; } 5344 ; return 0; }
5334 EOF 5345 EOF
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5336 rm -rf conftest* 5347 rm -rf conftest*
5337 eval "ac_cv_lib_$ac_lib_var=yes" 5348 eval "ac_cv_lib_$ac_lib_var=yes"
5338 else 5349 else
5339 echo "configure: failed program was:" >&5 5350 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5 5351 cat conftest.$ac_ext >&5
5353 fi 5364 fi
5354 5365
5355 5366
5356 5367
5357 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5368 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5358 echo "configure:5359: checking the version of X11 being used" >&5 5369 echo "configure:5370: checking the version of X11 being used" >&5
5359 cat > conftest.$ac_ext <<EOF 5370 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure" 5371 #line 5372 "configure"
5361 #include "confdefs.h" 5372 #include "confdefs.h"
5362 #include <X11/Intrinsic.h> 5373 #include <X11/Intrinsic.h>
5363 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5374 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5364 EOF 5375 EOF
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5366 then 5377 then
5367 ./conftest foobar; x11_release=$? 5378 ./conftest foobar; x11_release=$?
5368 else 5379 else
5369 echo "configure: failed program was:" >&5 5380 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5 5381 cat conftest.$ac_ext >&5
5384 5395
5385 for ac_hdr in X11/Xlocale.h 5396 for ac_hdr in X11/Xlocale.h
5386 do 5397 do
5387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5389 echo "configure:5390: checking for $ac_hdr" >&5 5400 echo "configure:5401: checking for $ac_hdr" >&5
5390 5401
5391 cat > conftest.$ac_ext <<EOF 5402 cat > conftest.$ac_ext <<EOF
5392 #line 5393 "configure" 5403 #line 5404 "configure"
5393 #include "confdefs.h" 5404 #include "confdefs.h"
5394 #include <$ac_hdr> 5405 #include <$ac_hdr>
5395 EOF 5406 EOF
5396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5397 { (eval echo configure:5398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5408 { (eval echo configure:5409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5398 ac_err=`grep -v '^ *+' conftest.out` 5409 ac_err=`grep -v '^ *+' conftest.out`
5399 if test -z "$ac_err"; then 5410 if test -z "$ac_err"; then
5400 rm -rf conftest* 5411 rm -rf conftest*
5401 eval "ac_cv_header_$ac_safe=yes" 5412 eval "ac_cv_header_$ac_safe=yes"
5402 else 5413 else
5423 fi 5434 fi
5424 done 5435 done
5425 5436
5426 5437
5427 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5438 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5428 echo "configure:5429: checking for XFree86" >&5 5439 echo "configure:5440: checking for XFree86" >&5
5429 if test -d "/usr/X386/include" -o \ 5440 if test -d "/usr/X386/include" -o \
5430 -f "/etc/XF86Config" -o \ 5441 -f "/etc/XF86Config" -o \
5431 -f "/etc/X11/XF86Config" -o \ 5442 -f "/etc/X11/XF86Config" -o \
5432 -f "/usr/X11R6/lib/X11/XF86Config"; then 5443 -f "/usr/X11R6/lib/X11/XF86Config"; then
5433 echo "$ac_t""yes" 1>&6 5444 echo "$ac_t""yes" 1>&6
5443 echo "$ac_t""no" 1>&6 5454 echo "$ac_t""no" 1>&6
5444 fi 5455 fi
5445 5456
5446 test -z "$with_xmu" && { 5457 test -z "$with_xmu" && {
5447 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5458 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5448 echo "configure:5449: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5459 echo "configure:5460: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5449 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5460 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5450 5461
5451 xe_check_libs=" -lXmu " 5462 xe_check_libs=" -lXmu "
5452 cat > conftest.$ac_ext <<EOF 5463 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure" 5464 #line 5465 "configure"
5454 #include "confdefs.h" 5465 #include "confdefs.h"
5455 /* Override any gcc2 internal prototype to avoid an error. */ 5466 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2 5467 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */ 5468 builtin and then its argument prototype would still apply. */
5458 char XmuReadBitmapDataFromFile(); 5469 char XmuReadBitmapDataFromFile();
5459 5470
5460 int main() { 5471 int main() {
5461 XmuReadBitmapDataFromFile() 5472 XmuReadBitmapDataFromFile()
5462 ; return 0; } 5473 ; return 0; }
5463 EOF 5474 EOF
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5475 if { (eval echo configure:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5465 rm -rf conftest* 5476 rm -rf conftest*
5466 eval "ac_cv_lib_$ac_lib_var=yes" 5477 eval "ac_cv_lib_$ac_lib_var=yes"
5467 else 5478 else
5468 echo "configure: failed program was:" >&5 5479 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5 5480 cat conftest.$ac_ext >&5
5498 5509
5499 fi 5510 fi
5500 5511
5501 5512
5502 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5513 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5503 echo "configure:5504: checking for main in -lXbsd" >&5 5514 echo "configure:5515: checking for main in -lXbsd" >&5
5504 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5515 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5505 5516
5506 xe_check_libs=" -lXbsd " 5517 xe_check_libs=" -lXbsd "
5507 cat > conftest.$ac_ext <<EOF 5518 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure" 5519 #line 5520 "configure"
5509 #include "confdefs.h" 5520 #include "confdefs.h"
5510 5521
5511 int main() { 5522 int main() {
5512 main() 5523 main()
5513 ; return 0; } 5524 ; return 0; }
5514 EOF 5525 EOF
5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5526 if { (eval echo configure:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5516 rm -rf conftest* 5527 rm -rf conftest*
5517 eval "ac_cv_lib_$ac_lib_var=yes" 5528 eval "ac_cv_lib_$ac_lib_var=yes"
5518 else 5529 else
5519 echo "configure: failed program was:" >&5 5530 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5 5531 cat conftest.$ac_ext >&5
5569 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5580 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5570 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5581 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5571 esac 5582 esac
5572 5583
5573 echo "checking for session-management option" 1>&6 5584 echo "checking for session-management option" 1>&6
5574 echo "configure:5575: checking for session-management option" >&5; 5585 echo "configure:5586: checking for session-management option" >&5;
5575 if test "$with_session" != "no"; then 5586 if test "$with_session" != "no"; then
5576 { test "$extra_verbose" = "yes" && cat << \EOF 5587 { test "$extra_verbose" = "yes" && cat << \EOF
5577 Defining HAVE_SESSION 5588 Defining HAVE_SESSION
5578 EOF 5589 EOF
5579 cat >> confdefs.h <<\EOF 5590 cat >> confdefs.h <<\EOF
5584 fi 5595 fi
5585 5596
5586 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5597 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5587 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5598 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5588 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5599 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5589 echo "configure:5590: checking for X11/Xauth.h" >&5 5600 echo "configure:5601: checking for X11/Xauth.h" >&5
5590 5601
5591 cat > conftest.$ac_ext <<EOF 5602 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure" 5603 #line 5604 "configure"
5593 #include "confdefs.h" 5604 #include "confdefs.h"
5594 #include <X11/Xauth.h> 5605 #include <X11/Xauth.h>
5595 EOF 5606 EOF
5596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5597 { (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5608 { (eval echo configure:5609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5598 ac_err=`grep -v '^ *+' conftest.out` 5609 ac_err=`grep -v '^ *+' conftest.out`
5599 if test -z "$ac_err"; then 5610 if test -z "$ac_err"; then
5600 rm -rf conftest* 5611 rm -rf conftest*
5601 eval "ac_cv_header_$ac_safe=yes" 5612 eval "ac_cv_header_$ac_safe=yes"
5602 else 5613 else
5615 with_xauth=no 5626 with_xauth=no
5616 fi 5627 fi
5617 } 5628 }
5618 test -z "$with_xauth" && { 5629 test -z "$with_xauth" && {
5619 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5630 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5620 echo "configure:5621: checking for XauGetAuthByAddr in -lXau" >&5 5631 echo "configure:5632: checking for XauGetAuthByAddr in -lXau" >&5
5621 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5632 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5622 5633
5623 xe_check_libs=" -lXau " 5634 xe_check_libs=" -lXau "
5624 cat > conftest.$ac_ext <<EOF 5635 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure" 5636 #line 5637 "configure"
5626 #include "confdefs.h" 5637 #include "confdefs.h"
5627 /* Override any gcc2 internal prototype to avoid an error. */ 5638 /* Override any gcc2 internal prototype to avoid an error. */
5628 /* We use char because int might match the return type of a gcc2 5639 /* We use char because int might match the return type of a gcc2
5629 builtin and then its argument prototype would still apply. */ 5640 builtin and then its argument prototype would still apply. */
5630 char XauGetAuthByAddr(); 5641 char XauGetAuthByAddr();
5631 5642
5632 int main() { 5643 int main() {
5633 XauGetAuthByAddr() 5644 XauGetAuthByAddr()
5634 ; return 0; } 5645 ; return 0; }
5635 EOF 5646 EOF
5636 if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5647 if { (eval echo configure:5648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5637 rm -rf conftest* 5648 rm -rf conftest*
5638 eval "ac_cv_lib_$ac_lib_var=yes" 5649 eval "ac_cv_lib_$ac_lib_var=yes"
5639 else 5650 else
5640 echo "configure: failed program was:" >&5 5651 echo "configure: failed program was:" >&5
5641 cat conftest.$ac_ext >&5 5652 cat conftest.$ac_ext >&5
5695 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5706 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5696 if test "$with_tooltalk" != "no" ; then 5707 if test "$with_tooltalk" != "no" ; then
5697 for dir in "" "Tt/" "desktop/" ; do 5708 for dir in "" "Tt/" "desktop/" ; do
5698 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5709 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5699 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5710 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5700 echo "configure:5701: checking for ${dir}tt_c.h" >&5 5711 echo "configure:5712: checking for ${dir}tt_c.h" >&5
5701 5712
5702 cat > conftest.$ac_ext <<EOF 5713 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure" 5714 #line 5715 "configure"
5704 #include "confdefs.h" 5715 #include "confdefs.h"
5705 #include <${dir}tt_c.h> 5716 #include <${dir}tt_c.h>
5706 EOF 5717 EOF
5707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5708 { (eval echo configure:5709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5719 { (eval echo configure:5720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5709 ac_err=`grep -v '^ *+' conftest.out` 5720 ac_err=`grep -v '^ *+' conftest.out`
5710 if test -z "$ac_err"; then 5721 if test -z "$ac_err"; then
5711 rm -rf conftest* 5722 rm -rf conftest*
5712 eval "ac_cv_header_$ac_safe=yes" 5723 eval "ac_cv_header_$ac_safe=yes"
5713 else 5724 else
5732 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5743 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5733 5744
5734 xe_msg_checking="for tt_message_create in -ltt" 5745 xe_msg_checking="for tt_message_create in -ltt"
5735 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5746 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5736 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5747 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5737 echo "configure:5738: checking "$xe_msg_checking"" >&5 5748 echo "configure:5749: checking "$xe_msg_checking"" >&5
5738 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5749 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5739 5750
5740 xe_check_libs=" -ltt $extra_libs" 5751 xe_check_libs=" -ltt $extra_libs"
5741 cat > conftest.$ac_ext <<EOF 5752 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure" 5753 #line 5754 "configure"
5743 #include "confdefs.h" 5754 #include "confdefs.h"
5744 /* Override any gcc2 internal prototype to avoid an error. */ 5755 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2 5756 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */ 5757 builtin and then its argument prototype would still apply. */
5747 char tt_message_create(); 5758 char tt_message_create();
5748 5759
5749 int main() { 5760 int main() {
5750 tt_message_create() 5761 tt_message_create()
5751 ; return 0; } 5762 ; return 0; }
5752 EOF 5763 EOF
5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5764 if { (eval echo configure:5765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5754 rm -rf conftest* 5765 rm -rf conftest*
5755 eval "ac_cv_lib_$ac_lib_var=yes" 5766 eval "ac_cv_lib_$ac_lib_var=yes"
5756 else 5767 else
5757 echo "configure: failed program was:" >&5 5768 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5 5769 cat conftest.$ac_ext >&5
5797 fi 5808 fi
5798 fi 5809 fi
5799 5810
5800 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5811 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5801 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5812 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5802 echo "configure:5803: checking for Dt/Dt.h" >&5 5813 echo "configure:5814: checking for Dt/Dt.h" >&5
5803 5814
5804 cat > conftest.$ac_ext <<EOF 5815 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure" 5816 #line 5817 "configure"
5806 #include "confdefs.h" 5817 #include "confdefs.h"
5807 #include <Dt/Dt.h> 5818 #include <Dt/Dt.h>
5808 EOF 5819 EOF
5809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5810 { (eval echo configure:5811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5821 { (eval echo configure:5822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5811 ac_err=`grep -v '^ *+' conftest.out` 5822 ac_err=`grep -v '^ *+' conftest.out`
5812 if test -z "$ac_err"; then 5823 if test -z "$ac_err"; then
5813 rm -rf conftest* 5824 rm -rf conftest*
5814 eval "ac_cv_header_$ac_safe=yes" 5825 eval "ac_cv_header_$ac_safe=yes"
5815 else 5826 else
5828 with_cde=no 5839 with_cde=no
5829 fi 5840 fi
5830 } 5841 }
5831 test -z "$with_cde" && { 5842 test -z "$with_cde" && {
5832 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5843 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5833 echo "configure:5834: checking for DtDndDragStart in -lDtSvc" >&5 5844 echo "configure:5845: checking for DtDndDragStart in -lDtSvc" >&5
5834 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5845 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5835 5846
5836 xe_check_libs=" -lDtSvc " 5847 xe_check_libs=" -lDtSvc "
5837 cat > conftest.$ac_ext <<EOF 5848 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure" 5849 #line 5850 "configure"
5839 #include "confdefs.h" 5850 #include "confdefs.h"
5840 /* Override any gcc2 internal prototype to avoid an error. */ 5851 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2 5852 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */ 5853 builtin and then its argument prototype would still apply. */
5843 char DtDndDragStart(); 5854 char DtDndDragStart();
5844 5855
5845 int main() { 5856 int main() {
5846 DtDndDragStart() 5857 DtDndDragStart()
5847 ; return 0; } 5858 ; return 0; }
5848 EOF 5859 EOF
5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5850 rm -rf conftest* 5861 rm -rf conftest*
5851 eval "ac_cv_lib_$ac_lib_var=yes" 5862 eval "ac_cv_lib_$ac_lib_var=yes"
5852 else 5863 else
5853 echo "configure: failed program was:" >&5 5864 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5 5865 cat conftest.$ac_ext >&5
5884 5895
5885 5896
5886 if test "$with_x11" = "yes"; then 5897 if test "$with_x11" = "yes"; then
5887 5898
5888 echo "checking for X11 graphics libraries" 1>&6 5899 echo "checking for X11 graphics libraries" 1>&6
5889 echo "configure:5890: checking for X11 graphics libraries" >&5 5900 echo "configure:5901: checking for X11 graphics libraries" >&5
5890 5901
5891 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 5902 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
5892 echo "configure:5893: checking for Xpm - no older than 3.4f" >&5 5903 echo "configure:5904: checking for Xpm - no older than 3.4f" >&5
5893 xe_check_libs=-lXpm 5904 xe_check_libs=-lXpm
5894 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 5905 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
5895 #line 5896 "configure" 5906 #line 5907 "configure"
5896 #include "confdefs.h" 5907 #include "confdefs.h"
5897 #include <X11/xpm.h> 5908 #include <X11/xpm.h>
5898 int main(int c, char **v) { 5909 int main(int c, char **v) {
5899 return c == 1 ? 0 : 5910 return c == 1 ? 0 :
5900 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 5911 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
5901 XpmIncludeVersion < 30406 ? 2 : 5912 XpmIncludeVersion < 30406 ? 2 :
5902 0 ; 5913 0 ;
5903 } 5914 }
5904 EOF 5915 EOF
5905 if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5906 then 5917 then
5907 ./conftest foobar; xpm_status=$?; 5918 ./conftest foobar; xpm_status=$?;
5908 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 5919 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
5909 else 5920 else
5910 echo "configure: failed program was:" >&5 5921 echo "configure: failed program was:" >&5
5938 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 5949 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
5939 fi 5950 fi
5940 5951
5941 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 5952 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
5942 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 5953 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
5943 echo "configure:5944: checking for compface.h" >&5 5954 echo "configure:5955: checking for compface.h" >&5
5944 5955
5945 cat > conftest.$ac_ext <<EOF 5956 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure" 5957 #line 5958 "configure"
5947 #include "confdefs.h" 5958 #include "confdefs.h"
5948 #include <compface.h> 5959 #include <compface.h>
5949 EOF 5960 EOF
5950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5951 { (eval echo configure:5952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5962 { (eval echo configure:5963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5952 ac_err=`grep -v '^ *+' conftest.out` 5963 ac_err=`grep -v '^ *+' conftest.out`
5953 if test -z "$ac_err"; then 5964 if test -z "$ac_err"; then
5954 rm -rf conftest* 5965 rm -rf conftest*
5955 eval "ac_cv_header_$ac_safe=yes" 5966 eval "ac_cv_header_$ac_safe=yes"
5956 else 5967 else
5969 with_xface=no 5980 with_xface=no
5970 fi 5981 fi
5971 } 5982 }
5972 test -z "$with_xface" && { 5983 test -z "$with_xface" && {
5973 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 5984 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
5974 echo "configure:5975: checking for UnGenFace in -lcompface" >&5 5985 echo "configure:5986: checking for UnGenFace in -lcompface" >&5
5975 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 5986 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
5976 5987
5977 xe_check_libs=" -lcompface " 5988 xe_check_libs=" -lcompface "
5978 cat > conftest.$ac_ext <<EOF 5989 cat > conftest.$ac_ext <<EOF
5979 #line 5980 "configure" 5990 #line 5991 "configure"
5980 #include "confdefs.h" 5991 #include "confdefs.h"
5981 /* Override any gcc2 internal prototype to avoid an error. */ 5992 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2 5993 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */ 5994 builtin and then its argument prototype would still apply. */
5984 char UnGenFace(); 5995 char UnGenFace();
5985 5996
5986 int main() { 5997 int main() {
5987 UnGenFace() 5998 UnGenFace()
5988 ; return 0; } 5999 ; return 0; }
5989 EOF 6000 EOF
5990 if { (eval echo configure:5991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5991 rm -rf conftest* 6002 rm -rf conftest*
5992 eval "ac_cv_lib_$ac_lib_var=yes" 6003 eval "ac_cv_lib_$ac_lib_var=yes"
5993 else 6004 else
5994 echo "configure: failed program was:" >&5 6005 echo "configure: failed program was:" >&5
5995 cat conftest.$ac_ext >&5 6006 cat conftest.$ac_ext >&5
6036 fi 6047 fi
6037 fi 6048 fi
6038 6049
6039 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6050 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6040 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6051 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6041 echo "configure:6042: checking for jpeglib.h" >&5 6052 echo "configure:6053: checking for jpeglib.h" >&5
6042 6053
6043 cat > conftest.$ac_ext <<EOF 6054 cat > conftest.$ac_ext <<EOF
6044 #line 6045 "configure" 6055 #line 6056 "configure"
6045 #include "confdefs.h" 6056 #include "confdefs.h"
6046 #include <jpeglib.h> 6057 #include <jpeglib.h>
6047 EOF 6058 EOF
6048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6049 { (eval echo configure:6050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6060 { (eval echo configure:6061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6050 ac_err=`grep -v '^ *+' conftest.out` 6061 ac_err=`grep -v '^ *+' conftest.out`
6051 if test -z "$ac_err"; then 6062 if test -z "$ac_err"; then
6052 rm -rf conftest* 6063 rm -rf conftest*
6053 eval "ac_cv_header_$ac_safe=yes" 6064 eval "ac_cv_header_$ac_safe=yes"
6054 else 6065 else
6067 with_jpeg=no 6078 with_jpeg=no
6068 fi 6079 fi
6069 } 6080 }
6070 test -z "$with_jpeg" && { 6081 test -z "$with_jpeg" && {
6071 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6082 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6072 echo "configure:6073: checking for jpeg_destroy_decompress in -ljpeg" >&5 6083 echo "configure:6084: checking for jpeg_destroy_decompress in -ljpeg" >&5
6073 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6084 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6074 6085
6075 xe_check_libs=" -ljpeg " 6086 xe_check_libs=" -ljpeg "
6076 cat > conftest.$ac_ext <<EOF 6087 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure" 6088 #line 6089 "configure"
6078 #include "confdefs.h" 6089 #include "confdefs.h"
6079 /* Override any gcc2 internal prototype to avoid an error. */ 6090 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2 6091 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */ 6092 builtin and then its argument prototype would still apply. */
6082 char jpeg_destroy_decompress(); 6093 char jpeg_destroy_decompress();
6083 6094
6084 int main() { 6095 int main() {
6085 jpeg_destroy_decompress() 6096 jpeg_destroy_decompress()
6086 ; return 0; } 6097 ; return 0; }
6087 EOF 6098 EOF
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6099 if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6089 rm -rf conftest* 6100 rm -rf conftest*
6090 eval "ac_cv_lib_$ac_lib_var=yes" 6101 eval "ac_cv_lib_$ac_lib_var=yes"
6091 else 6102 else
6092 echo "configure: failed program was:" >&5 6103 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5 6104 cat conftest.$ac_ext >&5
6119 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6130 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6120 fi 6131 fi
6121 6132
6122 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6133 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6123 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6134 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6124 echo "configure:6125: checking for png.h" >&5 6135 echo "configure:6136: checking for png.h" >&5
6125 6136
6126 cat > conftest.$ac_ext <<EOF 6137 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure" 6138 #line 6139 "configure"
6128 #include "confdefs.h" 6139 #include "confdefs.h"
6129 #include <png.h> 6140 #include <png.h>
6130 EOF 6141 EOF
6131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6132 { (eval echo configure:6133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6143 { (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6133 ac_err=`grep -v '^ *+' conftest.out` 6144 ac_err=`grep -v '^ *+' conftest.out`
6134 if test -z "$ac_err"; then 6145 if test -z "$ac_err"; then
6135 rm -rf conftest* 6146 rm -rf conftest*
6136 eval "ac_cv_header_$ac_safe=yes" 6147 eval "ac_cv_header_$ac_safe=yes"
6137 else 6148 else
6149 echo "$ac_t""no" 1>&6 6160 echo "$ac_t""no" 1>&6
6150 with_png=no 6161 with_png=no
6151 fi 6162 fi
6152 } 6163 }
6153 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6164 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6154 echo "configure:6155: checking for pow" >&5 6165 echo "configure:6166: checking for pow" >&5
6155 6166
6156 cat > conftest.$ac_ext <<EOF 6167 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure" 6168 #line 6169 "configure"
6158 #include "confdefs.h" 6169 #include "confdefs.h"
6159 /* System header to define __stub macros and hopefully few prototypes, 6170 /* System header to define __stub macros and hopefully few prototypes,
6160 which can conflict with char pow(); below. */ 6171 which can conflict with char pow(); below. */
6161 #include <assert.h> 6172 #include <assert.h>
6162 /* Override any gcc2 internal prototype to avoid an error. */ 6173 /* Override any gcc2 internal prototype to avoid an error. */
6175 pow(); 6186 pow();
6176 #endif 6187 #endif
6177 6188
6178 ; return 0; } 6189 ; return 0; }
6179 EOF 6190 EOF
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6191 if { (eval echo configure:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6181 rm -rf conftest* 6192 rm -rf conftest*
6182 eval "ac_cv_func_pow=yes" 6193 eval "ac_cv_func_pow=yes"
6183 else 6194 else
6184 echo "configure: failed program was:" >&5 6195 echo "configure: failed program was:" >&5
6185 cat conftest.$ac_ext >&5 6196 cat conftest.$ac_ext >&5
6200 for extra_libs in "" "-lz" "-lgz"; do 6211 for extra_libs in "" "-lz" "-lgz"; do
6201 6212
6202 xe_msg_checking="for png_read_image in -lpng" 6213 xe_msg_checking="for png_read_image in -lpng"
6203 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6214 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6204 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6215 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6205 echo "configure:6206: checking "$xe_msg_checking"" >&5 6216 echo "configure:6217: checking "$xe_msg_checking"" >&5
6206 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6217 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6207 6218
6208 xe_check_libs=" -lpng $extra_libs" 6219 xe_check_libs=" -lpng $extra_libs"
6209 cat > conftest.$ac_ext <<EOF 6220 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure" 6221 #line 6222 "configure"
6211 #include "confdefs.h" 6222 #include "confdefs.h"
6212 /* Override any gcc2 internal prototype to avoid an error. */ 6223 /* Override any gcc2 internal prototype to avoid an error. */
6213 /* We use char because int might match the return type of a gcc2 6224 /* We use char because int might match the return type of a gcc2
6214 builtin and then its argument prototype would still apply. */ 6225 builtin and then its argument prototype would still apply. */
6215 char png_read_image(); 6226 char png_read_image();
6216 6227
6217 int main() { 6228 int main() {
6218 png_read_image() 6229 png_read_image()
6219 ; return 0; } 6230 ; return 0; }
6220 EOF 6231 EOF
6221 if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6222 rm -rf conftest* 6233 rm -rf conftest*
6223 eval "ac_cv_lib_$ac_lib_var=yes" 6234 eval "ac_cv_lib_$ac_lib_var=yes"
6224 else 6235 else
6225 echo "configure: failed program was:" >&5 6236 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5 6237 cat conftest.$ac_ext >&5
6258 for extra_libs in "" "-lz" "-lgz"; do 6269 for extra_libs in "" "-lz" "-lgz"; do
6259 6270
6260 xe_msg_checking="for TIFFReadScanline in -ltiff" 6271 xe_msg_checking="for TIFFReadScanline in -ltiff"
6261 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6272 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6262 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6273 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6263 echo "configure:6264: checking "$xe_msg_checking"" >&5 6274 echo "configure:6275: checking "$xe_msg_checking"" >&5
6264 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'` 6275 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'`
6265 6276
6266 xe_check_libs=" -ltiff $extra_libs" 6277 xe_check_libs=" -ltiff $extra_libs"
6267 cat > conftest.$ac_ext <<EOF 6278 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure" 6279 #line 6280 "configure"
6269 #include "confdefs.h" 6280 #include "confdefs.h"
6270 /* Override any gcc2 internal prototype to avoid an error. */ 6281 /* Override any gcc2 internal prototype to avoid an error. */
6271 /* We use char because int might match the return type of a gcc2 6282 /* We use char because int might match the return type of a gcc2
6272 builtin and then its argument prototype would still apply. */ 6283 builtin and then its argument prototype would still apply. */
6273 char TIFFReadScanline(); 6284 char TIFFReadScanline();
6274 6285
6275 int main() { 6286 int main() {
6276 TIFFReadScanline() 6287 TIFFReadScanline()
6277 ; return 0; } 6288 ; return 0; }
6278 EOF 6289 EOF
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6290 if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6280 rm -rf conftest* 6291 rm -rf conftest*
6281 eval "ac_cv_lib_$ac_lib_var=yes" 6292 eval "ac_cv_lib_$ac_lib_var=yes"
6282 else 6293 else
6283 echo "configure: failed program was:" >&5 6294 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5 6295 cat conftest.$ac_ext >&5
6312 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi 6323 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi
6313 fi 6324 fi
6314 6325
6315 6326
6316 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 6327 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6317 echo "configure:6318: checking for XawScrollbarSetThumb in -lXaw" >&5 6328 echo "configure:6329: checking for XawScrollbarSetThumb in -lXaw" >&5
6318 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 6329 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6319 6330
6320 xe_check_libs=" -lXaw " 6331 xe_check_libs=" -lXaw "
6321 cat > conftest.$ac_ext <<EOF 6332 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure" 6333 #line 6334 "configure"
6323 #include "confdefs.h" 6334 #include "confdefs.h"
6324 /* Override any gcc2 internal prototype to avoid an error. */ 6335 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2 6336 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */ 6337 builtin and then its argument prototype would still apply. */
6327 char XawScrollbarSetThumb(); 6338 char XawScrollbarSetThumb();
6328 6339
6329 int main() { 6340 int main() {
6330 XawScrollbarSetThumb() 6341 XawScrollbarSetThumb()
6331 ; return 0; } 6342 ; return 0; }
6332 EOF 6343 EOF
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6344 if { (eval echo configure:6345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6334 rm -rf conftest* 6345 rm -rf conftest*
6335 eval "ac_cv_lib_$ac_lib_var=yes" 6346 eval "ac_cv_lib_$ac_lib_var=yes"
6336 else 6347 else
6337 echo "configure: failed program was:" >&5 6348 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5 6349 cat conftest.$ac_ext >&5
6352 6363
6353 6364
6354 6365
6355 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6366 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6356 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6367 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6357 echo "configure:6358: checking for Xm/Xm.h" >&5 6368 echo "configure:6369: checking for Xm/Xm.h" >&5
6358 6369
6359 cat > conftest.$ac_ext <<EOF 6370 cat > conftest.$ac_ext <<EOF
6360 #line 6361 "configure" 6371 #line 6372 "configure"
6361 #include "confdefs.h" 6372 #include "confdefs.h"
6362 #include <Xm/Xm.h> 6373 #include <Xm/Xm.h>
6363 EOF 6374 EOF
6364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6365 { (eval echo configure:6366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6376 { (eval echo configure:6377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6366 ac_err=`grep -v '^ *+' conftest.out` 6377 ac_err=`grep -v '^ *+' conftest.out`
6367 if test -z "$ac_err"; then 6378 if test -z "$ac_err"; then
6368 rm -rf conftest* 6379 rm -rf conftest*
6369 eval "ac_cv_header_$ac_safe=yes" 6380 eval "ac_cv_header_$ac_safe=yes"
6370 else 6381 else
6377 rm -f conftest* 6388 rm -f conftest*
6378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6379 echo "$ac_t""yes" 1>&6 6390 echo "$ac_t""yes" 1>&6
6380 6391
6381 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6392 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6382 echo "configure:6383: checking for XmStringFree in -lXm" >&5 6393 echo "configure:6394: checking for XmStringFree in -lXm" >&5
6383 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6394 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6384 6395
6385 xe_check_libs=" -lXm " 6396 xe_check_libs=" -lXm "
6386 cat > conftest.$ac_ext <<EOF 6397 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure" 6398 #line 6399 "configure"
6388 #include "confdefs.h" 6399 #include "confdefs.h"
6389 /* Override any gcc2 internal prototype to avoid an error. */ 6400 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2 6401 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */ 6402 builtin and then its argument prototype would still apply. */
6392 char XmStringFree(); 6403 char XmStringFree();
6393 6404
6394 int main() { 6405 int main() {
6395 XmStringFree() 6406 XmStringFree()
6396 ; return 0; } 6407 ; return 0; }
6397 EOF 6408 EOF
6398 if { (eval echo configure:6399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6399 rm -rf conftest* 6410 rm -rf conftest*
6400 eval "ac_cv_lib_$ac_lib_var=yes" 6411 eval "ac_cv_lib_$ac_lib_var=yes"
6401 else 6412 else
6402 echo "configure: failed program was:" >&5 6413 echo "configure: failed program was:" >&5
6403 cat conftest.$ac_ext >&5 6414 cat conftest.$ac_ext >&5
6644 echo "Please remove NAS configuration or build with X" 6655 echo "Please remove NAS configuration or build with X"
6645 exit 1 6656 exit 1
6646 fi 6657 fi
6647 fi 6658 fi
6648 6659
6660 if test "$with_gung" != "no"; then
6661 test "$with_minimal_tagbits" = "no" && { test "$extra_verbose" = "yes" && cat << \EOF
6662 Defining USE_MINIMAL_TAGBITS
6663 EOF
6664 cat >> confdefs.h <<\EOF
6665 #define USE_MINIMAL_TAGBITS 1
6666 EOF
6667 }
6668
6669 { test "$extra_verbose" = "yes" && cat << \EOF
6670 Defining USE_INDEXED_LRECORD_IMPLEMENTATION
6671 EOF
6672 cat >> confdefs.h <<\EOF
6673 #define USE_INDEXED_LRECORD_IMPLEMENTATION 1
6674 EOF
6675 }
6676
6677 fi
6678
6649 6679
6650 test -z "$with_mule" && with_mule=no 6680 test -z "$with_mule" && with_mule=no
6651 test -z "$with_mule_coding" && with_mule_coding=no 6681 test -z "$with_mule_coding" && with_mule_coding=no
6652 6682
6653 6683
6665 fi 6695 fi
6666 fi 6696 fi
6667 6697
6668 if test "$with_mule" = "yes" ; then 6698 if test "$with_mule" = "yes" ; then
6669 echo "checking for Mule-related features" 1>&6 6699 echo "checking for Mule-related features" 1>&6
6670 echo "configure:6671: checking for Mule-related features" >&5 6700 echo "configure:6701: checking for Mule-related features" >&5
6671 { test "$extra_verbose" = "yes" && cat << \EOF 6701 { test "$extra_verbose" = "yes" && cat << \EOF
6672 Defining MULE 6702 Defining MULE
6673 EOF 6703 EOF
6674 cat >> confdefs.h <<\EOF 6704 cat >> confdefs.h <<\EOF
6675 #define MULE 1 6705 #define MULE 1
6690 6720
6691 for ac_hdr in libintl.h 6721 for ac_hdr in libintl.h
6692 do 6722 do
6693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_hdr" >&5 6725 echo "configure:6726: checking for $ac_hdr" >&5
6696 6726
6697 cat > conftest.$ac_ext <<EOF 6727 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure" 6728 #line 6729 "configure"
6699 #include "confdefs.h" 6729 #include "confdefs.h"
6700 #include <$ac_hdr> 6730 #include <$ac_hdr>
6701 EOF 6731 EOF
6702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6703 { (eval echo configure:6704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6733 { (eval echo configure:6734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6704 ac_err=`grep -v '^ *+' conftest.out` 6734 ac_err=`grep -v '^ *+' conftest.out`
6705 if test -z "$ac_err"; then 6735 if test -z "$ac_err"; then
6706 rm -rf conftest* 6736 rm -rf conftest*
6707 eval "ac_cv_header_$ac_safe=yes" 6737 eval "ac_cv_header_$ac_safe=yes"
6708 else 6738 else
6729 fi 6759 fi
6730 done 6760 done
6731 6761
6732 6762
6733 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6763 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6734 echo "configure:6735: checking for strerror in -lintl" >&5 6764 echo "configure:6765: checking for strerror in -lintl" >&5
6735 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6765 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6736 6766
6737 xe_check_libs=" -lintl " 6767 xe_check_libs=" -lintl "
6738 cat > conftest.$ac_ext <<EOF 6768 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure" 6769 #line 6770 "configure"
6740 #include "confdefs.h" 6770 #include "confdefs.h"
6741 /* Override any gcc2 internal prototype to avoid an error. */ 6771 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2 6772 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */ 6773 builtin and then its argument prototype would still apply. */
6744 char strerror(); 6774 char strerror();
6745 6775
6746 int main() { 6776 int main() {
6747 strerror() 6777 strerror()
6748 ; return 0; } 6778 ; return 0; }
6749 EOF 6779 EOF
6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6780 if { (eval echo configure:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6751 rm -rf conftest* 6781 rm -rf conftest*
6752 eval "ac_cv_lib_$ac_lib_var=yes" 6782 eval "ac_cv_lib_$ac_lib_var=yes"
6753 else 6783 else
6754 echo "configure: failed program was:" >&5 6784 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5 6785 cat conftest.$ac_ext >&5
6778 fi 6808 fi
6779 6809
6780 6810
6781 6811
6782 echo "checking for Mule input methods" 1>&6 6812 echo "checking for Mule input methods" 1>&6
6783 echo "configure:6784: checking for Mule input methods" >&5 6813 echo "configure:6814: checking for Mule input methods" >&5
6784 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6814 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6785 case "$with_xim" in "" | "yes" ) 6815 case "$with_xim" in "" | "yes" )
6786 echo "checking for XIM" 1>&6 6816 echo "checking for XIM" 1>&6
6787 echo "configure:6788: checking for XIM" >&5 6817 echo "configure:6818: checking for XIM" >&5
6788 6818
6789 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6819 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6790 echo "configure:6791: checking for XmImMbLookupString in -lXm" >&5 6820 echo "configure:6821: checking for XmImMbLookupString in -lXm" >&5
6791 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6821 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6792 6822
6793 xe_check_libs=" -lXm " 6823 xe_check_libs=" -lXm "
6794 cat > conftest.$ac_ext <<EOF 6824 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure" 6825 #line 6826 "configure"
6796 #include "confdefs.h" 6826 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */ 6827 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2 6828 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */ 6829 builtin and then its argument prototype would still apply. */
6800 char XmImMbLookupString(); 6830 char XmImMbLookupString();
6801 6831
6802 int main() { 6832 int main() {
6803 XmImMbLookupString() 6833 XmImMbLookupString()
6804 ; return 0; } 6834 ; return 0; }
6805 EOF 6835 EOF
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6807 rm -rf conftest* 6837 rm -rf conftest*
6808 eval "ac_cv_lib_$ac_lib_var=yes" 6838 eval "ac_cv_lib_$ac_lib_var=yes"
6809 else 6839 else
6810 echo "configure: failed program was:" >&5 6840 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5 6841 cat conftest.$ac_ext >&5
6866 fi 6896 fi
6867 fi 6897 fi
6868 6898
6869 if test "$with_xfs" = "yes" ; then 6899 if test "$with_xfs" = "yes" ; then
6870 echo "checking for XFontSet" 1>&6 6900 echo "checking for XFontSet" 1>&6
6871 echo "configure:6872: checking for XFontSet" >&5 6901 echo "configure:6902: checking for XFontSet" >&5
6872 6902
6873 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 6903 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6874 echo "configure:6875: checking for XmbDrawString in -lX11" >&5 6904 echo "configure:6905: checking for XmbDrawString in -lX11" >&5
6875 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 6905 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6876 6906
6877 xe_check_libs=" -lX11 " 6907 xe_check_libs=" -lX11 "
6878 cat > conftest.$ac_ext <<EOF 6908 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure" 6909 #line 6910 "configure"
6880 #include "confdefs.h" 6910 #include "confdefs.h"
6881 /* Override any gcc2 internal prototype to avoid an error. */ 6911 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2 6912 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */ 6913 builtin and then its argument prototype would still apply. */
6884 char XmbDrawString(); 6914 char XmbDrawString();
6885 6915
6886 int main() { 6916 int main() {
6887 XmbDrawString() 6917 XmbDrawString()
6888 ; return 0; } 6918 ; return 0; }
6889 EOF 6919 EOF
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6920 if { (eval echo configure:6921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6891 rm -rf conftest* 6921 rm -rf conftest*
6892 eval "ac_cv_lib_$ac_lib_var=yes" 6922 eval "ac_cv_lib_$ac_lib_var=yes"
6893 else 6923 else
6894 echo "configure: failed program was:" >&5 6924 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5 6925 cat conftest.$ac_ext >&5
6925 fi 6955 fi
6926 fi 6956 fi
6927 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6957 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6928 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6958 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6929 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6959 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6930 echo "configure:6931: checking for wnn/jllib.h" >&5 6960 echo "configure:6961: checking for wnn/jllib.h" >&5
6931 6961
6932 cat > conftest.$ac_ext <<EOF 6962 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure" 6963 #line 6964 "configure"
6934 #include "confdefs.h" 6964 #include "confdefs.h"
6935 #include <wnn/jllib.h> 6965 #include <wnn/jllib.h>
6936 EOF 6966 EOF
6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6968 { (eval echo configure:6969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6939 ac_err=`grep -v '^ *+' conftest.out` 6969 ac_err=`grep -v '^ *+' conftest.out`
6940 if test -z "$ac_err"; then 6970 if test -z "$ac_err"; then
6941 rm -rf conftest* 6971 rm -rf conftest*
6942 eval "ac_cv_header_$ac_safe=yes" 6972 eval "ac_cv_header_$ac_safe=yes"
6943 else 6973 else
6958 } 6988 }
6959 if test "$with_wnn" != "no"; then 6989 if test "$with_wnn" != "no"; then
6960 for ac_func in crypt 6990 for ac_func in crypt
6961 do 6991 do
6962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6963 echo "configure:6964: checking for $ac_func" >&5 6993 echo "configure:6994: checking for $ac_func" >&5
6964 6994
6965 cat > conftest.$ac_ext <<EOF 6995 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure" 6996 #line 6997 "configure"
6967 #include "confdefs.h" 6997 #include "confdefs.h"
6968 /* System header to define __stub macros and hopefully few prototypes, 6998 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char $ac_func(); below. */ 6999 which can conflict with char $ac_func(); below. */
6970 #include <assert.h> 7000 #include <assert.h>
6971 /* Override any gcc2 internal prototype to avoid an error. */ 7001 /* Override any gcc2 internal prototype to avoid an error. */
6984 $ac_func(); 7014 $ac_func();
6985 #endif 7015 #endif
6986 7016
6987 ; return 0; } 7017 ; return 0; }
6988 EOF 7018 EOF
6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6990 rm -rf conftest* 7020 rm -rf conftest*
6991 eval "ac_cv_func_$ac_func=yes" 7021 eval "ac_cv_func_$ac_func=yes"
6992 else 7022 else
6993 echo "configure: failed program was:" >&5 7023 echo "configure: failed program was:" >&5
6994 cat conftest.$ac_ext >&5 7024 cat conftest.$ac_ext >&5
7013 fi 7043 fi
7014 done 7044 done
7015 7045
7016 test "$ac_cv_func_crypt" != "yes" && { 7046 test "$ac_cv_func_crypt" != "yes" && {
7017 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7047 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7018 echo "configure:7019: checking for crypt in -lcrypt" >&5 7048 echo "configure:7049: checking for crypt in -lcrypt" >&5
7019 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7049 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7020 7050
7021 xe_check_libs=" -lcrypt " 7051 xe_check_libs=" -lcrypt "
7022 cat > conftest.$ac_ext <<EOF 7052 cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure" 7053 #line 7054 "configure"
7024 #include "confdefs.h" 7054 #include "confdefs.h"
7025 /* Override any gcc2 internal prototype to avoid an error. */ 7055 /* Override any gcc2 internal prototype to avoid an error. */
7026 /* We use char because int might match the return type of a gcc2 7056 /* We use char because int might match the return type of a gcc2
7027 builtin and then its argument prototype would still apply. */ 7057 builtin and then its argument prototype would still apply. */
7028 char crypt(); 7058 char crypt();
7029 7059
7030 int main() { 7060 int main() {
7031 crypt() 7061 crypt()
7032 ; return 0; } 7062 ; return 0; }
7033 EOF 7063 EOF
7034 if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7064 if { (eval echo configure:7065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7035 rm -rf conftest* 7065 rm -rf conftest*
7036 eval "ac_cv_lib_$ac_lib_var=yes" 7066 eval "ac_cv_lib_$ac_lib_var=yes"
7037 else 7067 else
7038 echo "configure: failed program was:" >&5 7068 echo "configure: failed program was:" >&5
7039 cat conftest.$ac_ext >&5 7069 cat conftest.$ac_ext >&5
7063 7093
7064 } 7094 }
7065 fi 7095 fi
7066 test -z "$with_wnn" && { 7096 test -z "$with_wnn" && {
7067 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7097 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7068 echo "configure:7069: checking for jl_dic_list_e in -lwnn" >&5 7098 echo "configure:7099: checking for jl_dic_list_e in -lwnn" >&5
7069 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7099 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7070 7100
7071 xe_check_libs=" -lwnn " 7101 xe_check_libs=" -lwnn "
7072 cat > conftest.$ac_ext <<EOF 7102 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure" 7103 #line 7104 "configure"
7074 #include "confdefs.h" 7104 #include "confdefs.h"
7075 /* Override any gcc2 internal prototype to avoid an error. */ 7105 /* Override any gcc2 internal prototype to avoid an error. */
7076 /* We use char because int might match the return type of a gcc2 7106 /* We use char because int might match the return type of a gcc2
7077 builtin and then its argument prototype would still apply. */ 7107 builtin and then its argument prototype would still apply. */
7078 char jl_dic_list_e(); 7108 char jl_dic_list_e();
7079 7109
7080 int main() { 7110 int main() {
7081 jl_dic_list_e() 7111 jl_dic_list_e()
7082 ; return 0; } 7112 ; return 0; }
7083 EOF 7113 EOF
7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7085 rm -rf conftest* 7115 rm -rf conftest*
7086 eval "ac_cv_lib_$ac_lib_var=yes" 7116 eval "ac_cv_lib_$ac_lib_var=yes"
7087 else 7117 else
7088 echo "configure: failed program was:" >&5 7118 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5 7119 cat conftest.$ac_ext >&5
7116 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7146 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7117 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7147 echo " xemacs will be linked with \"mule-wnnfns.o\""
7118 fi 7148 fi
7119 7149
7120 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7150 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7121 echo "configure:7122: checking for jl_fi_dic_list in -lwnn" >&5 7151 echo "configure:7152: checking for jl_fi_dic_list in -lwnn" >&5
7122 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7152 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7123 7153
7124 xe_check_libs=" -lwnn " 7154 xe_check_libs=" -lwnn "
7125 cat > conftest.$ac_ext <<EOF 7155 cat > conftest.$ac_ext <<EOF
7126 #line 7127 "configure" 7156 #line 7157 "configure"
7127 #include "confdefs.h" 7157 #include "confdefs.h"
7128 /* Override any gcc2 internal prototype to avoid an error. */ 7158 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2 7159 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */ 7160 builtin and then its argument prototype would still apply. */
7131 char jl_fi_dic_list(); 7161 char jl_fi_dic_list();
7132 7162
7133 int main() { 7163 int main() {
7134 jl_fi_dic_list() 7164 jl_fi_dic_list()
7135 ; return 0; } 7165 ; return 0; }
7136 EOF 7166 EOF
7137 if { (eval echo configure:7138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7167 if { (eval echo configure:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7138 rm -rf conftest* 7168 rm -rf conftest*
7139 eval "ac_cv_lib_$ac_lib_var=yes" 7169 eval "ac_cv_lib_$ac_lib_var=yes"
7140 else 7170 else
7141 echo "configure: failed program was:" >&5 7171 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5 7172 cat conftest.$ac_ext >&5
7164 7194
7165 fi 7195 fi
7166 7196
7167 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7197 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7168 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7198 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7169 echo "configure:7170: checking for canna/RK.h" >&5 7199 echo "configure:7200: checking for canna/RK.h" >&5
7170 7200
7171 cat > conftest.$ac_ext <<EOF 7201 cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure" 7202 #line 7203 "configure"
7173 #include "confdefs.h" 7203 #include "confdefs.h"
7174 #include <canna/RK.h> 7204 #include <canna/RK.h>
7175 EOF 7205 EOF
7176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7177 { (eval echo configure:7178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7207 { (eval echo configure:7208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7178 ac_err=`grep -v '^ *+' conftest.out` 7208 ac_err=`grep -v '^ *+' conftest.out`
7179 if test -z "$ac_err"; then 7209 if test -z "$ac_err"; then
7180 rm -rf conftest* 7210 rm -rf conftest*
7181 eval "ac_cv_header_$ac_safe=yes" 7211 eval "ac_cv_header_$ac_safe=yes"
7182 else 7212 else
7195 with_canna=no 7225 with_canna=no
7196 fi 7226 fi
7197 } 7227 }
7198 test -z "$with_canna" && { 7228 test -z "$with_canna" && {
7199 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7229 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7200 echo "configure:7201: checking for RkBgnBun in -lRKC" >&5 7230 echo "configure:7231: checking for RkBgnBun in -lRKC" >&5
7201 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7231 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7202 7232
7203 xe_check_libs=" -lRKC " 7233 xe_check_libs=" -lRKC "
7204 cat > conftest.$ac_ext <<EOF 7234 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure" 7235 #line 7236 "configure"
7206 #include "confdefs.h" 7236 #include "confdefs.h"
7207 /* Override any gcc2 internal prototype to avoid an error. */ 7237 /* Override any gcc2 internal prototype to avoid an error. */
7208 /* We use char because int might match the return type of a gcc2 7238 /* We use char because int might match the return type of a gcc2
7209 builtin and then its argument prototype would still apply. */ 7239 builtin and then its argument prototype would still apply. */
7210 char RkBgnBun(); 7240 char RkBgnBun();
7211 7241
7212 int main() { 7242 int main() {
7213 RkBgnBun() 7243 RkBgnBun()
7214 ; return 0; } 7244 ; return 0; }
7215 EOF 7245 EOF
7216 if { (eval echo configure:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7246 if { (eval echo configure:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7217 rm -rf conftest* 7247 rm -rf conftest*
7218 eval "ac_cv_lib_$ac_lib_var=yes" 7248 eval "ac_cv_lib_$ac_lib_var=yes"
7219 else 7249 else
7220 echo "configure: failed program was:" >&5 7250 echo "configure: failed program was:" >&5
7221 cat conftest.$ac_ext >&5 7251 cat conftest.$ac_ext >&5
7234 fi 7264 fi
7235 7265
7236 } 7266 }
7237 test -z "$with_canna" && { 7267 test -z "$with_canna" && {
7238 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7268 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7239 echo "configure:7240: checking for jrKanjiControl in -lcanna" >&5 7269 echo "configure:7270: checking for jrKanjiControl in -lcanna" >&5
7240 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7270 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7241 7271
7242 xe_check_libs=" -lcanna " 7272 xe_check_libs=" -lcanna "
7243 cat > conftest.$ac_ext <<EOF 7273 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure" 7274 #line 7275 "configure"
7245 #include "confdefs.h" 7275 #include "confdefs.h"
7246 /* Override any gcc2 internal prototype to avoid an error. */ 7276 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2 7277 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */ 7278 builtin and then its argument prototype would still apply. */
7249 char jrKanjiControl(); 7279 char jrKanjiControl();
7250 7280
7251 int main() { 7281 int main() {
7252 jrKanjiControl() 7282 jrKanjiControl()
7253 ; return 0; } 7283 ; return 0; }
7254 EOF 7284 EOF
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7256 rm -rf conftest* 7286 rm -rf conftest*
7257 eval "ac_cv_lib_$ac_lib_var=yes" 7287 eval "ac_cv_lib_$ac_lib_var=yes"
7258 else 7288 else
7259 echo "configure: failed program was:" >&5 7289 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5 7290 cat conftest.$ac_ext >&5
7299 7329
7300 if test "$need_motif" = "yes" ; then 7330 if test "$need_motif" = "yes" ; then
7301 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 7331 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
7302 7332
7303 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 7333 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
7304 echo "configure:7305: checking for layout_object_getvalue in -li18n" >&5 7334 echo "configure:7335: checking for layout_object_getvalue in -li18n" >&5
7305 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 7335 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
7306 7336
7307 xe_check_libs=" -li18n " 7337 xe_check_libs=" -li18n "
7308 cat > conftest.$ac_ext <<EOF 7338 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure" 7339 #line 7340 "configure"
7310 #include "confdefs.h" 7340 #include "confdefs.h"
7311 /* Override any gcc2 internal prototype to avoid an error. */ 7341 /* Override any gcc2 internal prototype to avoid an error. */
7312 /* We use char because int might match the return type of a gcc2 7342 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */ 7343 builtin and then its argument prototype would still apply. */
7314 char layout_object_getvalue(); 7344 char layout_object_getvalue();
7315 7345
7316 int main() { 7346 int main() {
7317 layout_object_getvalue() 7347 layout_object_getvalue()
7318 ; return 0; } 7348 ; return 0; }
7319 EOF 7349 EOF
7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7350 if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7321 rm -rf conftest* 7351 rm -rf conftest*
7322 eval "ac_cv_lib_$ac_lib_var=yes" 7352 eval "ac_cv_lib_$ac_lib_var=yes"
7323 else 7353 else
7324 echo "configure: failed program was:" >&5 7354 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5 7355 cat conftest.$ac_ext >&5
7388 fi 7418 fi
7389 7419
7390 for ac_func in 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 7420 for ac_func in 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
7391 do 7421 do
7392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7393 echo "configure:7394: checking for $ac_func" >&5 7423 echo "configure:7424: checking for $ac_func" >&5
7394 7424
7395 cat > conftest.$ac_ext <<EOF 7425 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure" 7426 #line 7427 "configure"
7397 #include "confdefs.h" 7427 #include "confdefs.h"
7398 /* System header to define __stub macros and hopefully few prototypes, 7428 /* System header to define __stub macros and hopefully few prototypes,
7399 which can conflict with char $ac_func(); below. */ 7429 which can conflict with char $ac_func(); below. */
7400 #include <assert.h> 7430 #include <assert.h>
7401 /* Override any gcc2 internal prototype to avoid an error. */ 7431 /* Override any gcc2 internal prototype to avoid an error. */
7414 $ac_func(); 7444 $ac_func();
7415 #endif 7445 #endif
7416 7446
7417 ; return 0; } 7447 ; return 0; }
7418 EOF 7448 EOF
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7420 rm -rf conftest* 7450 rm -rf conftest*
7421 eval "ac_cv_func_$ac_func=yes" 7451 eval "ac_cv_func_$ac_func=yes"
7422 else 7452 else
7423 echo "configure: failed program was:" >&5 7453 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5 7454 cat conftest.$ac_ext >&5
7451 fi ;; 7481 fi ;;
7452 * ) 7482 * )
7453 for ac_func in realpath 7483 for ac_func in realpath
7454 do 7484 do
7455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7456 echo "configure:7457: checking for $ac_func" >&5 7486 echo "configure:7487: checking for $ac_func" >&5
7457 7487
7458 cat > conftest.$ac_ext <<EOF 7488 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure" 7489 #line 7490 "configure"
7460 #include "confdefs.h" 7490 #include "confdefs.h"
7461 /* System header to define __stub macros and hopefully few prototypes, 7491 /* System header to define __stub macros and hopefully few prototypes,
7462 which can conflict with char $ac_func(); below. */ 7492 which can conflict with char $ac_func(); below. */
7463 #include <assert.h> 7493 #include <assert.h>
7464 /* Override any gcc2 internal prototype to avoid an error. */ 7494 /* Override any gcc2 internal prototype to avoid an error. */
7477 $ac_func(); 7507 $ac_func();
7478 #endif 7508 #endif
7479 7509
7480 ; return 0; } 7510 ; return 0; }
7481 EOF 7511 EOF
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7512 if { (eval echo configure:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7483 rm -rf conftest* 7513 rm -rf conftest*
7484 eval "ac_cv_func_$ac_func=yes" 7514 eval "ac_cv_func_$ac_func=yes"
7485 else 7515 else
7486 echo "configure: failed program was:" >&5 7516 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5 7517 cat conftest.$ac_ext >&5
7510 echo " xemacs will be linked with \"realpath.o\"" 7540 echo " xemacs will be linked with \"realpath.o\""
7511 fi ;; 7541 fi ;;
7512 esac 7542 esac
7513 7543
7514 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7544 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7515 echo "configure:7516: checking whether netdb declares h_errno" >&5 7545 echo "configure:7546: checking whether netdb declares h_errno" >&5
7516 cat > conftest.$ac_ext <<EOF 7546 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure" 7547 #line 7548 "configure"
7518 #include "confdefs.h" 7548 #include "confdefs.h"
7519 #include <netdb.h> 7549 #include <netdb.h>
7520 int main() { 7550 int main() {
7521 return h_errno; 7551 return h_errno;
7522 ; return 0; } 7552 ; return 0; }
7523 EOF 7553 EOF
7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7554 if { (eval echo configure:7555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7525 rm -rf conftest* 7555 rm -rf conftest*
7526 echo "$ac_t""yes" 1>&6 7556 echo "$ac_t""yes" 1>&6
7527 { test "$extra_verbose" = "yes" && cat << \EOF 7557 { test "$extra_verbose" = "yes" && cat << \EOF
7528 Defining HAVE_H_ERRNO 7558 Defining HAVE_H_ERRNO
7529 EOF 7559 EOF
7539 echo "$ac_t""no" 1>&6 7569 echo "$ac_t""no" 1>&6
7540 fi 7570 fi
7541 rm -f conftest* 7571 rm -f conftest*
7542 7572
7543 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7573 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7544 echo "configure:7545: checking for sigsetjmp" >&5 7574 echo "configure:7575: checking for sigsetjmp" >&5
7545 cat > conftest.$ac_ext <<EOF 7575 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure" 7576 #line 7577 "configure"
7547 #include "confdefs.h" 7577 #include "confdefs.h"
7548 #include <setjmp.h> 7578 #include <setjmp.h>
7549 int main() { 7579 int main() {
7550 sigjmp_buf bar; sigsetjmp (bar, 0); 7580 sigjmp_buf bar; sigsetjmp (bar, 0);
7551 ; return 0; } 7581 ; return 0; }
7552 EOF 7582 EOF
7553 if { (eval echo configure:7554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7583 if { (eval echo configure:7584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7554 rm -rf conftest* 7584 rm -rf conftest*
7555 echo "$ac_t""yes" 1>&6 7585 echo "$ac_t""yes" 1>&6
7556 { test "$extra_verbose" = "yes" && cat << \EOF 7586 { test "$extra_verbose" = "yes" && cat << \EOF
7557 Defining HAVE_SIGSETJMP 7587 Defining HAVE_SIGSETJMP
7558 EOF 7588 EOF
7568 echo "$ac_t""no" 1>&6 7598 echo "$ac_t""no" 1>&6
7569 fi 7599 fi
7570 rm -f conftest* 7600 rm -f conftest*
7571 7601
7572 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7602 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7573 echo "configure:7574: checking whether localtime caches TZ" >&5 7603 echo "configure:7604: checking whether localtime caches TZ" >&5
7574 7604
7575 if test "$ac_cv_func_tzset" = "yes"; then 7605 if test "$ac_cv_func_tzset" = "yes"; then
7576 cat > conftest.$ac_ext <<EOF 7606 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure" 7607 #line 7608 "configure"
7578 #include "confdefs.h" 7608 #include "confdefs.h"
7579 #include <time.h> 7609 #include <time.h>
7580 #if STDC_HEADERS 7610 #if STDC_HEADERS
7581 # include <stdlib.h> 7611 # include <stdlib.h>
7582 #endif 7612 #endif
7607 if (localtime (&now)->tm_hour != hour_unset) 7637 if (localtime (&now)->tm_hour != hour_unset)
7608 exit (1); 7638 exit (1);
7609 exit (0); 7639 exit (0);
7610 } 7640 }
7611 EOF 7641 EOF
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7642 if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7613 then 7643 then
7614 emacs_cv_localtime_cache=no 7644 emacs_cv_localtime_cache=no
7615 else 7645 else
7616 echo "configure: failed program was:" >&5 7646 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5 7647 cat conftest.$ac_ext >&5
7636 7666
7637 fi 7667 fi
7638 7668
7639 if test "$HAVE_TIMEVAL" = "yes"; then 7669 if test "$HAVE_TIMEVAL" = "yes"; then
7640 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7670 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7641 echo "configure:7642: checking whether gettimeofday cannot accept two arguments" >&5 7671 echo "configure:7672: checking whether gettimeofday cannot accept two arguments" >&5
7642 cat > conftest.$ac_ext <<EOF 7672 cat > conftest.$ac_ext <<EOF
7643 #line 7644 "configure" 7673 #line 7674 "configure"
7644 #include "confdefs.h" 7674 #include "confdefs.h"
7645 7675
7646 #ifdef TIME_WITH_SYS_TIME 7676 #ifdef TIME_WITH_SYS_TIME
7647 #include <sys/time.h> 7677 #include <sys/time.h>
7648 #include <time.h> 7678 #include <time.h>
7660 struct timezone dummy; 7690 struct timezone dummy;
7661 gettimeofday (&time, &dummy); 7691 gettimeofday (&time, &dummy);
7662 7692
7663 ; return 0; } 7693 ; return 0; }
7664 EOF 7694 EOF
7665 if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7666 rm -rf conftest* 7696 rm -rf conftest*
7667 echo "$ac_t""no" 1>&6 7697 echo "$ac_t""no" 1>&6
7668 else 7698 else
7669 echo "configure: failed program was:" >&5 7699 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5 7700 cat conftest.$ac_ext >&5
7682 rm -f conftest* 7712 rm -f conftest*
7683 fi 7713 fi
7684 7714
7685 7715
7686 echo $ac_n "checking for inline""... $ac_c" 1>&6 7716 echo $ac_n "checking for inline""... $ac_c" 1>&6
7687 echo "configure:7688: checking for inline" >&5 7717 echo "configure:7718: checking for inline" >&5
7688 7718
7689 ac_cv_c_inline=no 7719 ac_cv_c_inline=no
7690 for ac_kw in inline __inline__ __inline; do 7720 for ac_kw in inline __inline__ __inline; do
7691 cat > conftest.$ac_ext <<EOF 7721 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure" 7722 #line 7723 "configure"
7693 #include "confdefs.h" 7723 #include "confdefs.h"
7694 7724
7695 int main() { 7725 int main() {
7696 } $ac_kw foo() { 7726 } $ac_kw foo() {
7697 ; return 0; } 7727 ; return 0; }
7698 EOF 7728 EOF
7699 if { (eval echo configure:7700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7729 if { (eval echo configure:7730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7700 rm -rf conftest* 7730 rm -rf conftest*
7701 ac_cv_c_inline=$ac_kw; break 7731 ac_cv_c_inline=$ac_kw; break
7702 else 7732 else
7703 echo "configure: failed program was:" >&5 7733 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5 7734 cat conftest.$ac_ext >&5
7744 7774
7745 7775
7746 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7747 # for constant arguments. Useless! 7777 # for constant arguments. Useless!
7748 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7778 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7749 echo "configure:7750: checking for working alloca.h" >&5 7779 echo "configure:7780: checking for working alloca.h" >&5
7750 7780
7751 cat > conftest.$ac_ext <<EOF 7781 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure" 7782 #line 7783 "configure"
7753 #include "confdefs.h" 7783 #include "confdefs.h"
7754 #include <alloca.h> 7784 #include <alloca.h>
7755 int main() { 7785 int main() {
7756 char *p = alloca(2 * sizeof(int)); 7786 char *p = alloca(2 * sizeof(int));
7757 ; return 0; } 7787 ; return 0; }
7758 EOF 7788 EOF
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7789 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7760 rm -rf conftest* 7790 rm -rf conftest*
7761 ac_cv_header_alloca_h=yes 7791 ac_cv_header_alloca_h=yes
7762 else 7792 else
7763 echo "configure: failed program was:" >&5 7793 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5 7794 cat conftest.$ac_ext >&5
7778 } 7808 }
7779 7809
7780 fi 7810 fi
7781 7811
7782 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7812 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7783 echo "configure:7784: checking for alloca" >&5 7813 echo "configure:7814: checking for alloca" >&5
7784 7814
7785 cat > conftest.$ac_ext <<EOF 7815 cat > conftest.$ac_ext <<EOF
7786 #line 7787 "configure" 7816 #line 7817 "configure"
7787 #include "confdefs.h" 7817 #include "confdefs.h"
7788 7818
7789 #ifdef __GNUC__ 7819 #ifdef __GNUC__
7790 # define alloca __builtin_alloca 7820 # define alloca __builtin_alloca
7791 #else 7821 #else
7804 7834
7805 int main() { 7835 int main() {
7806 char *p = (char *) alloca(1); 7836 char *p = (char *) alloca(1);
7807 ; return 0; } 7837 ; return 0; }
7808 EOF 7838 EOF
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7810 rm -rf conftest* 7840 rm -rf conftest*
7811 ac_cv_func_alloca_works=yes 7841 ac_cv_func_alloca_works=yes
7812 else 7842 else
7813 echo "configure: failed program was:" >&5 7843 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5 7844 cat conftest.$ac_ext >&5
7843 EOF 7873 EOF
7844 } 7874 }
7845 7875
7846 7876
7847 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7877 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7848 echo "configure:7849: checking whether alloca needs Cray hooks" >&5 7878 echo "configure:7879: checking whether alloca needs Cray hooks" >&5
7849 7879
7850 cat > conftest.$ac_ext <<EOF 7880 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure" 7881 #line 7882 "configure"
7852 #include "confdefs.h" 7882 #include "confdefs.h"
7853 #if defined(CRAY) && ! defined(CRAY2) 7883 #if defined(CRAY) && ! defined(CRAY2)
7854 webecray 7884 webecray
7855 #else 7885 #else
7856 wenotbecray 7886 wenotbecray
7870 7900
7871 echo "$ac_t""$ac_cv_os_cray" 1>&6 7901 echo "$ac_t""$ac_cv_os_cray" 1>&6
7872 if test $ac_cv_os_cray = yes; then 7902 if test $ac_cv_os_cray = yes; then
7873 for ac_func in _getb67 GETB67 getb67; do 7903 for ac_func in _getb67 GETB67 getb67; do
7874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7875 echo "configure:7876: checking for $ac_func" >&5 7905 echo "configure:7906: checking for $ac_func" >&5
7876 7906
7877 cat > conftest.$ac_ext <<EOF 7907 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure" 7908 #line 7909 "configure"
7879 #include "confdefs.h" 7909 #include "confdefs.h"
7880 /* System header to define __stub macros and hopefully few prototypes, 7910 /* System header to define __stub macros and hopefully few prototypes,
7881 which can conflict with char $ac_func(); below. */ 7911 which can conflict with char $ac_func(); below. */
7882 #include <assert.h> 7912 #include <assert.h>
7883 /* Override any gcc2 internal prototype to avoid an error. */ 7913 /* Override any gcc2 internal prototype to avoid an error. */
7896 $ac_func(); 7926 $ac_func();
7897 #endif 7927 #endif
7898 7928
7899 ; return 0; } 7929 ; return 0; }
7900 EOF 7930 EOF
7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7902 rm -rf conftest* 7932 rm -rf conftest*
7903 eval "ac_cv_func_$ac_func=yes" 7933 eval "ac_cv_func_$ac_func=yes"
7904 else 7934 else
7905 echo "configure: failed program was:" >&5 7935 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5 7936 cat conftest.$ac_ext >&5
7926 7956
7927 done 7957 done
7928 fi 7958 fi
7929 7959
7930 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7960 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7931 echo "configure:7932: checking stack direction for C alloca" >&5 7961 echo "configure:7962: checking stack direction for C alloca" >&5
7932 7962
7933 cat > conftest.$ac_ext <<EOF 7963 cat > conftest.$ac_ext <<EOF
7934 #line 7935 "configure" 7964 #line 7965 "configure"
7935 #include "confdefs.h" 7965 #include "confdefs.h"
7936 find_stack_direction () 7966 find_stack_direction ()
7937 { 7967 {
7938 static char *addr = 0; 7968 static char *addr = 0;
7939 auto char dummy; 7969 auto char dummy;
7948 main () 7978 main ()
7949 { 7979 {
7950 exit (find_stack_direction() < 0); 7980 exit (find_stack_direction() < 0);
7951 } 7981 }
7952 EOF 7982 EOF
7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7983 if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7954 then 7984 then
7955 ac_cv_c_stack_direction=1 7985 ac_cv_c_stack_direction=1
7956 else 7986 else
7957 echo "configure: failed program was:" >&5 7987 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5 7988 cat conftest.$ac_ext >&5
7976 echo " xemacs will be linked with \"$ALLOCA\"" 8006 echo " xemacs will be linked with \"$ALLOCA\""
7977 fi 8007 fi
7978 8008
7979 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8009 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7980 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8010 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7981 echo "configure:7982: checking for vfork.h" >&5 8011 echo "configure:8012: checking for vfork.h" >&5
7982 8012
7983 cat > conftest.$ac_ext <<EOF 8013 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure" 8014 #line 8015 "configure"
7985 #include "confdefs.h" 8015 #include "confdefs.h"
7986 #include <vfork.h> 8016 #include <vfork.h>
7987 EOF 8017 EOF
7988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7989 { (eval echo configure:7990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8019 { (eval echo configure:8020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7990 ac_err=`grep -v '^ *+' conftest.out` 8020 ac_err=`grep -v '^ *+' conftest.out`
7991 if test -z "$ac_err"; then 8021 if test -z "$ac_err"; then
7992 rm -rf conftest* 8022 rm -rf conftest*
7993 eval "ac_cv_header_$ac_safe=yes" 8023 eval "ac_cv_header_$ac_safe=yes"
7994 else 8024 else
8012 else 8042 else
8013 echo "$ac_t""no" 1>&6 8043 echo "$ac_t""no" 1>&6
8014 fi 8044 fi
8015 8045
8016 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8046 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8017 echo "configure:8018: checking for working vfork" >&5 8047 echo "configure:8048: checking for working vfork" >&5
8018 8048
8019 cat > conftest.$ac_ext <<EOF 8049 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure" 8050 #line 8051 "configure"
8021 #include "confdefs.h" 8051 #include "confdefs.h"
8022 /* Thanks to Paul Eggert for this test. */ 8052 /* Thanks to Paul Eggert for this test. */
8023 #include <stdio.h> 8053 #include <stdio.h>
8024 #include <sys/types.h> 8054 #include <sys/types.h>
8025 #include <sys/stat.h> 8055 #include <sys/stat.h>
8110 || fstat(fileno(stdout), &st) != 0 8140 || fstat(fileno(stdout), &st) != 0
8111 ); 8141 );
8112 } 8142 }
8113 } 8143 }
8114 EOF 8144 EOF
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8116 then 8146 then
8117 ac_cv_func_vfork_works=yes 8147 ac_cv_func_vfork_works=yes
8118 else 8148 else
8119 echo "configure: failed program was:" >&5 8149 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5 8150 cat conftest.$ac_ext >&5
8135 8165
8136 fi 8166 fi
8137 8167
8138 8168
8139 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8169 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8140 echo "configure:8141: checking for working strcoll" >&5 8170 echo "configure:8171: checking for working strcoll" >&5
8141 8171
8142 cat > conftest.$ac_ext <<EOF 8172 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure" 8173 #line 8174 "configure"
8144 #include "confdefs.h" 8174 #include "confdefs.h"
8145 #include <string.h> 8175 #include <string.h>
8146 main () 8176 main ()
8147 { 8177 {
8148 exit (strcoll ("abc", "def") >= 0 || 8178 exit (strcoll ("abc", "def") >= 0 ||
8149 strcoll ("ABC", "DEF") >= 0 || 8179 strcoll ("ABC", "DEF") >= 0 ||
8150 strcoll ("123", "456") >= 0); 8180 strcoll ("123", "456") >= 0);
8151 } 8181 }
8152 EOF 8182 EOF
8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8154 then 8184 then
8155 ac_cv_func_strcoll_works=yes 8185 ac_cv_func_strcoll_works=yes
8156 else 8186 else
8157 echo "configure: failed program was:" >&5 8187 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5 8188 cat conftest.$ac_ext >&5
8175 8205
8176 8206
8177 for ac_func in getpgrp 8207 for ac_func in getpgrp
8178 do 8208 do
8179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8180 echo "configure:8181: checking for $ac_func" >&5 8210 echo "configure:8211: checking for $ac_func" >&5
8181 8211
8182 cat > conftest.$ac_ext <<EOF 8212 cat > conftest.$ac_ext <<EOF
8183 #line 8184 "configure" 8213 #line 8214 "configure"
8184 #include "confdefs.h" 8214 #include "confdefs.h"
8185 /* System header to define __stub macros and hopefully few prototypes, 8215 /* System header to define __stub macros and hopefully few prototypes,
8186 which can conflict with char $ac_func(); below. */ 8216 which can conflict with char $ac_func(); below. */
8187 #include <assert.h> 8217 #include <assert.h>
8188 /* Override any gcc2 internal prototype to avoid an error. */ 8218 /* Override any gcc2 internal prototype to avoid an error. */
8201 $ac_func(); 8231 $ac_func();
8202 #endif 8232 #endif
8203 8233
8204 ; return 0; } 8234 ; return 0; }
8205 EOF 8235 EOF
8206 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8207 rm -rf conftest* 8237 rm -rf conftest*
8208 eval "ac_cv_func_$ac_func=yes" 8238 eval "ac_cv_func_$ac_func=yes"
8209 else 8239 else
8210 echo "configure: failed program was:" >&5 8240 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5 8241 cat conftest.$ac_ext >&5
8229 echo "$ac_t""no" 1>&6 8259 echo "$ac_t""no" 1>&6
8230 fi 8260 fi
8231 done 8261 done
8232 8262
8233 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8263 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8234 echo "configure:8235: checking whether getpgrp takes no argument" >&5 8264 echo "configure:8265: checking whether getpgrp takes no argument" >&5
8235 8265
8236 cat > conftest.$ac_ext <<EOF 8266 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure" 8267 #line 8268 "configure"
8238 #include "confdefs.h" 8268 #include "confdefs.h"
8239 8269
8240 /* 8270 /*
8241 * If this system has a BSD-style getpgrp(), 8271 * If this system has a BSD-style getpgrp(),
8242 * which takes a pid argument, exit unsuccessfully. 8272 * which takes a pid argument, exit unsuccessfully.
8287 exit(s>>8); 8317 exit(s>>8);
8288 } 8318 }
8289 } 8319 }
8290 8320
8291 EOF 8321 EOF
8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8322 if { (eval echo configure:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8293 then 8323 then
8294 ac_cv_func_getpgrp_void=yes 8324 ac_cv_func_getpgrp_void=yes
8295 else 8325 else
8296 echo "configure: failed program was:" >&5 8326 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5 8327 cat conftest.$ac_ext >&5
8313 8343
8314 fi 8344 fi
8315 8345
8316 8346
8317 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8347 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8318 echo "configure:8319: checking for working mmap" >&5 8348 echo "configure:8349: checking for working mmap" >&5
8319 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8349 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8320 cat > conftest.$ac_ext <<EOF 8350 cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure" 8351 #line 8352 "configure"
8322 #include "confdefs.h" 8352 #include "confdefs.h"
8323 #include <stdio.h> 8353 #include <stdio.h>
8324 #include <unistd.h> 8354 #include <unistd.h>
8325 #include <fcntl.h> 8355 #include <fcntl.h>
8326 #include <sys/mman.h> 8356 #include <sys/mman.h>
8349 return 0; 8379 return 0;
8350 perror ("conftest: mmap failed"); 8380 perror ("conftest: mmap failed");
8351 return 1; 8381 return 1;
8352 } 8382 }
8353 EOF 8383 EOF
8354 if { (eval echo configure:8355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8355 then 8385 then
8356 have_mmap=yes 8386 have_mmap=yes
8357 else 8387 else
8358 echo "configure: failed program was:" >&5 8388 echo "configure: failed program was:" >&5
8359 cat conftest.$ac_ext >&5 8389 cat conftest.$ac_ext >&5
8383 } 8413 }
8384 8414
8385 8415
8386 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8416 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8387 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8417 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8388 echo "configure:8389: checking for termios.h" >&5 8418 echo "configure:8419: checking for termios.h" >&5
8389 8419
8390 cat > conftest.$ac_ext <<EOF 8420 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure" 8421 #line 8422 "configure"
8392 #include "confdefs.h" 8422 #include "confdefs.h"
8393 #include <termios.h> 8423 #include <termios.h>
8394 EOF 8424 EOF
8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8397 ac_err=`grep -v '^ *+' conftest.out` 8427 ac_err=`grep -v '^ *+' conftest.out`
8398 if test -z "$ac_err"; then 8428 if test -z "$ac_err"; then
8399 rm -rf conftest* 8429 rm -rf conftest*
8400 eval "ac_cv_header_$ac_safe=yes" 8430 eval "ac_cv_header_$ac_safe=yes"
8401 else 8431 else
8434 8464
8435 else 8465 else
8436 echo "$ac_t""no" 1>&6 8466 echo "$ac_t""no" 1>&6
8437 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8467 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8438 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8468 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8439 echo "configure:8440: checking for termio.h" >&5 8469 echo "configure:8470: checking for termio.h" >&5
8440 8470
8441 cat > conftest.$ac_ext <<EOF 8471 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure" 8472 #line 8473 "configure"
8443 #include "confdefs.h" 8473 #include "confdefs.h"
8444 #include <termio.h> 8474 #include <termio.h>
8445 EOF 8475 EOF
8446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8447 { (eval echo configure:8448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8477 { (eval echo configure:8478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8448 ac_err=`grep -v '^ *+' conftest.out` 8478 ac_err=`grep -v '^ *+' conftest.out`
8449 if test -z "$ac_err"; then 8479 if test -z "$ac_err"; then
8450 rm -rf conftest* 8480 rm -rf conftest*
8451 eval "ac_cv_header_$ac_safe=yes" 8481 eval "ac_cv_header_$ac_safe=yes"
8452 else 8482 else
8474 fi 8504 fi
8475 8505
8476 8506
8477 8507
8478 echo $ac_n "checking for socket""... $ac_c" 1>&6 8508 echo $ac_n "checking for socket""... $ac_c" 1>&6
8479 echo "configure:8480: checking for socket" >&5 8509 echo "configure:8510: checking for socket" >&5
8480 8510
8481 cat > conftest.$ac_ext <<EOF 8511 cat > conftest.$ac_ext <<EOF
8482 #line 8483 "configure" 8512 #line 8513 "configure"
8483 #include "confdefs.h" 8513 #include "confdefs.h"
8484 /* System header to define __stub macros and hopefully few prototypes, 8514 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char socket(); below. */ 8515 which can conflict with char socket(); below. */
8486 #include <assert.h> 8516 #include <assert.h>
8487 /* Override any gcc2 internal prototype to avoid an error. */ 8517 /* Override any gcc2 internal prototype to avoid an error. */
8500 socket(); 8530 socket();
8501 #endif 8531 #endif
8502 8532
8503 ; return 0; } 8533 ; return 0; }
8504 EOF 8534 EOF
8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8506 rm -rf conftest* 8536 rm -rf conftest*
8507 eval "ac_cv_func_socket=yes" 8537 eval "ac_cv_func_socket=yes"
8508 else 8538 else
8509 echo "configure: failed program was:" >&5 8539 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5 8540 cat conftest.$ac_ext >&5
8515 8545
8516 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8546 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8517 echo "$ac_t""yes" 1>&6 8547 echo "$ac_t""yes" 1>&6
8518 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8548 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8519 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8549 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8520 echo "configure:8521: checking for netinet/in.h" >&5 8550 echo "configure:8551: checking for netinet/in.h" >&5
8521 8551
8522 cat > conftest.$ac_ext <<EOF 8552 cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure" 8553 #line 8554 "configure"
8524 #include "confdefs.h" 8554 #include "confdefs.h"
8525 #include <netinet/in.h> 8555 #include <netinet/in.h>
8526 EOF 8556 EOF
8527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8528 { (eval echo configure:8529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8558 { (eval echo configure:8559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8529 ac_err=`grep -v '^ *+' conftest.out` 8559 ac_err=`grep -v '^ *+' conftest.out`
8530 if test -z "$ac_err"; then 8560 if test -z "$ac_err"; then
8531 rm -rf conftest* 8561 rm -rf conftest*
8532 eval "ac_cv_header_$ac_safe=yes" 8562 eval "ac_cv_header_$ac_safe=yes"
8533 else 8563 else
8540 rm -f conftest* 8570 rm -f conftest*
8541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8542 echo "$ac_t""yes" 1>&6 8572 echo "$ac_t""yes" 1>&6
8543 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8573 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8544 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8574 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8545 echo "configure:8546: checking for arpa/inet.h" >&5 8575 echo "configure:8576: checking for arpa/inet.h" >&5
8546 8576
8547 cat > conftest.$ac_ext <<EOF 8577 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure" 8578 #line 8579 "configure"
8549 #include "confdefs.h" 8579 #include "confdefs.h"
8550 #include <arpa/inet.h> 8580 #include <arpa/inet.h>
8551 EOF 8581 EOF
8552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8553 { (eval echo configure:8554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8583 { (eval echo configure:8584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8554 ac_err=`grep -v '^ *+' conftest.out` 8584 ac_err=`grep -v '^ *+' conftest.out`
8555 if test -z "$ac_err"; then 8585 if test -z "$ac_err"; then
8556 rm -rf conftest* 8586 rm -rf conftest*
8557 eval "ac_cv_header_$ac_safe=yes" 8587 eval "ac_cv_header_$ac_safe=yes"
8558 else 8588 else
8573 #define HAVE_SOCKETS 1 8603 #define HAVE_SOCKETS 1
8574 EOF 8604 EOF
8575 } 8605 }
8576 8606
8577 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8607 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8578 echo "configure:8579: checking "for sun_len member in struct sockaddr_un"" >&5 8608 echo "configure:8609: checking "for sun_len member in struct sockaddr_un"" >&5
8579 cat > conftest.$ac_ext <<EOF 8609 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure" 8610 #line 8611 "configure"
8581 #include "confdefs.h" 8611 #include "confdefs.h"
8582 8612
8583 #include <sys/types.h> 8613 #include <sys/types.h>
8584 #include <sys/socket.h> 8614 #include <sys/socket.h>
8585 #include <sys/un.h> 8615 #include <sys/un.h>
8586 8616
8587 int main() { 8617 int main() {
8588 static struct sockaddr_un x; x.sun_len = 1; 8618 static struct sockaddr_un x; x.sun_len = 1;
8589 ; return 0; } 8619 ; return 0; }
8590 EOF 8620 EOF
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8592 rm -rf conftest* 8622 rm -rf conftest*
8593 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8623 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8594 Defining HAVE_SOCKADDR_SUN_LEN 8624 Defining HAVE_SOCKADDR_SUN_LEN
8595 EOF 8625 EOF
8596 cat >> confdefs.h <<\EOF 8626 cat >> confdefs.h <<\EOF
8617 echo "$ac_t""no" 1>&6 8647 echo "$ac_t""no" 1>&6
8618 fi 8648 fi
8619 8649
8620 8650
8621 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8651 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8622 echo "configure:8623: checking for msgget" >&5 8652 echo "configure:8653: checking for msgget" >&5
8623 8653
8624 cat > conftest.$ac_ext <<EOF 8654 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure" 8655 #line 8656 "configure"
8626 #include "confdefs.h" 8656 #include "confdefs.h"
8627 /* System header to define __stub macros and hopefully few prototypes, 8657 /* System header to define __stub macros and hopefully few prototypes,
8628 which can conflict with char msgget(); below. */ 8658 which can conflict with char msgget(); below. */
8629 #include <assert.h> 8659 #include <assert.h>
8630 /* Override any gcc2 internal prototype to avoid an error. */ 8660 /* Override any gcc2 internal prototype to avoid an error. */
8643 msgget(); 8673 msgget();
8644 #endif 8674 #endif
8645 8675
8646 ; return 0; } 8676 ; return 0; }
8647 EOF 8677 EOF
8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8649 rm -rf conftest* 8679 rm -rf conftest*
8650 eval "ac_cv_func_msgget=yes" 8680 eval "ac_cv_func_msgget=yes"
8651 else 8681 else
8652 echo "configure: failed program was:" >&5 8682 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5 8683 cat conftest.$ac_ext >&5
8658 8688
8659 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8689 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8660 echo "$ac_t""yes" 1>&6 8690 echo "$ac_t""yes" 1>&6
8661 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8691 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8662 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8692 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8663 echo "configure:8664: checking for sys/ipc.h" >&5 8693 echo "configure:8694: checking for sys/ipc.h" >&5
8664 8694
8665 cat > conftest.$ac_ext <<EOF 8695 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure" 8696 #line 8697 "configure"
8667 #include "confdefs.h" 8697 #include "confdefs.h"
8668 #include <sys/ipc.h> 8698 #include <sys/ipc.h>
8669 EOF 8699 EOF
8670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8671 { (eval echo configure:8672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8701 { (eval echo configure:8702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8672 ac_err=`grep -v '^ *+' conftest.out` 8702 ac_err=`grep -v '^ *+' conftest.out`
8673 if test -z "$ac_err"; then 8703 if test -z "$ac_err"; then
8674 rm -rf conftest* 8704 rm -rf conftest*
8675 eval "ac_cv_header_$ac_safe=yes" 8705 eval "ac_cv_header_$ac_safe=yes"
8676 else 8706 else
8683 rm -f conftest* 8713 rm -f conftest*
8684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8685 echo "$ac_t""yes" 1>&6 8715 echo "$ac_t""yes" 1>&6
8686 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8716 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8687 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8717 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8688 echo "configure:8689: checking for sys/msg.h" >&5 8718 echo "configure:8719: checking for sys/msg.h" >&5
8689 8719
8690 cat > conftest.$ac_ext <<EOF 8720 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure" 8721 #line 8722 "configure"
8692 #include "confdefs.h" 8722 #include "confdefs.h"
8693 #include <sys/msg.h> 8723 #include <sys/msg.h>
8694 EOF 8724 EOF
8695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8696 { (eval echo configure:8697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8697 ac_err=`grep -v '^ *+' conftest.out` 8727 ac_err=`grep -v '^ *+' conftest.out`
8698 if test -z "$ac_err"; then 8728 if test -z "$ac_err"; then
8699 rm -rf conftest* 8729 rm -rf conftest*
8700 eval "ac_cv_header_$ac_safe=yes" 8730 eval "ac_cv_header_$ac_safe=yes"
8701 else 8731 else
8729 fi 8759 fi
8730 8760
8731 8761
8732 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8762 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8733 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8763 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8734 echo "configure:8735: checking for dirent.h" >&5 8764 echo "configure:8765: checking for dirent.h" >&5
8735 8765
8736 cat > conftest.$ac_ext <<EOF 8766 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure" 8767 #line 8768 "configure"
8738 #include "confdefs.h" 8768 #include "confdefs.h"
8739 #include <dirent.h> 8769 #include <dirent.h>
8740 EOF 8770 EOF
8741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8742 { (eval echo configure:8743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8772 { (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8743 ac_err=`grep -v '^ *+' conftest.out` 8773 ac_err=`grep -v '^ *+' conftest.out`
8744 if test -z "$ac_err"; then 8774 if test -z "$ac_err"; then
8745 rm -rf conftest* 8775 rm -rf conftest*
8746 eval "ac_cv_header_$ac_safe=yes" 8776 eval "ac_cv_header_$ac_safe=yes"
8747 else 8777 else
8764 8794
8765 else 8795 else
8766 echo "$ac_t""no" 1>&6 8796 echo "$ac_t""no" 1>&6
8767 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8797 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8768 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8798 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8769 echo "configure:8770: checking for sys/dir.h" >&5 8799 echo "configure:8800: checking for sys/dir.h" >&5
8770 8800
8771 cat > conftest.$ac_ext <<EOF 8801 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure" 8802 #line 8803 "configure"
8773 #include "confdefs.h" 8803 #include "confdefs.h"
8774 #include <sys/dir.h> 8804 #include <sys/dir.h>
8775 EOF 8805 EOF
8776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8777 { (eval echo configure:8778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8807 { (eval echo configure:8808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8778 ac_err=`grep -v '^ *+' conftest.out` 8808 ac_err=`grep -v '^ *+' conftest.out`
8779 if test -z "$ac_err"; then 8809 if test -z "$ac_err"; then
8780 rm -rf conftest* 8810 rm -rf conftest*
8781 eval "ac_cv_header_$ac_safe=yes" 8811 eval "ac_cv_header_$ac_safe=yes"
8782 else 8812 else
8805 fi 8835 fi
8806 8836
8807 8837
8808 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8838 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8809 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8839 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8810 echo "configure:8811: checking for nlist.h" >&5 8840 echo "configure:8841: checking for nlist.h" >&5
8811 8841
8812 cat > conftest.$ac_ext <<EOF 8842 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure" 8843 #line 8844 "configure"
8814 #include "confdefs.h" 8844 #include "confdefs.h"
8815 #include <nlist.h> 8845 #include <nlist.h>
8816 EOF 8846 EOF
8817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8818 { (eval echo configure:8819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8848 { (eval echo configure:8849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8819 ac_err=`grep -v '^ *+' conftest.out` 8849 ac_err=`grep -v '^ *+' conftest.out`
8820 if test -z "$ac_err"; then 8850 if test -z "$ac_err"; then
8821 rm -rf conftest* 8851 rm -rf conftest*
8822 eval "ac_cv_header_$ac_safe=yes" 8852 eval "ac_cv_header_$ac_safe=yes"
8823 else 8853 else
8843 fi 8873 fi
8844 8874
8845 8875
8846 8876
8847 echo "checking "for sound support"" 1>&6 8877 echo "checking "for sound support"" 1>&6
8848 echo "configure:8849: checking "for sound support"" >&5 8878 echo "configure:8879: checking "for sound support"" >&5
8849 case "$with_sound" in 8879 case "$with_sound" in
8850 native | both ) with_native_sound=yes;; 8880 native | both ) with_native_sound=yes;;
8851 nas | no ) with_native_sound=no;; 8881 nas | no ) with_native_sound=no;;
8852 esac 8882 esac
8853 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8883 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8854 8884
8855 if test "$with_native_sound" != "no"; then 8885 if test "$with_native_sound" != "no"; then
8856 if test -n "$native_sound_lib"; then 8886 if test -n "$native_sound_lib"; then
8857 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8887 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8858 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8888 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8859 echo "configure:8860: checking for multimedia/audio_device.h" >&5 8889 echo "configure:8890: checking for multimedia/audio_device.h" >&5
8860 8890
8861 cat > conftest.$ac_ext <<EOF 8891 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure" 8892 #line 8893 "configure"
8863 #include "confdefs.h" 8893 #include "confdefs.h"
8864 #include <multimedia/audio_device.h> 8894 #include <multimedia/audio_device.h>
8865 EOF 8895 EOF
8866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8867 { (eval echo configure:8868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8897 { (eval echo configure:8898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8868 ac_err=`grep -v '^ *+' conftest.out` 8898 ac_err=`grep -v '^ *+' conftest.out`
8869 if test -z "$ac_err"; then 8899 if test -z "$ac_err"; then
8870 rm -rf conftest* 8900 rm -rf conftest*
8871 eval "ac_cv_header_$ac_safe=yes" 8901 eval "ac_cv_header_$ac_safe=yes"
8872 else 8902 else
8910 case "$canonical" in 8940 case "$canonical" in
8911 *-sgi-* ) 8941 *-sgi-* )
8912 if test -z "$native_sound_lib"; then 8942 if test -z "$native_sound_lib"; then
8913 8943
8914 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8944 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8915 echo "configure:8916: checking for ALopenport in -laudio" >&5 8945 echo "configure:8946: checking for ALopenport in -laudio" >&5
8916 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8946 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8917 8947
8918 xe_check_libs=" -laudio " 8948 xe_check_libs=" -laudio "
8919 cat > conftest.$ac_ext <<EOF 8949 cat > conftest.$ac_ext <<EOF
8920 #line 8921 "configure" 8950 #line 8951 "configure"
8921 #include "confdefs.h" 8951 #include "confdefs.h"
8922 /* Override any gcc2 internal prototype to avoid an error. */ 8952 /* Override any gcc2 internal prototype to avoid an error. */
8923 /* We use char because int might match the return type of a gcc2 8953 /* We use char because int might match the return type of a gcc2
8924 builtin and then its argument prototype would still apply. */ 8954 builtin and then its argument prototype would still apply. */
8925 char ALopenport(); 8955 char ALopenport();
8926 8956
8927 int main() { 8957 int main() {
8928 ALopenport() 8958 ALopenport()
8929 ; return 0; } 8959 ; return 0; }
8930 EOF 8960 EOF
8931 if { (eval echo configure:8932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8961 if { (eval echo configure:8962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8932 rm -rf conftest* 8962 rm -rf conftest*
8933 eval "ac_cv_lib_$ac_lib_var=yes" 8963 eval "ac_cv_lib_$ac_lib_var=yes"
8934 else 8964 else
8935 echo "configure: failed program was:" >&5 8965 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5 8966 cat conftest.$ac_ext >&5
8957 fi ;; 8987 fi ;;
8958 hppa*-hp-hpux* ) 8988 hppa*-hp-hpux* )
8959 if test -z "$native_sound_lib"; then 8989 if test -z "$native_sound_lib"; then
8960 8990
8961 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8991 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8962 echo "configure:8963: checking for AOpenAudio in -lAlib" >&5 8992 echo "configure:8993: checking for AOpenAudio in -lAlib" >&5
8963 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8993 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8964 8994
8965 xe_check_libs=" -lAlib " 8995 xe_check_libs=" -lAlib "
8966 cat > conftest.$ac_ext <<EOF 8996 cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure" 8997 #line 8998 "configure"
8968 #include "confdefs.h" 8998 #include "confdefs.h"
8969 /* Override any gcc2 internal prototype to avoid an error. */ 8999 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2 9000 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */ 9001 builtin and then its argument prototype would still apply. */
8972 char AOpenAudio(); 9002 char AOpenAudio();
8973 9003
8974 int main() { 9004 int main() {
8975 AOpenAudio() 9005 AOpenAudio()
8976 ; return 0; } 9006 ; return 0; }
8977 EOF 9007 EOF
8978 if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9008 if { (eval echo configure:9009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8979 rm -rf conftest* 9009 rm -rf conftest*
8980 eval "ac_cv_lib_$ac_lib_var=yes" 9010 eval "ac_cv_lib_$ac_lib_var=yes"
8981 else 9011 else
8982 echo "configure: failed program was:" >&5 9012 echo "configure: failed program was:" >&5
8983 cat conftest.$ac_ext >&5 9013 cat conftest.$ac_ext >&5
9011 9041
9012 if test -z "$sound_found"; then 9042 if test -z "$sound_found"; then
9013 for dir in "machine" "sys" "linux"; do 9043 for dir in "machine" "sys" "linux"; do
9014 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9044 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9015 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9045 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9016 echo "configure:9017: checking for ${dir}/soundcard.h" >&5 9046 echo "configure:9047: checking for ${dir}/soundcard.h" >&5
9017 9047
9018 cat > conftest.$ac_ext <<EOF 9048 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure" 9049 #line 9050 "configure"
9020 #include "confdefs.h" 9050 #include "confdefs.h"
9021 #include <${dir}/soundcard.h> 9051 #include <${dir}/soundcard.h>
9022 EOF 9052 EOF
9023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9024 { (eval echo configure:9025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9054 { (eval echo configure:9055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9025 ac_err=`grep -v '^ *+' conftest.out` 9055 ac_err=`grep -v '^ *+' conftest.out`
9026 if test -z "$ac_err"; then 9056 if test -z "$ac_err"; then
9027 rm -rf conftest* 9057 rm -rf conftest*
9028 eval "ac_cv_header_$ac_safe=yes" 9058 eval "ac_cv_header_$ac_safe=yes"
9029 else 9059 else
9089 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9119 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9090 echo " xemacs will be linked with \"nas.o\"" 9120 echo " xemacs will be linked with \"nas.o\""
9091 fi 9121 fi
9092 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 9122 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
9093 cat > conftest.$ac_ext <<EOF 9123 cat > conftest.$ac_ext <<EOF
9094 #line 9095 "configure" 9124 #line 9125 "configure"
9095 #include "confdefs.h" 9125 #include "confdefs.h"
9096 #include <audio/Xtutil.h> 9126 #include <audio/Xtutil.h>
9097 EOF 9127 EOF
9098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9099 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9129 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9116 9146
9117 test -z "$with_tty" && with_tty=yes 9147 test -z "$with_tty" && with_tty=yes
9118 9148
9119 if test "$with_tty" = "yes" ; then 9149 if test "$with_tty" = "yes" ; then
9120 echo "checking for TTY-related features" 1>&6 9150 echo "checking for TTY-related features" 1>&6
9121 echo "configure:9122: checking for TTY-related features" >&5 9151 echo "configure:9152: checking for TTY-related features" >&5
9122 { test "$extra_verbose" = "yes" && cat << \EOF 9152 { test "$extra_verbose" = "yes" && cat << \EOF
9123 Defining HAVE_TTY 9153 Defining HAVE_TTY
9124 EOF 9154 EOF
9125 cat >> confdefs.h <<\EOF 9155 cat >> confdefs.h <<\EOF
9126 #define HAVE_TTY 1 9156 #define HAVE_TTY 1
9132 fi 9162 fi
9133 9163
9134 if test -z "$with_ncurses"; then 9164 if test -z "$with_ncurses"; then
9135 9165
9136 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9166 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9137 echo "configure:9138: checking for tgetent in -lncurses" >&5 9167 echo "configure:9168: checking for tgetent in -lncurses" >&5
9138 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9168 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9139 9169
9140 xe_check_libs=" -lncurses " 9170 xe_check_libs=" -lncurses "
9141 cat > conftest.$ac_ext <<EOF 9171 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure" 9172 #line 9173 "configure"
9143 #include "confdefs.h" 9173 #include "confdefs.h"
9144 /* Override any gcc2 internal prototype to avoid an error. */ 9174 /* Override any gcc2 internal prototype to avoid an error. */
9145 /* We use char because int might match the return type of a gcc2 9175 /* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */ 9176 builtin and then its argument prototype would still apply. */
9147 char tgetent(); 9177 char tgetent();
9148 9178
9149 int main() { 9179 int main() {
9150 tgetent() 9180 tgetent()
9151 ; return 0; } 9181 ; return 0; }
9152 EOF 9182 EOF
9153 if { (eval echo configure:9154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9183 if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9154 rm -rf conftest* 9184 rm -rf conftest*
9155 eval "ac_cv_lib_$ac_lib_var=yes" 9185 eval "ac_cv_lib_$ac_lib_var=yes"
9156 else 9186 else
9157 echo "configure: failed program was:" >&5 9187 echo "configure: failed program was:" >&5
9158 cat conftest.$ac_ext >&5 9188 cat conftest.$ac_ext >&5
9181 EOF 9211 EOF
9182 } 9212 }
9183 9213
9184 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9214 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9185 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9215 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9186 echo "configure:9187: checking for ncurses/curses.h" >&5 9216 echo "configure:9217: checking for ncurses/curses.h" >&5
9187 9217
9188 cat > conftest.$ac_ext <<EOF 9218 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure" 9219 #line 9220 "configure"
9190 #include "confdefs.h" 9220 #include "confdefs.h"
9191 #include <ncurses/curses.h> 9221 #include <ncurses/curses.h>
9192 EOF 9222 EOF
9193 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"
9194 { (eval echo configure:9195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9224 { (eval echo configure:9225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9195 ac_err=`grep -v '^ *+' conftest.out` 9225 ac_err=`grep -v '^ *+' conftest.out`
9196 if test -z "$ac_err"; then 9226 if test -z "$ac_err"; then
9197 rm -rf conftest* 9227 rm -rf conftest*
9198 eval "ac_cv_header_$ac_safe=yes" 9228 eval "ac_cv_header_$ac_safe=yes"
9199 else 9229 else
9211 echo "$ac_t""no" 1>&6 9241 echo "$ac_t""no" 1>&6
9212 fi 9242 fi
9213 9243
9214 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9244 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9215 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9245 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9216 echo "configure:9217: checking for ncurses/term.h" >&5 9246 echo "configure:9247: checking for ncurses/term.h" >&5
9217 9247
9218 cat > conftest.$ac_ext <<EOF 9248 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure" 9249 #line 9250 "configure"
9220 #include "confdefs.h" 9250 #include "confdefs.h"
9221 #include <ncurses/term.h> 9251 #include <ncurses/term.h>
9222 EOF 9252 EOF
9223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9224 { (eval echo configure:9225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9254 { (eval echo configure:9255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9225 ac_err=`grep -v '^ *+' conftest.out` 9255 ac_err=`grep -v '^ *+' conftest.out`
9226 if test -z "$ac_err"; then 9256 if test -z "$ac_err"; then
9227 rm -rf conftest* 9257 rm -rf conftest*
9228 eval "ac_cv_header_$ac_safe=yes" 9258 eval "ac_cv_header_$ac_safe=yes"
9229 else 9259 else
9249 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9279 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9250 save_c_switch_site="$c_switch_site" 9280 save_c_switch_site="$c_switch_site"
9251 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9281 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9252 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9282 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9253 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9283 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9254 echo "configure:9255: checking for ncurses/curses.h" >&5 9284 echo "configure:9285: checking for ncurses/curses.h" >&5
9255 9285
9256 cat > conftest.$ac_ext <<EOF 9286 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure" 9287 #line 9288 "configure"
9258 #include "confdefs.h" 9288 #include "confdefs.h"
9259 #include <ncurses/curses.h> 9289 #include <ncurses/curses.h>
9260 EOF 9290 EOF
9261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9262 { (eval echo configure:9263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9292 { (eval echo configure:9293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9263 ac_err=`grep -v '^ *+' conftest.out` 9293 ac_err=`grep -v '^ *+' conftest.out`
9264 if test -z "$ac_err"; then 9294 if test -z "$ac_err"; then
9265 rm -rf conftest* 9295 rm -rf conftest*
9266 eval "ac_cv_header_$ac_safe=yes" 9296 eval "ac_cv_header_$ac_safe=yes"
9267 else 9297 else
9292 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9322 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9293 else 9323 else
9294 for lib in curses termlib termcap; do 9324 for lib in curses termlib termcap; do
9295 9325
9296 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9326 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9297 echo "configure:9298: checking for tgetent in -l$lib" >&5 9327 echo "configure:9328: checking for tgetent in -l$lib" >&5
9298 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9328 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9299 9329
9300 xe_check_libs=" -l$lib " 9330 xe_check_libs=" -l$lib "
9301 cat > conftest.$ac_ext <<EOF 9331 cat > conftest.$ac_ext <<EOF
9302 #line 9303 "configure" 9332 #line 9333 "configure"
9303 #include "confdefs.h" 9333 #include "confdefs.h"
9304 /* Override any gcc2 internal prototype to avoid an error. */ 9334 /* Override any gcc2 internal prototype to avoid an error. */
9305 /* We use char because int might match the return type of a gcc2 9335 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */ 9336 builtin and then its argument prototype would still apply. */
9307 char tgetent(); 9337 char tgetent();
9308 9338
9309 int main() { 9339 int main() {
9310 tgetent() 9340 tgetent()
9311 ; return 0; } 9341 ; return 0; }
9312 EOF 9342 EOF
9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9343 if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9314 rm -rf conftest* 9344 rm -rf conftest*
9315 eval "ac_cv_lib_$ac_lib_var=yes" 9345 eval "ac_cv_lib_$ac_lib_var=yes"
9316 else 9346 else
9317 echo "configure: failed program was:" >&5 9347 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5 9348 cat conftest.$ac_ext >&5
9339 if test -n "$libs_termcap"; then 9369 if test -n "$libs_termcap"; then
9340 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9370 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9341 else 9371 else
9342 9372
9343 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9373 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9344 echo "configure:9345: checking for tgetent in -lcurses" >&5 9374 echo "configure:9375: checking for tgetent in -lcurses" >&5
9345 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9375 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9346 9376
9347 xe_check_libs=" -lcurses " 9377 xe_check_libs=" -lcurses "
9348 cat > conftest.$ac_ext <<EOF 9378 cat > conftest.$ac_ext <<EOF
9349 #line 9350 "configure" 9379 #line 9380 "configure"
9350 #include "confdefs.h" 9380 #include "confdefs.h"
9351 /* Override any gcc2 internal prototype to avoid an error. */ 9381 /* Override any gcc2 internal prototype to avoid an error. */
9352 /* We use char because int might match the return type of a gcc2 9382 /* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */ 9383 builtin and then its argument prototype would still apply. */
9354 char tgetent(); 9384 char tgetent();
9355 9385
9356 int main() { 9386 int main() {
9357 tgetent() 9387 tgetent()
9358 ; return 0; } 9388 ; return 0; }
9359 EOF 9389 EOF
9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9390 if { (eval echo configure:9391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9361 rm -rf conftest* 9391 rm -rf conftest*
9362 eval "ac_cv_lib_$ac_lib_var=yes" 9392 eval "ac_cv_lib_$ac_lib_var=yes"
9363 else 9393 else
9364 echo "configure: failed program was:" >&5 9394 echo "configure: failed program was:" >&5
9365 cat conftest.$ac_ext >&5 9395 cat conftest.$ac_ext >&5
9373 echo "$ac_t""yes" 1>&6 9403 echo "$ac_t""yes" 1>&6
9374 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9404 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9375 else 9405 else
9376 echo "$ac_t""no" 1>&6 9406 echo "$ac_t""no" 1>&6
9377 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9407 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9378 echo "configure:9379: checking for tgetent in -ltermcap" >&5 9408 echo "configure:9409: checking for tgetent in -ltermcap" >&5
9379 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9409 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9380 9410
9381 xe_check_libs=" -ltermcap " 9411 xe_check_libs=" -ltermcap "
9382 cat > conftest.$ac_ext <<EOF 9412 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure" 9413 #line 9414 "configure"
9384 #include "confdefs.h" 9414 #include "confdefs.h"
9385 /* Override any gcc2 internal prototype to avoid an error. */ 9415 /* Override any gcc2 internal prototype to avoid an error. */
9386 /* We use char because int might match the return type of a gcc2 9416 /* We use char because int might match the return type of a gcc2
9387 builtin and then its argument prototype would still apply. */ 9417 builtin and then its argument prototype would still apply. */
9388 char tgetent(); 9418 char tgetent();
9389 9419
9390 int main() { 9420 int main() {
9391 tgetent() 9421 tgetent()
9392 ; return 0; } 9422 ; return 0; }
9393 EOF 9423 EOF
9394 if { (eval echo configure:9395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9424 if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9395 rm -rf conftest* 9425 rm -rf conftest*
9396 eval "ac_cv_lib_$ac_lib_var=yes" 9426 eval "ac_cv_lib_$ac_lib_var=yes"
9397 else 9427 else
9398 echo "configure: failed program was:" >&5 9428 echo "configure: failed program was:" >&5
9399 cat conftest.$ac_ext >&5 9429 cat conftest.$ac_ext >&5
9437 } 9467 }
9438 9468
9439 9469
9440 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9470 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9441 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9471 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9442 echo "configure:9443: checking for gpm.h" >&5 9472 echo "configure:9473: checking for gpm.h" >&5
9443 9473
9444 cat > conftest.$ac_ext <<EOF 9474 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure" 9475 #line 9476 "configure"
9446 #include "confdefs.h" 9476 #include "confdefs.h"
9447 #include <gpm.h> 9477 #include <gpm.h>
9448 EOF 9478 EOF
9449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9450 { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9480 { (eval echo configure:9481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9451 ac_err=`grep -v '^ *+' conftest.out` 9481 ac_err=`grep -v '^ *+' conftest.out`
9452 if test -z "$ac_err"; then 9482 if test -z "$ac_err"; then
9453 rm -rf conftest* 9483 rm -rf conftest*
9454 eval "ac_cv_header_$ac_safe=yes" 9484 eval "ac_cv_header_$ac_safe=yes"
9455 else 9485 else
9468 with_gpm=no 9498 with_gpm=no
9469 fi 9499 fi
9470 } 9500 }
9471 test -z "$with_gpm" && { 9501 test -z "$with_gpm" && {
9472 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9502 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9473 echo "configure:9474: checking for Gpm_Open in -lgpm" >&5 9503 echo "configure:9504: checking for Gpm_Open in -lgpm" >&5
9474 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9504 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9475 9505
9476 xe_check_libs=" -lgpm " 9506 xe_check_libs=" -lgpm "
9477 cat > conftest.$ac_ext <<EOF 9507 cat > conftest.$ac_ext <<EOF
9478 #line 9479 "configure" 9508 #line 9509 "configure"
9479 #include "confdefs.h" 9509 #include "confdefs.h"
9480 /* Override any gcc2 internal prototype to avoid an error. */ 9510 /* Override any gcc2 internal prototype to avoid an error. */
9481 /* We use char because int might match the return type of a gcc2 9511 /* We use char because int might match the return type of a gcc2
9482 builtin and then its argument prototype would still apply. */ 9512 builtin and then its argument prototype would still apply. */
9483 char Gpm_Open(); 9513 char Gpm_Open();
9484 9514
9485 int main() { 9515 int main() {
9486 Gpm_Open() 9516 Gpm_Open()
9487 ; return 0; } 9517 ; return 0; }
9488 EOF 9518 EOF
9489 if { (eval echo configure:9490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9519 if { (eval echo configure:9520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9490 rm -rf conftest* 9520 rm -rf conftest*
9491 eval "ac_cv_lib_$ac_lib_var=yes" 9521 eval "ac_cv_lib_$ac_lib_var=yes"
9492 else 9522 else
9493 echo "configure: failed program was:" >&5 9523 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5 9524 cat conftest.$ac_ext >&5
9533 echo " xemacs will be linked with \"event-unixoid.o\"" 9563 echo " xemacs will be linked with \"event-unixoid.o\""
9534 fi 9564 fi
9535 9565
9536 9566
9537 echo "checking for database support" 1>&6 9567 echo "checking for database support" 1>&6
9538 echo "configure:9539: checking for database support" >&5 9568 echo "configure:9569: checking for database support" >&5
9539 9569
9540 if test "$with_database_gnudbm" != "no"; then 9570 if test "$with_database_gnudbm" != "no"; then
9541 9571
9542 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9572 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9543 echo "configure:9544: checking for dbm_open in -lgdbm" >&5 9573 echo "configure:9574: checking for dbm_open in -lgdbm" >&5
9544 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9574 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9545 9575
9546 xe_check_libs=" -lgdbm " 9576 xe_check_libs=" -lgdbm "
9547 cat > conftest.$ac_ext <<EOF 9577 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure" 9578 #line 9579 "configure"
9549 #include "confdefs.h" 9579 #include "confdefs.h"
9550 /* Override any gcc2 internal prototype to avoid an error. */ 9580 /* Override any gcc2 internal prototype to avoid an error. */
9551 /* We use char because int might match the return type of a gcc2 9581 /* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */ 9582 builtin and then its argument prototype would still apply. */
9553 char dbm_open(); 9583 char dbm_open();
9554 9584
9555 int main() { 9585 int main() {
9556 dbm_open() 9586 dbm_open()
9557 ; return 0; } 9587 ; return 0; }
9558 EOF 9588 EOF
9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9589 if { (eval echo configure:9590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9560 rm -rf conftest* 9590 rm -rf conftest*
9561 eval "ac_cv_lib_$ac_lib_var=yes" 9591 eval "ac_cv_lib_$ac_lib_var=yes"
9562 else 9592 else
9563 echo "configure: failed program was:" >&5 9593 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5 9594 cat conftest.$ac_ext >&5
9576 fi 9606 fi
9577 9607
9578 9608
9579 if test "$with_database_gnudbm" != "yes"; then 9609 if test "$with_database_gnudbm" != "yes"; then
9580 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9610 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9581 echo "configure:9582: checking for dbm_open" >&5 9611 echo "configure:9612: checking for dbm_open" >&5
9582 9612
9583 cat > conftest.$ac_ext <<EOF 9613 cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure" 9614 #line 9615 "configure"
9585 #include "confdefs.h" 9615 #include "confdefs.h"
9586 /* System header to define __stub macros and hopefully few prototypes, 9616 /* System header to define __stub macros and hopefully few prototypes,
9587 which can conflict with char dbm_open(); below. */ 9617 which can conflict with char dbm_open(); below. */
9588 #include <assert.h> 9618 #include <assert.h>
9589 /* Override any gcc2 internal prototype to avoid an error. */ 9619 /* Override any gcc2 internal prototype to avoid an error. */
9602 dbm_open(); 9632 dbm_open();
9603 #endif 9633 #endif
9604 9634
9605 ; return 0; } 9635 ; return 0; }
9606 EOF 9636 EOF
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9637 if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9608 rm -rf conftest* 9638 rm -rf conftest*
9609 eval "ac_cv_func_dbm_open=yes" 9639 eval "ac_cv_func_dbm_open=yes"
9610 else 9640 else
9611 echo "configure: failed program was:" >&5 9641 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5 9642 cat conftest.$ac_ext >&5
9638 fi 9668 fi
9639 fi 9669 fi
9640 9670
9641 if test "$with_database_dbm" != "no"; then 9671 if test "$with_database_dbm" != "no"; then
9642 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9672 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9643 echo "configure:9644: checking for dbm_open" >&5 9673 echo "configure:9674: checking for dbm_open" >&5
9644 9674
9645 cat > conftest.$ac_ext <<EOF 9675 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure" 9676 #line 9677 "configure"
9647 #include "confdefs.h" 9677 #include "confdefs.h"
9648 /* System header to define __stub macros and hopefully few prototypes, 9678 /* System header to define __stub macros and hopefully few prototypes,
9649 which can conflict with char dbm_open(); below. */ 9679 which can conflict with char dbm_open(); below. */
9650 #include <assert.h> 9680 #include <assert.h>
9651 /* Override any gcc2 internal prototype to avoid an error. */ 9681 /* Override any gcc2 internal prototype to avoid an error. */
9664 dbm_open(); 9694 dbm_open();
9665 #endif 9695 #endif
9666 9696
9667 ; return 0; } 9697 ; return 0; }
9668 EOF 9698 EOF
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9699 if { (eval echo configure:9700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9670 rm -rf conftest* 9700 rm -rf conftest*
9671 eval "ac_cv_func_dbm_open=yes" 9701 eval "ac_cv_func_dbm_open=yes"
9672 else 9702 else
9673 echo "configure: failed program was:" >&5 9703 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5 9704 cat conftest.$ac_ext >&5
9685 fi 9715 fi
9686 9716
9687 if test "$need_libdbm" != "no"; then 9717 if test "$need_libdbm" != "no"; then
9688 9718
9689 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9719 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9690 echo "configure:9691: checking for dbm_open in -ldbm" >&5 9720 echo "configure:9721: checking for dbm_open in -ldbm" >&5
9691 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9721 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9692 9722
9693 xe_check_libs=" -ldbm " 9723 xe_check_libs=" -ldbm "
9694 cat > conftest.$ac_ext <<EOF 9724 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure" 9725 #line 9726 "configure"
9696 #include "confdefs.h" 9726 #include "confdefs.h"
9697 /* Override any gcc2 internal prototype to avoid an error. */ 9727 /* Override any gcc2 internal prototype to avoid an error. */
9698 /* We use char because int might match the return type of a gcc2 9728 /* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */ 9729 builtin and then its argument prototype would still apply. */
9700 char dbm_open(); 9730 char dbm_open();
9701 9731
9702 int main() { 9732 int main() {
9703 dbm_open() 9733 dbm_open()
9704 ; return 0; } 9734 ; return 0; }
9705 EOF 9735 EOF
9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9736 if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9707 rm -rf conftest* 9737 rm -rf conftest*
9708 eval "ac_cv_lib_$ac_lib_var=yes" 9738 eval "ac_cv_lib_$ac_lib_var=yes"
9709 else 9739 else
9710 echo "configure: failed program was:" >&5 9740 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5 9741 cat conftest.$ac_ext >&5
9738 fi 9768 fi
9739 fi 9769 fi
9740 9770
9741 if test "$with_database_berkdb" != "no"; then 9771 if test "$with_database_berkdb" != "no"; then
9742 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9772 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9743 echo "configure:9744: checking for dbopen" >&5 9773 echo "configure:9774: checking for dbopen" >&5
9744 9774
9745 cat > conftest.$ac_ext <<EOF 9775 cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure" 9776 #line 9777 "configure"
9747 #include "confdefs.h" 9777 #include "confdefs.h"
9748 /* System header to define __stub macros and hopefully few prototypes, 9778 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char dbopen(); below. */ 9779 which can conflict with char dbopen(); below. */
9750 #include <assert.h> 9780 #include <assert.h>
9751 /* Override any gcc2 internal prototype to avoid an error. */ 9781 /* Override any gcc2 internal prototype to avoid an error. */
9764 dbopen(); 9794 dbopen();
9765 #endif 9795 #endif
9766 9796
9767 ; return 0; } 9797 ; return 0; }
9768 EOF 9798 EOF
9769 if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9799 if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9770 rm -rf conftest* 9800 rm -rf conftest*
9771 eval "ac_cv_func_dbopen=yes" 9801 eval "ac_cv_func_dbopen=yes"
9772 else 9802 else
9773 echo "configure: failed program was:" >&5 9803 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5 9804 cat conftest.$ac_ext >&5
9785 fi 9815 fi
9786 9816
9787 if test "$need_libdb" != "no"; then 9817 if test "$need_libdb" != "no"; then
9788 9818
9789 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9819 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9790 echo "configure:9791: checking for dbopen in -ldb" >&5 9820 echo "configure:9821: checking for dbopen in -ldb" >&5
9791 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9821 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9792 9822
9793 xe_check_libs=" -ldb " 9823 xe_check_libs=" -ldb "
9794 cat > conftest.$ac_ext <<EOF 9824 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure" 9825 #line 9826 "configure"
9796 #include "confdefs.h" 9826 #include "confdefs.h"
9797 /* Override any gcc2 internal prototype to avoid an error. */ 9827 /* Override any gcc2 internal prototype to avoid an error. */
9798 /* We use char because int might match the return type of a gcc2 9828 /* We use char because int might match the return type of a gcc2
9799 builtin and then its argument prototype would still apply. */ 9829 builtin and then its argument prototype would still apply. */
9800 char dbopen(); 9830 char dbopen();
9801 9831
9802 int main() { 9832 int main() {
9803 dbopen() 9833 dbopen()
9804 ; return 0; } 9834 ; return 0; }
9805 EOF 9835 EOF
9806 if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9836 if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9807 rm -rf conftest* 9837 rm -rf conftest*
9808 eval "ac_cv_lib_$ac_lib_var=yes" 9838 eval "ac_cv_lib_$ac_lib_var=yes"
9809 else 9839 else
9810 echo "configure: failed program was:" >&5 9840 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5 9841 cat conftest.$ac_ext >&5
9825 9855
9826 fi 9856 fi
9827 if test "$with_database_berkdb" = "yes"; then 9857 if test "$with_database_berkdb" = "yes"; then
9828 for path in "db/db.h" "db.h"; do 9858 for path in "db/db.h" "db.h"; do
9829 cat > conftest.$ac_ext <<EOF 9859 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure" 9860 #line 9861 "configure"
9831 #include "confdefs.h" 9861 #include "confdefs.h"
9832 #ifdef HAVE_INTTYPES_H 9862 #ifdef HAVE_INTTYPES_H
9833 #define __BIT_TYPES_DEFINED__ 9863 #define __BIT_TYPES_DEFINED__
9834 #include <inttypes.h> 9864 #include <inttypes.h>
9835 typedef uint8_t u_int8_t; 9865 typedef uint8_t u_int8_t;
9843 9873
9844 int main() { 9874 int main() {
9845 9875
9846 ; return 0; } 9876 ; return 0; }
9847 EOF 9877 EOF
9848 if { (eval echo configure:9849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9878 if { (eval echo configure:9879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9849 rm -rf conftest* 9879 rm -rf conftest*
9850 db_h_path="$path"; break 9880 db_h_path="$path"; break
9851 else 9881 else
9852 echo "configure: failed program was:" >&5 9882 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5 9883 cat conftest.$ac_ext >&5
9895 fi 9925 fi
9896 9926
9897 if test "$with_socks" = "yes"; then 9927 if test "$with_socks" = "yes"; then
9898 9928
9899 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9929 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9900 echo "configure:9901: checking for SOCKSinit in -lsocks" >&5 9930 echo "configure:9931: checking for SOCKSinit in -lsocks" >&5
9901 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9931 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9902 9932
9903 xe_check_libs=" -lsocks " 9933 xe_check_libs=" -lsocks "
9904 cat > conftest.$ac_ext <<EOF 9934 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure" 9935 #line 9936 "configure"
9906 #include "confdefs.h" 9936 #include "confdefs.h"
9907 /* Override any gcc2 internal prototype to avoid an error. */ 9937 /* Override any gcc2 internal prototype to avoid an error. */
9908 /* We use char because int might match the return type of a gcc2 9938 /* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */ 9939 builtin and then its argument prototype would still apply. */
9910 char SOCKSinit(); 9940 char SOCKSinit();
9911 9941
9912 int main() { 9942 int main() {
9913 SOCKSinit() 9943 SOCKSinit()
9914 ; return 0; } 9944 ; return 0; }
9915 EOF 9945 EOF
9916 if { (eval echo configure:9917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9946 if { (eval echo configure:9947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9917 rm -rf conftest* 9947 rm -rf conftest*
9918 eval "ac_cv_lib_$ac_lib_var=yes" 9948 eval "ac_cv_lib_$ac_lib_var=yes"
9919 else 9949 else
9920 echo "configure: failed program was:" >&5 9950 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5 9951 cat conftest.$ac_ext >&5
10282 cat >> confdefs.h <<\EOF 10312 cat >> confdefs.h <<\EOF
10283 #define USE_GCC 1 10313 #define USE_GCC 1
10284 EOF 10314 EOF
10285 } 10315 }
10286 10316
10287 test "$with_term" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10288 Defining HAVE_TERM
10289 EOF
10290 cat >> confdefs.h <<\EOF
10291 #define HAVE_TERM 1
10292 EOF
10293 }
10294
10295 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 10317 test "$external_widget" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10296 Defining EXTERNAL_WIDGET 10318 Defining EXTERNAL_WIDGET
10297 EOF 10319 EOF
10298 cat >> confdefs.h <<\EOF 10320 cat >> confdefs.h <<\EOF
10299 #define EXTERNAL_WIDGET 1 10321 #define EXTERNAL_WIDGET 1
10405 if test -n "$runpath"; then 10427 if test -n "$runpath"; then
10406 echo " Runtime library search path: $runpath" 10428 echo " Runtime library search path: $runpath"
10407 fi 10429 fi
10408 test "$with_dnet" = yes && echo " Compiling in support for DNET." 10430 test "$with_dnet" = yes && echo " Compiling in support for DNET."
10409 test "$with_socks" = yes && echo " Compiling in support for SOCKS." 10431 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
10410 test "$with_term" = yes && echo " Compiling in support for TERM."
10411 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." 10432 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
10412 if test "$with_xmu" != yes -a "$with_x11" = yes; then 10433 if test "$with_xmu" != yes -a "$with_x11" = yes; then
10413 echo " No Xmu; substituting equivalent routines." 10434 echo " No Xmu; substituting equivalent routines."
10414 fi 10435 fi
10415 10436
10484 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" 10505 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
10485 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" 10506 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
10486 echo " The \`Info-default-directory-list' will be initialized from:" 10507 echo " The \`Info-default-directory-list' will be initialized from:"
10487 echo " INFOPATH=\"$infopath\"" 10508 echo " INFOPATH=\"$infopath\""
10488 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." 10509 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
10510 test "$with_minimal_tagbits" != "no" -o "$with_gung" != "no" && \
10511 echo "Using Lisp_Objects with minimal tagbits."
10512 test "$with_gung" != "no" && echo "Using indexed lrecord implementation."
10489 test "$debug" = yes && echo " Compiling in extra code for debugging." 10513 test "$debug" = yes && echo " Compiling in extra code for debugging."
10490 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." 10514 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
10491 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." 10515 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
10492 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ 10516 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
10493 != "no no no no no"; then 10517 != "no no no no no"; then