comparison configure @ 203:850242ba4a81 r20-3b28

Import from CVS: tag r20-3b28
author cvs
date Mon, 13 Aug 2007 10:02:21 +0200
parents eb5470882647
children e45d5e7c476e
comparison
equal deleted inserted replaced
202:61eefc8fc970 203:850242ba4a81
218 statedir='${prefix}/lib' 218 statedir='${prefix}/lib'
219 libdir='${exec_prefix}/lib' 219 libdir='${exec_prefix}/lib'
220 mandir='${prefix}/man/man1' 220 mandir='${prefix}/man/man1'
221 infodir='${prefix}/lib/xemacs-${version}/info' 221 infodir='${prefix}/lib/xemacs-${version}/info'
222 infodir_user_defined='no' 222 infodir_user_defined='no'
223 infopath='/usr/info:/usr/local/info:/usr/lib/texmf/doc/info:/usr/local/lib/texmf/doc/info'
224 infopath_user_defined='no'
223 lispdir='${datadir}/xemacs-${version}/lisp' 225 lispdir='${datadir}/xemacs-${version}/lisp'
224 lispdir_user_defined='no' 226 lispdir_user_defined='no'
225 sitelispdir='${datadir}/xemacs/site-lisp' 227 sitelispdir='${datadir}/xemacs/site-lisp'
226 etcdir='${datadir}/xemacs-${version}/etc' 228 etcdir='${datadir}/xemacs-${version}/etc'
227 etcdir_user_defined='no' 229 etcdir_user_defined='no'
375 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent 377 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent
376 concurrent updates of mail spool files. Valid types 378 concurrent updates of mail spool files. Valid types
377 are \`lockf', \`flock', and \`file'. 379 are \`lockf', \`flock', and \`file'.
378 --package-path=PATH Directories to search for packages to dump with xemacs. 380 --package-path=PATH Directories to search for packages to dump with xemacs.
379 Defaults to \`$prefix/lib/xemacs/packages:~/.xemacs'. 381 Defaults to \`$prefix/lib/xemacs/packages:~/.xemacs'.
382 --infodir=dir Directory to install the XEmacs Info manuals and dir in.
383 Defaults to: \`$info_dir'.
384 --infopath=PATH Directories to search for Info documents, info dir
385 and localdir files. This is used to initialize
386 \`Info-default-directory-list' at dump time.
387 Directories on this path that do not exist in the
388 filesystem will be dropped by the startup code at
389 runtime, so it is safe to specify directories that do
390 not exist in the compilation environment, or that won't
391 exist in the runtime environment. The \"dir\"
392 file in the first existing directory in this list will
393 become the (dir)Top node of the Info tree.
394 Defaults to the value of \`INFOPATH', or:
395 \`$infopath'.
380 396
381 Internationalization options: 397 Internationalization options:
382 398
383 --with-mule Compile with Mule (MUlti-Lingual Emacs) support, 399 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
384 needed to suport non-Latin-1 (including Asian) languages. 400 needed to suport non-Latin-1 (including Asian) languages.
432 --puresize=VALUE Override default amount of space for pure Lisp code. 448 --puresize=VALUE Override default amount of space for pure Lisp code.
433 --rel-alloc Use the relocating allocator (default for this option 449 --rel-alloc Use the relocating allocator (default for this option
434 is system-dependent). 450 is system-dependent).
435 --with-clash-detection Use lock files to detect multiple edits of the same file. 451 --with-clash-detection Use lock files to detect multiple edits of the same file.
436 The default is to not do clash detection. 452 The default is to not do clash detection.
453 --lockdir=dir The directory to put clash detection files in, such as
454 \`/var/lock/emacs'.
455 Defaults to \`$lockdir'.
437 --with-system-malloc Force use of the system malloc, rather than GNU malloc. 456 --with-system-malloc Force use of the system malloc, rather than GNU malloc.
438 --with-debug-malloc Use the debugging malloc package. 457 --with-debug-malloc Use the debugging malloc package.
439 458
440 You may also specify any of the \`path' variables found in 459 You may also specify any of the \`path' variables found in
441 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and 460 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
451 CPP C preprocessor to use (such as /usr/ccs/lib/cpp or cc -E) 470 CPP C preprocessor to use (such as /usr/ccs/lib/cpp or cc -E)
452 CFLAGS C compiler compilation flags (such as -O) 471 CFLAGS C compiler compilation flags (such as -O)
453 CPPFLAGS Additional compilation flags (such as -I/foo) used only by the preprocessor 472 CPPFLAGS Additional compilation flags (such as -I/foo) used only by the preprocessor
454 LDFLAGS Additional linker flags (such as -L/foo) 473 LDFLAGS Additional linker flags (such as -L/foo)
455 LIBS Additional libraries (such as -lfoo) 474 LIBS Additional libraries (such as -lfoo)
475
476 INFOPATH Path to search for Info documentation.
456 477
457 For more details on the install process, consult the INSTALL file. 478 For more details on the install process, consult the INSTALL file.
458 " 479 "
459 480
460 481
723 done 744 done
724 ;; 745 ;;
725 746
726 747
727 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ 748 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
728 mandir | infodir | lispdir | etcdir | lockdir | pkgdir | archlibdir | \ 749 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \
729 sitelispdir | docdir ) 750 archlibdir | sitelispdir | docdir )
730 if test "$valomitted" = "yes"; then 751 if test "$valomitted" = "yes"; then
731 if test "$#" = 0; then 752 if test "$#" = 0; then
732 (echo "$progname: Usage error:" 753 (echo "$progname: Usage error:"
733 echo " " "The \`--$optname' option requires a value." 754 echo " " "The \`--$optname' option requires a value."
734 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; 755 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
739 760
740 case "$opt" in 761 case "$opt" in
741 lispdir ) lispdir_user_defined=yes ;; 762 lispdir ) lispdir_user_defined=yes ;;
742 etcdir ) etcdir_user_defined=yes ;; 763 etcdir ) etcdir_user_defined=yes ;;
743 infodir ) infodir_user_defined=yes ;; 764 infodir ) infodir_user_defined=yes ;;
765 infopath ) infopath_user_defined=yes ;;
744 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;; 766 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;;
745 statedir | lockdir ) lockdir_user_defined=yes ;; 767 statedir | lockdir ) lockdir_user_defined=yes ;;
746 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;; 768 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;;
747 esac 769 esac
748 ;; 770 ;;
776 *) configuration="$arg" ;; 798 *) configuration="$arg" ;;
777 799
778 esac 800 esac
779 done 801 done
780 802
803
804 if test "$infopath_user_defined" = "no" -a -n "$INFOPATH" ; then
805 infopath="$INFOPATH"
806 fi
781 807
782 eval set x "$quoted_arguments"; shift 808 eval set x "$quoted_arguments"; shift
783 809
784 if test "$with_energize" = "yes" ; then 810 if test "$with_energize" = "yes" ; then
785 with_menubars=lucid with_scrollbars=motif with_dialogs=motif with_tooltalk=yes 811 with_menubars=lucid with_scrollbars=motif with_dialogs=motif with_tooltalk=yes
846 fi 872 fi
847 ;; 873 ;;
848 esac 874 esac
849 875
850 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 876 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
851 echo "configure:852: checking whether ln -s works" >&5 877 echo "configure:878: checking whether ln -s works" >&5
852 878
853 rm -f conftestdata 879 rm -f conftestdata
854 if ln -s X conftestdata 2>/dev/null 880 if ln -s X conftestdata 2>/dev/null
855 then 881 then
856 rm -f conftestdata 882 rm -f conftestdata
1023 } 1049 }
1024 1050
1025 1051
1026 1052
1027 echo "checking "the configuration name"" 1>&6 1053 echo "checking "the configuration name"" 1>&6
1028 echo "configure:1029: checking "the configuration name"" >&5 1054 echo "configure:1055: checking "the configuration name"" >&5
1029 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` 1055 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'`
1030 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 1056 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
1031 exit $? 1057 exit $?
1032 fi 1058 fi
1033 1059
1477 xe_save_CFLAGS="$CFLAGS" 1503 xe_save_CFLAGS="$CFLAGS"
1478 1504
1479 # Extract the first word of "gcc", so it can be a program name with args. 1505 # Extract the first word of "gcc", so it can be a program name with args.
1480 set dummy gcc; ac_word=$2 1506 set dummy gcc; ac_word=$2
1481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_word" >&5 1508 echo "configure:1509: checking for $ac_word" >&5
1483 1509
1484 if test -n "$CC"; then 1510 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test. 1511 ac_cv_prog_CC="$CC" # Let the user override the test.
1486 else 1512 else
1487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1503 1529
1504 if test -z "$CC"; then 1530 if test -z "$CC"; then
1505 # Extract the first word of "cc", so it can be a program name with args. 1531 # Extract the first word of "cc", so it can be a program name with args.
1506 set dummy cc; ac_word=$2 1532 set dummy cc; ac_word=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5 1534 echo "configure:1535: checking for $ac_word" >&5
1509 1535
1510 if test -n "$CC"; then 1536 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test. 1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1512 else 1538 else
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1548 1574
1549 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1575 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1550 fi 1576 fi
1551 1577
1552 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1578 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1553 echo "configure:1554: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1579 echo "configure:1580: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1554 1580
1555 ac_ext=c 1581 ac_ext=c
1556 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1582 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1557 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1583 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1558 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1584 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1560 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1586 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1561 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1587 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1562 cross_compiling=no 1588 cross_compiling=no
1563 1589
1564 cat > conftest.$ac_ext <<EOF 1590 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure" 1591 #line 1592 "configure"
1566 #include "confdefs.h" 1592 #include "confdefs.h"
1567 main(){return(0);} 1593 main(){return(0);}
1568 EOF 1594 EOF
1569 if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1595 if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1570 ac_cv_prog_cc_works=yes 1596 ac_cv_prog_cc_works=yes
1571 # If we can't run a trivial program, we are probably using a cross compiler. 1597 # If we can't run a trivial program, we are probably using a cross compiler.
1572 if (./conftest; exit) 2>/dev/null; then 1598 if (./conftest; exit) 2>/dev/null; then
1573 ac_cv_prog_cc_cross=no 1599 ac_cv_prog_cc_cross=no
1574 else 1600 else
1584 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1610 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1585 if test $ac_cv_prog_cc_works = no; then 1611 if test $ac_cv_prog_cc_works = no; then
1586 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1612 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1587 fi 1613 fi
1588 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1614 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1589 echo "configure:1590: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1615 echo "configure:1616: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1590 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1616 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1591 cross_compiling=$ac_cv_prog_cc_cross 1617 cross_compiling=$ac_cv_prog_cc_cross
1592 1618
1593 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1619 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether we are using GNU C" >&5 1620 echo "configure:1621: checking whether we are using GNU C" >&5
1595 1621
1596 cat > conftest.c <<EOF 1622 cat > conftest.c <<EOF
1597 #ifdef __GNUC__ 1623 #ifdef __GNUC__
1598 yes; 1624 yes;
1599 #endif 1625 #endif
1600 EOF 1626 EOF
1601 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1627 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1602 ac_cv_prog_gcc=yes 1628 ac_cv_prog_gcc=yes
1603 else 1629 else
1604 ac_cv_prog_gcc=no 1630 ac_cv_prog_gcc=no
1605 fi 1631 fi
1606 1632
1610 GCC=yes 1636 GCC=yes
1611 ac_test_CFLAGS="${CFLAGS+set}" 1637 ac_test_CFLAGS="${CFLAGS+set}"
1612 ac_save_CFLAGS="$CFLAGS" 1638 ac_save_CFLAGS="$CFLAGS"
1613 CFLAGS= 1639 CFLAGS=
1614 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1640 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1615 echo "configure:1616: checking whether ${CC-cc} accepts -g" >&5 1641 echo "configure:1642: checking whether ${CC-cc} accepts -g" >&5
1616 1642
1617 echo 'void f(){}' > conftest.c 1643 echo 'void f(){}' > conftest.c
1618 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1644 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1619 ac_cv_prog_cc_g=yes 1645 ac_cv_prog_cc_g=yes
1620 else 1646 else
1639 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1665 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1640 CC=${NON_GNU_CC-cc} 1666 CC=${NON_GNU_CC-cc}
1641 # Extract the first word of "gcc", so it can be a program name with args. 1667 # Extract the first word of "gcc", so it can be a program name with args.
1642 set dummy gcc; ac_word=$2 1668 set dummy gcc; ac_word=$2
1643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1644 echo "configure:1645: checking for $ac_word" >&5 1670 echo "configure:1671: checking for $ac_word" >&5
1645 1671
1646 if test -n "$CC"; then 1672 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test. 1673 ac_cv_prog_CC="$CC" # Let the user override the test.
1648 else 1674 else
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1665 1691
1666 if test -z "$CC"; then 1692 if test -z "$CC"; then
1667 # Extract the first word of "cc", so it can be a program name with args. 1693 # Extract the first word of "cc", so it can be a program name with args.
1668 set dummy cc; ac_word=$2 1694 set dummy cc; ac_word=$2
1669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_word" >&5 1696 echo "configure:1697: checking for $ac_word" >&5
1671 1697
1672 if test -n "$CC"; then 1698 if test -n "$CC"; then
1673 ac_cv_prog_CC="$CC" # Let the user override the test. 1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 else 1700 else
1675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1710 1736
1711 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1712 fi 1738 fi
1713 1739
1714 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1715 echo "configure:1716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1741 echo "configure:1742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1716 1742
1717 ac_ext=c 1743 ac_ext=c
1718 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1744 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1719 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1745 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1720 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1746 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1722 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1748 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1723 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1749 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1724 cross_compiling=no 1750 cross_compiling=no
1725 1751
1726 cat > conftest.$ac_ext <<EOF 1752 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure" 1753 #line 1754 "configure"
1728 #include "confdefs.h" 1754 #include "confdefs.h"
1729 main(){return(0);} 1755 main(){return(0);}
1730 EOF 1756 EOF
1731 if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1732 ac_cv_prog_cc_works=yes 1758 ac_cv_prog_cc_works=yes
1733 # If we can't run a trivial program, we are probably using a cross compiler. 1759 # If we can't run a trivial program, we are probably using a cross compiler.
1734 if (./conftest; exit) 2>/dev/null; then 1760 if (./conftest; exit) 2>/dev/null; then
1735 ac_cv_prog_cc_cross=no 1761 ac_cv_prog_cc_cross=no
1736 else 1762 else
1746 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1772 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1747 if test $ac_cv_prog_cc_works = no; then 1773 if test $ac_cv_prog_cc_works = no; then
1748 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1774 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1749 fi 1775 fi
1750 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1751 echo "configure:1752: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1777 echo "configure:1778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1752 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1753 cross_compiling=$ac_cv_prog_cc_cross 1779 cross_compiling=$ac_cv_prog_cc_cross
1754 1780
1755 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1756 echo "configure:1757: checking whether we are using GNU C" >&5 1782 echo "configure:1783: checking whether we are using GNU C" >&5
1757 1783
1758 cat > conftest.c <<EOF 1784 cat > conftest.c <<EOF
1759 #ifdef __GNUC__ 1785 #ifdef __GNUC__
1760 yes; 1786 yes;
1761 #endif 1787 #endif
1762 EOF 1788 EOF
1763 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1789 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1764 ac_cv_prog_gcc=yes 1790 ac_cv_prog_gcc=yes
1765 else 1791 else
1766 ac_cv_prog_gcc=no 1792 ac_cv_prog_gcc=no
1767 fi 1793 fi
1768 1794
1772 GCC=yes 1798 GCC=yes
1773 ac_test_CFLAGS="${CFLAGS+set}" 1799 ac_test_CFLAGS="${CFLAGS+set}"
1774 ac_save_CFLAGS="$CFLAGS" 1800 ac_save_CFLAGS="$CFLAGS"
1775 CFLAGS= 1801 CFLAGS=
1776 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1802 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether ${CC-cc} accepts -g" >&5 1803 echo "configure:1804: checking whether ${CC-cc} accepts -g" >&5
1778 1804
1779 echo 'void f(){}' > conftest.c 1805 echo 'void f(){}' > conftest.c
1780 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1806 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1781 ac_cv_prog_cc_g=yes 1807 ac_cv_prog_cc_g=yes
1782 else 1808 else
1801 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1827 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1802 CC=gcc 1828 CC=gcc
1803 # Extract the first word of "gcc", so it can be a program name with args. 1829 # Extract the first word of "gcc", so it can be a program name with args.
1804 set dummy gcc; ac_word=$2 1830 set dummy gcc; ac_word=$2
1805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_word" >&5 1832 echo "configure:1833: checking for $ac_word" >&5
1807 1833
1808 if test -n "$CC"; then 1834 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test. 1835 ac_cv_prog_CC="$CC" # Let the user override the test.
1810 else 1836 else
1811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1827 1853
1828 if test -z "$CC"; then 1854 if test -z "$CC"; then
1829 # Extract the first word of "cc", so it can be a program name with args. 1855 # Extract the first word of "cc", so it can be a program name with args.
1830 set dummy cc; ac_word=$2 1856 set dummy cc; ac_word=$2
1831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_word" >&5 1858 echo "configure:1859: checking for $ac_word" >&5
1833 1859
1834 if test -n "$CC"; then 1860 if test -n "$CC"; then
1835 ac_cv_prog_CC="$CC" # Let the user override the test. 1861 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 else 1862 else
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1872 1898
1873 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1874 fi 1900 fi
1875 1901
1876 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1903 echo "configure:1904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1878 1904
1879 ac_ext=c 1905 ac_ext=c
1880 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1906 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1881 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1907 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1882 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1908 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1884 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1910 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1885 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1911 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1886 cross_compiling=no 1912 cross_compiling=no
1887 1913
1888 cat > conftest.$ac_ext <<EOF 1914 cat > conftest.$ac_ext <<EOF
1889 #line 1890 "configure" 1915 #line 1916 "configure"
1890 #include "confdefs.h" 1916 #include "confdefs.h"
1891 main(){return(0);} 1917 main(){return(0);}
1892 EOF 1918 EOF
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1919 if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1894 ac_cv_prog_cc_works=yes 1920 ac_cv_prog_cc_works=yes
1895 # If we can't run a trivial program, we are probably using a cross compiler. 1921 # If we can't run a trivial program, we are probably using a cross compiler.
1896 if (./conftest; exit) 2>/dev/null; then 1922 if (./conftest; exit) 2>/dev/null; then
1897 ac_cv_prog_cc_cross=no 1923 ac_cv_prog_cc_cross=no
1898 else 1924 else
1908 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1909 if test $ac_cv_prog_cc_works = no; then 1935 if test $ac_cv_prog_cc_works = no; then
1910 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1911 fi 1937 fi
1912 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1913 echo "configure:1914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1939 echo "configure:1940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1914 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1915 cross_compiling=$ac_cv_prog_cc_cross 1941 cross_compiling=$ac_cv_prog_cc_cross
1916 1942
1917 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1918 echo "configure:1919: checking whether we are using GNU C" >&5 1944 echo "configure:1945: checking whether we are using GNU C" >&5
1919 1945
1920 cat > conftest.c <<EOF 1946 cat > conftest.c <<EOF
1921 #ifdef __GNUC__ 1947 #ifdef __GNUC__
1922 yes; 1948 yes;
1923 #endif 1949 #endif
1924 EOF 1950 EOF
1925 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1951 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1926 ac_cv_prog_gcc=yes 1952 ac_cv_prog_gcc=yes
1927 else 1953 else
1928 ac_cv_prog_gcc=no 1954 ac_cv_prog_gcc=no
1929 fi 1955 fi
1930 1956
1934 GCC=yes 1960 GCC=yes
1935 ac_test_CFLAGS="${CFLAGS+set}" 1961 ac_test_CFLAGS="${CFLAGS+set}"
1936 ac_save_CFLAGS="$CFLAGS" 1962 ac_save_CFLAGS="$CFLAGS"
1937 CFLAGS= 1963 CFLAGS=
1938 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1964 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1939 echo "configure:1940: checking whether ${CC-cc} accepts -g" >&5 1965 echo "configure:1966: checking whether ${CC-cc} accepts -g" >&5
1940 1966
1941 echo 'void f(){}' > conftest.c 1967 echo 'void f(){}' > conftest.c
1942 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1968 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1943 ac_cv_prog_cc_g=yes 1969 ac_cv_prog_cc_g=yes
1944 else 1970 else
1967 test -n "$CPP" -a -d "$CPP" && CPP= 1993 test -n "$CPP" -a -d "$CPP" && CPP=
1968 1994
1969 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1995 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1970 1996
1971 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1997 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1972 echo "configure:1973: checking how to run the C preprocessor" >&5 1998 echo "configure:1999: checking how to run the C preprocessor" >&5
1973 # On Suns, sometimes $CPP names a directory. 1999 # On Suns, sometimes $CPP names a directory.
1974 if test -n "$CPP" && test -d "$CPP"; then 2000 if test -n "$CPP" && test -d "$CPP"; then
1975 CPP= 2001 CPP=
1976 fi 2002 fi
1977 if test -z "$CPP"; then 2003 if test -z "$CPP"; then
1980 # substituted into the Makefile and "${CC-cc}" will confuse make. 2006 # substituted into the Makefile and "${CC-cc}" will confuse make.
1981 CPP="${CC-cc} -E" 2007 CPP="${CC-cc} -E"
1982 # On the NeXT, cc -E runs the code through the compiler's parser, 2008 # On the NeXT, cc -E runs the code through the compiler's parser,
1983 # not just through cpp. 2009 # not just through cpp.
1984 cat > conftest.$ac_ext <<EOF 2010 cat > conftest.$ac_ext <<EOF
1985 #line 1986 "configure" 2011 #line 2012 "configure"
1986 #include "confdefs.h" 2012 #include "confdefs.h"
1987 #include <assert.h> 2013 #include <assert.h>
1988 Syntax Error 2014 Syntax Error
1989 EOF 2015 EOF
1990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1991 { (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2017 { (eval echo configure:2018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1992 ac_err=`grep -v '^ *+' conftest.out` 2018 ac_err=`grep -v '^ *+' conftest.out`
1993 if test -z "$ac_err"; then 2019 if test -z "$ac_err"; then
1994 : 2020 :
1995 else 2021 else
1996 echo "$ac_err" >&5 2022 echo "$ac_err" >&5
1997 echo "configure: failed program was:" >&5 2023 echo "configure: failed program was:" >&5
1998 cat conftest.$ac_ext >&5 2024 cat conftest.$ac_ext >&5
1999 rm -rf conftest* 2025 rm -rf conftest*
2000 CPP="${CC-cc} -E -traditional-cpp" 2026 CPP="${CC-cc} -E -traditional-cpp"
2001 cat > conftest.$ac_ext <<EOF 2027 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure" 2028 #line 2029 "configure"
2003 #include "confdefs.h" 2029 #include "confdefs.h"
2004 #include <assert.h> 2030 #include <assert.h>
2005 Syntax Error 2031 Syntax Error
2006 EOF 2032 EOF
2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2034 { (eval echo configure:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err=`grep -v '^ *+' conftest.out` 2035 ac_err=`grep -v '^ *+' conftest.out`
2010 if test -z "$ac_err"; then 2036 if test -z "$ac_err"; then
2011 : 2037 :
2012 else 2038 else
2013 echo "$ac_err" >&5 2039 echo "$ac_err" >&5
2026 fi 2052 fi
2027 echo "$ac_t""$CPP" 1>&6 2053 echo "$ac_t""$CPP" 1>&6
2028 2054
2029 2055
2030 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2056 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2031 echo "configure:2032: checking for AIX" >&5 2057 echo "configure:2058: checking for AIX" >&5
2032 cat > conftest.$ac_ext <<EOF 2058 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure" 2059 #line 2060 "configure"
2034 #include "confdefs.h" 2060 #include "confdefs.h"
2035 #ifdef _AIX 2061 #ifdef _AIX
2036 yes 2062 yes
2037 #endif 2063 #endif
2038 2064
2055 rm -f conftest* 2081 rm -f conftest*
2056 2082
2057 2083
2058 2084
2059 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 2085 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
2060 echo "configure:2061: checking whether we are using SunPro C" >&5 2086 echo "configure:2087: checking whether we are using SunPro C" >&5
2061 cat > conftest.$ac_ext <<EOF 2087 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure" 2088 #line 2089 "configure"
2063 #include "confdefs.h" 2089 #include "confdefs.h"
2064 2090
2065 int main() { 2091 int main() {
2066 #ifndef __SUNPRO_C 2092 #ifndef __SUNPRO_C
2067 #error Not a SunPro compiler :-( 2093 #error Not a SunPro compiler :-(
2068 ******* ======= ******** &&&&&&&& 2094 ******* ======= ******** &&&&&&&&
2069 #endif 2095 #endif
2070 2096
2071 ; return 0; } 2097 ; return 0; }
2072 EOF 2098 EOF
2073 if { (eval echo configure:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2074 rm -rf conftest* 2100 rm -rf conftest*
2075 __sunpro_c=yes 2101 __sunpro_c=yes
2076 else 2102 else
2077 echo "configure: failed program was:" >&5 2103 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5 2104 cat conftest.$ac_ext >&5
2287 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2313 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2288 2314
2289 if test -z "$CFLAGS"; then 2315 if test -z "$CFLAGS"; then
2290 if test "$GCC" = "yes"; then 2316 if test "$GCC" = "yes"; then
2291 CFLAGS="-g -O2 -Wall -Wno-switch" 2317 CFLAGS="-g -O2 -Wall -Wno-switch"
2292 test "$opsys" = "linux" -a "$machine" = "intel386" && \ 2318 test "$opsys $machine" = "linux intel386" && \
2293 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" 2319 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2"
2294 elif test "$__sunpro_c" = "yes"; then 2320 elif test "$__sunpro_c" = "yes"; then
2295 case "$opsys" in 2321 case "$opsys" in
2296 sol2 ) CFLAGS="-v -xO4" ;; 2322 sol2 ) CFLAGS="-v -xO4" ;;
2297 sunos4* ) CFLAGS="-xO2";; 2323 sunos4* ) CFLAGS="-xO2";;
2345 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2371 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2346 echo " xemacs will be linked with \"$unexec\"" 2372 echo " xemacs will be linked with \"$unexec\""
2347 fi 2373 fi
2348 2374
2349 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2375 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2350 echo "configure:2351: checking for dynodump" >&5 2376 echo "configure:2377: checking for dynodump" >&5
2351 if test "$unexec" != "unexsol2.o"; then 2377 if test "$unexec" != "unexsol2.o"; then
2352 echo "$ac_t""no" 1>&6 2378 echo "$ac_t""no" 1>&6
2353 else 2379 else
2354 echo "$ac_t""yes" 1>&6 2380 echo "$ac_t""yes" 1>&6
2355 { test "$extra_verbose" = "yes" && cat << \EOF 2381 { test "$extra_verbose" = "yes" && cat << \EOF
2416 esac 2442 esac
2417 fi 2443 fi
2418 2444
2419 if test "$add_runtime_path" = "yes"; then 2445 if test "$add_runtime_path" = "yes"; then
2420 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2446 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2421 echo "configure:2422: checking "for runtime libraries flag"" >&5 2447 echo "configure:2448: checking "for runtime libraries flag"" >&5
2422 dash_r="" 2448 dash_r=""
2423 for try_dash_r in "-R" "-R " "-rpath "; do 2449 for try_dash_r in "-R" "-R " "-rpath "; do
2424 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2450 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2425 cat > conftest.$ac_ext <<EOF 2451 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure" 2452 #line 2453 "configure"
2427 #include "confdefs.h" 2453 #include "confdefs.h"
2428 2454
2429 int main() { 2455 int main() {
2430 2456
2431 ; return 0; } 2457 ; return 0; }
2432 EOF 2458 EOF
2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2459 if { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2434 rm -rf conftest* 2460 rm -rf conftest*
2435 dash_r="$try_dash_r" 2461 dash_r="$try_dash_r"
2436 else 2462 else
2437 echo "configure: failed program was:" >&5 2463 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5 2464 cat conftest.$ac_ext >&5
2526 2552
2527 2553
2528 # Extract the first word of "ranlib", so it can be a program name with args. 2554 # Extract the first word of "ranlib", so it can be a program name with args.
2529 set dummy ranlib; ac_word=$2 2555 set dummy ranlib; ac_word=$2
2530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2531 echo "configure:2532: checking for $ac_word" >&5 2557 echo "configure:2558: checking for $ac_word" >&5
2532 2558
2533 if test -n "$RANLIB"; then 2559 if test -n "$RANLIB"; then
2534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2535 else 2561 else
2536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2579 # AIX /bin/install 2605 # AIX /bin/install
2580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2582 # ./install, which can be erroneously created by make from ./install.sh. 2608 # ./install, which can be erroneously created by make from ./install.sh.
2583 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2609 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2584 echo "configure:2585: checking for a BSD compatible install" >&5 2610 echo "configure:2611: checking for a BSD compatible install" >&5
2585 if test -z "$INSTALL"; then 2611 if test -z "$INSTALL"; then
2586 2612
2587 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2613 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2588 for ac_dir in $PATH; do 2614 for ac_dir in $PATH; do
2589 # Account for people who put trailing slashes in PATH elements. 2615 # Account for people who put trailing slashes in PATH elements.
2630 for ac_prog in 'bison -y' byacc 2656 for ac_prog in 'bison -y' byacc
2631 do 2657 do
2632 # Extract the first word of "$ac_prog", so it can be a program name with args. 2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2 2659 set dummy $ac_prog; ac_word=$2
2634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_word" >&5 2661 echo "configure:2662: checking for $ac_word" >&5
2636 2662
2637 if test -n "$YACC"; then 2663 if test -n "$YACC"; then
2638 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2664 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2639 else 2665 else
2640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2661 2687
2662 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2688 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2663 do 2689 do
2664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2666 echo "configure:2667: checking for $ac_hdr" >&5 2692 echo "configure:2693: checking for $ac_hdr" >&5
2667 2693
2668 cat > conftest.$ac_ext <<EOF 2694 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure" 2695 #line 2696 "configure"
2670 #include "confdefs.h" 2696 #include "confdefs.h"
2671 #include <$ac_hdr> 2697 #include <$ac_hdr>
2672 EOF 2698 EOF
2673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2674 { (eval echo configure:2675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2700 { (eval echo configure:2701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2675 ac_err=`grep -v '^ *+' conftest.out` 2701 ac_err=`grep -v '^ *+' conftest.out`
2676 if test -z "$ac_err"; then 2702 if test -z "$ac_err"; then
2677 rm -rf conftest* 2703 rm -rf conftest*
2678 eval "ac_cv_header_$ac_safe=yes" 2704 eval "ac_cv_header_$ac_safe=yes"
2679 else 2705 else
2702 2728
2703 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2729 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2704 do 2730 do
2705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2707 echo "configure:2708: checking for $ac_hdr" >&5 2733 echo "configure:2734: checking for $ac_hdr" >&5
2708 2734
2709 cat > conftest.$ac_ext <<EOF 2735 cat > conftest.$ac_ext <<EOF
2710 #line 2711 "configure" 2736 #line 2737 "configure"
2711 #include "confdefs.h" 2737 #include "confdefs.h"
2712 #include <$ac_hdr> 2738 #include <$ac_hdr>
2713 EOF 2739 EOF
2714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2741 { (eval echo configure:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err=`grep -v '^ *+' conftest.out` 2742 ac_err=`grep -v '^ *+' conftest.out`
2717 if test -z "$ac_err"; then 2743 if test -z "$ac_err"; then
2718 rm -rf conftest* 2744 rm -rf conftest*
2719 eval "ac_cv_header_$ac_safe=yes" 2745 eval "ac_cv_header_$ac_safe=yes"
2720 else 2746 else
2743 2769
2744 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h 2770 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
2745 do 2771 do
2746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2748 echo "configure:2749: checking for $ac_hdr" >&5 2774 echo "configure:2775: checking for $ac_hdr" >&5
2749 2775
2750 cat > conftest.$ac_ext <<EOF 2776 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure" 2777 #line 2778 "configure"
2752 #include "confdefs.h" 2778 #include "confdefs.h"
2753 #include <$ac_hdr> 2779 #include <$ac_hdr>
2754 EOF 2780 EOF
2755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2756 { (eval echo configure:2757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2782 { (eval echo configure:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2757 ac_err=`grep -v '^ *+' conftest.out` 2783 ac_err=`grep -v '^ *+' conftest.out`
2758 if test -z "$ac_err"; then 2784 if test -z "$ac_err"; then
2759 rm -rf conftest* 2785 rm -rf conftest*
2760 eval "ac_cv_header_$ac_safe=yes" 2786 eval "ac_cv_header_$ac_safe=yes"
2761 else 2787 else
2781 echo "$ac_t""no" 1>&6 2807 echo "$ac_t""no" 1>&6
2782 fi 2808 fi
2783 done 2809 done
2784 2810
2785 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2811 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2786 echo "configure:2787: checking for sys/wait.h that is POSIX.1 compatible" >&5 2812 echo "configure:2813: checking for sys/wait.h that is POSIX.1 compatible" >&5
2787 2813
2788 cat > conftest.$ac_ext <<EOF 2814 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure" 2815 #line 2816 "configure"
2790 #include "confdefs.h" 2816 #include "confdefs.h"
2791 #include <sys/types.h> 2817 #include <sys/types.h>
2792 #include <sys/wait.h> 2818 #include <sys/wait.h>
2793 #ifndef WEXITSTATUS 2819 #ifndef WEXITSTATUS
2794 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2820 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2800 int s; 2826 int s;
2801 wait (&s); 2827 wait (&s);
2802 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2828 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2803 ; return 0; } 2829 ; return 0; }
2804 EOF 2830 EOF
2805 if { (eval echo configure:2806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2831 if { (eval echo configure:2832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2806 rm -rf conftest* 2832 rm -rf conftest*
2807 ac_cv_header_sys_wait_h=yes 2833 ac_cv_header_sys_wait_h=yes
2808 else 2834 else
2809 echo "configure: failed program was:" >&5 2835 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5 2836 cat conftest.$ac_ext >&5
2824 } 2850 }
2825 2851
2826 fi 2852 fi
2827 2853
2828 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2854 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2829 echo "configure:2830: checking for ANSI C header files" >&5 2855 echo "configure:2856: checking for ANSI C header files" >&5
2830 2856
2831 cat > conftest.$ac_ext <<EOF 2857 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure" 2858 #line 2859 "configure"
2833 #include "confdefs.h" 2859 #include "confdefs.h"
2834 #include <stdlib.h> 2860 #include <stdlib.h>
2835 #include <stdarg.h> 2861 #include <stdarg.h>
2836 #include <string.h> 2862 #include <string.h>
2837 #include <float.h> 2863 #include <float.h>
2838 EOF 2864 EOF
2839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2840 { (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2866 { (eval echo configure:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2841 ac_err=`grep -v '^ *+' conftest.out` 2867 ac_err=`grep -v '^ *+' conftest.out`
2842 if test -z "$ac_err"; then 2868 if test -z "$ac_err"; then
2843 rm -rf conftest* 2869 rm -rf conftest*
2844 ac_cv_header_stdc=yes 2870 ac_cv_header_stdc=yes
2845 else 2871 else
2852 rm -f conftest* 2878 rm -f conftest*
2853 2879
2854 if test $ac_cv_header_stdc = yes; then 2880 if test $ac_cv_header_stdc = yes; then
2855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2856 cat > conftest.$ac_ext <<EOF 2882 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure" 2883 #line 2884 "configure"
2858 #include "confdefs.h" 2884 #include "confdefs.h"
2859 #include <string.h> 2885 #include <string.h>
2860 EOF 2886 EOF
2861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2862 egrep "memchr" >/dev/null 2>&1; then 2888 egrep "memchr" >/dev/null 2>&1; then
2870 fi 2896 fi
2871 2897
2872 if test $ac_cv_header_stdc = yes; then 2898 if test $ac_cv_header_stdc = yes; then
2873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2874 cat > conftest.$ac_ext <<EOF 2900 cat > conftest.$ac_ext <<EOF
2875 #line 2876 "configure" 2901 #line 2902 "configure"
2876 #include "confdefs.h" 2902 #include "confdefs.h"
2877 #include <stdlib.h> 2903 #include <stdlib.h>
2878 EOF 2904 EOF
2879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2880 egrep "free" >/dev/null 2>&1; then 2906 egrep "free" >/dev/null 2>&1; then
2888 fi 2914 fi
2889 2915
2890 if test $ac_cv_header_stdc = yes; then 2916 if test $ac_cv_header_stdc = yes; then
2891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2892 cat > conftest.$ac_ext <<EOF 2918 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure" 2919 #line 2920 "configure"
2894 #include "confdefs.h" 2920 #include "confdefs.h"
2895 #include <ctype.h> 2921 #include <ctype.h>
2896 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2922 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2897 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2923 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2899 int main () { int i; for (i = 0; i < 256; i++) 2925 int main () { int i; for (i = 0; i < 256; i++)
2900 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2926 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2901 exit (0); } 2927 exit (0); }
2902 2928
2903 EOF 2929 EOF
2904 if { (eval echo configure:2905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2905 then 2931 then
2906 : 2932 :
2907 else 2933 else
2908 echo "configure: failed program was:" >&5 2934 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5 2935 cat conftest.$ac_ext >&5
2924 } 2950 }
2925 2951
2926 fi 2952 fi
2927 2953
2928 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2954 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2929 echo "configure:2930: checking whether time.h and sys/time.h may both be included" >&5 2955 echo "configure:2956: checking whether time.h and sys/time.h may both be included" >&5
2930 2956
2931 cat > conftest.$ac_ext <<EOF 2957 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure" 2958 #line 2959 "configure"
2933 #include "confdefs.h" 2959 #include "confdefs.h"
2934 #include <sys/types.h> 2960 #include <sys/types.h>
2935 #include <sys/time.h> 2961 #include <sys/time.h>
2936 #include <time.h> 2962 #include <time.h>
2937 int main() { 2963 int main() {
2938 struct tm *tp; 2964 struct tm *tp;
2939 ; return 0; } 2965 ; return 0; }
2940 EOF 2966 EOF
2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2967 if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2942 rm -rf conftest* 2968 rm -rf conftest*
2943 ac_cv_header_time=yes 2969 ac_cv_header_time=yes
2944 else 2970 else
2945 echo "configure: failed program was:" >&5 2971 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5 2972 cat conftest.$ac_ext >&5
2960 } 2986 }
2961 2987
2962 fi 2988 fi
2963 2989
2964 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2990 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2965 echo "configure:2966: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2991 echo "configure:2992: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2966 2992
2967 cat > conftest.$ac_ext <<EOF 2993 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure" 2994 #line 2995 "configure"
2969 #include "confdefs.h" 2995 #include "confdefs.h"
2970 #include <sys/types.h> 2996 #include <sys/types.h>
2971 #include <signal.h> 2997 #include <signal.h>
2972 /* NetBSD declares sys_siglist in unistd.h. */ 2998 /* NetBSD declares sys_siglist in unistd.h. */
2973 #ifdef HAVE_UNISTD_H 2999 #ifdef HAVE_UNISTD_H
2975 #endif 3001 #endif
2976 int main() { 3002 int main() {
2977 char *msg = *(sys_siglist + 1); 3003 char *msg = *(sys_siglist + 1);
2978 ; return 0; } 3004 ; return 0; }
2979 EOF 3005 EOF
2980 if { (eval echo configure:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3006 if { (eval echo configure:3007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2981 rm -rf conftest* 3007 rm -rf conftest*
2982 ac_cv_decl_sys_siglist=yes 3008 ac_cv_decl_sys_siglist=yes
2983 else 3009 else
2984 echo "configure: failed program was:" >&5 3010 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5 3011 cat conftest.$ac_ext >&5
3000 3026
3001 fi 3027 fi
3002 3028
3003 3029
3004 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3030 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3005 echo "configure:3006: checking for struct utimbuf" >&5 3031 echo "configure:3032: checking for struct utimbuf" >&5
3006 cat > conftest.$ac_ext <<EOF 3032 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure" 3033 #line 3034 "configure"
3008 #include "confdefs.h" 3034 #include "confdefs.h"
3009 #ifdef TIME_WITH_SYS_TIME 3035 #ifdef TIME_WITH_SYS_TIME
3010 #include <sys/time.h> 3036 #include <sys/time.h>
3011 #include <time.h> 3037 #include <time.h>
3012 #else 3038 #else
3021 #endif 3047 #endif
3022 int main() { 3048 int main() {
3023 static struct utimbuf x; x.actime = x.modtime; 3049 static struct utimbuf x; x.actime = x.modtime;
3024 ; return 0; } 3050 ; return 0; }
3025 EOF 3051 EOF
3026 if { (eval echo configure:3027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3052 if { (eval echo configure:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3027 rm -rf conftest* 3053 rm -rf conftest*
3028 echo "$ac_t""yes" 1>&6 3054 echo "$ac_t""yes" 1>&6
3029 { test "$extra_verbose" = "yes" && cat << \EOF 3055 { test "$extra_verbose" = "yes" && cat << \EOF
3030 Defining HAVE_STRUCT_UTIMBUF 3056 Defining HAVE_STRUCT_UTIMBUF
3031 EOF 3057 EOF
3041 echo "$ac_t""no" 1>&6 3067 echo "$ac_t""no" 1>&6
3042 fi 3068 fi
3043 rm -f conftest* 3069 rm -f conftest*
3044 3070
3045 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3071 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3046 echo "configure:3047: checking return type of signal handlers" >&5 3072 echo "configure:3073: checking return type of signal handlers" >&5
3047 3073
3048 cat > conftest.$ac_ext <<EOF 3074 cat > conftest.$ac_ext <<EOF
3049 #line 3050 "configure" 3075 #line 3076 "configure"
3050 #include "confdefs.h" 3076 #include "confdefs.h"
3051 #include <sys/types.h> 3077 #include <sys/types.h>
3052 #include <signal.h> 3078 #include <signal.h>
3053 #ifdef signal 3079 #ifdef signal
3054 #undef signal 3080 #undef signal
3061 3087
3062 int main() { 3088 int main() {
3063 int i; 3089 int i;
3064 ; return 0; } 3090 ; return 0; }
3065 EOF 3091 EOF
3066 if { (eval echo configure:3067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3092 if { (eval echo configure:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3067 rm -rf conftest* 3093 rm -rf conftest*
3068 ac_cv_type_signal=void 3094 ac_cv_type_signal=void
3069 else 3095 else
3070 echo "configure: failed program was:" >&5 3096 echo "configure: failed program was:" >&5
3071 cat conftest.$ac_ext >&5 3097 cat conftest.$ac_ext >&5
3083 EOF 3109 EOF
3084 } 3110 }
3085 3111
3086 3112
3087 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3113 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3088 echo "configure:3089: checking for size_t" >&5 3114 echo "configure:3115: checking for size_t" >&5
3089 3115
3090 cat > conftest.$ac_ext <<EOF 3116 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure" 3117 #line 3118 "configure"
3092 #include "confdefs.h" 3118 #include "confdefs.h"
3093 #include <sys/types.h> 3119 #include <sys/types.h>
3094 #if STDC_HEADERS 3120 #if STDC_HEADERS
3095 #include <stdlib.h> 3121 #include <stdlib.h>
3096 #include <stddef.h> 3122 #include <stddef.h>
3117 } 3143 }
3118 3144
3119 fi 3145 fi
3120 3146
3121 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3147 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3122 echo "configure:3123: checking for pid_t" >&5 3148 echo "configure:3149: checking for pid_t" >&5
3123 3149
3124 cat > conftest.$ac_ext <<EOF 3150 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure" 3151 #line 3152 "configure"
3126 #include "confdefs.h" 3152 #include "confdefs.h"
3127 #include <sys/types.h> 3153 #include <sys/types.h>
3128 #if STDC_HEADERS 3154 #if STDC_HEADERS
3129 #include <stdlib.h> 3155 #include <stdlib.h>
3130 #include <stddef.h> 3156 #include <stddef.h>
3151 } 3177 }
3152 3178
3153 fi 3179 fi
3154 3180
3155 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3181 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3156 echo "configure:3157: checking for uid_t in sys/types.h" >&5 3182 echo "configure:3183: checking for uid_t in sys/types.h" >&5
3157 3183
3158 cat > conftest.$ac_ext <<EOF 3184 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure" 3185 #line 3186 "configure"
3160 #include "confdefs.h" 3186 #include "confdefs.h"
3161 #include <sys/types.h> 3187 #include <sys/types.h>
3162 EOF 3188 EOF
3163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3164 egrep "uid_t" >/dev/null 2>&1; then 3190 egrep "uid_t" >/dev/null 2>&1; then
3190 } 3216 }
3191 3217
3192 fi 3218 fi
3193 3219
3194 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3220 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3195 echo "configure:3196: checking for mode_t" >&5 3221 echo "configure:3222: checking for mode_t" >&5
3196 3222
3197 cat > conftest.$ac_ext <<EOF 3223 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure" 3224 #line 3225 "configure"
3199 #include "confdefs.h" 3225 #include "confdefs.h"
3200 #include <sys/types.h> 3226 #include <sys/types.h>
3201 #if STDC_HEADERS 3227 #if STDC_HEADERS
3202 #include <stdlib.h> 3228 #include <stdlib.h>
3203 #include <stddef.h> 3229 #include <stddef.h>
3224 } 3250 }
3225 3251
3226 fi 3252 fi
3227 3253
3228 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3254 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3229 echo "configure:3230: checking for off_t" >&5 3255 echo "configure:3256: checking for off_t" >&5
3230 3256
3231 cat > conftest.$ac_ext <<EOF 3257 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure" 3258 #line 3259 "configure"
3233 #include "confdefs.h" 3259 #include "confdefs.h"
3234 #include <sys/types.h> 3260 #include <sys/types.h>
3235 #if STDC_HEADERS 3261 #if STDC_HEADERS
3236 #include <stdlib.h> 3262 #include <stdlib.h>
3237 #include <stddef.h> 3263 #include <stddef.h>
3259 3285
3260 fi 3286 fi
3261 3287
3262 3288
3263 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3289 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3264 echo "configure:3265: checking for struct timeval" >&5 3290 echo "configure:3291: checking for struct timeval" >&5
3265 cat > conftest.$ac_ext <<EOF 3291 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure" 3292 #line 3293 "configure"
3267 #include "confdefs.h" 3293 #include "confdefs.h"
3268 #ifdef TIME_WITH_SYS_TIME 3294 #ifdef TIME_WITH_SYS_TIME
3269 #include <sys/time.h> 3295 #include <sys/time.h>
3270 #include <time.h> 3296 #include <time.h>
3271 #else 3297 #else
3277 #endif 3303 #endif
3278 int main() { 3304 int main() {
3279 static struct timeval x; x.tv_sec = x.tv_usec; 3305 static struct timeval x; x.tv_sec = x.tv_usec;
3280 ; return 0; } 3306 ; return 0; }
3281 EOF 3307 EOF
3282 if { (eval echo configure:3283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3308 if { (eval echo configure:3309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3283 rm -rf conftest* 3309 rm -rf conftest*
3284 echo "$ac_t""yes" 1>&6 3310 echo "$ac_t""yes" 1>&6
3285 HAVE_TIMEVAL=yes 3311 HAVE_TIMEVAL=yes
3286 { test "$extra_verbose" = "yes" && cat << \EOF 3312 { test "$extra_verbose" = "yes" && cat << \EOF
3287 Defining HAVE_TIMEVAL 3313 Defining HAVE_TIMEVAL
3299 HAVE_TIMEVAL=no 3325 HAVE_TIMEVAL=no
3300 fi 3326 fi
3301 rm -f conftest* 3327 rm -f conftest*
3302 3328
3303 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3329 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3304 echo "configure:3305: checking whether struct tm is in sys/time.h or time.h" >&5 3330 echo "configure:3331: checking whether struct tm is in sys/time.h or time.h" >&5
3305 3331
3306 cat > conftest.$ac_ext <<EOF 3332 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure" 3333 #line 3334 "configure"
3308 #include "confdefs.h" 3334 #include "confdefs.h"
3309 #include <sys/types.h> 3335 #include <sys/types.h>
3310 #include <time.h> 3336 #include <time.h>
3311 int main() { 3337 int main() {
3312 struct tm *tp; tp->tm_sec; 3338 struct tm *tp; tp->tm_sec;
3313 ; return 0; } 3339 ; return 0; }
3314 EOF 3340 EOF
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3341 if { (eval echo configure:3342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316 rm -rf conftest* 3342 rm -rf conftest*
3317 ac_cv_struct_tm=time.h 3343 ac_cv_struct_tm=time.h
3318 else 3344 else
3319 echo "configure: failed program was:" >&5 3345 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5 3346 cat conftest.$ac_ext >&5
3334 } 3360 }
3335 3361
3336 fi 3362 fi
3337 3363
3338 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3364 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3339 echo "configure:3340: checking for tm_zone in struct tm" >&5 3365 echo "configure:3366: checking for tm_zone in struct tm" >&5
3340 3366
3341 cat > conftest.$ac_ext <<EOF 3367 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure" 3368 #line 3369 "configure"
3343 #include "confdefs.h" 3369 #include "confdefs.h"
3344 #include <sys/types.h> 3370 #include <sys/types.h>
3345 #include <$ac_cv_struct_tm> 3371 #include <$ac_cv_struct_tm>
3346 int main() { 3372 int main() {
3347 struct tm tm; tm.tm_zone; 3373 struct tm tm; tm.tm_zone;
3348 ; return 0; } 3374 ; return 0; }
3349 EOF 3375 EOF
3350 if { (eval echo configure:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3376 if { (eval echo configure:3377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3351 rm -rf conftest* 3377 rm -rf conftest*
3352 ac_cv_struct_tm_zone=yes 3378 ac_cv_struct_tm_zone=yes
3353 else 3379 else
3354 echo "configure: failed program was:" >&5 3380 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5 3381 cat conftest.$ac_ext >&5
3368 EOF 3394 EOF
3369 } 3395 }
3370 3396
3371 else 3397 else
3372 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3398 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3373 echo "configure:3374: checking for tzname" >&5 3399 echo "configure:3400: checking for tzname" >&5
3374 3400
3375 cat > conftest.$ac_ext <<EOF 3401 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure" 3402 #line 3403 "configure"
3377 #include "confdefs.h" 3403 #include "confdefs.h"
3378 #include <time.h> 3404 #include <time.h>
3379 #ifndef tzname /* For SGI. */ 3405 #ifndef tzname /* For SGI. */
3380 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3406 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3381 #endif 3407 #endif
3382 int main() { 3408 int main() {
3383 atoi(*tzname); 3409 atoi(*tzname);
3384 ; return 0; } 3410 ; return 0; }
3385 EOF 3411 EOF
3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3387 rm -rf conftest* 3413 rm -rf conftest*
3388 ac_cv_var_tzname=yes 3414 ac_cv_var_tzname=yes
3389 else 3415 else
3390 echo "configure: failed program was:" >&5 3416 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5 3417 cat conftest.$ac_ext >&5
3407 fi 3433 fi
3408 fi 3434 fi
3409 3435
3410 3436
3411 echo $ac_n "checking for working const""... $ac_c" 1>&6 3437 echo $ac_n "checking for working const""... $ac_c" 1>&6
3412 echo "configure:3413: checking for working const" >&5 3438 echo "configure:3439: checking for working const" >&5
3413 3439
3414 cat > conftest.$ac_ext <<EOF 3440 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure" 3441 #line 3442 "configure"
3416 #include "confdefs.h" 3442 #include "confdefs.h"
3417 3443
3418 int main() { 3444 int main() {
3419 3445
3420 /* Ultrix mips cc rejects this. */ 3446 /* Ultrix mips cc rejects this. */
3459 const int foo = 10; 3485 const int foo = 10;
3460 } 3486 }
3461 3487
3462 ; return 0; } 3488 ; return 0; }
3463 EOF 3489 EOF
3464 if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3490 if { (eval echo configure:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3465 rm -rf conftest* 3491 rm -rf conftest*
3466 ac_cv_c_const=yes 3492 ac_cv_c_const=yes
3467 else 3493 else
3468 echo "configure: failed program was:" >&5 3494 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5 3495 cat conftest.$ac_ext >&5
3484 3510
3485 fi 3511 fi
3486 3512
3487 3513
3488 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3514 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3489 echo "configure:3490: checking whether ${MAKE-make} sets \${MAKE}" >&5 3515 echo "configure:3516: checking whether ${MAKE-make} sets \${MAKE}" >&5
3490 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3516 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3491 3517
3492 cat > conftestmake <<\EOF 3518 cat > conftestmake <<\EOF
3493 all: 3519 all:
3494 @echo 'ac_maketemp="${MAKE}"' 3520 @echo 'ac_maketemp="${MAKE}"'
3509 SET_MAKE="MAKE=${MAKE-make}" 3535 SET_MAKE="MAKE=${MAKE-make}"
3510 fi 3536 fi
3511 3537
3512 3538
3513 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3539 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3514 echo "configure:3515: checking whether byte ordering is bigendian" >&5 3540 echo "configure:3541: checking whether byte ordering is bigendian" >&5
3515 3541
3516 ac_cv_c_bigendian=unknown 3542 ac_cv_c_bigendian=unknown
3517 # See if sys/param.h defines the BYTE_ORDER macro. 3543 # See if sys/param.h defines the BYTE_ORDER macro.
3518 cat > conftest.$ac_ext <<EOF 3544 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure" 3545 #line 3546 "configure"
3520 #include "confdefs.h" 3546 #include "confdefs.h"
3521 #include <sys/types.h> 3547 #include <sys/types.h>
3522 #include <sys/param.h> 3548 #include <sys/param.h>
3523 int main() { 3549 int main() {
3524 3550
3525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3551 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3526 bogus endian macros 3552 bogus endian macros
3527 #endif 3553 #endif
3528 ; return 0; } 3554 ; return 0; }
3529 EOF 3555 EOF
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3531 rm -rf conftest* 3557 rm -rf conftest*
3532 # It does; now see whether it defined to BIG_ENDIAN or not. 3558 # It does; now see whether it defined to BIG_ENDIAN or not.
3533 cat > conftest.$ac_ext <<EOF 3559 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure" 3560 #line 3561 "configure"
3535 #include "confdefs.h" 3561 #include "confdefs.h"
3536 #include <sys/types.h> 3562 #include <sys/types.h>
3537 #include <sys/param.h> 3563 #include <sys/param.h>
3538 int main() { 3564 int main() {
3539 3565
3540 #if BYTE_ORDER != BIG_ENDIAN 3566 #if BYTE_ORDER != BIG_ENDIAN
3541 not big endian 3567 not big endian
3542 #endif 3568 #endif
3543 ; return 0; } 3569 ; return 0; }
3544 EOF 3570 EOF
3545 if { (eval echo configure:3546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3571 if { (eval echo configure:3572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546 rm -rf conftest* 3572 rm -rf conftest*
3547 ac_cv_c_bigendian=yes 3573 ac_cv_c_bigendian=yes
3548 else 3574 else
3549 echo "configure: failed program was:" >&5 3575 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5 3576 cat conftest.$ac_ext >&5
3557 cat conftest.$ac_ext >&5 3583 cat conftest.$ac_ext >&5
3558 fi 3584 fi
3559 rm -f conftest* 3585 rm -f conftest*
3560 if test $ac_cv_c_bigendian = unknown; then 3586 if test $ac_cv_c_bigendian = unknown; then
3561 cat > conftest.$ac_ext <<EOF 3587 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure" 3588 #line 3589 "configure"
3563 #include "confdefs.h" 3589 #include "confdefs.h"
3564 main () { 3590 main () {
3565 /* Are we little or big endian? From Harbison&Steele. */ 3591 /* Are we little or big endian? From Harbison&Steele. */
3566 union 3592 union
3567 { 3593 {
3570 } u; 3596 } u;
3571 u.l = 1; 3597 u.l = 1;
3572 exit (u.c[sizeof (long) - 1] == 1); 3598 exit (u.c[sizeof (long) - 1] == 1);
3573 } 3599 }
3574 EOF 3600 EOF
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3576 then 3602 then
3577 ac_cv_c_bigendian=no 3603 ac_cv_c_bigendian=no
3578 else 3604 else
3579 echo "configure: failed program was:" >&5 3605 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5 3606 cat conftest.$ac_ext >&5
3596 3622
3597 fi 3623 fi
3598 3624
3599 3625
3600 echo $ac_n "checking size of short""... $ac_c" 1>&6 3626 echo $ac_n "checking size of short""... $ac_c" 1>&6
3601 echo "configure:3602: checking size of short" >&5 3627 echo "configure:3628: checking size of short" >&5
3602 3628
3603 cat > conftest.$ac_ext <<EOF 3629 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure" 3630 #line 3631 "configure"
3605 #include "confdefs.h" 3631 #include "confdefs.h"
3606 #include <stdio.h> 3632 #include <stdio.h>
3607 main() 3633 main()
3608 { 3634 {
3609 FILE *f=fopen("conftestval", "w"); 3635 FILE *f=fopen("conftestval", "w");
3610 if (!f) exit(1); 3636 if (!f) exit(1);
3611 fprintf(f, "%d\n", sizeof(short)); 3637 fprintf(f, "%d\n", sizeof(short));
3612 exit(0); 3638 exit(0);
3613 } 3639 }
3614 EOF 3640 EOF
3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3616 then 3642 then
3617 ac_cv_sizeof_short=`cat conftestval` 3643 ac_cv_sizeof_short=`cat conftestval`
3618 else 3644 else
3619 echo "configure: failed program was:" >&5 3645 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5 3646 cat conftest.$ac_ext >&5
3637 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3663 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3638 echo "*** PANIC *** Please examine config.log for compilation errors." 3664 echo "*** PANIC *** Please examine config.log for compilation errors."
3639 exit 1 3665 exit 1
3640 fi 3666 fi
3641 echo $ac_n "checking size of int""... $ac_c" 1>&6 3667 echo $ac_n "checking size of int""... $ac_c" 1>&6
3642 echo "configure:3643: checking size of int" >&5 3668 echo "configure:3669: checking size of int" >&5
3643 3669
3644 cat > conftest.$ac_ext <<EOF 3670 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure" 3671 #line 3672 "configure"
3646 #include "confdefs.h" 3672 #include "confdefs.h"
3647 #include <stdio.h> 3673 #include <stdio.h>
3648 main() 3674 main()
3649 { 3675 {
3650 FILE *f=fopen("conftestval", "w"); 3676 FILE *f=fopen("conftestval", "w");
3651 if (!f) exit(1); 3677 if (!f) exit(1);
3652 fprintf(f, "%d\n", sizeof(int)); 3678 fprintf(f, "%d\n", sizeof(int));
3653 exit(0); 3679 exit(0);
3654 } 3680 }
3655 EOF 3681 EOF
3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3657 then 3683 then
3658 ac_cv_sizeof_int=`cat conftestval` 3684 ac_cv_sizeof_int=`cat conftestval`
3659 else 3685 else
3660 echo "configure: failed program was:" >&5 3686 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5 3687 cat conftest.$ac_ext >&5
3672 EOF 3698 EOF
3673 } 3699 }
3674 3700
3675 3701
3676 echo $ac_n "checking size of long""... $ac_c" 1>&6 3702 echo $ac_n "checking size of long""... $ac_c" 1>&6
3677 echo "configure:3678: checking size of long" >&5 3703 echo "configure:3704: checking size of long" >&5
3678 3704
3679 cat > conftest.$ac_ext <<EOF 3705 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure" 3706 #line 3707 "configure"
3681 #include "confdefs.h" 3707 #include "confdefs.h"
3682 #include <stdio.h> 3708 #include <stdio.h>
3683 main() 3709 main()
3684 { 3710 {
3685 FILE *f=fopen("conftestval", "w"); 3711 FILE *f=fopen("conftestval", "w");
3686 if (!f) exit(1); 3712 if (!f) exit(1);
3687 fprintf(f, "%d\n", sizeof(long)); 3713 fprintf(f, "%d\n", sizeof(long));
3688 exit(0); 3714 exit(0);
3689 } 3715 }
3690 EOF 3716 EOF
3691 if { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3692 then 3718 then
3693 ac_cv_sizeof_long=`cat conftestval` 3719 ac_cv_sizeof_long=`cat conftestval`
3694 else 3720 else
3695 echo "configure: failed program was:" >&5 3721 echo "configure: failed program was:" >&5
3696 cat conftest.$ac_ext >&5 3722 cat conftest.$ac_ext >&5
3707 EOF 3733 EOF
3708 } 3734 }
3709 3735
3710 3736
3711 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3737 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3712 echo "configure:3713: checking size of long long" >&5 3738 echo "configure:3739: checking size of long long" >&5
3713 3739
3714 cat > conftest.$ac_ext <<EOF 3740 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure" 3741 #line 3742 "configure"
3716 #include "confdefs.h" 3742 #include "confdefs.h"
3717 #include <stdio.h> 3743 #include <stdio.h>
3718 main() 3744 main()
3719 { 3745 {
3720 FILE *f=fopen("conftestval", "w"); 3746 FILE *f=fopen("conftestval", "w");
3721 if (!f) exit(1); 3747 if (!f) exit(1);
3722 fprintf(f, "%d\n", sizeof(long long)); 3748 fprintf(f, "%d\n", sizeof(long long));
3723 exit(0); 3749 exit(0);
3724 } 3750 }
3725 EOF 3751 EOF
3726 if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3727 then 3753 then
3728 ac_cv_sizeof_long_long=`cat conftestval` 3754 ac_cv_sizeof_long_long=`cat conftestval`
3729 else 3755 else
3730 echo "configure: failed program was:" >&5 3756 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5 3757 cat conftest.$ac_ext >&5
3742 EOF 3768 EOF
3743 } 3769 }
3744 3770
3745 3771
3746 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3772 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3747 echo "configure:3748: checking size of void *" >&5 3773 echo "configure:3774: checking size of void *" >&5
3748 3774
3749 cat > conftest.$ac_ext <<EOF 3775 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure" 3776 #line 3777 "configure"
3751 #include "confdefs.h" 3777 #include "confdefs.h"
3752 #include <stdio.h> 3778 #include <stdio.h>
3753 main() 3779 main()
3754 { 3780 {
3755 FILE *f=fopen("conftestval", "w"); 3781 FILE *f=fopen("conftestval", "w");
3756 if (!f) exit(1); 3782 if (!f) exit(1);
3757 fprintf(f, "%d\n", sizeof(void *)); 3783 fprintf(f, "%d\n", sizeof(void *));
3758 exit(0); 3784 exit(0);
3759 } 3785 }
3760 EOF 3786 EOF
3761 if { (eval echo configure:3762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3762 then 3788 then
3763 ac_cv_sizeof_void_p=`cat conftestval` 3789 ac_cv_sizeof_void_p=`cat conftestval`
3764 else 3790 else
3765 echo "configure: failed program was:" >&5 3791 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5 3792 cat conftest.$ac_ext >&5
3778 } 3804 }
3779 3805
3780 3806
3781 3807
3782 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3808 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3783 echo "configure:3784: checking for long file names" >&5 3809 echo "configure:3810: checking for long file names" >&5
3784 3810
3785 ac_cv_sys_long_file_names=yes 3811 ac_cv_sys_long_file_names=yes
3786 # Test for long file names in all the places we know might matter: 3812 # Test for long file names in all the places we know might matter:
3787 # . the current directory, where building will happen 3813 # . the current directory, where building will happen
3788 # $prefix/lib where we will be installing things 3814 # $prefix/lib where we will be installing things
3825 fi 3851 fi
3826 3852
3827 3853
3828 3854
3829 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 3855 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
3830 echo "configure:3831: checking for sqrt in -lm" >&5 3856 echo "configure:3857: checking for sqrt in -lm" >&5
3831 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 3857 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
3832 3858
3833 xe_check_libs=" -lm " 3859 xe_check_libs=" -lm "
3834 cat > conftest.$ac_ext <<EOF 3860 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure" 3861 #line 3862 "configure"
3836 #include "confdefs.h" 3862 #include "confdefs.h"
3837 /* Override any gcc2 internal prototype to avoid an error. */ 3863 /* Override any gcc2 internal prototype to avoid an error. */
3838 /* We use char because int might match the return type of a gcc2 3864 /* We use char because int might match the return type of a gcc2
3839 builtin and then its argument prototype would still apply. */ 3865 builtin and then its argument prototype would still apply. */
3840 char sqrt(); 3866 char sqrt();
3841 3867
3842 int main() { 3868 int main() {
3843 sqrt() 3869 sqrt()
3844 ; return 0; } 3870 ; return 0; }
3845 EOF 3871 EOF
3846 if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3847 rm -rf conftest* 3873 rm -rf conftest*
3848 eval "ac_cv_lib_$ac_lib_var=yes" 3874 eval "ac_cv_lib_$ac_lib_var=yes"
3849 else 3875 else
3850 echo "configure: failed program was:" >&5 3876 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5 3877 cat conftest.$ac_ext >&5
3883 EOF 3909 EOF
3884 } 3910 }
3885 3911
3886 3912
3887 echo "checking type of mail spool file locking" 1>&6 3913 echo "checking type of mail spool file locking" 1>&6
3888 echo "configure:3889: checking type of mail spool file locking" >&5 3914 echo "configure:3915: checking type of mail spool file locking" >&5
3889 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3915 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3890 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3916 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3891 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3917 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3892 Defining REAL_MAIL_USE_LOCKF 3918 Defining REAL_MAIL_USE_LOCKF
3893 EOF 3919 EOF
3907 else mail_locking="dot-locking" 3933 else mail_locking="dot-locking"
3908 fi 3934 fi
3909 3935
3910 3936
3911 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3937 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3912 echo "configure:3913: checking for kstat_open in -lkstat" >&5 3938 echo "configure:3939: checking for kstat_open in -lkstat" >&5
3913 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3939 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3914 3940
3915 xe_check_libs=" -lkstat " 3941 xe_check_libs=" -lkstat "
3916 cat > conftest.$ac_ext <<EOF 3942 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure" 3943 #line 3944 "configure"
3918 #include "confdefs.h" 3944 #include "confdefs.h"
3919 /* Override any gcc2 internal prototype to avoid an error. */ 3945 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2 3946 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */ 3947 builtin and then its argument prototype would still apply. */
3922 char kstat_open(); 3948 char kstat_open();
3923 3949
3924 int main() { 3950 int main() {
3925 kstat_open() 3951 kstat_open()
3926 ; return 0; } 3952 ; return 0; }
3927 EOF 3953 EOF
3928 if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3954 if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3929 rm -rf conftest* 3955 rm -rf conftest*
3930 eval "ac_cv_lib_$ac_lib_var=yes" 3956 eval "ac_cv_lib_$ac_lib_var=yes"
3931 else 3957 else
3932 echo "configure: failed program was:" >&5 3958 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5 3959 cat conftest.$ac_ext >&5
3957 3983
3958 3984
3959 3985
3960 3986
3961 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3987 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3962 echo "configure:3963: checking for kvm_read in -lkvm" >&5 3988 echo "configure:3989: checking for kvm_read in -lkvm" >&5
3963 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3989 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3964 3990
3965 xe_check_libs=" -lkvm " 3991 xe_check_libs=" -lkvm "
3966 cat > conftest.$ac_ext <<EOF 3992 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure" 3993 #line 3994 "configure"
3968 #include "confdefs.h" 3994 #include "confdefs.h"
3969 /* Override any gcc2 internal prototype to avoid an error. */ 3995 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2 3996 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */ 3997 builtin and then its argument prototype would still apply. */
3972 char kvm_read(); 3998 char kvm_read();
3973 3999
3974 int main() { 4000 int main() {
3975 kvm_read() 4001 kvm_read()
3976 ; return 0; } 4002 ; return 0; }
3977 EOF 4003 EOF
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4004 if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3979 rm -rf conftest* 4005 rm -rf conftest*
3980 eval "ac_cv_lib_$ac_lib_var=yes" 4006 eval "ac_cv_lib_$ac_lib_var=yes"
3981 else 4007 else
3982 echo "configure: failed program was:" >&5 4008 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5 4009 cat conftest.$ac_ext >&5
4007 4033
4008 4034
4009 4035
4010 4036
4011 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4037 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4012 echo "configure:4013: checking for cma_open in -lpthreads" >&5 4038 echo "configure:4039: checking for cma_open in -lpthreads" >&5
4013 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4039 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4014 4040
4015 xe_check_libs=" -lpthreads " 4041 xe_check_libs=" -lpthreads "
4016 cat > conftest.$ac_ext <<EOF 4042 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure" 4043 #line 4044 "configure"
4018 #include "confdefs.h" 4044 #include "confdefs.h"
4019 /* Override any gcc2 internal prototype to avoid an error. */ 4045 /* Override any gcc2 internal prototype to avoid an error. */
4020 /* We use char because int might match the return type of a gcc2 4046 /* We use char because int might match the return type of a gcc2
4021 builtin and then its argument prototype would still apply. */ 4047 builtin and then its argument prototype would still apply. */
4022 char cma_open(); 4048 char cma_open();
4023 4049
4024 int main() { 4050 int main() {
4025 cma_open() 4051 cma_open()
4026 ; return 0; } 4052 ; return 0; }
4027 EOF 4053 EOF
4028 if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4029 rm -rf conftest* 4055 rm -rf conftest*
4030 eval "ac_cv_lib_$ac_lib_var=yes" 4056 eval "ac_cv_lib_$ac_lib_var=yes"
4031 else 4057 else
4032 echo "configure: failed program was:" >&5 4058 echo "configure: failed program was:" >&5
4033 cat conftest.$ac_ext >&5 4059 cat conftest.$ac_ext >&5
4059 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 4085 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
4060 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 4086 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
4061 fi 4087 fi
4062 4088
4063 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4089 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4064 echo "configure:4065: checking whether the -xildoff compiler flag is required" >&5 4090 echo "configure:4091: checking whether the -xildoff compiler flag is required" >&5
4065 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4091 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4066 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4092 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4067 then echo "$ac_t""no" 1>&6; 4093 then echo "$ac_t""no" 1>&6;
4068 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 4094 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
4069 fi 4095 fi
4070 else echo "$ac_t""no" 1>&6 4096 else echo "$ac_t""no" 1>&6
4071 fi 4097 fi
4072 4098
4073 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4099 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4074 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4100 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4075 echo "configure:4076: checking for \"-z ignore\" linker flag" >&5 4101 echo "configure:4102: checking for \"-z ignore\" linker flag" >&5
4076 case "`ld -h 2>&1`" in 4102 case "`ld -h 2>&1`" in
4077 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4103 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4078 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4104 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4079 *) echo "$ac_t""no" 1>&6 ;; 4105 *) echo "$ac_t""no" 1>&6 ;;
4080 esac 4106 esac
4081 fi 4107 fi
4082 4108
4083 4109
4084 echo "checking "for specified window system"" 1>&6 4110 echo "checking "for specified window system"" 1>&6
4085 echo "configure:4086: checking "for specified window system"" >&5 4111 echo "configure:4112: checking "for specified window system"" >&5
4086 4112
4087 if test "$with_x11" != "no"; then 4113 if test "$with_x11" != "no"; then
4088 test "$x_includes $x_libraries" != "NONE NONE" && \ 4114 test "$x_includes $x_libraries" != "NONE NONE" && \
4089 window_system=x11 with_x11=yes 4115 window_system=x11 with_x11=yes
4090 4116
4110 # If we find X, set shell vars x_includes and x_libraries to the 4136 # If we find X, set shell vars x_includes and x_libraries to the
4111 # paths, otherwise set no_x=yes. 4137 # paths, otherwise set no_x=yes.
4112 # Uses ac_ vars as temps to allow command line to override cache and checks. 4138 # Uses ac_ vars as temps to allow command line to override cache and checks.
4113 # --without-x overrides everything else, but does not touch the cache. 4139 # --without-x overrides everything else, but does not touch the cache.
4114 echo $ac_n "checking for X""... $ac_c" 1>&6 4140 echo $ac_n "checking for X""... $ac_c" 1>&6
4115 echo "configure:4116: checking for X" >&5 4141 echo "configure:4142: checking for X" >&5
4116 4142
4117 # Check whether --with-x or --without-x was given. 4143 # Check whether --with-x or --without-x was given.
4118 if test "${with_x+set}" = set; then 4144 if test "${with_x+set}" = set; then
4119 withval="$with_x" 4145 withval="$with_x"
4120 : 4146 :
4170 # Guess where to find include files, by looking for this one X11 .h file. 4196 # Guess where to find include files, by looking for this one X11 .h file.
4171 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4197 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4172 4198
4173 # First, try using that file with no special directory specified. 4199 # First, try using that file with no special directory specified.
4174 cat > conftest.$ac_ext <<EOF 4200 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure" 4201 #line 4202 "configure"
4176 #include "confdefs.h" 4202 #include "confdefs.h"
4177 #include <$x_direct_test_include> 4203 #include <$x_direct_test_include>
4178 EOF 4204 EOF
4179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4180 { (eval echo configure:4181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4206 { (eval echo configure:4207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4181 ac_err=`grep -v '^ *+' conftest.out` 4207 ac_err=`grep -v '^ *+' conftest.out`
4182 if test -z "$ac_err"; then 4208 if test -z "$ac_err"; then
4183 rm -rf conftest* 4209 rm -rf conftest*
4184 # We can compile using X headers with no special include directory. 4210 # We can compile using X headers with no special include directory.
4185 ac_x_includes= 4211 ac_x_includes=
4244 # See if we find them without any special options. 4270 # See if we find them without any special options.
4245 # Don't add to $LIBS permanently. 4271 # Don't add to $LIBS permanently.
4246 ac_save_LIBS="$LIBS" 4272 ac_save_LIBS="$LIBS"
4247 LIBS="-l$x_direct_test_library $LIBS" 4273 LIBS="-l$x_direct_test_library $LIBS"
4248 cat > conftest.$ac_ext <<EOF 4274 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure" 4275 #line 4276 "configure"
4250 #include "confdefs.h" 4276 #include "confdefs.h"
4251 4277
4252 int main() { 4278 int main() {
4253 ${x_direct_test_function}() 4279 ${x_direct_test_function}()
4254 ; return 0; } 4280 ; return 0; }
4255 EOF 4281 EOF
4256 if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4257 rm -rf conftest* 4283 rm -rf conftest*
4258 LIBS="$ac_save_LIBS" 4284 LIBS="$ac_save_LIBS"
4259 # We can link X programs with no special library path. 4285 # We can link X programs with no special library path.
4260 ac_x_libraries= 4286 ac_x_libraries=
4261 else 4287 else
4360 # For Solaris; some versions of Sun CC require a space after -R and 4386 # For Solaris; some versions of Sun CC require a space after -R and
4361 # others require no space. Words are not sufficient . . . . 4387 # others require no space. Words are not sufficient . . . .
4362 case "`(uname -sr) 2>/dev/null`" in 4388 case "`(uname -sr) 2>/dev/null`" in
4363 "SunOS 5"*) 4389 "SunOS 5"*)
4364 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4390 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4365 echo "configure:4366: checking whether -R must be followed by a space" >&5 4391 echo "configure:4392: checking whether -R must be followed by a space" >&5
4366 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4392 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4367 cat > conftest.$ac_ext <<EOF 4393 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure" 4394 #line 4395 "configure"
4369 #include "confdefs.h" 4395 #include "confdefs.h"
4370 4396
4371 int main() { 4397 int main() {
4372 4398
4373 ; return 0; } 4399 ; return 0; }
4374 EOF 4400 EOF
4375 if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4401 if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4376 rm -rf conftest* 4402 rm -rf conftest*
4377 ac_R_nospace=yes 4403 ac_R_nospace=yes
4378 else 4404 else
4379 echo "configure: failed program was:" >&5 4405 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5 4406 cat conftest.$ac_ext >&5
4386 echo "$ac_t""no" 1>&6 4412 echo "$ac_t""no" 1>&6
4387 X_LIBS="$X_LIBS -R$x_libraries" 4413 X_LIBS="$X_LIBS -R$x_libraries"
4388 else 4414 else
4389 LIBS="$ac_xsave_LIBS -R $x_libraries" 4415 LIBS="$ac_xsave_LIBS -R $x_libraries"
4390 cat > conftest.$ac_ext <<EOF 4416 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure" 4417 #line 4418 "configure"
4392 #include "confdefs.h" 4418 #include "confdefs.h"
4393 4419
4394 int main() { 4420 int main() {
4395 4421
4396 ; return 0; } 4422 ; return 0; }
4397 EOF 4423 EOF
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4399 rm -rf conftest* 4425 rm -rf conftest*
4400 ac_R_space=yes 4426 ac_R_space=yes
4401 else 4427 else
4402 echo "configure: failed program was:" >&5 4428 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5 4429 cat conftest.$ac_ext >&5
4429 if test "$with_dnet" = "no" ; then 4455 if test "$with_dnet" = "no" ; then
4430 ac_cv_lib_dnet_dnet_ntoa=no 4456 ac_cv_lib_dnet_dnet_ntoa=no
4431 else 4457 else
4432 4458
4433 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4459 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4434 echo "configure:4435: checking for dnet_ntoa in -ldnet" >&5 4460 echo "configure:4461: checking for dnet_ntoa in -ldnet" >&5
4435 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4461 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4436 4462
4437 xe_check_libs=" -ldnet " 4463 xe_check_libs=" -ldnet "
4438 cat > conftest.$ac_ext <<EOF 4464 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure" 4465 #line 4466 "configure"
4440 #include "confdefs.h" 4466 #include "confdefs.h"
4441 /* Override any gcc2 internal prototype to avoid an error. */ 4467 /* Override any gcc2 internal prototype to avoid an error. */
4442 /* We use char because int might match the return type of a gcc2 4468 /* We use char because int might match the return type of a gcc2
4443 builtin and then its argument prototype would still apply. */ 4469 builtin and then its argument prototype would still apply. */
4444 char dnet_ntoa(); 4470 char dnet_ntoa();
4445 4471
4446 int main() { 4472 int main() {
4447 dnet_ntoa() 4473 dnet_ntoa()
4448 ; return 0; } 4474 ; return 0; }
4449 EOF 4475 EOF
4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4451 rm -rf conftest* 4477 rm -rf conftest*
4452 eval "ac_cv_lib_$ac_lib_var=yes" 4478 eval "ac_cv_lib_$ac_lib_var=yes"
4453 else 4479 else
4454 echo "configure: failed program was:" >&5 4480 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5 4481 cat conftest.$ac_ext >&5
4469 fi 4495 fi
4470 4496
4471 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4497 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4472 4498
4473 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4499 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4474 echo "configure:4475: checking for dnet_ntoa in -ldnet_stub" >&5 4500 echo "configure:4501: checking for dnet_ntoa in -ldnet_stub" >&5
4475 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4501 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4476 4502
4477 xe_check_libs=" -ldnet_stub " 4503 xe_check_libs=" -ldnet_stub "
4478 cat > conftest.$ac_ext <<EOF 4504 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure" 4505 #line 4506 "configure"
4480 #include "confdefs.h" 4506 #include "confdefs.h"
4481 /* Override any gcc2 internal prototype to avoid an error. */ 4507 /* Override any gcc2 internal prototype to avoid an error. */
4482 /* We use char because int might match the return type of a gcc2 4508 /* We use char because int might match the return type of a gcc2
4483 builtin and then its argument prototype would still apply. */ 4509 builtin and then its argument prototype would still apply. */
4484 char dnet_ntoa(); 4510 char dnet_ntoa();
4485 4511
4486 int main() { 4512 int main() {
4487 dnet_ntoa() 4513 dnet_ntoa()
4488 ; return 0; } 4514 ; return 0; }
4489 EOF 4515 EOF
4490 if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4491 rm -rf conftest* 4517 rm -rf conftest*
4492 eval "ac_cv_lib_$ac_lib_var=yes" 4518 eval "ac_cv_lib_$ac_lib_var=yes"
4493 else 4519 else
4494 echo "configure: failed program was:" >&5 4520 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5 4521 cat conftest.$ac_ext >&5
4514 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4540 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4515 # needs -lnsl. 4541 # needs -lnsl.
4516 # The nsl library prevents programs from opening the X display 4542 # The nsl library prevents programs from opening the X display
4517 # on Irix 5.2, according to dickey@clark.net. 4543 # on Irix 5.2, according to dickey@clark.net.
4518 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4544 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4519 echo "configure:4520: checking for gethostbyname" >&5 4545 echo "configure:4546: checking for gethostbyname" >&5
4520 4546
4521 cat > conftest.$ac_ext <<EOF 4547 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure" 4548 #line 4549 "configure"
4523 #include "confdefs.h" 4549 #include "confdefs.h"
4524 /* System header to define __stub macros and hopefully few prototypes, 4550 /* System header to define __stub macros and hopefully few prototypes,
4525 which can conflict with char gethostbyname(); below. */ 4551 which can conflict with char gethostbyname(); below. */
4526 #include <assert.h> 4552 #include <assert.h>
4527 /* Override any gcc2 internal prototype to avoid an error. */ 4553 /* Override any gcc2 internal prototype to avoid an error. */
4540 gethostbyname(); 4566 gethostbyname();
4541 #endif 4567 #endif
4542 4568
4543 ; return 0; } 4569 ; return 0; }
4544 EOF 4570 EOF
4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4571 if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4546 rm -rf conftest* 4572 rm -rf conftest*
4547 eval "ac_cv_func_gethostbyname=yes" 4573 eval "ac_cv_func_gethostbyname=yes"
4548 else 4574 else
4549 echo "configure: failed program was:" >&5 4575 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5 4576 cat conftest.$ac_ext >&5
4561 fi 4587 fi
4562 4588
4563 if test $ac_cv_func_gethostbyname = no; then 4589 if test $ac_cv_func_gethostbyname = no; then
4564 4590
4565 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4591 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4566 echo "configure:4567: checking for gethostbyname in -lnsl" >&5 4592 echo "configure:4593: checking for gethostbyname in -lnsl" >&5
4567 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4593 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4568 4594
4569 xe_check_libs=" -lnsl " 4595 xe_check_libs=" -lnsl "
4570 cat > conftest.$ac_ext <<EOF 4596 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure" 4597 #line 4598 "configure"
4572 #include "confdefs.h" 4598 #include "confdefs.h"
4573 /* Override any gcc2 internal prototype to avoid an error. */ 4599 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2 4600 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */ 4601 builtin and then its argument prototype would still apply. */
4576 char gethostbyname(); 4602 char gethostbyname();
4577 4603
4578 int main() { 4604 int main() {
4579 gethostbyname() 4605 gethostbyname()
4580 ; return 0; } 4606 ; return 0; }
4581 EOF 4607 EOF
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4608 if { (eval echo configure:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4583 rm -rf conftest* 4609 rm -rf conftest*
4584 eval "ac_cv_lib_$ac_lib_var=yes" 4610 eval "ac_cv_lib_$ac_lib_var=yes"
4585 else 4611 else
4586 echo "configure: failed program was:" >&5 4612 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5 4613 cat conftest.$ac_ext >&5
4607 # on later versions), says simon@lia.di.epfl.ch: it contains 4633 # on later versions), says simon@lia.di.epfl.ch: it contains
4608 # gethostby* variants that don't use the nameserver (or something). 4634 # gethostby* variants that don't use the nameserver (or something).
4609 # -lsocket must be given before -lnsl if both are needed. 4635 # -lsocket must be given before -lnsl if both are needed.
4610 # We assume that if connect needs -lnsl, so does gethostbyname. 4636 # We assume that if connect needs -lnsl, so does gethostbyname.
4611 echo $ac_n "checking for connect""... $ac_c" 1>&6 4637 echo $ac_n "checking for connect""... $ac_c" 1>&6
4612 echo "configure:4613: checking for connect" >&5 4638 echo "configure:4639: checking for connect" >&5
4613 4639
4614 cat > conftest.$ac_ext <<EOF 4640 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure" 4641 #line 4642 "configure"
4616 #include "confdefs.h" 4642 #include "confdefs.h"
4617 /* System header to define __stub macros and hopefully few prototypes, 4643 /* System header to define __stub macros and hopefully few prototypes,
4618 which can conflict with char connect(); below. */ 4644 which can conflict with char connect(); below. */
4619 #include <assert.h> 4645 #include <assert.h>
4620 /* Override any gcc2 internal prototype to avoid an error. */ 4646 /* Override any gcc2 internal prototype to avoid an error. */
4633 connect(); 4659 connect();
4634 #endif 4660 #endif
4635 4661
4636 ; return 0; } 4662 ; return 0; }
4637 EOF 4663 EOF
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4639 rm -rf conftest* 4665 rm -rf conftest*
4640 eval "ac_cv_func_connect=yes" 4666 eval "ac_cv_func_connect=yes"
4641 else 4667 else
4642 echo "configure: failed program was:" >&5 4668 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5 4669 cat conftest.$ac_ext >&5
4656 if test $ac_cv_func_connect = no; then 4682 if test $ac_cv_func_connect = no; then
4657 4683
4658 xe_msg_checking="for connect in -lsocket" 4684 xe_msg_checking="for connect in -lsocket"
4659 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4685 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4660 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4686 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4661 echo "configure:4662: checking "$xe_msg_checking"" >&5 4687 echo "configure:4688: checking "$xe_msg_checking"" >&5
4662 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4688 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4663 4689
4664 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4690 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4665 cat > conftest.$ac_ext <<EOF 4691 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure" 4692 #line 4693 "configure"
4667 #include "confdefs.h" 4693 #include "confdefs.h"
4668 /* Override any gcc2 internal prototype to avoid an error. */ 4694 /* Override any gcc2 internal prototype to avoid an error. */
4669 /* We use char because int might match the return type of a gcc2 4695 /* We use char because int might match the return type of a gcc2
4670 builtin and then its argument prototype would still apply. */ 4696 builtin and then its argument prototype would still apply. */
4671 char connect(); 4697 char connect();
4672 4698
4673 int main() { 4699 int main() {
4674 connect() 4700 connect()
4675 ; return 0; } 4701 ; return 0; }
4676 EOF 4702 EOF
4677 if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4703 if { (eval echo configure:4704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4678 rm -rf conftest* 4704 rm -rf conftest*
4679 eval "ac_cv_lib_$ac_lib_var=yes" 4705 eval "ac_cv_lib_$ac_lib_var=yes"
4680 else 4706 else
4681 echo "configure: failed program was:" >&5 4707 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5 4708 cat conftest.$ac_ext >&5
4696 4722
4697 fi 4723 fi
4698 4724
4699 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4725 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4700 echo $ac_n "checking for remove""... $ac_c" 1>&6 4726 echo $ac_n "checking for remove""... $ac_c" 1>&6
4701 echo "configure:4702: checking for remove" >&5 4727 echo "configure:4728: checking for remove" >&5
4702 4728
4703 cat > conftest.$ac_ext <<EOF 4729 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure" 4730 #line 4731 "configure"
4705 #include "confdefs.h" 4731 #include "confdefs.h"
4706 /* System header to define __stub macros and hopefully few prototypes, 4732 /* System header to define __stub macros and hopefully few prototypes,
4707 which can conflict with char remove(); below. */ 4733 which can conflict with char remove(); below. */
4708 #include <assert.h> 4734 #include <assert.h>
4709 /* Override any gcc2 internal prototype to avoid an error. */ 4735 /* Override any gcc2 internal prototype to avoid an error. */
4722 remove(); 4748 remove();
4723 #endif 4749 #endif
4724 4750
4725 ; return 0; } 4751 ; return 0; }
4726 EOF 4752 EOF
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4728 rm -rf conftest* 4754 rm -rf conftest*
4729 eval "ac_cv_func_remove=yes" 4755 eval "ac_cv_func_remove=yes"
4730 else 4756 else
4731 echo "configure: failed program was:" >&5 4757 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5 4758 cat conftest.$ac_ext >&5
4743 fi 4769 fi
4744 4770
4745 if test $ac_cv_func_remove = no; then 4771 if test $ac_cv_func_remove = no; then
4746 4772
4747 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4773 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4748 echo "configure:4749: checking for remove in -lposix" >&5 4774 echo "configure:4775: checking for remove in -lposix" >&5
4749 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4775 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4750 4776
4751 xe_check_libs=" -lposix " 4777 xe_check_libs=" -lposix "
4752 cat > conftest.$ac_ext <<EOF 4778 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure" 4779 #line 4780 "configure"
4754 #include "confdefs.h" 4780 #include "confdefs.h"
4755 /* Override any gcc2 internal prototype to avoid an error. */ 4781 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2 4782 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */ 4783 builtin and then its argument prototype would still apply. */
4758 char remove(); 4784 char remove();
4759 4785
4760 int main() { 4786 int main() {
4761 remove() 4787 remove()
4762 ; return 0; } 4788 ; return 0; }
4763 EOF 4789 EOF
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4765 rm -rf conftest* 4791 rm -rf conftest*
4766 eval "ac_cv_lib_$ac_lib_var=yes" 4792 eval "ac_cv_lib_$ac_lib_var=yes"
4767 else 4793 else
4768 echo "configure: failed program was:" >&5 4794 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5 4795 cat conftest.$ac_ext >&5
4783 4809
4784 fi 4810 fi
4785 4811
4786 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4812 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4787 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4813 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4788 echo "configure:4789: checking for shmat" >&5 4814 echo "configure:4815: checking for shmat" >&5
4789 4815
4790 cat > conftest.$ac_ext <<EOF 4816 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure" 4817 #line 4818 "configure"
4792 #include "confdefs.h" 4818 #include "confdefs.h"
4793 /* System header to define __stub macros and hopefully few prototypes, 4819 /* System header to define __stub macros and hopefully few prototypes,
4794 which can conflict with char shmat(); below. */ 4820 which can conflict with char shmat(); below. */
4795 #include <assert.h> 4821 #include <assert.h>
4796 /* Override any gcc2 internal prototype to avoid an error. */ 4822 /* Override any gcc2 internal prototype to avoid an error. */
4809 shmat(); 4835 shmat();
4810 #endif 4836 #endif
4811 4837
4812 ; return 0; } 4838 ; return 0; }
4813 EOF 4839 EOF
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4815 rm -rf conftest* 4841 rm -rf conftest*
4816 eval "ac_cv_func_shmat=yes" 4842 eval "ac_cv_func_shmat=yes"
4817 else 4843 else
4818 echo "configure: failed program was:" >&5 4844 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5 4845 cat conftest.$ac_ext >&5
4830 fi 4856 fi
4831 4857
4832 if test $ac_cv_func_shmat = no; then 4858 if test $ac_cv_func_shmat = no; then
4833 4859
4834 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4860 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4835 echo "configure:4836: checking for shmat in -lipc" >&5 4861 echo "configure:4862: checking for shmat in -lipc" >&5
4836 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4862 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4837 4863
4838 xe_check_libs=" -lipc " 4864 xe_check_libs=" -lipc "
4839 cat > conftest.$ac_ext <<EOF 4865 cat > conftest.$ac_ext <<EOF
4840 #line 4841 "configure" 4866 #line 4867 "configure"
4841 #include "confdefs.h" 4867 #include "confdefs.h"
4842 /* Override any gcc2 internal prototype to avoid an error. */ 4868 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2 4869 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */ 4870 builtin and then its argument prototype would still apply. */
4845 char shmat(); 4871 char shmat();
4846 4872
4847 int main() { 4873 int main() {
4848 shmat() 4874 shmat()
4849 ; return 0; } 4875 ; return 0; }
4850 EOF 4876 EOF
4851 if { (eval echo configure:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4852 rm -rf conftest* 4878 rm -rf conftest*
4853 eval "ac_cv_lib_$ac_lib_var=yes" 4879 eval "ac_cv_lib_$ac_lib_var=yes"
4854 else 4880 else
4855 echo "configure: failed program was:" >&5 4881 echo "configure: failed program was:" >&5
4856 cat conftest.$ac_ext >&5 4882 cat conftest.$ac_ext >&5
4880 # These have to be linked with before -lX11, unlike the other 4906 # These have to be linked with before -lX11, unlike the other
4881 # libraries we check for below, so use a different variable. 4907 # libraries we check for below, so use a different variable.
4882 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4908 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4883 4909
4884 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4910 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4885 echo "configure:4886: checking for IceConnectionNumber in -lICE" >&5 4911 echo "configure:4912: checking for IceConnectionNumber in -lICE" >&5
4886 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4912 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4887 4913
4888 xe_check_libs=" -lICE " 4914 xe_check_libs=" -lICE "
4889 cat > conftest.$ac_ext <<EOF 4915 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure" 4916 #line 4917 "configure"
4891 #include "confdefs.h" 4917 #include "confdefs.h"
4892 /* Override any gcc2 internal prototype to avoid an error. */ 4918 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2 4919 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */ 4920 builtin and then its argument prototype would still apply. */
4895 char IceConnectionNumber(); 4921 char IceConnectionNumber();
4896 4922
4897 int main() { 4923 int main() {
4898 IceConnectionNumber() 4924 IceConnectionNumber()
4899 ; return 0; } 4925 ; return 0; }
4900 EOF 4926 EOF
4901 if { (eval echo configure:4902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4902 rm -rf conftest* 4928 rm -rf conftest*
4903 eval "ac_cv_lib_$ac_lib_var=yes" 4929 eval "ac_cv_lib_$ac_lib_var=yes"
4904 else 4930 else
4905 echo "configure: failed program was:" >&5 4931 echo "configure: failed program was:" >&5
4906 cat conftest.$ac_ext >&5 4932 cat conftest.$ac_ext >&5
5029 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done 5055 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5030 echo 5056 echo
5031 fi 5057 fi
5032 5058
5033 echo "checking for X defines extracted by xmkmf" 1>&6 5059 echo "checking for X defines extracted by xmkmf" 1>&6
5034 echo "configure:5035: checking for X defines extracted by xmkmf" >&5 5060 echo "configure:5061: checking for X defines extracted by xmkmf" >&5
5035 rm -fr conftestdir 5061 rm -fr conftestdir
5036 if mkdir conftestdir; then 5062 if mkdir conftestdir; then
5037 cd conftestdir 5063 cd conftestdir
5038 cat > Imakefile <<'EOF' 5064 cat > Imakefile <<'EOF'
5039 xetest: 5065 xetest:
5061 done 5087 done
5062 fi 5088 fi
5063 5089
5064 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5090 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5065 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5091 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5066 echo "configure:5067: checking for X11/Intrinsic.h" >&5 5092 echo "configure:5093: checking for X11/Intrinsic.h" >&5
5067 5093
5068 cat > conftest.$ac_ext <<EOF 5094 cat > conftest.$ac_ext <<EOF
5069 #line 5070 "configure" 5095 #line 5096 "configure"
5070 #include "confdefs.h" 5096 #include "confdefs.h"
5071 #include <X11/Intrinsic.h> 5097 #include <X11/Intrinsic.h>
5072 EOF 5098 EOF
5073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5074 { (eval echo configure:5075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5100 { (eval echo configure:5101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5075 ac_err=`grep -v '^ *+' conftest.out` 5101 ac_err=`grep -v '^ *+' conftest.out`
5076 if test -z "$ac_err"; then 5102 if test -z "$ac_err"; then
5077 rm -rf conftest* 5103 rm -rf conftest*
5078 eval "ac_cv_header_$ac_safe=yes" 5104 eval "ac_cv_header_$ac_safe=yes"
5079 else 5105 else
5093 fi 5119 fi
5094 5120
5095 5121
5096 5122
5097 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5123 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5098 echo "configure:5099: checking for XOpenDisplay in -lX11" >&5 5124 echo "configure:5125: checking for XOpenDisplay in -lX11" >&5
5099 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5125 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5100 5126
5101 xe_check_libs=" -lX11 " 5127 xe_check_libs=" -lX11 "
5102 cat > conftest.$ac_ext <<EOF 5128 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure" 5129 #line 5130 "configure"
5104 #include "confdefs.h" 5130 #include "confdefs.h"
5105 /* Override any gcc2 internal prototype to avoid an error. */ 5131 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2 5132 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */ 5133 builtin and then its argument prototype would still apply. */
5108 char XOpenDisplay(); 5134 char XOpenDisplay();
5109 5135
5110 int main() { 5136 int main() {
5111 XOpenDisplay() 5137 XOpenDisplay()
5112 ; return 0; } 5138 ; return 0; }
5113 EOF 5139 EOF
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5140 if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5115 rm -rf conftest* 5141 rm -rf conftest*
5116 eval "ac_cv_lib_$ac_lib_var=yes" 5142 eval "ac_cv_lib_$ac_lib_var=yes"
5117 else 5143 else
5118 echo "configure: failed program was:" >&5 5144 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5 5145 cat conftest.$ac_ext >&5
5134 if test "$have_lib_x11" != "yes"; then 5160 if test "$have_lib_x11" != "yes"; then
5135 5161
5136 xe_msg_checking="for XGetFontProperty in -lX11" 5162 xe_msg_checking="for XGetFontProperty in -lX11"
5137 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5163 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5138 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5164 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5139 echo "configure:5140: checking "$xe_msg_checking"" >&5 5165 echo "configure:5166: checking "$xe_msg_checking"" >&5
5140 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5166 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5141 5167
5142 xe_check_libs=" -lX11 -b i486-linuxaout" 5168 xe_check_libs=" -lX11 -b i486-linuxaout"
5143 cat > conftest.$ac_ext <<EOF 5169 cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure" 5170 #line 5171 "configure"
5145 #include "confdefs.h" 5171 #include "confdefs.h"
5146 /* Override any gcc2 internal prototype to avoid an error. */ 5172 /* Override any gcc2 internal prototype to avoid an error. */
5147 /* We use char because int might match the return type of a gcc2 5173 /* We use char because int might match the return type of a gcc2
5148 builtin and then its argument prototype would still apply. */ 5174 builtin and then its argument prototype would still apply. */
5149 char XGetFontProperty(); 5175 char XGetFontProperty();
5150 5176
5151 int main() { 5177 int main() {
5152 XGetFontProperty() 5178 XGetFontProperty()
5153 ; return 0; } 5179 ; return 0; }
5154 EOF 5180 EOF
5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5156 rm -rf conftest* 5182 rm -rf conftest*
5157 eval "ac_cv_lib_$ac_lib_var=yes" 5183 eval "ac_cv_lib_$ac_lib_var=yes"
5158 else 5184 else
5159 echo "configure: failed program was:" >&5 5185 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5 5186 cat conftest.$ac_ext >&5
5177 libs_x="-lX11" 5203 libs_x="-lX11"
5178 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5204 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5179 5205
5180 5206
5181 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5207 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5182 echo "configure:5183: checking for XShapeSelectInput in -lXext" >&5 5208 echo "configure:5209: checking for XShapeSelectInput in -lXext" >&5
5183 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5209 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5184 5210
5185 xe_check_libs=" -lXext " 5211 xe_check_libs=" -lXext "
5186 cat > conftest.$ac_ext <<EOF 5212 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure" 5213 #line 5214 "configure"
5188 #include "confdefs.h" 5214 #include "confdefs.h"
5189 /* Override any gcc2 internal prototype to avoid an error. */ 5215 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2 5216 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */ 5217 builtin and then its argument prototype would still apply. */
5192 char XShapeSelectInput(); 5218 char XShapeSelectInput();
5193 5219
5194 int main() { 5220 int main() {
5195 XShapeSelectInput() 5221 XShapeSelectInput()
5196 ; return 0; } 5222 ; return 0; }
5197 EOF 5223 EOF
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5224 if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5199 rm -rf conftest* 5225 rm -rf conftest*
5200 eval "ac_cv_lib_$ac_lib_var=yes" 5226 eval "ac_cv_lib_$ac_lib_var=yes"
5201 else 5227 else
5202 echo "configure: failed program was:" >&5 5228 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5 5229 cat conftest.$ac_ext >&5
5216 5242
5217 5243
5218 5244
5219 5245
5220 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5246 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5221 echo "configure:5222: checking for XtOpenDisplay in -lXt" >&5 5247 echo "configure:5248: checking for XtOpenDisplay in -lXt" >&5
5222 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5248 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5223 5249
5224 xe_check_libs=" -lXt " 5250 xe_check_libs=" -lXt "
5225 cat > conftest.$ac_ext <<EOF 5251 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure" 5252 #line 5253 "configure"
5227 #include "confdefs.h" 5253 #include "confdefs.h"
5228 /* Override any gcc2 internal prototype to avoid an error. */ 5254 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2 5255 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */ 5256 builtin and then its argument prototype would still apply. */
5231 char XtOpenDisplay(); 5257 char XtOpenDisplay();
5232 5258
5233 int main() { 5259 int main() {
5234 XtOpenDisplay() 5260 XtOpenDisplay()
5235 ; return 0; } 5261 ; return 0; }
5236 EOF 5262 EOF
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5238 rm -rf conftest* 5264 rm -rf conftest*
5239 eval "ac_cv_lib_$ac_lib_var=yes" 5265 eval "ac_cv_lib_$ac_lib_var=yes"
5240 else 5266 else
5241 echo "configure: failed program was:" >&5 5267 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5 5268 cat conftest.$ac_ext >&5
5255 fi 5281 fi
5256 5282
5257 5283
5258 5284
5259 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5285 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5260 echo "configure:5261: checking the version of X11 being used" >&5 5286 echo "configure:5287: checking the version of X11 being used" >&5
5261 cat > conftest.$ac_ext <<EOF 5287 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure" 5288 #line 5289 "configure"
5263 #include "confdefs.h" 5289 #include "confdefs.h"
5264 #include <X11/Intrinsic.h> 5290 #include <X11/Intrinsic.h>
5265 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5291 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5266 EOF 5292 EOF
5267 if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5293 if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5268 then 5294 then
5269 ./conftest foobar; x11_release=$? 5295 ./conftest foobar; x11_release=$?
5270 else 5296 else
5271 echo "configure: failed program was:" >&5 5297 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5 5298 cat conftest.$ac_ext >&5
5286 5312
5287 for ac_hdr in X11/Xlocale.h 5313 for ac_hdr in X11/Xlocale.h
5288 do 5314 do
5289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5291 echo "configure:5292: checking for $ac_hdr" >&5 5317 echo "configure:5318: checking for $ac_hdr" >&5
5292 5318
5293 cat > conftest.$ac_ext <<EOF 5319 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure" 5320 #line 5321 "configure"
5295 #include "confdefs.h" 5321 #include "confdefs.h"
5296 #include <$ac_hdr> 5322 #include <$ac_hdr>
5297 EOF 5323 EOF
5298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5299 { (eval echo configure:5300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5325 { (eval echo configure:5326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5300 ac_err=`grep -v '^ *+' conftest.out` 5326 ac_err=`grep -v '^ *+' conftest.out`
5301 if test -z "$ac_err"; then 5327 if test -z "$ac_err"; then
5302 rm -rf conftest* 5328 rm -rf conftest*
5303 eval "ac_cv_header_$ac_safe=yes" 5329 eval "ac_cv_header_$ac_safe=yes"
5304 else 5330 else
5325 fi 5351 fi
5326 done 5352 done
5327 5353
5328 5354
5329 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5355 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5330 echo "configure:5331: checking for XFree86" >&5 5356 echo "configure:5357: checking for XFree86" >&5
5331 if test -d "/usr/X386/include" -o \ 5357 if test -d "/usr/X386/include" -o \
5332 -f "/etc/XF86Config" -o \ 5358 -f "/etc/XF86Config" -o \
5333 -f "/etc/X11/XF86Config" -o \ 5359 -f "/etc/X11/XF86Config" -o \
5334 -f "/usr/X11R6/lib/X11/XF86Config"; then 5360 -f "/usr/X11R6/lib/X11/XF86Config"; then
5335 echo "$ac_t""yes" 1>&6 5361 echo "$ac_t""yes" 1>&6
5345 echo "$ac_t""no" 1>&6 5371 echo "$ac_t""no" 1>&6
5346 fi 5372 fi
5347 5373
5348 test -z "$with_xmu" && { 5374 test -z "$with_xmu" && {
5349 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5375 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5350 echo "configure:5351: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5376 echo "configure:5377: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5351 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5377 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5352 5378
5353 xe_check_libs=" -lXmu " 5379 xe_check_libs=" -lXmu "
5354 cat > conftest.$ac_ext <<EOF 5380 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure" 5381 #line 5382 "configure"
5356 #include "confdefs.h" 5382 #include "confdefs.h"
5357 /* Override any gcc2 internal prototype to avoid an error. */ 5383 /* Override any gcc2 internal prototype to avoid an error. */
5358 /* We use char because int might match the return type of a gcc2 5384 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */ 5385 builtin and then its argument prototype would still apply. */
5360 char XmuReadBitmapDataFromFile(); 5386 char XmuReadBitmapDataFromFile();
5361 5387
5362 int main() { 5388 int main() {
5363 XmuReadBitmapDataFromFile() 5389 XmuReadBitmapDataFromFile()
5364 ; return 0; } 5390 ; return 0; }
5365 EOF 5391 EOF
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5367 rm -rf conftest* 5393 rm -rf conftest*
5368 eval "ac_cv_lib_$ac_lib_var=yes" 5394 eval "ac_cv_lib_$ac_lib_var=yes"
5369 else 5395 else
5370 echo "configure: failed program was:" >&5 5396 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5 5397 cat conftest.$ac_ext >&5
5400 5426
5401 fi 5427 fi
5402 5428
5403 5429
5404 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5430 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5405 echo "configure:5406: checking for main in -lXbsd" >&5 5431 echo "configure:5432: checking for main in -lXbsd" >&5
5406 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5432 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5407 5433
5408 xe_check_libs=" -lXbsd " 5434 xe_check_libs=" -lXbsd "
5409 cat > conftest.$ac_ext <<EOF 5435 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure" 5436 #line 5437 "configure"
5411 #include "confdefs.h" 5437 #include "confdefs.h"
5412 5438
5413 int main() { 5439 int main() {
5414 main() 5440 main()
5415 ; return 0; } 5441 ; return 0; }
5416 EOF 5442 EOF
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5418 rm -rf conftest* 5444 rm -rf conftest*
5419 eval "ac_cv_lib_$ac_lib_var=yes" 5445 eval "ac_cv_lib_$ac_lib_var=yes"
5420 else 5446 else
5421 echo "configure: failed program was:" >&5 5447 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5 5448 cat conftest.$ac_ext >&5
5466 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5492 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5467 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5493 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5468 esac 5494 esac
5469 5495
5470 echo "checking for session-management option" 1>&6 5496 echo "checking for session-management option" 1>&6
5471 echo "configure:5472: checking for session-management option" >&5; 5497 echo "configure:5498: checking for session-management option" >&5;
5472 if test "$with_session" != "no"; then 5498 if test "$with_session" != "no"; then
5473 { test "$extra_verbose" = "yes" && cat << \EOF 5499 { test "$extra_verbose" = "yes" && cat << \EOF
5474 Defining HAVE_SESSION 5500 Defining HAVE_SESSION
5475 EOF 5501 EOF
5476 cat >> confdefs.h <<\EOF 5502 cat >> confdefs.h <<\EOF
5481 fi 5507 fi
5482 5508
5483 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5509 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5484 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5510 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5485 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5511 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5486 echo "configure:5487: checking for X11/Xauth.h" >&5 5512 echo "configure:5513: checking for X11/Xauth.h" >&5
5487 5513
5488 cat > conftest.$ac_ext <<EOF 5514 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure" 5515 #line 5516 "configure"
5490 #include "confdefs.h" 5516 #include "confdefs.h"
5491 #include <X11/Xauth.h> 5517 #include <X11/Xauth.h>
5492 EOF 5518 EOF
5493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5494 { (eval echo configure:5495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5520 { (eval echo configure:5521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5495 ac_err=`grep -v '^ *+' conftest.out` 5521 ac_err=`grep -v '^ *+' conftest.out`
5496 if test -z "$ac_err"; then 5522 if test -z "$ac_err"; then
5497 rm -rf conftest* 5523 rm -rf conftest*
5498 eval "ac_cv_header_$ac_safe=yes" 5524 eval "ac_cv_header_$ac_safe=yes"
5499 else 5525 else
5512 with_xauth=no 5538 with_xauth=no
5513 fi 5539 fi
5514 } 5540 }
5515 test -z "$with_xauth" && { 5541 test -z "$with_xauth" && {
5516 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5542 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5517 echo "configure:5518: checking for XauGetAuthByAddr in -lXau" >&5 5543 echo "configure:5544: checking for XauGetAuthByAddr in -lXau" >&5
5518 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5544 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5519 5545
5520 xe_check_libs=" -lXau " 5546 xe_check_libs=" -lXau "
5521 cat > conftest.$ac_ext <<EOF 5547 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure" 5548 #line 5549 "configure"
5523 #include "confdefs.h" 5549 #include "confdefs.h"
5524 /* Override any gcc2 internal prototype to avoid an error. */ 5550 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2 5551 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */ 5552 builtin and then its argument prototype would still apply. */
5527 char XauGetAuthByAddr(); 5553 char XauGetAuthByAddr();
5528 5554
5529 int main() { 5555 int main() {
5530 XauGetAuthByAddr() 5556 XauGetAuthByAddr()
5531 ; return 0; } 5557 ; return 0; }
5532 EOF 5558 EOF
5533 if { (eval echo configure:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5559 if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5534 rm -rf conftest* 5560 rm -rf conftest*
5535 eval "ac_cv_lib_$ac_lib_var=yes" 5561 eval "ac_cv_lib_$ac_lib_var=yes"
5536 else 5562 else
5537 echo "configure: failed program was:" >&5 5563 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5 5564 cat conftest.$ac_ext >&5
5570 5596
5571 5597
5572 OFFIX_O="" 5598 OFFIX_O=""
5573 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5599 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
5574 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5600 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
5575 echo "configure:5576: checking for OffiX/DragAndDrop.h" >&5 5601 echo "configure:5602: checking for OffiX/DragAndDrop.h" >&5
5576 5602
5577 cat > conftest.$ac_ext <<EOF 5603 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure" 5604 #line 5605 "configure"
5579 #include "confdefs.h" 5605 #include "confdefs.h"
5580 #include <OffiX/DragAndDrop.h> 5606 #include <OffiX/DragAndDrop.h>
5581 EOF 5607 EOF
5582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5583 { (eval echo configure:5584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5609 { (eval echo configure:5610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5584 ac_err=`grep -v '^ *+' conftest.out` 5610 ac_err=`grep -v '^ *+' conftest.out`
5585 if test -z "$ac_err"; then 5611 if test -z "$ac_err"; then
5586 rm -rf conftest* 5612 rm -rf conftest*
5587 eval "ac_cv_header_$ac_safe=yes" 5613 eval "ac_cv_header_$ac_safe=yes"
5588 else 5614 else
5601 with_offix=no 5627 with_offix=no
5602 fi 5628 fi
5603 } 5629 }
5604 test -z "$with_offix" && { 5630 test -z "$with_offix" && {
5605 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5631 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5606 echo "configure:5607: checking for DndInitialize in -lDnd" >&5 5632 echo "configure:5633: checking for DndInitialize in -lDnd" >&5
5607 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5633 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5608 5634
5609 xe_check_libs=" -lDnd " 5635 xe_check_libs=" -lDnd "
5610 cat > conftest.$ac_ext <<EOF 5636 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure" 5637 #line 5638 "configure"
5612 #include "confdefs.h" 5638 #include "confdefs.h"
5613 /* Override any gcc2 internal prototype to avoid an error. */ 5639 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2 5640 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */ 5641 builtin and then its argument prototype would still apply. */
5616 char DndInitialize(); 5642 char DndInitialize();
5617 5643
5618 int main() { 5644 int main() {
5619 DndInitialize() 5645 DndInitialize()
5620 ; return 0; } 5646 ; return 0; }
5621 EOF 5647 EOF
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5648 if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5623 rm -rf conftest* 5649 rm -rf conftest*
5624 eval "ac_cv_lib_$ac_lib_var=yes" 5650 eval "ac_cv_lib_$ac_lib_var=yes"
5625 else 5651 else
5626 echo "configure: failed program was:" >&5 5652 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5 5653 cat conftest.$ac_ext >&5
5657 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5683 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5658 if test "$with_tooltalk" != "no" ; then 5684 if test "$with_tooltalk" != "no" ; then
5659 for dir in "" "Tt/" "desktop/" ; do 5685 for dir in "" "Tt/" "desktop/" ; do
5660 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5686 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5661 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5687 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5662 echo "configure:5663: checking for ${dir}tt_c.h" >&5 5688 echo "configure:5689: checking for ${dir}tt_c.h" >&5
5663 5689
5664 cat > conftest.$ac_ext <<EOF 5690 cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure" 5691 #line 5692 "configure"
5666 #include "confdefs.h" 5692 #include "confdefs.h"
5667 #include <${dir}tt_c.h> 5693 #include <${dir}tt_c.h>
5668 EOF 5694 EOF
5669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5670 { (eval echo configure:5671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5696 { (eval echo configure:5697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5671 ac_err=`grep -v '^ *+' conftest.out` 5697 ac_err=`grep -v '^ *+' conftest.out`
5672 if test -z "$ac_err"; then 5698 if test -z "$ac_err"; then
5673 rm -rf conftest* 5699 rm -rf conftest*
5674 eval "ac_cv_header_$ac_safe=yes" 5700 eval "ac_cv_header_$ac_safe=yes"
5675 else 5701 else
5694 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5720 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5695 5721
5696 xe_msg_checking="for tt_message_create in -ltt" 5722 xe_msg_checking="for tt_message_create in -ltt"
5697 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5723 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5698 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5724 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5699 echo "configure:5700: checking "$xe_msg_checking"" >&5 5725 echo "configure:5726: checking "$xe_msg_checking"" >&5
5700 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5726 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5701 5727
5702 xe_check_libs=" -ltt $extra_libs" 5728 xe_check_libs=" -ltt $extra_libs"
5703 cat > conftest.$ac_ext <<EOF 5729 cat > conftest.$ac_ext <<EOF
5704 #line 5705 "configure" 5730 #line 5731 "configure"
5705 #include "confdefs.h" 5731 #include "confdefs.h"
5706 /* Override any gcc2 internal prototype to avoid an error. */ 5732 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2 5733 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */ 5734 builtin and then its argument prototype would still apply. */
5709 char tt_message_create(); 5735 char tt_message_create();
5710 5736
5711 int main() { 5737 int main() {
5712 tt_message_create() 5738 tt_message_create()
5713 ; return 0; } 5739 ; return 0; }
5714 EOF 5740 EOF
5715 if { (eval echo configure:5716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5741 if { (eval echo configure:5742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5716 rm -rf conftest* 5742 rm -rf conftest*
5717 eval "ac_cv_lib_$ac_lib_var=yes" 5743 eval "ac_cv_lib_$ac_lib_var=yes"
5718 else 5744 else
5719 echo "configure: failed program was:" >&5 5745 echo "configure: failed program was:" >&5
5720 cat conftest.$ac_ext >&5 5746 cat conftest.$ac_ext >&5
5759 fi 5785 fi
5760 fi 5786 fi
5761 5787
5762 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5788 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5763 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5789 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5764 echo "configure:5765: checking for Dt/Dt.h" >&5 5790 echo "configure:5791: checking for Dt/Dt.h" >&5
5765 5791
5766 cat > conftest.$ac_ext <<EOF 5792 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure" 5793 #line 5794 "configure"
5768 #include "confdefs.h" 5794 #include "confdefs.h"
5769 #include <Dt/Dt.h> 5795 #include <Dt/Dt.h>
5770 EOF 5796 EOF
5771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5772 { (eval echo configure:5773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5798 { (eval echo configure:5799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5773 ac_err=`grep -v '^ *+' conftest.out` 5799 ac_err=`grep -v '^ *+' conftest.out`
5774 if test -z "$ac_err"; then 5800 if test -z "$ac_err"; then
5775 rm -rf conftest* 5801 rm -rf conftest*
5776 eval "ac_cv_header_$ac_safe=yes" 5802 eval "ac_cv_header_$ac_safe=yes"
5777 else 5803 else
5790 with_cde=no 5816 with_cde=no
5791 fi 5817 fi
5792 } 5818 }
5793 test -z "$with_cde" && { 5819 test -z "$with_cde" && {
5794 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5820 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5795 echo "configure:5796: checking for DtDndDragStart in -lDtSvc" >&5 5821 echo "configure:5822: checking for DtDndDragStart in -lDtSvc" >&5
5796 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5822 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5797 5823
5798 xe_check_libs=" -lDtSvc " 5824 xe_check_libs=" -lDtSvc "
5799 cat > conftest.$ac_ext <<EOF 5825 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure" 5826 #line 5827 "configure"
5801 #include "confdefs.h" 5827 #include "confdefs.h"
5802 /* Override any gcc2 internal prototype to avoid an error. */ 5828 /* Override any gcc2 internal prototype to avoid an error. */
5803 /* We use char because int might match the return type of a gcc2 5829 /* We use char because int might match the return type of a gcc2
5804 builtin and then its argument prototype would still apply. */ 5830 builtin and then its argument prototype would still apply. */
5805 char DtDndDragStart(); 5831 char DtDndDragStart();
5806 5832
5807 int main() { 5833 int main() {
5808 DtDndDragStart() 5834 DtDndDragStart()
5809 ; return 0; } 5835 ; return 0; }
5810 EOF 5836 EOF
5811 if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5837 if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5812 rm -rf conftest* 5838 rm -rf conftest*
5813 eval "ac_cv_lib_$ac_lib_var=yes" 5839 eval "ac_cv_lib_$ac_lib_var=yes"
5814 else 5840 else
5815 echo "configure: failed program was:" >&5 5841 echo "configure: failed program was:" >&5
5816 cat conftest.$ac_ext >&5 5842 cat conftest.$ac_ext >&5
5853 EOF 5879 EOF
5854 } 5880 }
5855 5881
5856 5882
5857 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5883 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5858 echo "configure:5859: checking for main in -lenergize" >&5 5884 echo "configure:5885: checking for main in -lenergize" >&5
5859 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5885 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5860 5886
5861 xe_check_libs=" -lenergize " 5887 xe_check_libs=" -lenergize "
5862 cat > conftest.$ac_ext <<EOF 5888 cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure" 5889 #line 5890 "configure"
5864 #include "confdefs.h" 5890 #include "confdefs.h"
5865 5891
5866 int main() { 5892 int main() {
5867 main() 5893 main()
5868 ; return 0; } 5894 ; return 0; }
5869 EOF 5895 EOF
5870 if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5896 if { (eval echo configure:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5871 rm -rf conftest* 5897 rm -rf conftest*
5872 eval "ac_cv_lib_$ac_lib_var=yes" 5898 eval "ac_cv_lib_$ac_lib_var=yes"
5873 else 5899 else
5874 echo "configure: failed program was:" >&5 5900 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5 5901 cat conftest.$ac_ext >&5
5897 5923
5898 5924
5899 if test -z "$energize_version"; then 5925 if test -z "$energize_version"; then
5900 5926
5901 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5927 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5902 echo "configure:5903: checking for main in -lconn" >&5 5928 echo "configure:5929: checking for main in -lconn" >&5
5903 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5929 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5904 5930
5905 xe_check_libs=" -lconn " 5931 xe_check_libs=" -lconn "
5906 cat > conftest.$ac_ext <<EOF 5932 cat > conftest.$ac_ext <<EOF
5907 #line 5908 "configure" 5933 #line 5934 "configure"
5908 #include "confdefs.h" 5934 #include "confdefs.h"
5909 5935
5910 int main() { 5936 int main() {
5911 main() 5937 main()
5912 ; return 0; } 5938 ; return 0; }
5913 EOF 5939 EOF
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5915 rm -rf conftest* 5941 rm -rf conftest*
5916 eval "ac_cv_lib_$ac_lib_var=yes" 5942 eval "ac_cv_lib_$ac_lib_var=yes"
5917 else 5943 else
5918 echo "configure: failed program was:" >&5 5944 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5 5945 cat conftest.$ac_ext >&5
5942 5968
5943 5969
5944 fi 5970 fi
5945 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 5971 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
5946 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 5972 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
5947 echo "configure:5948: checking for editorconn.h" >&5 5973 echo "configure:5974: checking for editorconn.h" >&5
5948 5974
5949 cat > conftest.$ac_ext <<EOF 5975 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure" 5976 #line 5977 "configure"
5951 #include "confdefs.h" 5977 #include "confdefs.h"
5952 #include <editorconn.h> 5978 #include <editorconn.h>
5953 EOF 5979 EOF
5954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5955 { (eval echo configure:5956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5981 { (eval echo configure:5982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5956 ac_err=`grep -v '^ *+' conftest.out` 5982 ac_err=`grep -v '^ *+' conftest.out`
5957 if test -z "$ac_err"; then 5983 if test -z "$ac_err"; then
5958 rm -rf conftest* 5984 rm -rf conftest*
5959 eval "ac_cv_header_$ac_safe=yes" 5985 eval "ac_cv_header_$ac_safe=yes"
5960 else 5986 else
5994 6020
5995 6021
5996 if test "$with_x11" = "yes"; then 6022 if test "$with_x11" = "yes"; then
5997 6023
5998 echo "checking for X11 graphics libraries" 1>&6 6024 echo "checking for X11 graphics libraries" 1>&6
5999 echo "configure:6000: checking for X11 graphics libraries" >&5 6025 echo "configure:6026: checking for X11 graphics libraries" >&5
6000 test -z "$with_gif" && with_gif=yes; 6026 test -z "$with_gif" && with_gif=yes;
6001 if test "$with_gif" = "yes"; then 6027 if test "$with_gif" = "yes"; then
6002 { test "$extra_verbose" = "yes" && cat << \EOF 6028 { test "$extra_verbose" = "yes" && cat << \EOF
6003 Defining HAVE_GIF 6029 Defining HAVE_GIF
6004 EOF 6030 EOF
6011 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" 6037 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
6012 fi 6038 fi
6013 fi 6039 fi
6014 6040
6015 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6041 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6016 echo "configure:6017: checking for Xpm - no older than 3.4f" >&5 6042 echo "configure:6043: checking for Xpm - no older than 3.4f" >&5
6017 xe_check_libs=-lXpm 6043 xe_check_libs=-lXpm
6018 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 6044 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure" 6045 #line 6046 "configure"
6020 #include "confdefs.h" 6046 #include "confdefs.h"
6021 #include <X11/xpm.h> 6047 #include <X11/xpm.h>
6022 int main(int c, char **v) { 6048 int main(int c, char **v) {
6023 return c == 1 ? 0 : 6049 return c == 1 ? 0 :
6024 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6050 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6025 XpmIncludeVersion < 30406 ? 2 : 6051 XpmIncludeVersion < 30406 ? 2 :
6026 0 ; 6052 0 ;
6027 } 6053 }
6028 EOF 6054 EOF
6029 if { (eval echo configure:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6055 if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6030 then 6056 then
6031 ./conftest foobar; xpm_status=$?; 6057 ./conftest foobar; xpm_status=$?;
6032 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 6058 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
6033 else 6059 else
6034 echo "configure: failed program was:" >&5 6060 echo "configure: failed program was:" >&5
6062 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6088 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6063 fi 6089 fi
6064 6090
6065 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6091 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6066 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6092 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6067 echo "configure:6068: checking for compface.h" >&5 6093 echo "configure:6094: checking for compface.h" >&5
6068 6094
6069 cat > conftest.$ac_ext <<EOF 6095 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure" 6096 #line 6097 "configure"
6071 #include "confdefs.h" 6097 #include "confdefs.h"
6072 #include <compface.h> 6098 #include <compface.h>
6073 EOF 6099 EOF
6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6101 { (eval echo configure:6102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6076 ac_err=`grep -v '^ *+' conftest.out` 6102 ac_err=`grep -v '^ *+' conftest.out`
6077 if test -z "$ac_err"; then 6103 if test -z "$ac_err"; then
6078 rm -rf conftest* 6104 rm -rf conftest*
6079 eval "ac_cv_header_$ac_safe=yes" 6105 eval "ac_cv_header_$ac_safe=yes"
6080 else 6106 else
6093 with_xface=no 6119 with_xface=no
6094 fi 6120 fi
6095 } 6121 }
6096 test -z "$with_xface" && { 6122 test -z "$with_xface" && {
6097 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6123 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6098 echo "configure:6099: checking for UnGenFace in -lcompface" >&5 6124 echo "configure:6125: checking for UnGenFace in -lcompface" >&5
6099 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6125 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6100 6126
6101 xe_check_libs=" -lcompface " 6127 xe_check_libs=" -lcompface "
6102 cat > conftest.$ac_ext <<EOF 6128 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure" 6129 #line 6130 "configure"
6104 #include "confdefs.h" 6130 #include "confdefs.h"
6105 /* Override any gcc2 internal prototype to avoid an error. */ 6131 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2 6132 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */ 6133 builtin and then its argument prototype would still apply. */
6108 char UnGenFace(); 6134 char UnGenFace();
6109 6135
6110 int main() { 6136 int main() {
6111 UnGenFace() 6137 UnGenFace()
6112 ; return 0; } 6138 ; return 0; }
6113 EOF 6139 EOF
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6115 rm -rf conftest* 6141 rm -rf conftest*
6116 eval "ac_cv_lib_$ac_lib_var=yes" 6142 eval "ac_cv_lib_$ac_lib_var=yes"
6117 else 6143 else
6118 echo "configure: failed program was:" >&5 6144 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5 6145 cat conftest.$ac_ext >&5
6145 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 6171 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6146 fi 6172 fi
6147 6173
6148 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6174 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6149 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6175 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6150 echo "configure:6151: checking for jpeglib.h" >&5 6176 echo "configure:6177: checking for jpeglib.h" >&5
6151 6177
6152 cat > conftest.$ac_ext <<EOF 6178 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure" 6179 #line 6180 "configure"
6154 #include "confdefs.h" 6180 #include "confdefs.h"
6155 #include <jpeglib.h> 6181 #include <jpeglib.h>
6156 EOF 6182 EOF
6157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6158 { (eval echo configure:6159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6184 { (eval echo configure:6185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6159 ac_err=`grep -v '^ *+' conftest.out` 6185 ac_err=`grep -v '^ *+' conftest.out`
6160 if test -z "$ac_err"; then 6186 if test -z "$ac_err"; then
6161 rm -rf conftest* 6187 rm -rf conftest*
6162 eval "ac_cv_header_$ac_safe=yes" 6188 eval "ac_cv_header_$ac_safe=yes"
6163 else 6189 else
6176 with_jpeg=no 6202 with_jpeg=no
6177 fi 6203 fi
6178 } 6204 }
6179 test -z "$with_jpeg" && { 6205 test -z "$with_jpeg" && {
6180 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6206 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6181 echo "configure:6182: checking for jpeg_destroy_decompress in -ljpeg" >&5 6207 echo "configure:6208: checking for jpeg_destroy_decompress in -ljpeg" >&5
6182 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6208 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6183 6209
6184 xe_check_libs=" -ljpeg " 6210 xe_check_libs=" -ljpeg "
6185 cat > conftest.$ac_ext <<EOF 6211 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure" 6212 #line 6213 "configure"
6187 #include "confdefs.h" 6213 #include "confdefs.h"
6188 /* Override any gcc2 internal prototype to avoid an error. */ 6214 /* Override any gcc2 internal prototype to avoid an error. */
6189 /* We use char because int might match the return type of a gcc2 6215 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */ 6216 builtin and then its argument prototype would still apply. */
6191 char jpeg_destroy_decompress(); 6217 char jpeg_destroy_decompress();
6192 6218
6193 int main() { 6219 int main() {
6194 jpeg_destroy_decompress() 6220 jpeg_destroy_decompress()
6195 ; return 0; } 6221 ; return 0; }
6196 EOF 6222 EOF
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6223 if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6198 rm -rf conftest* 6224 rm -rf conftest*
6199 eval "ac_cv_lib_$ac_lib_var=yes" 6225 eval "ac_cv_lib_$ac_lib_var=yes"
6200 else 6226 else
6201 echo "configure: failed program was:" >&5 6227 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5 6228 cat conftest.$ac_ext >&5
6228 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6254 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6229 fi 6255 fi
6230 6256
6231 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6257 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6232 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6258 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6233 echo "configure:6234: checking for png.h" >&5 6259 echo "configure:6260: checking for png.h" >&5
6234 6260
6235 cat > conftest.$ac_ext <<EOF 6261 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure" 6262 #line 6263 "configure"
6237 #include "confdefs.h" 6263 #include "confdefs.h"
6238 #include <png.h> 6264 #include <png.h>
6239 EOF 6265 EOF
6240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6241 { (eval echo configure:6242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6267 { (eval echo configure:6268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6242 ac_err=`grep -v '^ *+' conftest.out` 6268 ac_err=`grep -v '^ *+' conftest.out`
6243 if test -z "$ac_err"; then 6269 if test -z "$ac_err"; then
6244 rm -rf conftest* 6270 rm -rf conftest*
6245 eval "ac_cv_header_$ac_safe=yes" 6271 eval "ac_cv_header_$ac_safe=yes"
6246 else 6272 else
6258 echo "$ac_t""no" 1>&6 6284 echo "$ac_t""no" 1>&6
6259 with_png=no 6285 with_png=no
6260 fi 6286 fi
6261 } 6287 }
6262 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6288 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6263 echo "configure:6264: checking for pow" >&5 6289 echo "configure:6290: checking for pow" >&5
6264 6290
6265 cat > conftest.$ac_ext <<EOF 6291 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure" 6292 #line 6293 "configure"
6267 #include "confdefs.h" 6293 #include "confdefs.h"
6268 /* System header to define __stub macros and hopefully few prototypes, 6294 /* System header to define __stub macros and hopefully few prototypes,
6269 which can conflict with char pow(); below. */ 6295 which can conflict with char pow(); below. */
6270 #include <assert.h> 6296 #include <assert.h>
6271 /* Override any gcc2 internal prototype to avoid an error. */ 6297 /* Override any gcc2 internal prototype to avoid an error. */
6284 pow(); 6310 pow();
6285 #endif 6311 #endif
6286 6312
6287 ; return 0; } 6313 ; return 0; }
6288 EOF 6314 EOF
6289 if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6315 if { (eval echo configure:6316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6290 rm -rf conftest* 6316 rm -rf conftest*
6291 eval "ac_cv_func_pow=yes" 6317 eval "ac_cv_func_pow=yes"
6292 else 6318 else
6293 echo "configure: failed program was:" >&5 6319 echo "configure: failed program was:" >&5
6294 cat conftest.$ac_ext >&5 6320 cat conftest.$ac_ext >&5
6309 for extra_libs in "" "-lz" "-lgz"; do 6335 for extra_libs in "" "-lz" "-lgz"; do
6310 6336
6311 xe_msg_checking="for png_read_image in -lpng" 6337 xe_msg_checking="for png_read_image in -lpng"
6312 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6338 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6313 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6339 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6314 echo "configure:6315: checking "$xe_msg_checking"" >&5 6340 echo "configure:6341: checking "$xe_msg_checking"" >&5
6315 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6341 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6316 6342
6317 xe_check_libs=" -lpng $extra_libs" 6343 xe_check_libs=" -lpng $extra_libs"
6318 cat > conftest.$ac_ext <<EOF 6344 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure" 6345 #line 6346 "configure"
6320 #include "confdefs.h" 6346 #include "confdefs.h"
6321 /* Override any gcc2 internal prototype to avoid an error. */ 6347 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2 6348 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */ 6349 builtin and then its argument prototype would still apply. */
6324 char png_read_image(); 6350 char png_read_image();
6325 6351
6326 int main() { 6352 int main() {
6327 png_read_image() 6353 png_read_image()
6328 ; return 0; } 6354 ; return 0; }
6329 EOF 6355 EOF
6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6331 rm -rf conftest* 6357 rm -rf conftest*
6332 eval "ac_cv_lib_$ac_lib_var=yes" 6358 eval "ac_cv_lib_$ac_lib_var=yes"
6333 else 6359 else
6334 echo "configure: failed program was:" >&5 6360 echo "configure: failed program was:" >&5
6335 cat conftest.$ac_ext >&5 6361 cat conftest.$ac_ext >&5
6367 for extra_libs in "" "-lz" "-lgz"; do 6393 for extra_libs in "" "-lz" "-lgz"; do
6368 6394
6369 xe_msg_checking="for TIFFReadScanline in -ltiff" 6395 xe_msg_checking="for TIFFReadScanline in -ltiff"
6370 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6396 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6371 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6397 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6372 echo "configure:6373: checking "$xe_msg_checking"" >&5 6398 echo "configure:6399: checking "$xe_msg_checking"" >&5
6373 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'` 6399 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'`
6374 6400
6375 xe_check_libs=" -ltiff $extra_libs" 6401 xe_check_libs=" -ltiff $extra_libs"
6376 cat > conftest.$ac_ext <<EOF 6402 cat > conftest.$ac_ext <<EOF
6377 #line 6378 "configure" 6403 #line 6404 "configure"
6378 #include "confdefs.h" 6404 #include "confdefs.h"
6379 /* Override any gcc2 internal prototype to avoid an error. */ 6405 /* Override any gcc2 internal prototype to avoid an error. */
6380 /* We use char because int might match the return type of a gcc2 6406 /* We use char because int might match the return type of a gcc2
6381 builtin and then its argument prototype would still apply. */ 6407 builtin and then its argument prototype would still apply. */
6382 char TIFFReadScanline(); 6408 char TIFFReadScanline();
6383 6409
6384 int main() { 6410 int main() {
6385 TIFFReadScanline() 6411 TIFFReadScanline()
6386 ; return 0; } 6412 ; return 0; }
6387 EOF 6413 EOF
6388 if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6389 rm -rf conftest* 6415 rm -rf conftest*
6390 eval "ac_cv_lib_$ac_lib_var=yes" 6416 eval "ac_cv_lib_$ac_lib_var=yes"
6391 else 6417 else
6392 echo "configure: failed program was:" >&5 6418 echo "configure: failed program was:" >&5
6393 cat conftest.$ac_ext >&5 6419 cat conftest.$ac_ext >&5
6421 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi 6447 libs_x="$tiff_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tiff_libs\" to \$libs_x"; fi
6422 fi 6448 fi
6423 6449
6424 6450
6425 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 6451 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6426 echo "configure:6427: checking for XawScrollbarSetThumb in -lXaw" >&5 6452 echo "configure:6453: checking for XawScrollbarSetThumb in -lXaw" >&5
6427 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 6453 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6428 6454
6429 xe_check_libs=" -lXaw " 6455 xe_check_libs=" -lXaw "
6430 cat > conftest.$ac_ext <<EOF 6456 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure" 6457 #line 6458 "configure"
6432 #include "confdefs.h" 6458 #include "confdefs.h"
6433 /* Override any gcc2 internal prototype to avoid an error. */ 6459 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2 6460 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */ 6461 builtin and then its argument prototype would still apply. */
6436 char XawScrollbarSetThumb(); 6462 char XawScrollbarSetThumb();
6437 6463
6438 int main() { 6464 int main() {
6439 XawScrollbarSetThumb() 6465 XawScrollbarSetThumb()
6440 ; return 0; } 6466 ; return 0; }
6441 EOF 6467 EOF
6442 if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6443 rm -rf conftest* 6469 rm -rf conftest*
6444 eval "ac_cv_lib_$ac_lib_var=yes" 6470 eval "ac_cv_lib_$ac_lib_var=yes"
6445 else 6471 else
6446 echo "configure: failed program was:" >&5 6472 echo "configure: failed program was:" >&5
6447 cat conftest.$ac_ext >&5 6473 cat conftest.$ac_ext >&5
6461 6487
6462 6488
6463 if test "$have_xaw" = "yes"; then 6489 if test "$have_xaw" = "yes"; then
6464 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'` 6490 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'`
6465 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6 6491 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6
6466 echo "configure:6467: checking for X11/Xaw/Reports.h" >&5 6492 echo "configure:6493: checking for X11/Xaw/Reports.h" >&5
6467 6493
6468 cat > conftest.$ac_ext <<EOF 6494 cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure" 6495 #line 6496 "configure"
6470 #include "confdefs.h" 6496 #include "confdefs.h"
6471 #include <X11/Xaw/Reports.h> 6497 #include <X11/Xaw/Reports.h>
6472 EOF 6498 EOF
6473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6474 { (eval echo configure:6475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6500 { (eval echo configure:6501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6475 ac_err=`grep -v '^ *+' conftest.out` 6501 ac_err=`grep -v '^ *+' conftest.out`
6476 if test -z "$ac_err"; then 6502 if test -z "$ac_err"; then
6477 rm -rf conftest* 6503 rm -rf conftest*
6478 eval "ac_cv_header_$ac_safe=yes" 6504 eval "ac_cv_header_$ac_safe=yes"
6479 else 6505 else
6495 6521
6496 fi 6522 fi
6497 6523
6498 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6524 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6499 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6525 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6500 echo "configure:6501: checking for Xm/Xm.h" >&5 6526 echo "configure:6527: checking for Xm/Xm.h" >&5
6501 6527
6502 cat > conftest.$ac_ext <<EOF 6528 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure" 6529 #line 6530 "configure"
6504 #include "confdefs.h" 6530 #include "confdefs.h"
6505 #include <Xm/Xm.h> 6531 #include <Xm/Xm.h>
6506 EOF 6532 EOF
6507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6508 { (eval echo configure:6509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6534 { (eval echo configure:6535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6509 ac_err=`grep -v '^ *+' conftest.out` 6535 ac_err=`grep -v '^ *+' conftest.out`
6510 if test -z "$ac_err"; then 6536 if test -z "$ac_err"; then
6511 rm -rf conftest* 6537 rm -rf conftest*
6512 eval "ac_cv_header_$ac_safe=yes" 6538 eval "ac_cv_header_$ac_safe=yes"
6513 else 6539 else
6520 rm -f conftest* 6546 rm -f conftest*
6521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6522 echo "$ac_t""yes" 1>&6 6548 echo "$ac_t""yes" 1>&6
6523 6549
6524 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6550 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6525 echo "configure:6526: checking for XmStringFree in -lXm" >&5 6551 echo "configure:6552: checking for XmStringFree in -lXm" >&5
6526 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6552 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6527 6553
6528 xe_check_libs=" -lXm " 6554 xe_check_libs=" -lXm "
6529 cat > conftest.$ac_ext <<EOF 6555 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure" 6556 #line 6557 "configure"
6531 #include "confdefs.h" 6557 #include "confdefs.h"
6532 /* Override any gcc2 internal prototype to avoid an error. */ 6558 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2 6559 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */ 6560 builtin and then its argument prototype would still apply. */
6535 char XmStringFree(); 6561 char XmStringFree();
6536 6562
6537 int main() { 6563 int main() {
6538 XmStringFree() 6564 XmStringFree()
6539 ; return 0; } 6565 ; return 0; }
6540 EOF 6566 EOF
6541 if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6567 if { (eval echo configure:6568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6542 rm -rf conftest* 6568 rm -rf conftest*
6543 eval "ac_cv_lib_$ac_lib_var=yes" 6569 eval "ac_cv_lib_$ac_lib_var=yes"
6544 else 6570 else
6545 echo "configure: failed program was:" >&5 6571 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5 6572 cat conftest.$ac_ext >&5
6785 6811
6786 test -z "$with_mule" && with_mule=no 6812 test -z "$with_mule" && with_mule=no
6787 6813
6788 if test "$with_mule" = "yes" ; then 6814 if test "$with_mule" = "yes" ; then
6789 echo "checking for Mule-related features" 1>&6 6815 echo "checking for Mule-related features" 1>&6
6790 echo "configure:6791: checking for Mule-related features" >&5 6816 echo "configure:6817: checking for Mule-related features" >&5
6791 { test "$extra_verbose" = "yes" && cat << \EOF 6817 { test "$extra_verbose" = "yes" && cat << \EOF
6792 Defining MULE 6818 Defining MULE
6793 EOF 6819 EOF
6794 cat >> confdefs.h <<\EOF 6820 cat >> confdefs.h <<\EOF
6795 #define MULE 1 6821 #define MULE 1
6802 6828
6803 for ac_hdr in libintl.h 6829 for ac_hdr in libintl.h
6804 do 6830 do
6805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6807 echo "configure:6808: checking for $ac_hdr" >&5 6833 echo "configure:6834: checking for $ac_hdr" >&5
6808 6834
6809 cat > conftest.$ac_ext <<EOF 6835 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure" 6836 #line 6837 "configure"
6811 #include "confdefs.h" 6837 #include "confdefs.h"
6812 #include <$ac_hdr> 6838 #include <$ac_hdr>
6813 EOF 6839 EOF
6814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6815 { (eval echo configure:6816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6841 { (eval echo configure:6842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6816 ac_err=`grep -v '^ *+' conftest.out` 6842 ac_err=`grep -v '^ *+' conftest.out`
6817 if test -z "$ac_err"; then 6843 if test -z "$ac_err"; then
6818 rm -rf conftest* 6844 rm -rf conftest*
6819 eval "ac_cv_header_$ac_safe=yes" 6845 eval "ac_cv_header_$ac_safe=yes"
6820 else 6846 else
6841 fi 6867 fi
6842 done 6868 done
6843 6869
6844 6870
6845 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6871 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6846 echo "configure:6847: checking for strerror in -lintl" >&5 6872 echo "configure:6873: checking for strerror in -lintl" >&5
6847 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6873 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6848 6874
6849 xe_check_libs=" -lintl " 6875 xe_check_libs=" -lintl "
6850 cat > conftest.$ac_ext <<EOF 6876 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure" 6877 #line 6878 "configure"
6852 #include "confdefs.h" 6878 #include "confdefs.h"
6853 /* Override any gcc2 internal prototype to avoid an error. */ 6879 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2 6880 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */ 6881 builtin and then its argument prototype would still apply. */
6856 char strerror(); 6882 char strerror();
6857 6883
6858 int main() { 6884 int main() {
6859 strerror() 6885 strerror()
6860 ; return 0; } 6886 ; return 0; }
6861 EOF 6887 EOF
6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6863 rm -rf conftest* 6889 rm -rf conftest*
6864 eval "ac_cv_lib_$ac_lib_var=yes" 6890 eval "ac_cv_lib_$ac_lib_var=yes"
6865 else 6891 else
6866 echo "configure: failed program was:" >&5 6892 echo "configure: failed program was:" >&5
6867 cat conftest.$ac_ext >&5 6893 cat conftest.$ac_ext >&5
6890 fi 6916 fi
6891 6917
6892 6918
6893 6919
6894 echo "checking for Mule input methods" 1>&6 6920 echo "checking for Mule input methods" 1>&6
6895 echo "configure:6896: checking for Mule input methods" >&5 6921 echo "configure:6922: checking for Mule input methods" >&5
6896 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6922 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6897 case "$with_xim" in "" | "yes" ) 6923 case "$with_xim" in "" | "yes" )
6898 echo "checking for XIM" 1>&6 6924 echo "checking for XIM" 1>&6
6899 echo "configure:6900: checking for XIM" >&5 6925 echo "configure:6926: checking for XIM" >&5
6900 6926
6901 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6927 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6902 echo "configure:6903: checking for XmImMbLookupString in -lXm" >&5 6928 echo "configure:6929: checking for XmImMbLookupString in -lXm" >&5
6903 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6929 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6904 6930
6905 xe_check_libs=" -lXm " 6931 xe_check_libs=" -lXm "
6906 cat > conftest.$ac_ext <<EOF 6932 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure" 6933 #line 6934 "configure"
6908 #include "confdefs.h" 6934 #include "confdefs.h"
6909 /* Override any gcc2 internal prototype to avoid an error. */ 6935 /* Override any gcc2 internal prototype to avoid an error. */
6910 /* We use char because int might match the return type of a gcc2 6936 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */ 6937 builtin and then its argument prototype would still apply. */
6912 char XmImMbLookupString(); 6938 char XmImMbLookupString();
6913 6939
6914 int main() { 6940 int main() {
6915 XmImMbLookupString() 6941 XmImMbLookupString()
6916 ; return 0; } 6942 ; return 0; }
6917 EOF 6943 EOF
6918 if { (eval echo configure:6919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6944 if { (eval echo configure:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6919 rm -rf conftest* 6945 rm -rf conftest*
6920 eval "ac_cv_lib_$ac_lib_var=yes" 6946 eval "ac_cv_lib_$ac_lib_var=yes"
6921 else 6947 else
6922 echo "configure: failed program was:" >&5 6948 echo "configure: failed program was:" >&5
6923 cat conftest.$ac_ext >&5 6949 cat conftest.$ac_ext >&5
6976 if test "$with_xfs" = "yes"; then 7002 if test "$with_xfs" = "yes"; then
6977 with_xfs=no 7003 with_xfs=no
6978 fi 7004 fi
6979 else case "$with_xfs" in "yes" ) 7005 else case "$with_xfs" in "yes" )
6980 echo "checking for XFontSet" 1>&6 7006 echo "checking for XFontSet" 1>&6
6981 echo "configure:6982: checking for XFontSet" >&5 7007 echo "configure:7008: checking for XFontSet" >&5
6982 7008
6983 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 7009 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6984 echo "configure:6985: checking for XmbDrawString in -lX11" >&5 7010 echo "configure:7011: checking for XmbDrawString in -lX11" >&5
6985 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 7011 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6986 7012
6987 xe_check_libs=" -lX11 " 7013 xe_check_libs=" -lX11 "
6988 cat > conftest.$ac_ext <<EOF 7014 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure" 7015 #line 7016 "configure"
6990 #include "confdefs.h" 7016 #include "confdefs.h"
6991 /* Override any gcc2 internal prototype to avoid an error. */ 7017 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2 7018 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */ 7019 builtin and then its argument prototype would still apply. */
6994 char XmbDrawString(); 7020 char XmbDrawString();
6995 7021
6996 int main() { 7022 int main() {
6997 XmbDrawString() 7023 XmbDrawString()
6998 ; return 0; } 7024 ; return 0; }
6999 EOF 7025 EOF
7000 if { (eval echo configure:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7026 if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7001 rm -rf conftest* 7027 rm -rf conftest*
7002 eval "ac_cv_lib_$ac_lib_var=yes" 7028 eval "ac_cv_lib_$ac_lib_var=yes"
7003 else 7029 else
7004 echo "configure: failed program was:" >&5 7030 echo "configure: failed program was:" >&5
7005 cat conftest.$ac_ext >&5 7031 cat conftest.$ac_ext >&5
7034 fi 7060 fi
7035 fi 7061 fi
7036 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7062 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7037 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7063 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7038 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7064 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7039 echo "configure:7040: checking for wnn/jllib.h" >&5 7065 echo "configure:7066: checking for wnn/jllib.h" >&5
7040 7066
7041 cat > conftest.$ac_ext <<EOF 7067 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure" 7068 #line 7069 "configure"
7043 #include "confdefs.h" 7069 #include "confdefs.h"
7044 #include <wnn/jllib.h> 7070 #include <wnn/jllib.h>
7045 EOF 7071 EOF
7046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7047 { (eval echo configure:7048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7073 { (eval echo configure:7074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7048 ac_err=`grep -v '^ *+' conftest.out` 7074 ac_err=`grep -v '^ *+' conftest.out`
7049 if test -z "$ac_err"; then 7075 if test -z "$ac_err"; then
7050 rm -rf conftest* 7076 rm -rf conftest*
7051 eval "ac_cv_header_$ac_safe=yes" 7077 eval "ac_cv_header_$ac_safe=yes"
7052 else 7078 else
7067 } 7093 }
7068 if test "$with_wnn" != "no"; then 7094 if test "$with_wnn" != "no"; then
7069 for ac_func in crypt 7095 for ac_func in crypt
7070 do 7096 do
7071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_func" >&5 7098 echo "configure:7099: checking for $ac_func" >&5
7073 7099
7074 cat > conftest.$ac_ext <<EOF 7100 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure" 7101 #line 7102 "configure"
7076 #include "confdefs.h" 7102 #include "confdefs.h"
7077 /* System header to define __stub macros and hopefully few prototypes, 7103 /* System header to define __stub macros and hopefully few prototypes,
7078 which can conflict with char $ac_func(); below. */ 7104 which can conflict with char $ac_func(); below. */
7079 #include <assert.h> 7105 #include <assert.h>
7080 /* Override any gcc2 internal prototype to avoid an error. */ 7106 /* Override any gcc2 internal prototype to avoid an error. */
7093 $ac_func(); 7119 $ac_func();
7094 #endif 7120 #endif
7095 7121
7096 ; return 0; } 7122 ; return 0; }
7097 EOF 7123 EOF
7098 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7099 rm -rf conftest* 7125 rm -rf conftest*
7100 eval "ac_cv_func_$ac_func=yes" 7126 eval "ac_cv_func_$ac_func=yes"
7101 else 7127 else
7102 echo "configure: failed program was:" >&5 7128 echo "configure: failed program was:" >&5
7103 cat conftest.$ac_ext >&5 7129 cat conftest.$ac_ext >&5
7122 fi 7148 fi
7123 done 7149 done
7124 7150
7125 test "$ac_cv_func_crypt" != "yes" && { 7151 test "$ac_cv_func_crypt" != "yes" && {
7126 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7152 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7127 echo "configure:7128: checking for crypt in -lcrypt" >&5 7153 echo "configure:7154: checking for crypt in -lcrypt" >&5
7128 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7154 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7129 7155
7130 xe_check_libs=" -lcrypt " 7156 xe_check_libs=" -lcrypt "
7131 cat > conftest.$ac_ext <<EOF 7157 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure" 7158 #line 7159 "configure"
7133 #include "confdefs.h" 7159 #include "confdefs.h"
7134 /* Override any gcc2 internal prototype to avoid an error. */ 7160 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2 7161 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */ 7162 builtin and then its argument prototype would still apply. */
7137 char crypt(); 7163 char crypt();
7138 7164
7139 int main() { 7165 int main() {
7140 crypt() 7166 crypt()
7141 ; return 0; } 7167 ; return 0; }
7142 EOF 7168 EOF
7143 if { (eval echo configure:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7144 rm -rf conftest* 7170 rm -rf conftest*
7145 eval "ac_cv_lib_$ac_lib_var=yes" 7171 eval "ac_cv_lib_$ac_lib_var=yes"
7146 else 7172 else
7147 echo "configure: failed program was:" >&5 7173 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5 7174 cat conftest.$ac_ext >&5
7172 7198
7173 } 7199 }
7174 fi 7200 fi
7175 test -z "$with_wnn" && { 7201 test -z "$with_wnn" && {
7176 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7202 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7177 echo "configure:7178: checking for jl_dic_list_e in -lwnn" >&5 7203 echo "configure:7204: checking for jl_dic_list_e in -lwnn" >&5
7178 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7204 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7179 7205
7180 xe_check_libs=" -lwnn " 7206 xe_check_libs=" -lwnn "
7181 cat > conftest.$ac_ext <<EOF 7207 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure" 7208 #line 7209 "configure"
7183 #include "confdefs.h" 7209 #include "confdefs.h"
7184 /* Override any gcc2 internal prototype to avoid an error. */ 7210 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2 7211 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */ 7212 builtin and then its argument prototype would still apply. */
7187 char jl_dic_list_e(); 7213 char jl_dic_list_e();
7188 7214
7189 int main() { 7215 int main() {
7190 jl_dic_list_e() 7216 jl_dic_list_e()
7191 ; return 0; } 7217 ; return 0; }
7192 EOF 7218 EOF
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7194 rm -rf conftest* 7220 rm -rf conftest*
7195 eval "ac_cv_lib_$ac_lib_var=yes" 7221 eval "ac_cv_lib_$ac_lib_var=yes"
7196 else 7222 else
7197 echo "configure: failed program was:" >&5 7223 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5 7224 cat conftest.$ac_ext >&5
7225 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7251 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7226 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7252 echo " xemacs will be linked with \"mule-wnnfns.o\""
7227 fi 7253 fi
7228 7254
7229 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7255 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7230 echo "configure:7231: checking for jl_fi_dic_list in -lwnn" >&5 7256 echo "configure:7257: checking for jl_fi_dic_list in -lwnn" >&5
7231 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7257 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7232 7258
7233 xe_check_libs=" -lwnn " 7259 xe_check_libs=" -lwnn "
7234 cat > conftest.$ac_ext <<EOF 7260 cat > conftest.$ac_ext <<EOF
7235 #line 7236 "configure" 7261 #line 7262 "configure"
7236 #include "confdefs.h" 7262 #include "confdefs.h"
7237 /* Override any gcc2 internal prototype to avoid an error. */ 7263 /* Override any gcc2 internal prototype to avoid an error. */
7238 /* We use char because int might match the return type of a gcc2 7264 /* We use char because int might match the return type of a gcc2
7239 builtin and then its argument prototype would still apply. */ 7265 builtin and then its argument prototype would still apply. */
7240 char jl_fi_dic_list(); 7266 char jl_fi_dic_list();
7241 7267
7242 int main() { 7268 int main() {
7243 jl_fi_dic_list() 7269 jl_fi_dic_list()
7244 ; return 0; } 7270 ; return 0; }
7245 EOF 7271 EOF
7246 if { (eval echo configure:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7272 if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7247 rm -rf conftest* 7273 rm -rf conftest*
7248 eval "ac_cv_lib_$ac_lib_var=yes" 7274 eval "ac_cv_lib_$ac_lib_var=yes"
7249 else 7275 else
7250 echo "configure: failed program was:" >&5 7276 echo "configure: failed program was:" >&5
7251 cat conftest.$ac_ext >&5 7277 cat conftest.$ac_ext >&5
7273 7299
7274 fi 7300 fi
7275 7301
7276 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7302 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7277 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7303 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7278 echo "configure:7279: checking for canna/RK.h" >&5 7304 echo "configure:7305: checking for canna/RK.h" >&5
7279 7305
7280 cat > conftest.$ac_ext <<EOF 7306 cat > conftest.$ac_ext <<EOF
7281 #line 7282 "configure" 7307 #line 7308 "configure"
7282 #include "confdefs.h" 7308 #include "confdefs.h"
7283 #include <canna/RK.h> 7309 #include <canna/RK.h>
7284 EOF 7310 EOF
7285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7286 { (eval echo configure:7287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7312 { (eval echo configure:7313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7287 ac_err=`grep -v '^ *+' conftest.out` 7313 ac_err=`grep -v '^ *+' conftest.out`
7288 if test -z "$ac_err"; then 7314 if test -z "$ac_err"; then
7289 rm -rf conftest* 7315 rm -rf conftest*
7290 eval "ac_cv_header_$ac_safe=yes" 7316 eval "ac_cv_header_$ac_safe=yes"
7291 else 7317 else
7304 with_canna=no 7330 with_canna=no
7305 fi 7331 fi
7306 } 7332 }
7307 test -z "$with_canna" && { 7333 test -z "$with_canna" && {
7308 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7334 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7309 echo "configure:7310: checking for RkBgnBun in -lRKC" >&5 7335 echo "configure:7336: checking for RkBgnBun in -lRKC" >&5
7310 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7336 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7311 7337
7312 xe_check_libs=" -lRKC " 7338 xe_check_libs=" -lRKC "
7313 cat > conftest.$ac_ext <<EOF 7339 cat > conftest.$ac_ext <<EOF
7314 #line 7315 "configure" 7340 #line 7341 "configure"
7315 #include "confdefs.h" 7341 #include "confdefs.h"
7316 /* Override any gcc2 internal prototype to avoid an error. */ 7342 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2 7343 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */ 7344 builtin and then its argument prototype would still apply. */
7319 char RkBgnBun(); 7345 char RkBgnBun();
7320 7346
7321 int main() { 7347 int main() {
7322 RkBgnBun() 7348 RkBgnBun()
7323 ; return 0; } 7349 ; return 0; }
7324 EOF 7350 EOF
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7351 if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7326 rm -rf conftest* 7352 rm -rf conftest*
7327 eval "ac_cv_lib_$ac_lib_var=yes" 7353 eval "ac_cv_lib_$ac_lib_var=yes"
7328 else 7354 else
7329 echo "configure: failed program was:" >&5 7355 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5 7356 cat conftest.$ac_ext >&5
7343 fi 7369 fi
7344 7370
7345 } 7371 }
7346 test -z "$with_canna" && { 7372 test -z "$with_canna" && {
7347 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7373 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7348 echo "configure:7349: checking for jrKanjiControl in -lcanna" >&5 7374 echo "configure:7375: checking for jrKanjiControl in -lcanna" >&5
7349 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7375 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7350 7376
7351 xe_check_libs=" -lcanna " 7377 xe_check_libs=" -lcanna "
7352 cat > conftest.$ac_ext <<EOF 7378 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure" 7379 #line 7380 "configure"
7354 #include "confdefs.h" 7380 #include "confdefs.h"
7355 /* Override any gcc2 internal prototype to avoid an error. */ 7381 /* Override any gcc2 internal prototype to avoid an error. */
7356 /* We use char because int might match the return type of a gcc2 7382 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */ 7383 builtin and then its argument prototype would still apply. */
7358 char jrKanjiControl(); 7384 char jrKanjiControl();
7359 7385
7360 int main() { 7386 int main() {
7361 jrKanjiControl() 7387 jrKanjiControl()
7362 ; return 0; } 7388 ; return 0; }
7363 EOF 7389 EOF
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7390 if { (eval echo configure:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7365 rm -rf conftest* 7391 rm -rf conftest*
7366 eval "ac_cv_lib_$ac_lib_var=yes" 7392 eval "ac_cv_lib_$ac_lib_var=yes"
7367 else 7393 else
7368 echo "configure: failed program was:" >&5 7394 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5 7395 cat conftest.$ac_ext >&5
7459 fi 7485 fi
7460 7486
7461 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid 7487 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset ulimit usleep utimes waitpid
7462 do 7488 do
7463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7464 echo "configure:7465: checking for $ac_func" >&5 7490 echo "configure:7491: checking for $ac_func" >&5
7465 7491
7466 cat > conftest.$ac_ext <<EOF 7492 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure" 7493 #line 7494 "configure"
7468 #include "confdefs.h" 7494 #include "confdefs.h"
7469 /* System header to define __stub macros and hopefully few prototypes, 7495 /* System header to define __stub macros and hopefully few prototypes,
7470 which can conflict with char $ac_func(); below. */ 7496 which can conflict with char $ac_func(); below. */
7471 #include <assert.h> 7497 #include <assert.h>
7472 /* Override any gcc2 internal prototype to avoid an error. */ 7498 /* Override any gcc2 internal prototype to avoid an error. */
7485 $ac_func(); 7511 $ac_func();
7486 #endif 7512 #endif
7487 7513
7488 ; return 0; } 7514 ; return 0; }
7489 EOF 7515 EOF
7490 if { (eval echo configure:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7491 rm -rf conftest* 7517 rm -rf conftest*
7492 eval "ac_cv_func_$ac_func=yes" 7518 eval "ac_cv_func_$ac_func=yes"
7493 else 7519 else
7494 echo "configure: failed program was:" >&5 7520 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&5 7521 cat conftest.$ac_ext >&5
7522 fi ;; 7548 fi ;;
7523 * ) 7549 * )
7524 for ac_func in realpath 7550 for ac_func in realpath
7525 do 7551 do
7526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7527 echo "configure:7528: checking for $ac_func" >&5 7553 echo "configure:7554: checking for $ac_func" >&5
7528 7554
7529 cat > conftest.$ac_ext <<EOF 7555 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure" 7556 #line 7557 "configure"
7531 #include "confdefs.h" 7557 #include "confdefs.h"
7532 /* System header to define __stub macros and hopefully few prototypes, 7558 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func(); below. */ 7559 which can conflict with char $ac_func(); below. */
7534 #include <assert.h> 7560 #include <assert.h>
7535 /* Override any gcc2 internal prototype to avoid an error. */ 7561 /* Override any gcc2 internal prototype to avoid an error. */
7548 $ac_func(); 7574 $ac_func();
7549 #endif 7575 #endif
7550 7576
7551 ; return 0; } 7577 ; return 0; }
7552 EOF 7578 EOF
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7579 if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7554 rm -rf conftest* 7580 rm -rf conftest*
7555 eval "ac_cv_func_$ac_func=yes" 7581 eval "ac_cv_func_$ac_func=yes"
7556 else 7582 else
7557 echo "configure: failed program was:" >&5 7583 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5 7584 cat conftest.$ac_ext >&5
7581 echo " xemacs will be linked with \"realpath.o\"" 7607 echo " xemacs will be linked with \"realpath.o\""
7582 fi ;; 7608 fi ;;
7583 esac 7609 esac
7584 7610
7585 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7611 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7586 echo "configure:7587: checking whether netdb declares h_errno" >&5 7612 echo "configure:7613: checking whether netdb declares h_errno" >&5
7587 cat > conftest.$ac_ext <<EOF 7613 cat > conftest.$ac_ext <<EOF
7588 #line 7589 "configure" 7614 #line 7615 "configure"
7589 #include "confdefs.h" 7615 #include "confdefs.h"
7590 #include <netdb.h> 7616 #include <netdb.h>
7591 int main() { 7617 int main() {
7592 return h_errno; 7618 return h_errno;
7593 ; return 0; } 7619 ; return 0; }
7594 EOF 7620 EOF
7595 if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7596 rm -rf conftest* 7622 rm -rf conftest*
7597 echo "$ac_t""yes" 1>&6 7623 echo "$ac_t""yes" 1>&6
7598 { test "$extra_verbose" = "yes" && cat << \EOF 7624 { test "$extra_verbose" = "yes" && cat << \EOF
7599 Defining HAVE_H_ERRNO 7625 Defining HAVE_H_ERRNO
7600 EOF 7626 EOF
7610 echo "$ac_t""no" 1>&6 7636 echo "$ac_t""no" 1>&6
7611 fi 7637 fi
7612 rm -f conftest* 7638 rm -f conftest*
7613 7639
7614 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7640 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7615 echo "configure:7616: checking for sigsetjmp" >&5 7641 echo "configure:7642: checking for sigsetjmp" >&5
7616 cat > conftest.$ac_ext <<EOF 7642 cat > conftest.$ac_ext <<EOF
7617 #line 7618 "configure" 7643 #line 7644 "configure"
7618 #include "confdefs.h" 7644 #include "confdefs.h"
7619 #include <setjmp.h> 7645 #include <setjmp.h>
7620 int main() { 7646 int main() {
7621 sigjmp_buf bar; sigsetjmp (bar, 0); 7647 sigjmp_buf bar; sigsetjmp (bar, 0);
7622 ; return 0; } 7648 ; return 0; }
7623 EOF 7649 EOF
7624 if { (eval echo configure:7625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7650 if { (eval echo configure:7651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7625 rm -rf conftest* 7651 rm -rf conftest*
7626 echo "$ac_t""yes" 1>&6 7652 echo "$ac_t""yes" 1>&6
7627 { test "$extra_verbose" = "yes" && cat << \EOF 7653 { test "$extra_verbose" = "yes" && cat << \EOF
7628 Defining HAVE_SIGSETJMP 7654 Defining HAVE_SIGSETJMP
7629 EOF 7655 EOF
7639 echo "$ac_t""no" 1>&6 7665 echo "$ac_t""no" 1>&6
7640 fi 7666 fi
7641 rm -f conftest* 7667 rm -f conftest*
7642 7668
7643 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7669 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7644 echo "configure:7645: checking whether localtime caches TZ" >&5 7670 echo "configure:7671: checking whether localtime caches TZ" >&5
7645 7671
7646 if test "$ac_cv_func_tzset" = "yes"; then 7672 if test "$ac_cv_func_tzset" = "yes"; then
7647 cat > conftest.$ac_ext <<EOF 7673 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure" 7674 #line 7675 "configure"
7649 #include "confdefs.h" 7675 #include "confdefs.h"
7650 #include <time.h> 7676 #include <time.h>
7651 #if STDC_HEADERS 7677 #if STDC_HEADERS
7652 # include <stdlib.h> 7678 # include <stdlib.h>
7653 #endif 7679 #endif
7678 if (localtime (&now)->tm_hour != hour_unset) 7704 if (localtime (&now)->tm_hour != hour_unset)
7679 exit (1); 7705 exit (1);
7680 exit (0); 7706 exit (0);
7681 } 7707 }
7682 EOF 7708 EOF
7683 if { (eval echo configure:7684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7709 if { (eval echo configure:7710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7684 then 7710 then
7685 emacs_cv_localtime_cache=no 7711 emacs_cv_localtime_cache=no
7686 else 7712 else
7687 echo "configure: failed program was:" >&5 7713 echo "configure: failed program was:" >&5
7688 cat conftest.$ac_ext >&5 7714 cat conftest.$ac_ext >&5
7707 7733
7708 fi 7734 fi
7709 7735
7710 if test "$HAVE_TIMEVAL" = "yes"; then 7736 if test "$HAVE_TIMEVAL" = "yes"; then
7711 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7737 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7712 echo "configure:7713: checking whether gettimeofday cannot accept two arguments" >&5 7738 echo "configure:7739: checking whether gettimeofday cannot accept two arguments" >&5
7713 cat > conftest.$ac_ext <<EOF 7739 cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure" 7740 #line 7741 "configure"
7715 #include "confdefs.h" 7741 #include "confdefs.h"
7716 7742
7717 #ifdef TIME_WITH_SYS_TIME 7743 #ifdef TIME_WITH_SYS_TIME
7718 #include <sys/time.h> 7744 #include <sys/time.h>
7719 #include <time.h> 7745 #include <time.h>
7731 struct timezone dummy; 7757 struct timezone dummy;
7732 gettimeofday (&time, &dummy); 7758 gettimeofday (&time, &dummy);
7733 7759
7734 ; return 0; } 7760 ; return 0; }
7735 EOF 7761 EOF
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7737 rm -rf conftest* 7763 rm -rf conftest*
7738 echo "$ac_t""no" 1>&6 7764 echo "$ac_t""no" 1>&6
7739 else 7765 else
7740 echo "configure: failed program was:" >&5 7766 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5 7767 cat conftest.$ac_ext >&5
7753 rm -f conftest* 7779 rm -f conftest*
7754 fi 7780 fi
7755 7781
7756 7782
7757 echo $ac_n "checking for inline""... $ac_c" 1>&6 7783 echo $ac_n "checking for inline""... $ac_c" 1>&6
7758 echo "configure:7759: checking for inline" >&5 7784 echo "configure:7785: checking for inline" >&5
7759 7785
7760 ac_cv_c_inline=no 7786 ac_cv_c_inline=no
7761 for ac_kw in inline __inline__ __inline; do 7787 for ac_kw in inline __inline__ __inline; do
7762 cat > conftest.$ac_ext <<EOF 7788 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure" 7789 #line 7790 "configure"
7764 #include "confdefs.h" 7790 #include "confdefs.h"
7765 7791
7766 int main() { 7792 int main() {
7767 } $ac_kw foo() { 7793 } $ac_kw foo() {
7768 ; return 0; } 7794 ; return 0; }
7769 EOF 7795 EOF
7770 if { (eval echo configure:7771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7796 if { (eval echo configure:7797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7771 rm -rf conftest* 7797 rm -rf conftest*
7772 ac_cv_c_inline=$ac_kw; break 7798 ac_cv_c_inline=$ac_kw; break
7773 else 7799 else
7774 echo "configure: failed program was:" >&5 7800 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5 7801 cat conftest.$ac_ext >&5
7815 7841
7816 7842
7817 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7843 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7818 # for constant arguments. Useless! 7844 # for constant arguments. Useless!
7819 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7845 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7820 echo "configure:7821: checking for working alloca.h" >&5 7846 echo "configure:7847: checking for working alloca.h" >&5
7821 7847
7822 cat > conftest.$ac_ext <<EOF 7848 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure" 7849 #line 7850 "configure"
7824 #include "confdefs.h" 7850 #include "confdefs.h"
7825 #include <alloca.h> 7851 #include <alloca.h>
7826 int main() { 7852 int main() {
7827 char *p = alloca(2 * sizeof(int)); 7853 char *p = alloca(2 * sizeof(int));
7828 ; return 0; } 7854 ; return 0; }
7829 EOF 7855 EOF
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7856 if { (eval echo configure:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7831 rm -rf conftest* 7857 rm -rf conftest*
7832 ac_cv_header_alloca_h=yes 7858 ac_cv_header_alloca_h=yes
7833 else 7859 else
7834 echo "configure: failed program was:" >&5 7860 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5 7861 cat conftest.$ac_ext >&5
7849 } 7875 }
7850 7876
7851 fi 7877 fi
7852 7878
7853 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7879 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7854 echo "configure:7855: checking for alloca" >&5 7880 echo "configure:7881: checking for alloca" >&5
7855 7881
7856 cat > conftest.$ac_ext <<EOF 7882 cat > conftest.$ac_ext <<EOF
7857 #line 7858 "configure" 7883 #line 7884 "configure"
7858 #include "confdefs.h" 7884 #include "confdefs.h"
7859 7885
7860 #ifdef __GNUC__ 7886 #ifdef __GNUC__
7861 # define alloca __builtin_alloca 7887 # define alloca __builtin_alloca
7862 #else 7888 #else
7875 7901
7876 int main() { 7902 int main() {
7877 char *p = (char *) alloca(1); 7903 char *p = (char *) alloca(1);
7878 ; return 0; } 7904 ; return 0; }
7879 EOF 7905 EOF
7880 if { (eval echo configure:7881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7906 if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7881 rm -rf conftest* 7907 rm -rf conftest*
7882 ac_cv_func_alloca_works=yes 7908 ac_cv_func_alloca_works=yes
7883 else 7909 else
7884 echo "configure: failed program was:" >&5 7910 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5 7911 cat conftest.$ac_ext >&5
7914 EOF 7940 EOF
7915 } 7941 }
7916 7942
7917 7943
7918 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7944 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7919 echo "configure:7920: checking whether alloca needs Cray hooks" >&5 7945 echo "configure:7946: checking whether alloca needs Cray hooks" >&5
7920 7946
7921 cat > conftest.$ac_ext <<EOF 7947 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure" 7948 #line 7949 "configure"
7923 #include "confdefs.h" 7949 #include "confdefs.h"
7924 #if defined(CRAY) && ! defined(CRAY2) 7950 #if defined(CRAY) && ! defined(CRAY2)
7925 webecray 7951 webecray
7926 #else 7952 #else
7927 wenotbecray 7953 wenotbecray
7941 7967
7942 echo "$ac_t""$ac_cv_os_cray" 1>&6 7968 echo "$ac_t""$ac_cv_os_cray" 1>&6
7943 if test $ac_cv_os_cray = yes; then 7969 if test $ac_cv_os_cray = yes; then
7944 for ac_func in _getb67 GETB67 getb67; do 7970 for ac_func in _getb67 GETB67 getb67; do
7945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7946 echo "configure:7947: checking for $ac_func" >&5 7972 echo "configure:7973: checking for $ac_func" >&5
7947 7973
7948 cat > conftest.$ac_ext <<EOF 7974 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure" 7975 #line 7976 "configure"
7950 #include "confdefs.h" 7976 #include "confdefs.h"
7951 /* System header to define __stub macros and hopefully few prototypes, 7977 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char $ac_func(); below. */ 7978 which can conflict with char $ac_func(); below. */
7953 #include <assert.h> 7979 #include <assert.h>
7954 /* Override any gcc2 internal prototype to avoid an error. */ 7980 /* Override any gcc2 internal prototype to avoid an error. */
7967 $ac_func(); 7993 $ac_func();
7968 #endif 7994 #endif
7969 7995
7970 ; return 0; } 7996 ; return 0; }
7971 EOF 7997 EOF
7972 if { (eval echo configure:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7998 if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7973 rm -rf conftest* 7999 rm -rf conftest*
7974 eval "ac_cv_func_$ac_func=yes" 8000 eval "ac_cv_func_$ac_func=yes"
7975 else 8001 else
7976 echo "configure: failed program was:" >&5 8002 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5 8003 cat conftest.$ac_ext >&5
7997 8023
7998 done 8024 done
7999 fi 8025 fi
8000 8026
8001 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 8027 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8002 echo "configure:8003: checking stack direction for C alloca" >&5 8028 echo "configure:8029: checking stack direction for C alloca" >&5
8003 8029
8004 cat > conftest.$ac_ext <<EOF 8030 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure" 8031 #line 8032 "configure"
8006 #include "confdefs.h" 8032 #include "confdefs.h"
8007 find_stack_direction () 8033 find_stack_direction ()
8008 { 8034 {
8009 static char *addr = 0; 8035 static char *addr = 0;
8010 auto char dummy; 8036 auto char dummy;
8019 main () 8045 main ()
8020 { 8046 {
8021 exit (find_stack_direction() < 0); 8047 exit (find_stack_direction() < 0);
8022 } 8048 }
8023 EOF 8049 EOF
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8050 if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8025 then 8051 then
8026 ac_cv_c_stack_direction=1 8052 ac_cv_c_stack_direction=1
8027 else 8053 else
8028 echo "configure: failed program was:" >&5 8054 echo "configure: failed program was:" >&5
8029 cat conftest.$ac_ext >&5 8055 cat conftest.$ac_ext >&5
8047 echo " xemacs will be linked with \"$ALLOCA\"" 8073 echo " xemacs will be linked with \"$ALLOCA\""
8048 fi 8074 fi
8049 8075
8050 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8076 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8051 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8077 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8052 echo "configure:8053: checking for vfork.h" >&5 8078 echo "configure:8079: checking for vfork.h" >&5
8053 8079
8054 cat > conftest.$ac_ext <<EOF 8080 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure" 8081 #line 8082 "configure"
8056 #include "confdefs.h" 8082 #include "confdefs.h"
8057 #include <vfork.h> 8083 #include <vfork.h>
8058 EOF 8084 EOF
8059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8060 { (eval echo configure:8061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8086 { (eval echo configure:8087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8061 ac_err=`grep -v '^ *+' conftest.out` 8087 ac_err=`grep -v '^ *+' conftest.out`
8062 if test -z "$ac_err"; then 8088 if test -z "$ac_err"; then
8063 rm -rf conftest* 8089 rm -rf conftest*
8064 eval "ac_cv_header_$ac_safe=yes" 8090 eval "ac_cv_header_$ac_safe=yes"
8065 else 8091 else
8083 else 8109 else
8084 echo "$ac_t""no" 1>&6 8110 echo "$ac_t""no" 1>&6
8085 fi 8111 fi
8086 8112
8087 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8113 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8088 echo "configure:8089: checking for working vfork" >&5 8114 echo "configure:8115: checking for working vfork" >&5
8089 8115
8090 cat > conftest.$ac_ext <<EOF 8116 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure" 8117 #line 8118 "configure"
8092 #include "confdefs.h" 8118 #include "confdefs.h"
8093 /* Thanks to Paul Eggert for this test. */ 8119 /* Thanks to Paul Eggert for this test. */
8094 #include <stdio.h> 8120 #include <stdio.h>
8095 #include <sys/types.h> 8121 #include <sys/types.h>
8096 #include <sys/stat.h> 8122 #include <sys/stat.h>
8181 || fstat(fileno(stdout), &st) != 0 8207 || fstat(fileno(stdout), &st) != 0
8182 ); 8208 );
8183 } 8209 }
8184 } 8210 }
8185 EOF 8211 EOF
8186 if { (eval echo configure:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8212 if { (eval echo configure:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8187 then 8213 then
8188 ac_cv_func_vfork_works=yes 8214 ac_cv_func_vfork_works=yes
8189 else 8215 else
8190 echo "configure: failed program was:" >&5 8216 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5 8217 cat conftest.$ac_ext >&5
8206 8232
8207 fi 8233 fi
8208 8234
8209 8235
8210 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8236 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8211 echo "configure:8212: checking for working strcoll" >&5 8237 echo "configure:8238: checking for working strcoll" >&5
8212 8238
8213 cat > conftest.$ac_ext <<EOF 8239 cat > conftest.$ac_ext <<EOF
8214 #line 8215 "configure" 8240 #line 8241 "configure"
8215 #include "confdefs.h" 8241 #include "confdefs.h"
8216 #include <string.h> 8242 #include <string.h>
8217 main () 8243 main ()
8218 { 8244 {
8219 exit (strcoll ("abc", "def") >= 0 || 8245 exit (strcoll ("abc", "def") >= 0 ||
8220 strcoll ("ABC", "DEF") >= 0 || 8246 strcoll ("ABC", "DEF") >= 0 ||
8221 strcoll ("123", "456") >= 0); 8247 strcoll ("123", "456") >= 0);
8222 } 8248 }
8223 EOF 8249 EOF
8224 if { (eval echo configure:8225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8225 then 8251 then
8226 ac_cv_func_strcoll_works=yes 8252 ac_cv_func_strcoll_works=yes
8227 else 8253 else
8228 echo "configure: failed program was:" >&5 8254 echo "configure: failed program was:" >&5
8229 cat conftest.$ac_ext >&5 8255 cat conftest.$ac_ext >&5
8246 8272
8247 8273
8248 for ac_func in getpgrp 8274 for ac_func in getpgrp
8249 do 8275 do
8250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8251 echo "configure:8252: checking for $ac_func" >&5 8277 echo "configure:8278: checking for $ac_func" >&5
8252 8278
8253 cat > conftest.$ac_ext <<EOF 8279 cat > conftest.$ac_ext <<EOF
8254 #line 8255 "configure" 8280 #line 8281 "configure"
8255 #include "confdefs.h" 8281 #include "confdefs.h"
8256 /* System header to define __stub macros and hopefully few prototypes, 8282 /* System header to define __stub macros and hopefully few prototypes,
8257 which can conflict with char $ac_func(); below. */ 8283 which can conflict with char $ac_func(); below. */
8258 #include <assert.h> 8284 #include <assert.h>
8259 /* Override any gcc2 internal prototype to avoid an error. */ 8285 /* Override any gcc2 internal prototype to avoid an error. */
8272 $ac_func(); 8298 $ac_func();
8273 #endif 8299 #endif
8274 8300
8275 ; return 0; } 8301 ; return 0; }
8276 EOF 8302 EOF
8277 if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8278 rm -rf conftest* 8304 rm -rf conftest*
8279 eval "ac_cv_func_$ac_func=yes" 8305 eval "ac_cv_func_$ac_func=yes"
8280 else 8306 else
8281 echo "configure: failed program was:" >&5 8307 echo "configure: failed program was:" >&5
8282 cat conftest.$ac_ext >&5 8308 cat conftest.$ac_ext >&5
8300 echo "$ac_t""no" 1>&6 8326 echo "$ac_t""no" 1>&6
8301 fi 8327 fi
8302 done 8328 done
8303 8329
8304 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8330 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8305 echo "configure:8306: checking whether getpgrp takes no argument" >&5 8331 echo "configure:8332: checking whether getpgrp takes no argument" >&5
8306 8332
8307 cat > conftest.$ac_ext <<EOF 8333 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure" 8334 #line 8335 "configure"
8309 #include "confdefs.h" 8335 #include "confdefs.h"
8310 8336
8311 /* 8337 /*
8312 * If this system has a BSD-style getpgrp(), 8338 * If this system has a BSD-style getpgrp(),
8313 * which takes a pid argument, exit unsuccessfully. 8339 * which takes a pid argument, exit unsuccessfully.
8358 exit(s>>8); 8384 exit(s>>8);
8359 } 8385 }
8360 } 8386 }
8361 8387
8362 EOF 8388 EOF
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8364 then 8390 then
8365 ac_cv_func_getpgrp_void=yes 8391 ac_cv_func_getpgrp_void=yes
8366 else 8392 else
8367 echo "configure: failed program was:" >&5 8393 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5 8394 cat conftest.$ac_ext >&5
8384 8410
8385 fi 8411 fi
8386 8412
8387 8413
8388 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8414 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8389 echo "configure:8390: checking for working mmap" >&5 8415 echo "configure:8416: checking for working mmap" >&5
8390 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8416 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8391 cat > conftest.$ac_ext <<EOF 8417 cat > conftest.$ac_ext <<EOF
8392 #line 8393 "configure" 8418 #line 8419 "configure"
8393 #include "confdefs.h" 8419 #include "confdefs.h"
8394 #include <stdio.h> 8420 #include <stdio.h>
8395 #include <unistd.h> 8421 #include <unistd.h>
8396 #include <fcntl.h> 8422 #include <fcntl.h>
8397 #include <sys/mman.h> 8423 #include <sys/mman.h>
8420 return 0; 8446 return 0;
8421 perror ("conftest: mmap failed"); 8447 perror ("conftest: mmap failed");
8422 return 1; 8448 return 1;
8423 } 8449 }
8424 EOF 8450 EOF
8425 if { (eval echo configure:8426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8451 if { (eval echo configure:8452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8426 then 8452 then
8427 have_mmap=yes 8453 have_mmap=yes
8428 else 8454 else
8429 echo "configure: failed program was:" >&5 8455 echo "configure: failed program was:" >&5
8430 cat conftest.$ac_ext >&5 8456 cat conftest.$ac_ext >&5
8454 } 8480 }
8455 8481
8456 8482
8457 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8483 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8458 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8484 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8459 echo "configure:8460: checking for termios.h" >&5 8485 echo "configure:8486: checking for termios.h" >&5
8460 8486
8461 cat > conftest.$ac_ext <<EOF 8487 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure" 8488 #line 8489 "configure"
8463 #include "confdefs.h" 8489 #include "confdefs.h"
8464 #include <termios.h> 8490 #include <termios.h>
8465 EOF 8491 EOF
8466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8467 { (eval echo configure:8468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8493 { (eval echo configure:8494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8468 ac_err=`grep -v '^ *+' conftest.out` 8494 ac_err=`grep -v '^ *+' conftest.out`
8469 if test -z "$ac_err"; then 8495 if test -z "$ac_err"; then
8470 rm -rf conftest* 8496 rm -rf conftest*
8471 eval "ac_cv_header_$ac_safe=yes" 8497 eval "ac_cv_header_$ac_safe=yes"
8472 else 8498 else
8505 8531
8506 else 8532 else
8507 echo "$ac_t""no" 1>&6 8533 echo "$ac_t""no" 1>&6
8508 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8534 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8509 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8535 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8510 echo "configure:8511: checking for termio.h" >&5 8536 echo "configure:8537: checking for termio.h" >&5
8511 8537
8512 cat > conftest.$ac_ext <<EOF 8538 cat > conftest.$ac_ext <<EOF
8513 #line 8514 "configure" 8539 #line 8540 "configure"
8514 #include "confdefs.h" 8540 #include "confdefs.h"
8515 #include <termio.h> 8541 #include <termio.h>
8516 EOF 8542 EOF
8517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8518 { (eval echo configure:8519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8544 { (eval echo configure:8545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8519 ac_err=`grep -v '^ *+' conftest.out` 8545 ac_err=`grep -v '^ *+' conftest.out`
8520 if test -z "$ac_err"; then 8546 if test -z "$ac_err"; then
8521 rm -rf conftest* 8547 rm -rf conftest*
8522 eval "ac_cv_header_$ac_safe=yes" 8548 eval "ac_cv_header_$ac_safe=yes"
8523 else 8549 else
8545 fi 8571 fi
8546 8572
8547 8573
8548 8574
8549 echo $ac_n "checking for socket""... $ac_c" 1>&6 8575 echo $ac_n "checking for socket""... $ac_c" 1>&6
8550 echo "configure:8551: checking for socket" >&5 8576 echo "configure:8577: checking for socket" >&5
8551 8577
8552 cat > conftest.$ac_ext <<EOF 8578 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure" 8579 #line 8580 "configure"
8554 #include "confdefs.h" 8580 #include "confdefs.h"
8555 /* System header to define __stub macros and hopefully few prototypes, 8581 /* System header to define __stub macros and hopefully few prototypes,
8556 which can conflict with char socket(); below. */ 8582 which can conflict with char socket(); below. */
8557 #include <assert.h> 8583 #include <assert.h>
8558 /* Override any gcc2 internal prototype to avoid an error. */ 8584 /* Override any gcc2 internal prototype to avoid an error. */
8571 socket(); 8597 socket();
8572 #endif 8598 #endif
8573 8599
8574 ; return 0; } 8600 ; return 0; }
8575 EOF 8601 EOF
8576 if { (eval echo configure:8577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8602 if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8577 rm -rf conftest* 8603 rm -rf conftest*
8578 eval "ac_cv_func_socket=yes" 8604 eval "ac_cv_func_socket=yes"
8579 else 8605 else
8580 echo "configure: failed program was:" >&5 8606 echo "configure: failed program was:" >&5
8581 cat conftest.$ac_ext >&5 8607 cat conftest.$ac_ext >&5
8586 8612
8587 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8613 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8588 echo "$ac_t""yes" 1>&6 8614 echo "$ac_t""yes" 1>&6
8589 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8615 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8590 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8616 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8591 echo "configure:8592: checking for netinet/in.h" >&5 8617 echo "configure:8618: checking for netinet/in.h" >&5
8592 8618
8593 cat > conftest.$ac_ext <<EOF 8619 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure" 8620 #line 8621 "configure"
8595 #include "confdefs.h" 8621 #include "confdefs.h"
8596 #include <netinet/in.h> 8622 #include <netinet/in.h>
8597 EOF 8623 EOF
8598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8599 { (eval echo configure:8600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8625 { (eval echo configure:8626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8600 ac_err=`grep -v '^ *+' conftest.out` 8626 ac_err=`grep -v '^ *+' conftest.out`
8601 if test -z "$ac_err"; then 8627 if test -z "$ac_err"; then
8602 rm -rf conftest* 8628 rm -rf conftest*
8603 eval "ac_cv_header_$ac_safe=yes" 8629 eval "ac_cv_header_$ac_safe=yes"
8604 else 8630 else
8611 rm -f conftest* 8637 rm -f conftest*
8612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6 8639 echo "$ac_t""yes" 1>&6
8614 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8640 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8615 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8641 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8616 echo "configure:8617: checking for arpa/inet.h" >&5 8642 echo "configure:8643: checking for arpa/inet.h" >&5
8617 8643
8618 cat > conftest.$ac_ext <<EOF 8644 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure" 8645 #line 8646 "configure"
8620 #include "confdefs.h" 8646 #include "confdefs.h"
8621 #include <arpa/inet.h> 8647 #include <arpa/inet.h>
8622 EOF 8648 EOF
8623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8624 { (eval echo configure:8625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8650 { (eval echo configure:8651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8625 ac_err=`grep -v '^ *+' conftest.out` 8651 ac_err=`grep -v '^ *+' conftest.out`
8626 if test -z "$ac_err"; then 8652 if test -z "$ac_err"; then
8627 rm -rf conftest* 8653 rm -rf conftest*
8628 eval "ac_cv_header_$ac_safe=yes" 8654 eval "ac_cv_header_$ac_safe=yes"
8629 else 8655 else
8644 #define HAVE_SOCKETS 1 8670 #define HAVE_SOCKETS 1
8645 EOF 8671 EOF
8646 } 8672 }
8647 8673
8648 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8674 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8649 echo "configure:8650: checking "for sun_len member in struct sockaddr_un"" >&5 8675 echo "configure:8676: checking "for sun_len member in struct sockaddr_un"" >&5
8650 cat > conftest.$ac_ext <<EOF 8676 cat > conftest.$ac_ext <<EOF
8651 #line 8652 "configure" 8677 #line 8678 "configure"
8652 #include "confdefs.h" 8678 #include "confdefs.h"
8653 8679
8654 #include <sys/types.h> 8680 #include <sys/types.h>
8655 #include <sys/socket.h> 8681 #include <sys/socket.h>
8656 #include <sys/un.h> 8682 #include <sys/un.h>
8657 8683
8658 int main() { 8684 int main() {
8659 static struct sockaddr_un x; x.sun_len = 1; 8685 static struct sockaddr_un x; x.sun_len = 1;
8660 ; return 0; } 8686 ; return 0; }
8661 EOF 8687 EOF
8662 if { (eval echo configure:8663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8688 if { (eval echo configure:8689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8663 rm -rf conftest* 8689 rm -rf conftest*
8664 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8690 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8665 Defining HAVE_SOCKADDR_SUN_LEN 8691 Defining HAVE_SOCKADDR_SUN_LEN
8666 EOF 8692 EOF
8667 cat >> confdefs.h <<\EOF 8693 cat >> confdefs.h <<\EOF
8688 echo "$ac_t""no" 1>&6 8714 echo "$ac_t""no" 1>&6
8689 fi 8715 fi
8690 8716
8691 8717
8692 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8718 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8693 echo "configure:8694: checking for msgget" >&5 8719 echo "configure:8720: checking for msgget" >&5
8694 8720
8695 cat > conftest.$ac_ext <<EOF 8721 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure" 8722 #line 8723 "configure"
8697 #include "confdefs.h" 8723 #include "confdefs.h"
8698 /* System header to define __stub macros and hopefully few prototypes, 8724 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char msgget(); below. */ 8725 which can conflict with char msgget(); below. */
8700 #include <assert.h> 8726 #include <assert.h>
8701 /* Override any gcc2 internal prototype to avoid an error. */ 8727 /* Override any gcc2 internal prototype to avoid an error. */
8714 msgget(); 8740 msgget();
8715 #endif 8741 #endif
8716 8742
8717 ; return 0; } 8743 ; return 0; }
8718 EOF 8744 EOF
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8745 if { (eval echo configure:8746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8720 rm -rf conftest* 8746 rm -rf conftest*
8721 eval "ac_cv_func_msgget=yes" 8747 eval "ac_cv_func_msgget=yes"
8722 else 8748 else
8723 echo "configure: failed program was:" >&5 8749 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5 8750 cat conftest.$ac_ext >&5
8729 8755
8730 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8756 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8731 echo "$ac_t""yes" 1>&6 8757 echo "$ac_t""yes" 1>&6
8732 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8758 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8733 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8759 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8734 echo "configure:8735: checking for sys/ipc.h" >&5 8760 echo "configure:8761: checking for sys/ipc.h" >&5
8735 8761
8736 cat > conftest.$ac_ext <<EOF 8762 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure" 8763 #line 8764 "configure"
8738 #include "confdefs.h" 8764 #include "confdefs.h"
8739 #include <sys/ipc.h> 8765 #include <sys/ipc.h>
8740 EOF 8766 EOF
8741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8767 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; } 8768 { (eval echo configure:8769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8743 ac_err=`grep -v '^ *+' conftest.out` 8769 ac_err=`grep -v '^ *+' conftest.out`
8744 if test -z "$ac_err"; then 8770 if test -z "$ac_err"; then
8745 rm -rf conftest* 8771 rm -rf conftest*
8746 eval "ac_cv_header_$ac_safe=yes" 8772 eval "ac_cv_header_$ac_safe=yes"
8747 else 8773 else
8754 rm -f conftest* 8780 rm -f conftest*
8755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8756 echo "$ac_t""yes" 1>&6 8782 echo "$ac_t""yes" 1>&6
8757 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8783 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8758 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8784 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8759 echo "configure:8760: checking for sys/msg.h" >&5 8785 echo "configure:8786: checking for sys/msg.h" >&5
8760 8786
8761 cat > conftest.$ac_ext <<EOF 8787 cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure" 8788 #line 8789 "configure"
8763 #include "confdefs.h" 8789 #include "confdefs.h"
8764 #include <sys/msg.h> 8790 #include <sys/msg.h>
8765 EOF 8791 EOF
8766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8767 { (eval echo configure:8768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8793 { (eval echo configure:8794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8768 ac_err=`grep -v '^ *+' conftest.out` 8794 ac_err=`grep -v '^ *+' conftest.out`
8769 if test -z "$ac_err"; then 8795 if test -z "$ac_err"; then
8770 rm -rf conftest* 8796 rm -rf conftest*
8771 eval "ac_cv_header_$ac_safe=yes" 8797 eval "ac_cv_header_$ac_safe=yes"
8772 else 8798 else
8800 fi 8826 fi
8801 8827
8802 8828
8803 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8829 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8804 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8830 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8805 echo "configure:8806: checking for dirent.h" >&5 8831 echo "configure:8832: checking for dirent.h" >&5
8806 8832
8807 cat > conftest.$ac_ext <<EOF 8833 cat > conftest.$ac_ext <<EOF
8808 #line 8809 "configure" 8834 #line 8835 "configure"
8809 #include "confdefs.h" 8835 #include "confdefs.h"
8810 #include <dirent.h> 8836 #include <dirent.h>
8811 EOF 8837 EOF
8812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8813 { (eval echo configure:8814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8839 { (eval echo configure:8840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8814 ac_err=`grep -v '^ *+' conftest.out` 8840 ac_err=`grep -v '^ *+' conftest.out`
8815 if test -z "$ac_err"; then 8841 if test -z "$ac_err"; then
8816 rm -rf conftest* 8842 rm -rf conftest*
8817 eval "ac_cv_header_$ac_safe=yes" 8843 eval "ac_cv_header_$ac_safe=yes"
8818 else 8844 else
8835 8861
8836 else 8862 else
8837 echo "$ac_t""no" 1>&6 8863 echo "$ac_t""no" 1>&6
8838 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8864 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8839 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8865 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8840 echo "configure:8841: checking for sys/dir.h" >&5 8866 echo "configure:8867: checking for sys/dir.h" >&5
8841 8867
8842 cat > conftest.$ac_ext <<EOF 8868 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure" 8869 #line 8870 "configure"
8844 #include "confdefs.h" 8870 #include "confdefs.h"
8845 #include <sys/dir.h> 8871 #include <sys/dir.h>
8846 EOF 8872 EOF
8847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8848 { (eval echo configure:8849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8874 { (eval echo configure:8875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8849 ac_err=`grep -v '^ *+' conftest.out` 8875 ac_err=`grep -v '^ *+' conftest.out`
8850 if test -z "$ac_err"; then 8876 if test -z "$ac_err"; then
8851 rm -rf conftest* 8877 rm -rf conftest*
8852 eval "ac_cv_header_$ac_safe=yes" 8878 eval "ac_cv_header_$ac_safe=yes"
8853 else 8879 else
8876 fi 8902 fi
8877 8903
8878 8904
8879 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8905 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8880 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8906 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8881 echo "configure:8882: checking for nlist.h" >&5 8907 echo "configure:8908: checking for nlist.h" >&5
8882 8908
8883 cat > conftest.$ac_ext <<EOF 8909 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure" 8910 #line 8911 "configure"
8885 #include "confdefs.h" 8911 #include "confdefs.h"
8886 #include <nlist.h> 8912 #include <nlist.h>
8887 EOF 8913 EOF
8888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8889 { (eval echo configure:8890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8915 { (eval echo configure:8916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8890 ac_err=`grep -v '^ *+' conftest.out` 8916 ac_err=`grep -v '^ *+' conftest.out`
8891 if test -z "$ac_err"; then 8917 if test -z "$ac_err"; then
8892 rm -rf conftest* 8918 rm -rf conftest*
8893 eval "ac_cv_header_$ac_safe=yes" 8919 eval "ac_cv_header_$ac_safe=yes"
8894 else 8920 else
8925 break; fi 8951 break; fi
8926 done 8952 done
8927 8953
8928 8954
8929 echo "checking "for sound support"" 1>&6 8955 echo "checking "for sound support"" 1>&6
8930 echo "configure:8931: checking "for sound support"" >&5 8956 echo "configure:8957: checking "for sound support"" >&5
8931 case "$with_sound" in 8957 case "$with_sound" in
8932 native | both ) with_native_sound=yes;; 8958 native | both ) with_native_sound=yes;;
8933 nas | no ) with_native_sound=no;; 8959 nas | no ) with_native_sound=no;;
8934 esac 8960 esac
8935 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8961 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8936 8962
8937 if test "$with_native_sound" != "no"; then 8963 if test "$with_native_sound" != "no"; then
8938 if test -n "$native_sound_lib"; then 8964 if test -n "$native_sound_lib"; then
8939 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8965 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8940 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8966 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8941 echo "configure:8942: checking for multimedia/audio_device.h" >&5 8967 echo "configure:8968: checking for multimedia/audio_device.h" >&5
8942 8968
8943 cat > conftest.$ac_ext <<EOF 8969 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure" 8970 #line 8971 "configure"
8945 #include "confdefs.h" 8971 #include "confdefs.h"
8946 #include <multimedia/audio_device.h> 8972 #include <multimedia/audio_device.h>
8947 EOF 8973 EOF
8948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8949 { (eval echo configure:8950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8975 { (eval echo configure:8976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8950 ac_err=`grep -v '^ *+' conftest.out` 8976 ac_err=`grep -v '^ *+' conftest.out`
8951 if test -z "$ac_err"; then 8977 if test -z "$ac_err"; then
8952 rm -rf conftest* 8978 rm -rf conftest*
8953 eval "ac_cv_header_$ac_safe=yes" 8979 eval "ac_cv_header_$ac_safe=yes"
8954 else 8980 else
8992 case "$canonical" in 9018 case "$canonical" in
8993 *-sgi-* ) 9019 *-sgi-* )
8994 if test -z "$native_sound_lib"; then 9020 if test -z "$native_sound_lib"; then
8995 9021
8996 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 9022 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8997 echo "configure:8998: checking for ALopenport in -laudio" >&5 9023 echo "configure:9024: checking for ALopenport in -laudio" >&5
8998 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 9024 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8999 9025
9000 xe_check_libs=" -laudio " 9026 xe_check_libs=" -laudio "
9001 cat > conftest.$ac_ext <<EOF 9027 cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure" 9028 #line 9029 "configure"
9003 #include "confdefs.h" 9029 #include "confdefs.h"
9004 /* Override any gcc2 internal prototype to avoid an error. */ 9030 /* Override any gcc2 internal prototype to avoid an error. */
9005 /* We use char because int might match the return type of a gcc2 9031 /* We use char because int might match the return type of a gcc2
9006 builtin and then its argument prototype would still apply. */ 9032 builtin and then its argument prototype would still apply. */
9007 char ALopenport(); 9033 char ALopenport();
9008 9034
9009 int main() { 9035 int main() {
9010 ALopenport() 9036 ALopenport()
9011 ; return 0; } 9037 ; return 0; }
9012 EOF 9038 EOF
9013 if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9039 if { (eval echo configure:9040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9014 rm -rf conftest* 9040 rm -rf conftest*
9015 eval "ac_cv_lib_$ac_lib_var=yes" 9041 eval "ac_cv_lib_$ac_lib_var=yes"
9016 else 9042 else
9017 echo "configure: failed program was:" >&5 9043 echo "configure: failed program was:" >&5
9018 cat conftest.$ac_ext >&5 9044 cat conftest.$ac_ext >&5
9039 fi ;; 9065 fi ;;
9040 hppa*-hp-hpux* ) 9066 hppa*-hp-hpux* )
9041 if test -z "$native_sound_lib"; then 9067 if test -z "$native_sound_lib"; then
9042 9068
9043 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9069 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9044 echo "configure:9045: checking for AOpenAudio in -lAlib" >&5 9070 echo "configure:9071: checking for AOpenAudio in -lAlib" >&5
9045 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9071 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9046 9072
9047 xe_check_libs=" -lAlib " 9073 xe_check_libs=" -lAlib "
9048 cat > conftest.$ac_ext <<EOF 9074 cat > conftest.$ac_ext <<EOF
9049 #line 9050 "configure" 9075 #line 9076 "configure"
9050 #include "confdefs.h" 9076 #include "confdefs.h"
9051 /* Override any gcc2 internal prototype to avoid an error. */ 9077 /* Override any gcc2 internal prototype to avoid an error. */
9052 /* We use char because int might match the return type of a gcc2 9078 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */ 9079 builtin and then its argument prototype would still apply. */
9054 char AOpenAudio(); 9080 char AOpenAudio();
9055 9081
9056 int main() { 9082 int main() {
9057 AOpenAudio() 9083 AOpenAudio()
9058 ; return 0; } 9084 ; return 0; }
9059 EOF 9085 EOF
9060 if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9086 if { (eval echo configure:9087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9061 rm -rf conftest* 9087 rm -rf conftest*
9062 eval "ac_cv_lib_$ac_lib_var=yes" 9088 eval "ac_cv_lib_$ac_lib_var=yes"
9063 else 9089 else
9064 echo "configure: failed program was:" >&5 9090 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5 9091 cat conftest.$ac_ext >&5
9093 9119
9094 if test -z "$sound_found"; then 9120 if test -z "$sound_found"; then
9095 for dir in "machine" "sys" "linux"; do 9121 for dir in "machine" "sys" "linux"; do
9096 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9122 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9097 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9123 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9098 echo "configure:9099: checking for ${dir}/soundcard.h" >&5 9124 echo "configure:9125: checking for ${dir}/soundcard.h" >&5
9099 9125
9100 cat > conftest.$ac_ext <<EOF 9126 cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure" 9127 #line 9128 "configure"
9102 #include "confdefs.h" 9128 #include "confdefs.h"
9103 #include <${dir}/soundcard.h> 9129 #include <${dir}/soundcard.h>
9104 EOF 9130 EOF
9105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9106 { (eval echo configure:9107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9132 { (eval echo configure:9133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9107 ac_err=`grep -v '^ *+' conftest.out` 9133 ac_err=`grep -v '^ *+' conftest.out`
9108 if test -z "$ac_err"; then 9134 if test -z "$ac_err"; then
9109 rm -rf conftest* 9135 rm -rf conftest*
9110 eval "ac_cv_header_$ac_safe=yes" 9136 eval "ac_cv_header_$ac_safe=yes"
9111 else 9137 else
9171 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9197 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9172 echo " xemacs will be linked with \"nas.o\"" 9198 echo " xemacs will be linked with \"nas.o\""
9173 fi 9199 fi
9174 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 9200 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
9175 cat > conftest.$ac_ext <<EOF 9201 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure" 9202 #line 9203 "configure"
9177 #include "confdefs.h" 9203 #include "confdefs.h"
9178 #include <audio/Xtutil.h> 9204 #include <audio/Xtutil.h>
9179 EOF 9205 EOF
9180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9181 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9207 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9198 9224
9199 test -z "$with_tty" && with_tty=yes 9225 test -z "$with_tty" && with_tty=yes
9200 9226
9201 if test "$with_tty" = "yes" ; then 9227 if test "$with_tty" = "yes" ; then
9202 echo "checking for TTY-related features" 1>&6 9228 echo "checking for TTY-related features" 1>&6
9203 echo "configure:9204: checking for TTY-related features" >&5 9229 echo "configure:9230: checking for TTY-related features" >&5
9204 { test "$extra_verbose" = "yes" && cat << \EOF 9230 { test "$extra_verbose" = "yes" && cat << \EOF
9205 Defining HAVE_TTY 9231 Defining HAVE_TTY
9206 EOF 9232 EOF
9207 cat >> confdefs.h <<\EOF 9233 cat >> confdefs.h <<\EOF
9208 #define HAVE_TTY 1 9234 #define HAVE_TTY 1
9214 fi 9240 fi
9215 9241
9216 if test -z "$with_ncurses"; then 9242 if test -z "$with_ncurses"; then
9217 9243
9218 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9244 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9219 echo "configure:9220: checking for tgetent in -lncurses" >&5 9245 echo "configure:9246: checking for tgetent in -lncurses" >&5
9220 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9246 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9221 9247
9222 xe_check_libs=" -lncurses " 9248 xe_check_libs=" -lncurses "
9223 cat > conftest.$ac_ext <<EOF 9249 cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure" 9250 #line 9251 "configure"
9225 #include "confdefs.h" 9251 #include "confdefs.h"
9226 /* Override any gcc2 internal prototype to avoid an error. */ 9252 /* Override any gcc2 internal prototype to avoid an error. */
9227 /* We use char because int might match the return type of a gcc2 9253 /* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */ 9254 builtin and then its argument prototype would still apply. */
9229 char tgetent(); 9255 char tgetent();
9230 9256
9231 int main() { 9257 int main() {
9232 tgetent() 9258 tgetent()
9233 ; return 0; } 9259 ; return 0; }
9234 EOF 9260 EOF
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9261 if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9236 rm -rf conftest* 9262 rm -rf conftest*
9237 eval "ac_cv_lib_$ac_lib_var=yes" 9263 eval "ac_cv_lib_$ac_lib_var=yes"
9238 else 9264 else
9239 echo "configure: failed program was:" >&5 9265 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5 9266 cat conftest.$ac_ext >&5
9263 EOF 9289 EOF
9264 } 9290 }
9265 9291
9266 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9292 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9267 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9293 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9268 echo "configure:9269: checking for ncurses/curses.h" >&5 9294 echo "configure:9295: checking for ncurses/curses.h" >&5
9269 9295
9270 cat > conftest.$ac_ext <<EOF 9296 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure" 9297 #line 9298 "configure"
9272 #include "confdefs.h" 9298 #include "confdefs.h"
9273 #include <ncurses/curses.h> 9299 #include <ncurses/curses.h>
9274 EOF 9300 EOF
9275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9276 { (eval echo configure:9277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9302 { (eval echo configure:9303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9277 ac_err=`grep -v '^ *+' conftest.out` 9303 ac_err=`grep -v '^ *+' conftest.out`
9278 if test -z "$ac_err"; then 9304 if test -z "$ac_err"; then
9279 rm -rf conftest* 9305 rm -rf conftest*
9280 eval "ac_cv_header_$ac_safe=yes" 9306 eval "ac_cv_header_$ac_safe=yes"
9281 else 9307 else
9293 echo "$ac_t""no" 1>&6 9319 echo "$ac_t""no" 1>&6
9294 fi 9320 fi
9295 9321
9296 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9322 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9297 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9323 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9298 echo "configure:9299: checking for ncurses/term.h" >&5 9324 echo "configure:9325: checking for ncurses/term.h" >&5
9299 9325
9300 cat > conftest.$ac_ext <<EOF 9326 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure" 9327 #line 9328 "configure"
9302 #include "confdefs.h" 9328 #include "confdefs.h"
9303 #include <ncurses/term.h> 9329 #include <ncurses/term.h>
9304 EOF 9330 EOF
9305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9306 { (eval echo configure:9307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9332 { (eval echo configure:9333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9307 ac_err=`grep -v '^ *+' conftest.out` 9333 ac_err=`grep -v '^ *+' conftest.out`
9308 if test -z "$ac_err"; then 9334 if test -z "$ac_err"; then
9309 rm -rf conftest* 9335 rm -rf conftest*
9310 eval "ac_cv_header_$ac_safe=yes" 9336 eval "ac_cv_header_$ac_safe=yes"
9311 else 9337 else
9331 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9357 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9332 save_c_switch_site="$c_switch_site" 9358 save_c_switch_site="$c_switch_site"
9333 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9359 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9334 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9360 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9335 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9361 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9336 echo "configure:9337: checking for ncurses/curses.h" >&5 9362 echo "configure:9363: checking for ncurses/curses.h" >&5
9337 9363
9338 cat > conftest.$ac_ext <<EOF 9364 cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure" 9365 #line 9366 "configure"
9340 #include "confdefs.h" 9366 #include "confdefs.h"
9341 #include <ncurses/curses.h> 9367 #include <ncurses/curses.h>
9342 EOF 9368 EOF
9343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9344 { (eval echo configure:9345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9370 { (eval echo configure:9371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9345 ac_err=`grep -v '^ *+' conftest.out` 9371 ac_err=`grep -v '^ *+' conftest.out`
9346 if test -z "$ac_err"; then 9372 if test -z "$ac_err"; then
9347 rm -rf conftest* 9373 rm -rf conftest*
9348 eval "ac_cv_header_$ac_safe=yes" 9374 eval "ac_cv_header_$ac_safe=yes"
9349 else 9375 else
9374 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9400 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9375 else 9401 else
9376 for lib in curses termlib termcap; do 9402 for lib in curses termlib termcap; do
9377 9403
9378 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9404 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9379 echo "configure:9380: checking for tgetent in -l$lib" >&5 9405 echo "configure:9406: checking for tgetent in -l$lib" >&5
9380 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9406 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9381 9407
9382 xe_check_libs=" -l$lib " 9408 xe_check_libs=" -l$lib "
9383 cat > conftest.$ac_ext <<EOF 9409 cat > conftest.$ac_ext <<EOF
9384 #line 9385 "configure" 9410 #line 9411 "configure"
9385 #include "confdefs.h" 9411 #include "confdefs.h"
9386 /* Override any gcc2 internal prototype to avoid an error. */ 9412 /* Override any gcc2 internal prototype to avoid an error. */
9387 /* We use char because int might match the return type of a gcc2 9413 /* We use char because int might match the return type of a gcc2
9388 builtin and then its argument prototype would still apply. */ 9414 builtin and then its argument prototype would still apply. */
9389 char tgetent(); 9415 char tgetent();
9390 9416
9391 int main() { 9417 int main() {
9392 tgetent() 9418 tgetent()
9393 ; return 0; } 9419 ; return 0; }
9394 EOF 9420 EOF
9395 if { (eval echo configure:9396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9396 rm -rf conftest* 9422 rm -rf conftest*
9397 eval "ac_cv_lib_$ac_lib_var=yes" 9423 eval "ac_cv_lib_$ac_lib_var=yes"
9398 else 9424 else
9399 echo "configure: failed program was:" >&5 9425 echo "configure: failed program was:" >&5
9400 cat conftest.$ac_ext >&5 9426 cat conftest.$ac_ext >&5
9421 if test -n "$libs_termcap"; then 9447 if test -n "$libs_termcap"; then
9422 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9448 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9423 else 9449 else
9424 9450
9425 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9451 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9426 echo "configure:9427: checking for tgetent in -lcurses" >&5 9452 echo "configure:9453: checking for tgetent in -lcurses" >&5
9427 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9453 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9428 9454
9429 xe_check_libs=" -lcurses " 9455 xe_check_libs=" -lcurses "
9430 cat > conftest.$ac_ext <<EOF 9456 cat > conftest.$ac_ext <<EOF
9431 #line 9432 "configure" 9457 #line 9458 "configure"
9432 #include "confdefs.h" 9458 #include "confdefs.h"
9433 /* Override any gcc2 internal prototype to avoid an error. */ 9459 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2 9460 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */ 9461 builtin and then its argument prototype would still apply. */
9436 char tgetent(); 9462 char tgetent();
9437 9463
9438 int main() { 9464 int main() {
9439 tgetent() 9465 tgetent()
9440 ; return 0; } 9466 ; return 0; }
9441 EOF 9467 EOF
9442 if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9468 if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9443 rm -rf conftest* 9469 rm -rf conftest*
9444 eval "ac_cv_lib_$ac_lib_var=yes" 9470 eval "ac_cv_lib_$ac_lib_var=yes"
9445 else 9471 else
9446 echo "configure: failed program was:" >&5 9472 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5 9473 cat conftest.$ac_ext >&5
9455 echo "$ac_t""yes" 1>&6 9481 echo "$ac_t""yes" 1>&6
9456 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9482 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9457 else 9483 else
9458 echo "$ac_t""no" 1>&6 9484 echo "$ac_t""no" 1>&6
9459 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9485 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9460 echo "configure:9461: checking for tgetent in -ltermcap" >&5 9486 echo "configure:9487: checking for tgetent in -ltermcap" >&5
9461 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9487 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9462 9488
9463 xe_check_libs=" -ltermcap " 9489 xe_check_libs=" -ltermcap "
9464 cat > conftest.$ac_ext <<EOF 9490 cat > conftest.$ac_ext <<EOF
9465 #line 9466 "configure" 9491 #line 9492 "configure"
9466 #include "confdefs.h" 9492 #include "confdefs.h"
9467 /* Override any gcc2 internal prototype to avoid an error. */ 9493 /* Override any gcc2 internal prototype to avoid an error. */
9468 /* We use char because int might match the return type of a gcc2 9494 /* We use char because int might match the return type of a gcc2
9469 builtin and then its argument prototype would still apply. */ 9495 builtin and then its argument prototype would still apply. */
9470 char tgetent(); 9496 char tgetent();
9471 9497
9472 int main() { 9498 int main() {
9473 tgetent() 9499 tgetent()
9474 ; return 0; } 9500 ; return 0; }
9475 EOF 9501 EOF
9476 if { (eval echo configure:9477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9477 rm -rf conftest* 9503 rm -rf conftest*
9478 eval "ac_cv_lib_$ac_lib_var=yes" 9504 eval "ac_cv_lib_$ac_lib_var=yes"
9479 else 9505 else
9480 echo "configure: failed program was:" >&5 9506 echo "configure: failed program was:" >&5
9481 cat conftest.$ac_ext >&5 9507 cat conftest.$ac_ext >&5
9519 } 9545 }
9520 9546
9521 9547
9522 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9548 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9523 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9549 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9524 echo "configure:9525: checking for gpm.h" >&5 9550 echo "configure:9551: checking for gpm.h" >&5
9525 9551
9526 cat > conftest.$ac_ext <<EOF 9552 cat > conftest.$ac_ext <<EOF
9527 #line 9528 "configure" 9553 #line 9554 "configure"
9528 #include "confdefs.h" 9554 #include "confdefs.h"
9529 #include <gpm.h> 9555 #include <gpm.h>
9530 EOF 9556 EOF
9531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9532 { (eval echo configure:9533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9558 { (eval echo configure:9559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9533 ac_err=`grep -v '^ *+' conftest.out` 9559 ac_err=`grep -v '^ *+' conftest.out`
9534 if test -z "$ac_err"; then 9560 if test -z "$ac_err"; then
9535 rm -rf conftest* 9561 rm -rf conftest*
9536 eval "ac_cv_header_$ac_safe=yes" 9562 eval "ac_cv_header_$ac_safe=yes"
9537 else 9563 else
9550 with_gpm=no 9576 with_gpm=no
9551 fi 9577 fi
9552 } 9578 }
9553 test -z "$with_gpm" && { 9579 test -z "$with_gpm" && {
9554 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9580 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9555 echo "configure:9556: checking for Gpm_Open in -lgpm" >&5 9581 echo "configure:9582: checking for Gpm_Open in -lgpm" >&5
9556 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9582 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9557 9583
9558 xe_check_libs=" -lgpm " 9584 xe_check_libs=" -lgpm "
9559 cat > conftest.$ac_ext <<EOF 9585 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure" 9586 #line 9587 "configure"
9561 #include "confdefs.h" 9587 #include "confdefs.h"
9562 /* Override any gcc2 internal prototype to avoid an error. */ 9588 /* Override any gcc2 internal prototype to avoid an error. */
9563 /* We use char because int might match the return type of a gcc2 9589 /* We use char because int might match the return type of a gcc2
9564 builtin and then its argument prototype would still apply. */ 9590 builtin and then its argument prototype would still apply. */
9565 char Gpm_Open(); 9591 char Gpm_Open();
9566 9592
9567 int main() { 9593 int main() {
9568 Gpm_Open() 9594 Gpm_Open()
9569 ; return 0; } 9595 ; return 0; }
9570 EOF 9596 EOF
9571 if { (eval echo configure:9572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9597 if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9572 rm -rf conftest* 9598 rm -rf conftest*
9573 eval "ac_cv_lib_$ac_lib_var=yes" 9599 eval "ac_cv_lib_$ac_lib_var=yes"
9574 else 9600 else
9575 echo "configure: failed program was:" >&5 9601 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5 9602 cat conftest.$ac_ext >&5
9615 echo " xemacs will be linked with \"event-unixoid.o\"" 9641 echo " xemacs will be linked with \"event-unixoid.o\""
9616 fi 9642 fi
9617 9643
9618 9644
9619 echo "checking for database support" 1>&6 9645 echo "checking for database support" 1>&6
9620 echo "configure:9621: checking for database support" >&5 9646 echo "configure:9647: checking for database support" >&5
9621 9647
9622 if test "$with_database_gnudbm" != "no"; then 9648 if test "$with_database_gnudbm" != "no"; then
9623 9649
9624 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9650 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9625 echo "configure:9626: checking for dbm_open in -lgdbm" >&5 9651 echo "configure:9652: checking for dbm_open in -lgdbm" >&5
9626 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9652 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9627 9653
9628 xe_check_libs=" -lgdbm " 9654 xe_check_libs=" -lgdbm "
9629 cat > conftest.$ac_ext <<EOF 9655 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure" 9656 #line 9657 "configure"
9631 #include "confdefs.h" 9657 #include "confdefs.h"
9632 /* Override any gcc2 internal prototype to avoid an error. */ 9658 /* Override any gcc2 internal prototype to avoid an error. */
9633 /* We use char because int might match the return type of a gcc2 9659 /* We use char because int might match the return type of a gcc2
9634 builtin and then its argument prototype would still apply. */ 9660 builtin and then its argument prototype would still apply. */
9635 char dbm_open(); 9661 char dbm_open();
9636 9662
9637 int main() { 9663 int main() {
9638 dbm_open() 9664 dbm_open()
9639 ; return 0; } 9665 ; return 0; }
9640 EOF 9666 EOF
9641 if { (eval echo configure:9642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9642 rm -rf conftest* 9668 rm -rf conftest*
9643 eval "ac_cv_lib_$ac_lib_var=yes" 9669 eval "ac_cv_lib_$ac_lib_var=yes"
9644 else 9670 else
9645 echo "configure: failed program was:" >&5 9671 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5 9672 cat conftest.$ac_ext >&5
9658 fi 9684 fi
9659 9685
9660 9686
9661 if test "$with_database_gnudbm" != "yes"; then 9687 if test "$with_database_gnudbm" != "yes"; then
9662 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9688 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9663 echo "configure:9664: checking for dbm_open" >&5 9689 echo "configure:9690: checking for dbm_open" >&5
9664 9690
9665 cat > conftest.$ac_ext <<EOF 9691 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure" 9692 #line 9693 "configure"
9667 #include "confdefs.h" 9693 #include "confdefs.h"
9668 /* System header to define __stub macros and hopefully few prototypes, 9694 /* System header to define __stub macros and hopefully few prototypes,
9669 which can conflict with char dbm_open(); below. */ 9695 which can conflict with char dbm_open(); below. */
9670 #include <assert.h> 9696 #include <assert.h>
9671 /* Override any gcc2 internal prototype to avoid an error. */ 9697 /* Override any gcc2 internal prototype to avoid an error. */
9684 dbm_open(); 9710 dbm_open();
9685 #endif 9711 #endif
9686 9712
9687 ; return 0; } 9713 ; return 0; }
9688 EOF 9714 EOF
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9715 if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9690 rm -rf conftest* 9716 rm -rf conftest*
9691 eval "ac_cv_func_dbm_open=yes" 9717 eval "ac_cv_func_dbm_open=yes"
9692 else 9718 else
9693 echo "configure: failed program was:" >&5 9719 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5 9720 cat conftest.$ac_ext >&5
9720 fi 9746 fi
9721 fi 9747 fi
9722 9748
9723 if test "$with_database_dbm" != "no"; then 9749 if test "$with_database_dbm" != "no"; then
9724 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9750 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9725 echo "configure:9726: checking for dbm_open" >&5 9751 echo "configure:9752: checking for dbm_open" >&5
9726 9752
9727 cat > conftest.$ac_ext <<EOF 9753 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure" 9754 #line 9755 "configure"
9729 #include "confdefs.h" 9755 #include "confdefs.h"
9730 /* System header to define __stub macros and hopefully few prototypes, 9756 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char dbm_open(); below. */ 9757 which can conflict with char dbm_open(); below. */
9732 #include <assert.h> 9758 #include <assert.h>
9733 /* Override any gcc2 internal prototype to avoid an error. */ 9759 /* Override any gcc2 internal prototype to avoid an error. */
9746 dbm_open(); 9772 dbm_open();
9747 #endif 9773 #endif
9748 9774
9749 ; return 0; } 9775 ; return 0; }
9750 EOF 9776 EOF
9751 if { (eval echo configure:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9777 if { (eval echo configure:9778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9752 rm -rf conftest* 9778 rm -rf conftest*
9753 eval "ac_cv_func_dbm_open=yes" 9779 eval "ac_cv_func_dbm_open=yes"
9754 else 9780 else
9755 echo "configure: failed program was:" >&5 9781 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5 9782 cat conftest.$ac_ext >&5
9767 fi 9793 fi
9768 9794
9769 if test "$need_libdbm" != "no"; then 9795 if test "$need_libdbm" != "no"; then
9770 9796
9771 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9797 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9772 echo "configure:9773: checking for dbm_open in -ldbm" >&5 9798 echo "configure:9799: checking for dbm_open in -ldbm" >&5
9773 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9799 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9774 9800
9775 xe_check_libs=" -ldbm " 9801 xe_check_libs=" -ldbm "
9776 cat > conftest.$ac_ext <<EOF 9802 cat > conftest.$ac_ext <<EOF
9777 #line 9778 "configure" 9803 #line 9804 "configure"
9778 #include "confdefs.h" 9804 #include "confdefs.h"
9779 /* Override any gcc2 internal prototype to avoid an error. */ 9805 /* Override any gcc2 internal prototype to avoid an error. */
9780 /* We use char because int might match the return type of a gcc2 9806 /* We use char because int might match the return type of a gcc2
9781 builtin and then its argument prototype would still apply. */ 9807 builtin and then its argument prototype would still apply. */
9782 char dbm_open(); 9808 char dbm_open();
9783 9809
9784 int main() { 9810 int main() {
9785 dbm_open() 9811 dbm_open()
9786 ; return 0; } 9812 ; return 0; }
9787 EOF 9813 EOF
9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9789 rm -rf conftest* 9815 rm -rf conftest*
9790 eval "ac_cv_lib_$ac_lib_var=yes" 9816 eval "ac_cv_lib_$ac_lib_var=yes"
9791 else 9817 else
9792 echo "configure: failed program was:" >&5 9818 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5 9819 cat conftest.$ac_ext >&5
9820 fi 9846 fi
9821 fi 9847 fi
9822 9848
9823 if test "$with_database_berkdb" != "no"; then 9849 if test "$with_database_berkdb" != "no"; then
9824 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9850 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9825 echo "configure:9826: checking for dbopen" >&5 9851 echo "configure:9852: checking for dbopen" >&5
9826 9852
9827 cat > conftest.$ac_ext <<EOF 9853 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure" 9854 #line 9855 "configure"
9829 #include "confdefs.h" 9855 #include "confdefs.h"
9830 /* System header to define __stub macros and hopefully few prototypes, 9856 /* System header to define __stub macros and hopefully few prototypes,
9831 which can conflict with char dbopen(); below. */ 9857 which can conflict with char dbopen(); below. */
9832 #include <assert.h> 9858 #include <assert.h>
9833 /* Override any gcc2 internal prototype to avoid an error. */ 9859 /* Override any gcc2 internal prototype to avoid an error. */
9846 dbopen(); 9872 dbopen();
9847 #endif 9873 #endif
9848 9874
9849 ; return 0; } 9875 ; return 0; }
9850 EOF 9876 EOF
9851 if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9877 if { (eval echo configure:9878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9852 rm -rf conftest* 9878 rm -rf conftest*
9853 eval "ac_cv_func_dbopen=yes" 9879 eval "ac_cv_func_dbopen=yes"
9854 else 9880 else
9855 echo "configure: failed program was:" >&5 9881 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5 9882 cat conftest.$ac_ext >&5
9867 fi 9893 fi
9868 9894
9869 if test "$need_libdb" != "no"; then 9895 if test "$need_libdb" != "no"; then
9870 9896
9871 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9897 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9872 echo "configure:9873: checking for dbopen in -ldb" >&5 9898 echo "configure:9899: checking for dbopen in -ldb" >&5
9873 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9899 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9874 9900
9875 xe_check_libs=" -ldb " 9901 xe_check_libs=" -ldb "
9876 cat > conftest.$ac_ext <<EOF 9902 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure" 9903 #line 9904 "configure"
9878 #include "confdefs.h" 9904 #include "confdefs.h"
9879 /* Override any gcc2 internal prototype to avoid an error. */ 9905 /* Override any gcc2 internal prototype to avoid an error. */
9880 /* We use char because int might match the return type of a gcc2 9906 /* We use char because int might match the return type of a gcc2
9881 builtin and then its argument prototype would still apply. */ 9907 builtin and then its argument prototype would still apply. */
9882 char dbopen(); 9908 char dbopen();
9883 9909
9884 int main() { 9910 int main() {
9885 dbopen() 9911 dbopen()
9886 ; return 0; } 9912 ; return 0; }
9887 EOF 9913 EOF
9888 if { (eval echo configure:9889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9914 if { (eval echo configure:9915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9889 rm -rf conftest* 9915 rm -rf conftest*
9890 eval "ac_cv_lib_$ac_lib_var=yes" 9916 eval "ac_cv_lib_$ac_lib_var=yes"
9891 else 9917 else
9892 echo "configure: failed program was:" >&5 9918 echo "configure: failed program was:" >&5
9893 cat conftest.$ac_ext >&5 9919 cat conftest.$ac_ext >&5
9907 9933
9908 fi 9934 fi
9909 if test "$with_database_berkdb" = "yes"; then 9935 if test "$with_database_berkdb" = "yes"; then
9910 for path in "db/db.h" "db.h"; do 9936 for path in "db/db.h" "db.h"; do
9911 cat > conftest.$ac_ext <<EOF 9937 cat > conftest.$ac_ext <<EOF
9912 #line 9913 "configure" 9938 #line 9939 "configure"
9913 #include "confdefs.h" 9939 #include "confdefs.h"
9914 #ifdef HAVE_INTTYPES_H 9940 #ifdef HAVE_INTTYPES_H
9915 #define __BIT_TYPES_DEFINED__ 9941 #define __BIT_TYPES_DEFINED__
9916 #include <inttypes.h> 9942 #include <inttypes.h>
9917 typedef uint8_t u_int8_t; 9943 typedef uint8_t u_int8_t;
9930 9956
9931 int main() { 9957 int main() {
9932 9958
9933 ; return 0; } 9959 ; return 0; }
9934 EOF 9960 EOF
9935 if { (eval echo configure:9936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9961 if { (eval echo configure:9962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9936 rm -rf conftest* 9962 rm -rf conftest*
9937 db_h_path="$path"; break 9963 db_h_path="$path"; break
9938 else 9964 else
9939 echo "configure: failed program was:" >&5 9965 echo "configure: failed program was:" >&5
9940 cat conftest.$ac_ext >&5 9966 cat conftest.$ac_ext >&5
9982 fi 10008 fi
9983 10009
9984 if test "$with_socks" = "yes"; then 10010 if test "$with_socks" = "yes"; then
9985 10011
9986 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 10012 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9987 echo "configure:9988: checking for SOCKSinit in -lsocks" >&5 10013 echo "configure:10014: checking for SOCKSinit in -lsocks" >&5
9988 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 10014 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9989 10015
9990 xe_check_libs=" -lsocks " 10016 xe_check_libs=" -lsocks "
9991 cat > conftest.$ac_ext <<EOF 10017 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure" 10018 #line 10019 "configure"
9993 #include "confdefs.h" 10019 #include "confdefs.h"
9994 /* Override any gcc2 internal prototype to avoid an error. */ 10020 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2 10021 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */ 10022 builtin and then its argument prototype would still apply. */
9997 char SOCKSinit(); 10023 char SOCKSinit();
9998 10024
9999 int main() { 10025 int main() {
10000 SOCKSinit() 10026 SOCKSinit()
10001 ; return 0; } 10027 ; return 0; }
10002 EOF 10028 EOF
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10029 if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
10004 rm -rf conftest* 10030 rm -rf conftest*
10005 eval "ac_cv_lib_$ac_lib_var=yes" 10031 eval "ac_cv_lib_$ac_lib_var=yes"
10006 else 10032 else
10007 echo "configure: failed program was:" >&5 10033 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5 10034 cat conftest.$ac_ext >&5
10205 10231
10206 10232
10207 10233
10208 10234
10209 10235
10236
10210 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'" 10237 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'"
10211 10238
10212 10239
10213 10240
10214 10241
10535 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." 10562 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
10536 test "$with_offix" = yes && echo " Compiling in support for OffiX." 10563 test "$with_offix" = yes && echo " Compiling in support for OffiX."
10537 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." 10564 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop."
10538 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)." 10565 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
10539 test "$with_session" != no && echo " Compiling in support for proper session-management." 10566 test "$with_session" != no && echo " Compiling in support for proper session-management."
10540 case "$with_menubars" in 10567 case "$with_menubars" in
10541 lucid ) echo " Using Lucid menubars." ;; 10568 lucid ) echo " Using Lucid menubars." ;;
10542 motif ) echo " Using Motif menubars." 10569 motif ) echo " Using Motif menubars."
10543 echo " *WARNING* The Motif menubar implementation is currently buggy." 10570 echo " *WARNING* The Motif menubar implementation is currently buggy."
10544 echo " We recommend using the Lucid menubar instead." 10571 echo " We recommend using the Lucid menubar instead."
10545 echo " Re-run configure with --with-menubars='lucid'." ;; 10572 echo " Re-run configure with --with-menubars='lucid'." ;;
10553 case "$with_dialogs" in 10580 case "$with_dialogs" in
10554 motif ) echo " Using Motif dialog boxes." ;; 10581 motif ) echo " Using Motif dialog boxes." ;;
10555 athena ) echo " Using Athena dialog boxes." ;; 10582 athena ) echo " Using Athena dialog boxes." ;;
10556 athena3d ) echo " Using Athena-3d dialog boxes." ;; 10583 athena3d ) echo " Using Athena-3d dialog boxes." ;;
10557 esac 10584 esac
10585 test "$with_clash_detection" = yes && \
10586 echo " Clash detection will use \"$lockdir\" for locking files."
10558 echo " movemail will use \"$mail_locking\" for locking mail spool files." 10587 echo " movemail will use \"$mail_locking\" for locking mail spool files."
10559 test "$with_pop" = yes && echo " Using POP for mail access" 10588 test "$with_pop" = yes && echo " Using POP for mail access"
10560 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" 10589 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
10561 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" 10590 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
10562 10591 echo " The \`Info-default-directory-list' will be initialized from:"
10592 echo " INFOPATH=\"`echo $infopath`\""
10563 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." 10593 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
10564 test "$debug" = yes && echo " Compiling in extra code for debugging." 10594 test "$debug" = yes && echo " Compiling in extra code for debugging."
10565 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." 10595 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage."
10566 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." 10596 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
10567 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ 10597 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
10702 s%@canonical@%$canonical%g 10732 s%@canonical@%$canonical%g
10703 s%@srcdir@%$srcdir%g 10733 s%@srcdir@%$srcdir%g
10704 s%@pkgdir@%$pkgdir%g 10734 s%@pkgdir@%$pkgdir%g
10705 s%@statedir@%$statedir%g 10735 s%@statedir@%$statedir%g
10706 s%@infodir_user_defined@%$infodir_user_defined%g 10736 s%@infodir_user_defined@%$infodir_user_defined%g
10737 s%@infopath@%$infopath%g
10707 s%@lispdir@%$lispdir%g 10738 s%@lispdir@%$lispdir%g
10708 s%@lispdir_user_defined@%$lispdir_user_defined%g 10739 s%@lispdir_user_defined@%$lispdir_user_defined%g
10709 s%@sitelispdir@%$sitelispdir%g 10740 s%@sitelispdir@%$sitelispdir%g
10710 s%@etcdir@%$etcdir%g 10741 s%@etcdir@%$etcdir%g
10711 s%@etcdir_user_defined@%$etcdir_user_defined%g 10742 s%@etcdir_user_defined@%$etcdir_user_defined%g