comparison configure @ 355:182f72e8cd0d r21-1-7

Import from CVS: tag r21-1-7
author cvs
date Mon, 13 Aug 2007 10:56:21 +0200
parents 3b3709405255
children 4711e16a8e49
comparison
equal deleted inserted replaced
354:3729bef672e0 355:182f72e8cd0d
227 libdir='${exec_prefix}/lib' 227 libdir='${exec_prefix}/lib'
228 mandir='${prefix}/man/man1' 228 mandir='${prefix}/man/man1'
229 infodir='${datadir}/${PROGNAME}-${version}/info' 229 infodir='${datadir}/${PROGNAME}-${version}/info'
230 infopath='' 230 infopath=''
231 install_pp='' 231 install_pp=''
232 exe_suffix=''
232 lispdir='${datadir}/${PROGNAME}-${version}/lisp' 233 lispdir='${datadir}/${PROGNAME}-${version}/lisp'
233 pkgdir='${datadir}/${PROGNAME}-${version}/lisp' 234 pkgdir='${datadir}/${PROGNAME}-${version}/lisp'
234 package_path='' 235 package_path=''
235 etcdir='${datadir}/${PROGNAME}-${version}/etc' 236 etcdir='${datadir}/${PROGNAME}-${version}/etc'
236 lockdir='${statedir}/${PROGNAME}/lock' 237 lockdir='${statedir}/${PROGNAME}/lock'
752 ;; 753 ;;
753 esac 754 esac
754 755
755 if test -z "$configuration"; then 756 if test -z "$configuration"; then
756 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 757 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
757 echo "configure:758: checking "host system type"" >&5 758 echo "configure:759: checking "host system type"" >&5
758 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \ 759 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
759 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then 760 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
760 echo "$ac_t""$configuration" 1>&6 761 echo "$ac_t""$configuration" 1>&6
761 else 762 else
762 echo "$ac_t""unknown" 1>&6 763 echo "$ac_t""unknown" 1>&6
766 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 767 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
767 fi 768 fi
768 fi 769 fi
769 770
770 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 771 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
771 echo "configure:772: checking whether ln -s works" >&5 772 echo "configure:773: checking whether ln -s works" >&5
772 773
773 rm -f conftestdata 774 rm -f conftestdata
774 if ln -s X conftestdata 2>/dev/null 775 if ln -s X conftestdata 2>/dev/null
775 then 776 then
776 rm -f conftestdata 777 rm -f conftestdata
1003 } 1004 }
1004 1005
1005 1006
1006 1007
1007 echo "checking "the configuration name"" 1>&6 1008 echo "checking "the configuration name"" 1>&6
1008 echo "configure:1009: checking "the configuration name"" >&5 1009 echo "configure:1010: checking "the configuration name"" >&5
1009 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1010 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1010 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 1011 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
1011 exit $? 1012 exit $?
1012 fi 1013 fi
1013 1014
1021 sparc-*-* ) machine=sparc ;; 1022 sparc-*-* ) machine=sparc ;;
1022 alpha*-*-* ) machine=alpha ;; 1023 alpha*-*-* ) machine=alpha ;;
1023 vax-*-* ) machine=vax ;; 1024 vax-*-* ) machine=vax ;;
1024 mips-dec-* ) machine=pmax ;; 1025 mips-dec-* ) machine=pmax ;;
1025 mips-sgi-* ) machine=iris4d ;; 1026 mips-sgi-* ) machine=iris4d ;;
1027 mips*-linux ) machine=mips ;;
1026 romp-ibm-* ) machine=ibmrt ;; 1028 romp-ibm-* ) machine=ibmrt ;;
1027 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1029 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1028 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 1030 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1029 powerpc*-* ) machine=powerpc ;; 1031 powerpc*-* ) machine=powerpc ;;
1030 hppa-*-* ) machine=hp800 ;; 1032 hppa-*-* ) machine=hp800 ;;
1497 xe_save_CFLAGS="$CFLAGS" 1499 xe_save_CFLAGS="$CFLAGS"
1498 1500
1499 # Extract the first word of "gcc", so it can be a program name with args. 1501 # Extract the first word of "gcc", so it can be a program name with args.
1500 set dummy gcc; ac_word=$2 1502 set dummy gcc; ac_word=$2
1501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1502 echo "configure:1503: checking for $ac_word" >&5 1504 echo "configure:1505: checking for $ac_word" >&5
1503 1505
1504 if test -n "$CC"; then 1506 if test -n "$CC"; then
1505 ac_cv_prog_CC="$CC" # Let the user override the test. 1507 ac_cv_prog_CC="$CC" # Let the user override the test.
1506 else 1508 else
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1524 1526
1525 if test -z "$CC"; then 1527 if test -z "$CC"; then
1526 # Extract the first word of "cc", so it can be a program name with args. 1528 # Extract the first word of "cc", so it can be a program name with args.
1527 set dummy cc; ac_word=$2 1529 set dummy cc; ac_word=$2
1528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1529 echo "configure:1530: checking for $ac_word" >&5 1531 echo "configure:1532: checking for $ac_word" >&5
1530 1532
1531 if test -n "$CC"; then 1533 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test. 1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else 1535 else
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1572 case "`uname -s`" in 1574 case "`uname -s`" in
1573 *win32* | *WIN32*) 1575 *win32* | *WIN32*)
1574 # Extract the first word of "cl", so it can be a program name with args. 1576 # Extract the first word of "cl", so it can be a program name with args.
1575 set dummy cl; ac_word=$2 1577 set dummy cl; ac_word=$2
1576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_word" >&5 1579 echo "configure:1580: checking for $ac_word" >&5
1578 1580
1579 if test -n "$CC"; then 1581 if test -n "$CC"; then
1580 ac_cv_prog_CC="$CC" # Let the user override the test. 1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1581 else 1583 else
1582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 fi 1603 fi
1602 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1604 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1603 fi 1605 fi
1604 1606
1605 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1607 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1606 echo "configure:1607: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1608 echo "configure:1609: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1607 1609
1608 ac_ext=c 1610 ac_ext=c
1609 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1611 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1610 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1612 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1611 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1613 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1614 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1616 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1615 cross_compiling=no 1617 cross_compiling=no
1616 1618
1617 cat > conftest.$ac_ext << EOF 1619 cat > conftest.$ac_ext << EOF
1618 1620
1619 #line 1620 "configure" 1621 #line 1622 "configure"
1620 #include "confdefs.h" 1622 #include "confdefs.h"
1621 1623
1622 main(){return(0);} 1624 main(){return(0);}
1623 EOF 1625 EOF
1624 if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1626 if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1625 ac_cv_prog_cc_works=yes 1627 ac_cv_prog_cc_works=yes
1626 # If we can't run a trivial program, we are probably using a cross compiler. 1628 # If we can't run a trivial program, we are probably using a cross compiler.
1627 if (./conftest; exit) 2>/dev/null; then 1629 if (./conftest; exit) 2>/dev/null; then
1628 ac_cv_prog_cc_cross=no 1630 ac_cv_prog_cc_cross=no
1629 else 1631 else
1647 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1649 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1648 if test $ac_cv_prog_cc_works = no; then 1650 if test $ac_cv_prog_cc_works = no; then
1649 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1651 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1650 fi 1652 fi
1651 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1653 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1652 echo "configure:1653: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1654 echo "configure:1655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1653 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1655 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1654 cross_compiling=$ac_cv_prog_cc_cross 1656 cross_compiling=$ac_cv_prog_cc_cross
1655 1657
1656 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1658 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1657 echo "configure:1658: checking whether we are using GNU C" >&5 1659 echo "configure:1660: checking whether we are using GNU C" >&5
1658 1660
1659 cat > conftest.c <<EOF 1661 cat > conftest.c <<EOF
1660 #ifdef __GNUC__ 1662 #ifdef __GNUC__
1661 yes; 1663 yes;
1662 #endif 1664 #endif
1663 EOF 1665 EOF
1664 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1666 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1665 ac_cv_prog_gcc=yes 1667 ac_cv_prog_gcc=yes
1666 else 1668 else
1667 ac_cv_prog_gcc=no 1669 ac_cv_prog_gcc=no
1668 fi 1670 fi
1669 1671
1677 1679
1678 ac_test_CFLAGS="${CFLAGS+set}" 1680 ac_test_CFLAGS="${CFLAGS+set}"
1679 ac_save_CFLAGS="$CFLAGS" 1681 ac_save_CFLAGS="$CFLAGS"
1680 CFLAGS= 1682 CFLAGS=
1681 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1683 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1682 echo "configure:1683: checking whether ${CC-cc} accepts -g" >&5 1684 echo "configure:1685: checking whether ${CC-cc} accepts -g" >&5
1683 1685
1684 echo 'void f(){}' > conftest.c 1686 echo 'void f(){}' > conftest.c
1685 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1687 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1686 ac_cv_prog_cc_g=yes 1688 ac_cv_prog_cc_g=yes
1687 else 1689 else
1710 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1712 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1711 CC=${NON_GNU_CC-cc} 1713 CC=${NON_GNU_CC-cc}
1712 # Extract the first word of "gcc", so it can be a program name with args. 1714 # Extract the first word of "gcc", so it can be a program name with args.
1713 set dummy gcc; ac_word=$2 1715 set dummy gcc; ac_word=$2
1714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $ac_word" >&5 1717 echo "configure:1718: checking for $ac_word" >&5
1716 1718
1717 if test -n "$CC"; then 1719 if test -n "$CC"; then
1718 ac_cv_prog_CC="$CC" # Let the user override the test. 1720 ac_cv_prog_CC="$CC" # Let the user override the test.
1719 else 1721 else
1720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1737 1739
1738 if test -z "$CC"; then 1740 if test -z "$CC"; then
1739 # Extract the first word of "cc", so it can be a program name with args. 1741 # Extract the first word of "cc", so it can be a program name with args.
1740 set dummy cc; ac_word=$2 1742 set dummy cc; ac_word=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5 1744 echo "configure:1745: checking for $ac_word" >&5
1743 1745
1744 if test -n "$CC"; then 1746 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test. 1747 ac_cv_prog_CC="$CC" # Let the user override the test.
1746 else 1748 else
1747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1785 case "`uname -s`" in 1787 case "`uname -s`" in
1786 *win32* | *WIN32*) 1788 *win32* | *WIN32*)
1787 # Extract the first word of "cl", so it can be a program name with args. 1789 # Extract the first word of "cl", so it can be a program name with args.
1788 set dummy cl; ac_word=$2 1790 set dummy cl; ac_word=$2
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_word" >&5 1792 echo "configure:1793: checking for $ac_word" >&5
1791 1793
1792 if test -n "$CC"; then 1794 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test. 1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 else 1796 else
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1814 fi 1816 fi
1815 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1817 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1816 fi 1818 fi
1817 1819
1818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1821 echo "configure:1822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1820 1822
1821 ac_ext=c 1823 ac_ext=c
1822 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1824 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1823 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1825 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1824 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1826 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1827 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1829 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1828 cross_compiling=no 1830 cross_compiling=no
1829 1831
1830 cat > conftest.$ac_ext << EOF 1832 cat > conftest.$ac_ext << EOF
1831 1833
1832 #line 1833 "configure" 1834 #line 1835 "configure"
1833 #include "confdefs.h" 1835 #include "confdefs.h"
1834 1836
1835 main(){return(0);} 1837 main(){return(0);}
1836 EOF 1838 EOF
1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1839 if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 ac_cv_prog_cc_works=yes 1840 ac_cv_prog_cc_works=yes
1839 # If we can't run a trivial program, we are probably using a cross compiler. 1841 # If we can't run a trivial program, we are probably using a cross compiler.
1840 if (./conftest; exit) 2>/dev/null; then 1842 if (./conftest; exit) 2>/dev/null; then
1841 ac_cv_prog_cc_cross=no 1843 ac_cv_prog_cc_cross=no
1842 else 1844 else
1860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1862 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1861 if test $ac_cv_prog_cc_works = no; then 1863 if test $ac_cv_prog_cc_works = no; then
1862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1864 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1863 fi 1865 fi
1864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1866 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1865 echo "configure:1866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1867 echo "configure:1868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1868 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1867 cross_compiling=$ac_cv_prog_cc_cross 1869 cross_compiling=$ac_cv_prog_cc_cross
1868 1870
1869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1871 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1870 echo "configure:1871: checking whether we are using GNU C" >&5 1872 echo "configure:1873: checking whether we are using GNU C" >&5
1871 1873
1872 cat > conftest.c <<EOF 1874 cat > conftest.c <<EOF
1873 #ifdef __GNUC__ 1875 #ifdef __GNUC__
1874 yes; 1876 yes;
1875 #endif 1877 #endif
1876 EOF 1878 EOF
1877 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1879 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1878 ac_cv_prog_gcc=yes 1880 ac_cv_prog_gcc=yes
1879 else 1881 else
1880 ac_cv_prog_gcc=no 1882 ac_cv_prog_gcc=no
1881 fi 1883 fi
1882 1884
1890 1892
1891 ac_test_CFLAGS="${CFLAGS+set}" 1893 ac_test_CFLAGS="${CFLAGS+set}"
1892 ac_save_CFLAGS="$CFLAGS" 1894 ac_save_CFLAGS="$CFLAGS"
1893 CFLAGS= 1895 CFLAGS=
1894 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1896 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether ${CC-cc} accepts -g" >&5 1897 echo "configure:1898: checking whether ${CC-cc} accepts -g" >&5
1896 1898
1897 echo 'void f(){}' > conftest.c 1899 echo 'void f(){}' > conftest.c
1898 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1900 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1899 ac_cv_prog_cc_g=yes 1901 ac_cv_prog_cc_g=yes
1900 else 1902 else
1923 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1925 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1924 CC=gcc 1926 CC=gcc
1925 # Extract the first word of "gcc", so it can be a program name with args. 1927 # Extract the first word of "gcc", so it can be a program name with args.
1926 set dummy gcc; ac_word=$2 1928 set dummy gcc; ac_word=$2
1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_word" >&5 1930 echo "configure:1931: checking for $ac_word" >&5
1929 1931
1930 if test -n "$CC"; then 1932 if test -n "$CC"; then
1931 ac_cv_prog_CC="$CC" # Let the user override the test. 1933 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 else 1934 else
1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1950 1952
1951 if test -z "$CC"; then 1953 if test -z "$CC"; then
1952 # Extract the first word of "cc", so it can be a program name with args. 1954 # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2 1955 set dummy cc; ac_word=$2
1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_word" >&5 1957 echo "configure:1958: checking for $ac_word" >&5
1956 1958
1957 if test -n "$CC"; then 1959 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test. 1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1959 else 1961 else
1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1998 case "`uname -s`" in 2000 case "`uname -s`" in
1999 *win32* | *WIN32*) 2001 *win32* | *WIN32*)
2000 # Extract the first word of "cl", so it can be a program name with args. 2002 # Extract the first word of "cl", so it can be a program name with args.
2001 set dummy cl; ac_word=$2 2003 set dummy cl; ac_word=$2
2002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_word" >&5 2005 echo "configure:2006: checking for $ac_word" >&5
2004 2006
2005 if test -n "$CC"; then 2007 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test. 2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else 2009 else
2008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2027 fi 2029 fi
2028 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2030 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2029 fi 2031 fi
2030 2032
2031 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2033 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2032 echo "configure:2033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2034 echo "configure:2035: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2033 2035
2034 ac_ext=c 2036 ac_ext=c
2035 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2037 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2036 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2038 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2037 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2039 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2040 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2042 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2041 cross_compiling=no 2043 cross_compiling=no
2042 2044
2043 cat > conftest.$ac_ext << EOF 2045 cat > conftest.$ac_ext << EOF
2044 2046
2045 #line 2046 "configure" 2047 #line 2048 "configure"
2046 #include "confdefs.h" 2048 #include "confdefs.h"
2047 2049
2048 main(){return(0);} 2050 main(){return(0);}
2049 EOF 2051 EOF
2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2052 if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2051 ac_cv_prog_cc_works=yes 2053 ac_cv_prog_cc_works=yes
2052 # If we can't run a trivial program, we are probably using a cross compiler. 2054 # If we can't run a trivial program, we are probably using a cross compiler.
2053 if (./conftest; exit) 2>/dev/null; then 2055 if (./conftest; exit) 2>/dev/null; then
2054 ac_cv_prog_cc_cross=no 2056 ac_cv_prog_cc_cross=no
2055 else 2057 else
2073 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2075 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2074 if test $ac_cv_prog_cc_works = no; then 2076 if test $ac_cv_prog_cc_works = no; then
2075 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2077 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2076 fi 2078 fi
2077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2079 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2078 echo "configure:2079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2080 echo "configure:2081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2079 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2081 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2080 cross_compiling=$ac_cv_prog_cc_cross 2082 cross_compiling=$ac_cv_prog_cc_cross
2081 2083
2082 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2084 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2083 echo "configure:2084: checking whether we are using GNU C" >&5 2085 echo "configure:2086: checking whether we are using GNU C" >&5
2084 2086
2085 cat > conftest.c <<EOF 2087 cat > conftest.c <<EOF
2086 #ifdef __GNUC__ 2088 #ifdef __GNUC__
2087 yes; 2089 yes;
2088 #endif 2090 #endif
2089 EOF 2091 EOF
2090 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2092 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2091 ac_cv_prog_gcc=yes 2093 ac_cv_prog_gcc=yes
2092 else 2094 else
2093 ac_cv_prog_gcc=no 2095 ac_cv_prog_gcc=no
2094 fi 2096 fi
2095 2097
2103 2105
2104 ac_test_CFLAGS="${CFLAGS+set}" 2106 ac_test_CFLAGS="${CFLAGS+set}"
2105 ac_save_CFLAGS="$CFLAGS" 2107 ac_save_CFLAGS="$CFLAGS"
2106 CFLAGS= 2108 CFLAGS=
2107 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2109 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether ${CC-cc} accepts -g" >&5 2110 echo "configure:2111: checking whether ${CC-cc} accepts -g" >&5
2109 2111
2110 echo 'void f(){}' > conftest.c 2112 echo 'void f(){}' > conftest.c
2111 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2113 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2112 ac_cv_prog_cc_g=yes 2114 ac_cv_prog_cc_g=yes
2113 else 2115 else
2140 test -n "$CPP" -a -d "$CPP" && CPP= 2142 test -n "$CPP" -a -d "$CPP" && CPP=
2141 2143
2142 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2144 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2143 2145
2144 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2146 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2145 echo "configure:2146: checking how to run the C preprocessor" >&5 2147 echo "configure:2148: checking how to run the C preprocessor" >&5
2146 # On Suns, sometimes $CPP names a directory. 2148 # On Suns, sometimes $CPP names a directory.
2147 if test -n "$CPP" && test -d "$CPP"; then 2149 if test -n "$CPP" && test -d "$CPP"; then
2148 CPP= 2150 CPP=
2149 fi 2151 fi
2150 if test -z "$CPP"; then 2152 if test -z "$CPP"; then
2153 # substituted into the Makefile and "${CC-cc}" will confuse make. 2155 # substituted into the Makefile and "${CC-cc}" will confuse make.
2154 CPP="${CC-cc} -E" 2156 CPP="${CC-cc} -E"
2155 # On the NeXT, cc -E runs the code through the compiler's parser, 2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2156 # not just through cpp. 2158 # not just through cpp.
2157 cat > conftest.$ac_ext <<EOF 2159 cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure" 2160 #line 2161 "configure"
2159 #include "confdefs.h" 2161 #include "confdefs.h"
2160 #include <assert.h> 2162 #include <assert.h>
2161 Syntax Error 2163 Syntax Error
2162 EOF 2164 EOF
2163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2164 { (eval echo configure:2165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2166 { (eval echo configure:2167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2166 if test -z "$ac_err"; then 2168 if test -z "$ac_err"; then
2167 : 2169 :
2168 else 2170 else
2169 echo "$ac_err" >&5 2171 echo "$ac_err" >&5
2170 echo "configure: failed program was:" >&5 2172 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5 2173 cat conftest.$ac_ext >&5
2172 rm -rf conftest* 2174 rm -rf conftest*
2173 CPP="${CC-cc} -E -traditional-cpp" 2175 CPP="${CC-cc} -E -traditional-cpp"
2174 cat > conftest.$ac_ext <<EOF 2176 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure" 2177 #line 2178 "configure"
2176 #include "confdefs.h" 2178 #include "confdefs.h"
2177 #include <assert.h> 2179 #include <assert.h>
2178 Syntax Error 2180 Syntax Error
2179 EOF 2181 EOF
2180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2181 { (eval echo configure:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2183 { (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2183 if test -z "$ac_err"; then 2185 if test -z "$ac_err"; then
2184 : 2186 :
2185 else 2187 else
2186 echo "$ac_err" >&5 2188 echo "$ac_err" >&5
2187 echo "configure: failed program was:" >&5 2189 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5 2190 cat conftest.$ac_ext >&5
2189 rm -rf conftest* 2191 rm -rf conftest*
2190 CPP="${CC-cc} -nologo -E" 2192 CPP="${CC-cc} -nologo -E"
2191 cat > conftest.$ac_ext <<EOF 2193 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure" 2194 #line 2195 "configure"
2193 #include "confdefs.h" 2195 #include "confdefs.h"
2194 #include <assert.h> 2196 #include <assert.h>
2195 Syntax Error 2197 Syntax Error
2196 EOF 2198 EOF
2197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2200 { (eval echo configure:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2200 if test -z "$ac_err"; then 2202 if test -z "$ac_err"; then
2201 : 2203 :
2202 else 2204 else
2203 echo "$ac_err" >&5 2205 echo "$ac_err" >&5
2218 fi 2220 fi
2219 echo "$ac_t""$CPP" 1>&6 2221 echo "$ac_t""$CPP" 1>&6
2220 2222
2221 2223
2222 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2224 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2223 echo "configure:2224: checking for AIX" >&5 2225 echo "configure:2226: checking for AIX" >&5
2224 cat > conftest.$ac_ext <<EOF 2226 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure" 2227 #line 2228 "configure"
2226 #include "confdefs.h" 2228 #include "confdefs.h"
2227 #ifdef _AIX 2229 #ifdef _AIX
2228 yes 2230 yes
2229 #endif 2231 #endif
2230 2232
2247 rm -f conftest* 2249 rm -f conftest*
2248 2250
2249 2251
2250 2252
2251 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2253 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2252 echo "configure:2253: checking for GNU libc" >&5 2254 echo "configure:2255: checking for GNU libc" >&5
2253 cat > conftest.$ac_ext <<EOF 2255 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure" 2256 #line 2257 "configure"
2255 #include "confdefs.h" 2257 #include "confdefs.h"
2256 #include <features.h> 2258 #include <features.h>
2257 int main() { 2259 int main() {
2258 2260
2259 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2261 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2261 ******* ======= ******** &&&&&&&& 2263 ******* ======= ******** &&&&&&&&
2262 #endif 2264 #endif
2263 2265
2264 ; return 0; } 2266 ; return 0; }
2265 EOF 2267 EOF
2266 if { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2268 if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2267 rm -rf conftest* 2269 rm -rf conftest*
2268 have_glibc=yes 2270 have_glibc=yes
2269 else 2271 else
2270 echo "configure: failed program was:" >&5 2272 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5 2273 cat conftest.$ac_ext >&5
2283 } 2285 }
2284 2286
2285 2287
2286 2288
2287 cat > conftest.$ac_ext <<EOF 2289 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure" 2290 #line 2291 "configure"
2289 #include "confdefs.h" 2291 #include "confdefs.h"
2290 int main () { 2292 int main () {
2291 #if defined __SUNPRO_C 2293 #if defined __SUNPRO_C
2292 return 11; 2294 return 11;
2293 #elif defined __DECC 2295 #elif defined __DECC
2295 #else 2297 #else
2296 return 0; 2298 return 0;
2297 #endif 2299 #endif
2298 } 2300 }
2299 EOF 2301 EOF
2300 if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2301 then 2303 then
2302 : 2304 :
2303 else 2305 else
2304 conftest_rc="$?" 2306 conftest_rc="$?"
2305 echo "configure: failed program was:" >&5 2307 echo "configure: failed program was:" >&5
2565 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2567 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2566 echo " xemacs will be linked with \"$unexec\"" 2568 echo " xemacs will be linked with \"$unexec\""
2567 fi 2569 fi
2568 2570
2569 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2571 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2570 echo "configure:2571: checking for dynodump" >&5 2572 echo "configure:2573: checking for dynodump" >&5
2571 if test "$unexec" != "unexsol2.o"; then 2573 if test "$unexec" != "unexsol2.o"; then
2572 echo "$ac_t""no" 1>&6 2574 echo "$ac_t""no" 1>&6
2573 else 2575 else
2574 echo "$ac_t""yes" 1>&6 2576 echo "$ac_t""yes" 1>&6
2575 { test "$extra_verbose" = "yes" && cat << \EOF 2577 { test "$extra_verbose" = "yes" && cat << \EOF
2603 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2605 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2604 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2606 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2605 done 2607 done
2606 2608
2607 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2609 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2608 echo "configure:2609: checking for terminateAndUnload in -lC" >&5 2610 echo "configure:2611: checking for terminateAndUnload in -lC" >&5
2609 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2611 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2610 2612
2611 xe_check_libs=" -lC " 2613 xe_check_libs=" -lC "
2612 cat > conftest.$ac_ext <<EOF 2614 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure" 2615 #line 2616 "configure"
2614 #include "confdefs.h" 2616 #include "confdefs.h"
2615 /* Override any gcc2 internal prototype to avoid an error. */ 2617 /* Override any gcc2 internal prototype to avoid an error. */
2616 /* We use char because int might match the return type of a gcc2 2618 /* We use char because int might match the return type of a gcc2
2617 builtin and then its argument prototype would still apply. */ 2619 builtin and then its argument prototype would still apply. */
2618 char terminateAndUnload(); 2620 char terminateAndUnload();
2619 2621
2620 int main() { 2622 int main() {
2621 terminateAndUnload() 2623 terminateAndUnload()
2622 ; return 0; } 2624 ; return 0; }
2623 EOF 2625 EOF
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 rm -rf conftest* 2627 rm -rf conftest*
2626 eval "ac_cv_lib_$ac_lib_var=yes" 2628 eval "ac_cv_lib_$ac_lib_var=yes"
2627 else 2629 else
2628 echo "configure: failed program was:" >&5 2630 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5 2631 cat conftest.$ac_ext >&5
2703 esac 2705 esac
2704 fi 2706 fi
2705 2707
2706 if test "$add_runtime_path" = "yes"; then 2708 if test "$add_runtime_path" = "yes"; then
2707 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2709 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2708 echo "configure:2709: checking "for runtime libraries flag"" >&5 2710 echo "configure:2711: checking "for runtime libraries flag"" >&5
2709 case "$opsys" in 2711 case "$opsys" in
2710 sol2 ) dash_r="-R" ;; 2712 sol2 ) dash_r="-R" ;;
2711 decosf* | linux* | irix*) dash_r="-rpath " ;; 2713 decosf* | linux* | irix*) dash_r="-rpath " ;;
2712 *) 2714 *)
2713 dash_r="" 2715 dash_r=""
2725 esac 2727 esac
2726 shift 2728 shift
2727 done 2729 done
2728 fi 2730 fi
2729 cat > conftest.$ac_ext <<EOF 2731 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure" 2732 #line 2733 "configure"
2731 #include "confdefs.h" 2733 #include "confdefs.h"
2732 2734
2733 int main() { 2735 int main() {
2734 2736
2735 ; return 0; } 2737 ; return 0; }
2736 EOF 2738 EOF
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2739 if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2738 rm -rf conftest* 2740 rm -rf conftest*
2739 dash_r="$try_dash_r" 2741 dash_r="$try_dash_r"
2740 else 2742 else
2741 echo "configure: failed program was:" >&5 2743 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5 2744 cat conftest.$ac_ext >&5
2833 else 2835 else
2834 doug_lea_malloc=no 2836 doug_lea_malloc=no
2835 fi 2837 fi
2836 after_morecore_hook_exists=yes 2838 after_morecore_hook_exists=yes
2837 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2839 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2838 echo "configure:2839: checking for malloc_get_state" >&5 2840 echo "configure:2841: checking for malloc_get_state" >&5
2839 2841
2840 cat > conftest.$ac_ext <<EOF 2842 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure" 2843 #line 2844 "configure"
2842 #include "confdefs.h" 2844 #include "confdefs.h"
2843 /* System header to define __stub macros and hopefully few prototypes, 2845 /* System header to define __stub macros and hopefully few prototypes,
2844 which can conflict with char malloc_get_state(); below. */ 2846 which can conflict with char malloc_get_state(); below. */
2845 #include <assert.h> 2847 #include <assert.h>
2846 /* Override any gcc2 internal prototype to avoid an error. */ 2848 /* Override any gcc2 internal prototype to avoid an error. */
2859 malloc_get_state(); 2861 malloc_get_state();
2860 #endif 2862 #endif
2861 2863
2862 ; return 0; } 2864 ; return 0; }
2863 EOF 2865 EOF
2864 if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2865 rm -rf conftest* 2867 rm -rf conftest*
2866 eval "ac_cv_func_malloc_get_state=yes" 2868 eval "ac_cv_func_malloc_get_state=yes"
2867 else 2869 else
2868 echo "configure: failed program was:" >&5 2870 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5 2871 cat conftest.$ac_ext >&5
2879 echo "$ac_t""no" 1>&6 2881 echo "$ac_t""no" 1>&6
2880 doug_lea_malloc=no 2882 doug_lea_malloc=no
2881 fi 2883 fi
2882 2884
2883 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2885 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2884 echo "configure:2885: checking for malloc_set_state" >&5 2886 echo "configure:2887: checking for malloc_set_state" >&5
2885 2887
2886 cat > conftest.$ac_ext <<EOF 2888 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure" 2889 #line 2890 "configure"
2888 #include "confdefs.h" 2890 #include "confdefs.h"
2889 /* System header to define __stub macros and hopefully few prototypes, 2891 /* System header to define __stub macros and hopefully few prototypes,
2890 which can conflict with char malloc_set_state(); below. */ 2892 which can conflict with char malloc_set_state(); below. */
2891 #include <assert.h> 2893 #include <assert.h>
2892 /* Override any gcc2 internal prototype to avoid an error. */ 2894 /* Override any gcc2 internal prototype to avoid an error. */
2905 malloc_set_state(); 2907 malloc_set_state();
2906 #endif 2908 #endif
2907 2909
2908 ; return 0; } 2910 ; return 0; }
2909 EOF 2911 EOF
2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2912 if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2911 rm -rf conftest* 2913 rm -rf conftest*
2912 eval "ac_cv_func_malloc_set_state=yes" 2914 eval "ac_cv_func_malloc_set_state=yes"
2913 else 2915 else
2914 echo "configure: failed program was:" >&5 2916 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5 2917 cat conftest.$ac_ext >&5
2925 echo "$ac_t""no" 1>&6 2927 echo "$ac_t""no" 1>&6
2926 doug_lea_malloc=no 2928 doug_lea_malloc=no
2927 fi 2929 fi
2928 2930
2929 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2931 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2930 echo "configure:2931: checking whether __after_morecore_hook exists" >&5 2932 echo "configure:2933: checking whether __after_morecore_hook exists" >&5
2931 cat > conftest.$ac_ext <<EOF 2933 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure" 2934 #line 2935 "configure"
2933 #include "confdefs.h" 2935 #include "confdefs.h"
2934 extern void (* __after_morecore_hook)(); 2936 extern void (* __after_morecore_hook)();
2935 int main() { 2937 int main() {
2936 __after_morecore_hook = 0 2938 __after_morecore_hook = 0
2937 ; return 0; } 2939 ; return 0; }
2938 EOF 2940 EOF
2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2941 if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2940 rm -rf conftest* 2942 rm -rf conftest*
2941 echo "$ac_t""yes" 1>&6 2943 echo "$ac_t""yes" 1>&6
2942 else 2944 else
2943 echo "configure: failed program was:" >&5 2945 echo "configure: failed program was:" >&5
2944 cat conftest.$ac_ext >&5 2946 cat conftest.$ac_ext >&5
2993 2995
2994 2996
2995 # Extract the first word of "ranlib", so it can be a program name with args. 2997 # Extract the first word of "ranlib", so it can be a program name with args.
2996 set dummy ranlib; ac_word=$2 2998 set dummy ranlib; ac_word=$2
2997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2998 echo "configure:2999: checking for $ac_word" >&5 3000 echo "configure:3001: checking for $ac_word" >&5
2999 3001
3000 if test -n "$RANLIB"; then 3002 if test -n "$RANLIB"; then
3001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3002 else 3004 else
3003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3051 # ./install, which can be erroneously created by make from ./install.sh. 3053 # ./install, which can be erroneously created by make from ./install.sh.
3052 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3053 echo "configure:3054: checking for a BSD compatible install" >&5 3055 echo "configure:3056: checking for a BSD compatible install" >&5
3054 if test -z "$INSTALL"; then 3056 if test -z "$INSTALL"; then
3055 3057
3056 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3058 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3057 for ac_dir in $PATH; do 3059 for ac_dir in $PATH; do
3058 # Account for people who put trailing slashes in PATH elements. 3060 # Account for people who put trailing slashes in PATH elements.
3102 for ac_prog in 'bison -y' byacc 3104 for ac_prog in 'bison -y' byacc
3103 do 3105 do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args. 3106 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2 3107 set dummy $ac_prog; ac_word=$2
3106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3107 echo "configure:3108: checking for $ac_word" >&5 3109 echo "configure:3110: checking for $ac_word" >&5
3108 3110
3109 if test -n "$YACC"; then 3111 if test -n "$YACC"; then
3110 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3112 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3111 else 3113 else
3112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3134 3136
3135 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 3137 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3136 do 3138 do
3137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_hdr" >&5 3141 echo "configure:3142: checking for $ac_hdr" >&5
3140 3142
3141 cat > conftest.$ac_ext <<EOF 3143 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure" 3144 #line 3145 "configure"
3143 #include "confdefs.h" 3145 #include "confdefs.h"
3144 #include <$ac_hdr> 3146 #include <$ac_hdr>
3145 EOF 3147 EOF
3146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3147 { (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3149 { (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3149 if test -z "$ac_err"; then 3151 if test -z "$ac_err"; then
3150 rm -rf conftest* 3152 rm -rf conftest*
3151 eval "ac_cv_header_$ac_safe=yes" 3153 eval "ac_cv_header_$ac_safe=yes"
3152 else 3154 else
3175 3177
3176 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 3178 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3177 do 3179 do
3178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3180 echo "configure:3181: checking for $ac_hdr" >&5 3182 echo "configure:3183: checking for $ac_hdr" >&5
3181 3183
3182 cat > conftest.$ac_ext <<EOF 3184 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure" 3185 #line 3186 "configure"
3184 #include "confdefs.h" 3186 #include "confdefs.h"
3185 #include <$ac_hdr> 3187 #include <$ac_hdr>
3186 EOF 3188 EOF
3187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3188 { (eval echo configure:3189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3190 { (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3190 if test -z "$ac_err"; then 3192 if test -z "$ac_err"; then
3191 rm -rf conftest* 3193 rm -rf conftest*
3192 eval "ac_cv_header_$ac_safe=yes" 3194 eval "ac_cv_header_$ac_safe=yes"
3193 else 3195 else
3216 3218
3217 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3219 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3218 do 3220 do
3219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3221 echo "configure:3222: checking for $ac_hdr" >&5 3223 echo "configure:3224: checking for $ac_hdr" >&5
3222 3224
3223 cat > conftest.$ac_ext <<EOF 3225 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure" 3226 #line 3227 "configure"
3225 #include "confdefs.h" 3227 #include "confdefs.h"
3226 #include <$ac_hdr> 3228 #include <$ac_hdr>
3227 EOF 3229 EOF
3228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3229 { (eval echo configure:3230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3231 { (eval echo configure:3232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3231 if test -z "$ac_err"; then 3233 if test -z "$ac_err"; then
3232 rm -rf conftest* 3234 rm -rf conftest*
3233 eval "ac_cv_header_$ac_safe=yes" 3235 eval "ac_cv_header_$ac_safe=yes"
3234 else 3236 else
3254 echo "$ac_t""no" 1>&6 3256 echo "$ac_t""no" 1>&6
3255 fi 3257 fi
3256 done 3258 done
3257 3259
3258 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3260 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3259 echo "configure:3260: checking for sys/wait.h that is POSIX.1 compatible" >&5 3261 echo "configure:3262: checking for sys/wait.h that is POSIX.1 compatible" >&5
3260 3262
3261 cat > conftest.$ac_ext <<EOF 3263 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure" 3264 #line 3265 "configure"
3263 #include "confdefs.h" 3265 #include "confdefs.h"
3264 #include <sys/types.h> 3266 #include <sys/types.h>
3265 #include <sys/wait.h> 3267 #include <sys/wait.h>
3266 #ifndef WEXITSTATUS 3268 #ifndef WEXITSTATUS
3267 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3269 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3273 int s; 3275 int s;
3274 wait (&s); 3276 wait (&s);
3275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3276 ; return 0; } 3278 ; return 0; }
3277 EOF 3279 EOF
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3280 if { (eval echo configure:3281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279 rm -rf conftest* 3281 rm -rf conftest*
3280 ac_cv_header_sys_wait_h=yes 3282 ac_cv_header_sys_wait_h=yes
3281 else 3283 else
3282 echo "configure: failed program was:" >&5 3284 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5 3285 cat conftest.$ac_ext >&5
3297 } 3299 }
3298 3300
3299 fi 3301 fi
3300 3302
3301 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3303 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3302 echo "configure:3303: checking for ANSI C header files" >&5 3304 echo "configure:3305: checking for ANSI C header files" >&5
3303 3305
3304 cat > conftest.$ac_ext <<EOF 3306 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure" 3307 #line 3308 "configure"
3306 #include "confdefs.h" 3308 #include "confdefs.h"
3307 #include <stdlib.h> 3309 #include <stdlib.h>
3308 #include <stdarg.h> 3310 #include <stdarg.h>
3309 #include <string.h> 3311 #include <string.h>
3310 #include <float.h> 3312 #include <float.h>
3311 EOF 3313 EOF
3312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3313 { (eval echo configure:3314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3315 if test -z "$ac_err"; then 3317 if test -z "$ac_err"; then
3316 rm -rf conftest* 3318 rm -rf conftest*
3317 ac_cv_header_stdc=yes 3319 ac_cv_header_stdc=yes
3318 else 3320 else
3325 rm -f conftest* 3327 rm -f conftest*
3326 3328
3327 if test $ac_cv_header_stdc = yes; then 3329 if test $ac_cv_header_stdc = yes; then
3328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3330 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3329 cat > conftest.$ac_ext <<EOF 3331 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure" 3332 #line 3333 "configure"
3331 #include "confdefs.h" 3333 #include "confdefs.h"
3332 #include <string.h> 3334 #include <string.h>
3333 EOF 3335 EOF
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 egrep "memchr" >/dev/null 2>&1; then 3337 egrep "memchr" >/dev/null 2>&1; then
3343 fi 3345 fi
3344 3346
3345 if test $ac_cv_header_stdc = yes; then 3347 if test $ac_cv_header_stdc = yes; then
3346 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3348 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3347 cat > conftest.$ac_ext <<EOF 3349 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure" 3350 #line 3351 "configure"
3349 #include "confdefs.h" 3351 #include "confdefs.h"
3350 #include <stdlib.h> 3352 #include <stdlib.h>
3351 EOF 3353 EOF
3352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3353 egrep "free" >/dev/null 2>&1; then 3355 egrep "free" >/dev/null 2>&1; then
3361 fi 3363 fi
3362 3364
3363 if test $ac_cv_header_stdc = yes; then 3365 if test $ac_cv_header_stdc = yes; then
3364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3365 cat > conftest.$ac_ext <<EOF 3367 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure" 3368 #line 3369 "configure"
3367 #include "confdefs.h" 3369 #include "confdefs.h"
3368 #include <ctype.h> 3370 #include <ctype.h>
3369 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3371 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3370 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3372 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3372 int main () { int i; for (i = 0; i < 256; i++) 3374 int main () { int i; for (i = 0; i < 256; i++)
3373 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3375 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3374 exit (0); } 3376 exit (0); }
3375 3377
3376 EOF 3378 EOF
3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3378 then 3380 then
3379 : 3381 :
3380 else 3382 else
3381 conftest_rc="$?" 3383 conftest_rc="$?"
3382 echo "configure: failed program was:" >&5 3384 echo "configure: failed program was:" >&5
3398 } 3400 }
3399 3401
3400 fi 3402 fi
3401 3403
3402 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3404 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3403 echo "configure:3404: checking whether time.h and sys/time.h may both be included" >&5 3405 echo "configure:3406: checking whether time.h and sys/time.h may both be included" >&5
3404 3406
3405 cat > conftest.$ac_ext <<EOF 3407 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure" 3408 #line 3409 "configure"
3407 #include "confdefs.h" 3409 #include "confdefs.h"
3408 #include <sys/types.h> 3410 #include <sys/types.h>
3409 #include <sys/time.h> 3411 #include <sys/time.h>
3410 #include <time.h> 3412 #include <time.h>
3411 int main() { 3413 int main() {
3412 struct tm *tp; 3414 struct tm *tp;
3413 ; return 0; } 3415 ; return 0; }
3414 EOF 3416 EOF
3415 if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3416 rm -rf conftest* 3418 rm -rf conftest*
3417 ac_cv_header_time=yes 3419 ac_cv_header_time=yes
3418 else 3420 else
3419 echo "configure: failed program was:" >&5 3421 echo "configure: failed program was:" >&5
3420 cat conftest.$ac_ext >&5 3422 cat conftest.$ac_ext >&5
3434 } 3436 }
3435 3437
3436 fi 3438 fi
3437 3439
3438 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3440 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3439 echo "configure:3440: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3441 echo "configure:3442: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3440 3442
3441 cat > conftest.$ac_ext <<EOF 3443 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure" 3444 #line 3445 "configure"
3443 #include "confdefs.h" 3445 #include "confdefs.h"
3444 #include <sys/types.h> 3446 #include <sys/types.h>
3445 #include <signal.h> 3447 #include <signal.h>
3446 /* NetBSD declares sys_siglist in unistd.h. */ 3448 /* NetBSD declares sys_siglist in unistd.h. */
3447 #ifdef HAVE_UNISTD_H 3449 #ifdef HAVE_UNISTD_H
3449 #endif 3451 #endif
3450 int main() { 3452 int main() {
3451 char *msg = *(sys_siglist + 1); 3453 char *msg = *(sys_siglist + 1);
3452 ; return 0; } 3454 ; return 0; }
3453 EOF 3455 EOF
3454 if { (eval echo configure:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3455 rm -rf conftest* 3457 rm -rf conftest*
3456 ac_cv_decl_sys_siglist=yes 3458 ac_cv_decl_sys_siglist=yes
3457 else 3459 else
3458 echo "configure: failed program was:" >&5 3460 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5 3461 cat conftest.$ac_ext >&5
3474 3476
3475 fi 3477 fi
3476 3478
3477 3479
3478 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3480 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3479 echo "configure:3480: checking for struct utimbuf" >&5 3481 echo "configure:3482: checking for struct utimbuf" >&5
3480 cat > conftest.$ac_ext <<EOF 3482 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure" 3483 #line 3484 "configure"
3482 #include "confdefs.h" 3484 #include "confdefs.h"
3483 #ifdef TIME_WITH_SYS_TIME 3485 #ifdef TIME_WITH_SYS_TIME
3484 #include <sys/time.h> 3486 #include <sys/time.h>
3485 #include <time.h> 3487 #include <time.h>
3486 #else 3488 #else
3495 #endif 3497 #endif
3496 int main() { 3498 int main() {
3497 static struct utimbuf x; x.actime = x.modtime; 3499 static struct utimbuf x; x.actime = x.modtime;
3498 ; return 0; } 3500 ; return 0; }
3499 EOF 3501 EOF
3500 if { (eval echo configure:3501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3502 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3501 rm -rf conftest* 3503 rm -rf conftest*
3502 echo "$ac_t""yes" 1>&6 3504 echo "$ac_t""yes" 1>&6
3503 { test "$extra_verbose" = "yes" && cat << \EOF 3505 { test "$extra_verbose" = "yes" && cat << \EOF
3504 Defining HAVE_STRUCT_UTIMBUF 3506 Defining HAVE_STRUCT_UTIMBUF
3505 EOF 3507 EOF
3515 echo "$ac_t""no" 1>&6 3517 echo "$ac_t""no" 1>&6
3516 fi 3518 fi
3517 rm -f conftest* 3519 rm -f conftest*
3518 3520
3519 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3521 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3520 echo "configure:3521: checking return type of signal handlers" >&5 3522 echo "configure:3523: checking return type of signal handlers" >&5
3521 3523
3522 cat > conftest.$ac_ext <<EOF 3524 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure" 3525 #line 3526 "configure"
3524 #include "confdefs.h" 3526 #include "confdefs.h"
3525 #include <sys/types.h> 3527 #include <sys/types.h>
3526 #include <signal.h> 3528 #include <signal.h>
3527 #ifdef signal 3529 #ifdef signal
3528 #undef signal 3530 #undef signal
3535 3537
3536 int main() { 3538 int main() {
3537 int i; 3539 int i;
3538 ; return 0; } 3540 ; return 0; }
3539 EOF 3541 EOF
3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3542 if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3541 rm -rf conftest* 3543 rm -rf conftest*
3542 ac_cv_type_signal=void 3544 ac_cv_type_signal=void
3543 else 3545 else
3544 echo "configure: failed program was:" >&5 3546 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5 3547 cat conftest.$ac_ext >&5
3557 EOF 3559 EOF
3558 } 3560 }
3559 3561
3560 3562
3561 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3563 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3562 echo "configure:3563: checking for size_t" >&5 3564 echo "configure:3565: checking for size_t" >&5
3563 3565
3564 cat > conftest.$ac_ext <<EOF 3566 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure" 3567 #line 3568 "configure"
3566 #include "confdefs.h" 3568 #include "confdefs.h"
3567 #include <sys/types.h> 3569 #include <sys/types.h>
3568 #if STDC_HEADERS 3570 #if STDC_HEADERS
3569 #include <stdlib.h> 3571 #include <stdlib.h>
3570 #include <stddef.h> 3572 #include <stddef.h>
3591 } 3593 }
3592 3594
3593 fi 3595 fi
3594 3596
3595 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3597 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3596 echo "configure:3597: checking for pid_t" >&5 3598 echo "configure:3599: checking for pid_t" >&5
3597 3599
3598 cat > conftest.$ac_ext <<EOF 3600 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure" 3601 #line 3602 "configure"
3600 #include "confdefs.h" 3602 #include "confdefs.h"
3601 #include <sys/types.h> 3603 #include <sys/types.h>
3602 #if STDC_HEADERS 3604 #if STDC_HEADERS
3603 #include <stdlib.h> 3605 #include <stdlib.h>
3604 #include <stddef.h> 3606 #include <stddef.h>
3625 } 3627 }
3626 3628
3627 fi 3629 fi
3628 3630
3629 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3631 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3630 echo "configure:3631: checking for uid_t in sys/types.h" >&5 3632 echo "configure:3633: checking for uid_t in sys/types.h" >&5
3631 3633
3632 cat > conftest.$ac_ext <<EOF 3634 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure" 3635 #line 3636 "configure"
3634 #include "confdefs.h" 3636 #include "confdefs.h"
3635 #include <sys/types.h> 3637 #include <sys/types.h>
3636 EOF 3638 EOF
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638 egrep "uid_t" >/dev/null 2>&1; then 3640 egrep "uid_t" >/dev/null 2>&1; then
3664 } 3666 }
3665 3667
3666 fi 3668 fi
3667 3669
3668 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3670 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3669 echo "configure:3670: checking for mode_t" >&5 3671 echo "configure:3672: checking for mode_t" >&5
3670 3672
3671 cat > conftest.$ac_ext <<EOF 3673 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure" 3674 #line 3675 "configure"
3673 #include "confdefs.h" 3675 #include "confdefs.h"
3674 #include <sys/types.h> 3676 #include <sys/types.h>
3675 #if STDC_HEADERS 3677 #if STDC_HEADERS
3676 #include <stdlib.h> 3678 #include <stdlib.h>
3677 #include <stddef.h> 3679 #include <stddef.h>
3698 } 3700 }
3699 3701
3700 fi 3702 fi
3701 3703
3702 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3704 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3703 echo "configure:3704: checking for off_t" >&5 3705 echo "configure:3706: checking for off_t" >&5
3704 3706
3705 cat > conftest.$ac_ext <<EOF 3707 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure" 3708 #line 3709 "configure"
3707 #include "confdefs.h" 3709 #include "confdefs.h"
3708 #include <sys/types.h> 3710 #include <sys/types.h>
3709 #if STDC_HEADERS 3711 #if STDC_HEADERS
3710 #include <stdlib.h> 3712 #include <stdlib.h>
3711 #include <stddef.h> 3713 #include <stddef.h>
3733 3735
3734 fi 3736 fi
3735 3737
3736 3738
3737 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3739 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3738 echo "configure:3739: checking for struct timeval" >&5 3740 echo "configure:3741: checking for struct timeval" >&5
3739 cat > conftest.$ac_ext <<EOF 3741 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure" 3742 #line 3743 "configure"
3741 #include "confdefs.h" 3743 #include "confdefs.h"
3742 #ifdef TIME_WITH_SYS_TIME 3744 #ifdef TIME_WITH_SYS_TIME
3743 #include <sys/time.h> 3745 #include <sys/time.h>
3744 #include <time.h> 3746 #include <time.h>
3745 #else 3747 #else
3751 #endif 3753 #endif
3752 int main() { 3754 int main() {
3753 static struct timeval x; x.tv_sec = x.tv_usec; 3755 static struct timeval x; x.tv_sec = x.tv_usec;
3754 ; return 0; } 3756 ; return 0; }
3755 EOF 3757 EOF
3756 if { (eval echo configure:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3758 if { (eval echo configure:3759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3757 rm -rf conftest* 3759 rm -rf conftest*
3758 echo "$ac_t""yes" 1>&6 3760 echo "$ac_t""yes" 1>&6
3759 HAVE_TIMEVAL=yes 3761 HAVE_TIMEVAL=yes
3760 { test "$extra_verbose" = "yes" && cat << \EOF 3762 { test "$extra_verbose" = "yes" && cat << \EOF
3761 Defining HAVE_TIMEVAL 3763 Defining HAVE_TIMEVAL
3773 HAVE_TIMEVAL=no 3775 HAVE_TIMEVAL=no
3774 fi 3776 fi
3775 rm -f conftest* 3777 rm -f conftest*
3776 3778
3777 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3779 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3778 echo "configure:3779: checking whether struct tm is in sys/time.h or time.h" >&5 3780 echo "configure:3781: checking whether struct tm is in sys/time.h or time.h" >&5
3779 3781
3780 cat > conftest.$ac_ext <<EOF 3782 cat > conftest.$ac_ext <<EOF
3781 #line 3782 "configure" 3783 #line 3784 "configure"
3782 #include "confdefs.h" 3784 #include "confdefs.h"
3783 #include <sys/types.h> 3785 #include <sys/types.h>
3784 #include <time.h> 3786 #include <time.h>
3785 int main() { 3787 int main() {
3786 struct tm *tp; tp->tm_sec; 3788 struct tm *tp; tp->tm_sec;
3787 ; return 0; } 3789 ; return 0; }
3788 EOF 3790 EOF
3789 if { (eval echo configure:3790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3791 if { (eval echo configure:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3790 rm -rf conftest* 3792 rm -rf conftest*
3791 ac_cv_struct_tm=time.h 3793 ac_cv_struct_tm=time.h
3792 else 3794 else
3793 echo "configure: failed program was:" >&5 3795 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5 3796 cat conftest.$ac_ext >&5
3808 } 3810 }
3809 3811
3810 fi 3812 fi
3811 3813
3812 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3814 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3813 echo "configure:3814: checking for tm_zone in struct tm" >&5 3815 echo "configure:3816: checking for tm_zone in struct tm" >&5
3814 3816
3815 cat > conftest.$ac_ext <<EOF 3817 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure" 3818 #line 3819 "configure"
3817 #include "confdefs.h" 3819 #include "confdefs.h"
3818 #include <sys/types.h> 3820 #include <sys/types.h>
3819 #include <$ac_cv_struct_tm> 3821 #include <$ac_cv_struct_tm>
3820 int main() { 3822 int main() {
3821 struct tm tm; tm.tm_zone; 3823 struct tm tm; tm.tm_zone;
3822 ; return 0; } 3824 ; return 0; }
3823 EOF 3825 EOF
3824 if { (eval echo configure:3825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3825 rm -rf conftest* 3827 rm -rf conftest*
3826 ac_cv_struct_tm_zone=yes 3828 ac_cv_struct_tm_zone=yes
3827 else 3829 else
3828 echo "configure: failed program was:" >&5 3830 echo "configure: failed program was:" >&5
3829 cat conftest.$ac_ext >&5 3831 cat conftest.$ac_ext >&5
3842 EOF 3844 EOF
3843 } 3845 }
3844 3846
3845 else 3847 else
3846 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3848 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3847 echo "configure:3848: checking for tzname" >&5 3849 echo "configure:3850: checking for tzname" >&5
3848 3850
3849 cat > conftest.$ac_ext <<EOF 3851 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure" 3852 #line 3853 "configure"
3851 #include "confdefs.h" 3853 #include "confdefs.h"
3852 #include <time.h> 3854 #include <time.h>
3853 #ifndef tzname /* For SGI. */ 3855 #ifndef tzname /* For SGI. */
3854 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3856 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3855 #endif 3857 #endif
3856 int main() { 3858 int main() {
3857 atoi(*tzname); 3859 atoi(*tzname);
3858 ; return 0; } 3860 ; return 0; }
3859 EOF 3861 EOF
3860 if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3861 rm -rf conftest* 3863 rm -rf conftest*
3862 ac_cv_var_tzname=yes 3864 ac_cv_var_tzname=yes
3863 else 3865 else
3864 echo "configure: failed program was:" >&5 3866 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5 3867 cat conftest.$ac_ext >&5
3881 fi 3883 fi
3882 fi 3884 fi
3883 3885
3884 3886
3885 echo $ac_n "checking for working const""... $ac_c" 1>&6 3887 echo $ac_n "checking for working const""... $ac_c" 1>&6
3886 echo "configure:3887: checking for working const" >&5 3888 echo "configure:3889: checking for working const" >&5
3887 3889
3888 cat > conftest.$ac_ext <<EOF 3890 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure" 3891 #line 3892 "configure"
3890 #include "confdefs.h" 3892 #include "confdefs.h"
3891 3893
3892 int main() { 3894 int main() {
3893 3895
3894 /* Ultrix mips cc rejects this. */ 3896 /* Ultrix mips cc rejects this. */
3933 const int foo = 10; 3935 const int foo = 10;
3934 } 3936 }
3935 3937
3936 ; return 0; } 3938 ; return 0; }
3937 EOF 3939 EOF
3938 if { (eval echo configure:3939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3939 rm -rf conftest* 3941 rm -rf conftest*
3940 ac_cv_c_const=yes 3942 ac_cv_c_const=yes
3941 else 3943 else
3942 echo "configure: failed program was:" >&5 3944 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5 3945 cat conftest.$ac_ext >&5
3958 3960
3959 fi 3961 fi
3960 3962
3961 3963
3962 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3964 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3963 echo "configure:3964: checking whether ${MAKE-make} sets \${MAKE}" >&5 3965 echo "configure:3966: checking whether ${MAKE-make} sets \${MAKE}" >&5
3964 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3966 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3965 3967
3966 cat > conftestmake <<\EOF 3968 cat > conftestmake <<\EOF
3967 all: 3969 all:
3968 @echo 'ac_maketemp="${MAKE}"' 3970 @echo 'ac_maketemp="${MAKE}"'
3983 SET_MAKE="MAKE=${MAKE-make}" 3985 SET_MAKE="MAKE=${MAKE-make}"
3984 fi 3986 fi
3985 3987
3986 3988
3987 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3989 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3988 echo "configure:3989: checking whether byte ordering is bigendian" >&5 3990 echo "configure:3991: checking whether byte ordering is bigendian" >&5
3989 3991
3990 ac_cv_c_bigendian=unknown 3992 ac_cv_c_bigendian=unknown
3991 # See if sys/param.h defines the BYTE_ORDER macro. 3993 # See if sys/param.h defines the BYTE_ORDER macro.
3992 cat > conftest.$ac_ext <<EOF 3994 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure" 3995 #line 3996 "configure"
3994 #include "confdefs.h" 3996 #include "confdefs.h"
3995 #include <sys/types.h> 3997 #include <sys/types.h>
3996 #include <sys/param.h> 3998 #include <sys/param.h>
3997 int main() { 3999 int main() {
3998 4000
3999 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4001 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4000 bogus endian macros 4002 bogus endian macros
4001 #endif 4003 #endif
4002 ; return 0; } 4004 ; return 0; }
4003 EOF 4005 EOF
4004 if { (eval echo configure:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4006 if { (eval echo configure:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 rm -rf conftest* 4007 rm -rf conftest*
4006 # It does; now see whether it defined to BIG_ENDIAN or not. 4008 # It does; now see whether it defined to BIG_ENDIAN or not.
4007 cat > conftest.$ac_ext <<EOF 4009 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure" 4010 #line 4011 "configure"
4009 #include "confdefs.h" 4011 #include "confdefs.h"
4010 #include <sys/types.h> 4012 #include <sys/types.h>
4011 #include <sys/param.h> 4013 #include <sys/param.h>
4012 int main() { 4014 int main() {
4013 4015
4014 #if BYTE_ORDER != BIG_ENDIAN 4016 #if BYTE_ORDER != BIG_ENDIAN
4015 not big endian 4017 not big endian
4016 #endif 4018 #endif
4017 ; return 0; } 4019 ; return 0; }
4018 EOF 4020 EOF
4019 if { (eval echo configure:4020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4021 if { (eval echo configure:4022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4020 rm -rf conftest* 4022 rm -rf conftest*
4021 ac_cv_c_bigendian=yes 4023 ac_cv_c_bigendian=yes
4022 else 4024 else
4023 echo "configure: failed program was:" >&5 4025 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5 4026 cat conftest.$ac_ext >&5
4031 cat conftest.$ac_ext >&5 4033 cat conftest.$ac_ext >&5
4032 fi 4034 fi
4033 rm -f conftest* 4035 rm -f conftest*
4034 if test $ac_cv_c_bigendian = unknown; then 4036 if test $ac_cv_c_bigendian = unknown; then
4035 cat > conftest.$ac_ext <<EOF 4037 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure" 4038 #line 4039 "configure"
4037 #include "confdefs.h" 4039 #include "confdefs.h"
4038 main () { 4040 main () {
4039 /* Are we little or big endian? From Harbison&Steele. */ 4041 /* Are we little or big endian? From Harbison&Steele. */
4040 union 4042 union
4041 { 4043 {
4044 } u; 4046 } u;
4045 u.l = 1; 4047 u.l = 1;
4046 exit (u.c[sizeof (long) - 1] == 1); 4048 exit (u.c[sizeof (long) - 1] == 1);
4047 } 4049 }
4048 EOF 4050 EOF
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4050 then 4052 then
4051 ac_cv_c_bigendian=no 4053 ac_cv_c_bigendian=no
4052 else 4054 else
4053 conftest_rc="$?" 4055 conftest_rc="$?"
4054 echo "configure: failed program was:" >&5 4056 echo "configure: failed program was:" >&5
4071 4073
4072 fi 4074 fi
4073 4075
4074 4076
4075 echo $ac_n "checking size of short""... $ac_c" 1>&6 4077 echo $ac_n "checking size of short""... $ac_c" 1>&6
4076 echo "configure:4077: checking size of short" >&5 4078 echo "configure:4079: checking size of short" >&5
4077 4079
4078 cat > conftest.$ac_ext <<EOF 4080 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure" 4081 #line 4082 "configure"
4080 #include "confdefs.h" 4082 #include "confdefs.h"
4081 #include <stdio.h> 4083 #include <stdio.h>
4082 main() 4084 main()
4083 { 4085 {
4084 FILE *f=fopen("conftestval", "w"); 4086 FILE *f=fopen("conftestval", "w");
4085 if (!f) exit(1); 4087 if (!f) exit(1);
4086 fprintf(f, "%d\n", sizeof(short)); 4088 fprintf(f, "%d\n", sizeof(short));
4087 exit(0); 4089 exit(0);
4088 } 4090 }
4089 EOF 4091 EOF
4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4091 then 4093 then
4092 ac_cv_sizeof_short=`cat conftestval` 4094 ac_cv_sizeof_short=`cat conftestval`
4093 else 4095 else
4094 conftest_rc="$?" 4096 conftest_rc="$?"
4095 echo "configure: failed program was:" >&5 4097 echo "configure: failed program was:" >&5
4113 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4115 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4114 echo "*** PANIC *** Please examine config.log for compilation errors." 4116 echo "*** PANIC *** Please examine config.log for compilation errors."
4115 exit 1 4117 exit 1
4116 fi 4118 fi
4117 echo $ac_n "checking size of int""... $ac_c" 1>&6 4119 echo $ac_n "checking size of int""... $ac_c" 1>&6
4118 echo "configure:4119: checking size of int" >&5 4120 echo "configure:4121: checking size of int" >&5
4119 4121
4120 cat > conftest.$ac_ext <<EOF 4122 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure" 4123 #line 4124 "configure"
4122 #include "confdefs.h" 4124 #include "confdefs.h"
4123 #include <stdio.h> 4125 #include <stdio.h>
4124 main() 4126 main()
4125 { 4127 {
4126 FILE *f=fopen("conftestval", "w"); 4128 FILE *f=fopen("conftestval", "w");
4127 if (!f) exit(1); 4129 if (!f) exit(1);
4128 fprintf(f, "%d\n", sizeof(int)); 4130 fprintf(f, "%d\n", sizeof(int));
4129 exit(0); 4131 exit(0);
4130 } 4132 }
4131 EOF 4133 EOF
4132 if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4133 then 4135 then
4134 ac_cv_sizeof_int=`cat conftestval` 4136 ac_cv_sizeof_int=`cat conftestval`
4135 else 4137 else
4136 conftest_rc="$?" 4138 conftest_rc="$?"
4137 echo "configure: failed program was:" >&5 4139 echo "configure: failed program was:" >&5
4149 EOF 4151 EOF
4150 } 4152 }
4151 4153
4152 4154
4153 echo $ac_n "checking size of long""... $ac_c" 1>&6 4155 echo $ac_n "checking size of long""... $ac_c" 1>&6
4154 echo "configure:4155: checking size of long" >&5 4156 echo "configure:4157: checking size of long" >&5
4155 4157
4156 cat > conftest.$ac_ext <<EOF 4158 cat > conftest.$ac_ext <<EOF
4157 #line 4158 "configure" 4159 #line 4160 "configure"
4158 #include "confdefs.h" 4160 #include "confdefs.h"
4159 #include <stdio.h> 4161 #include <stdio.h>
4160 main() 4162 main()
4161 { 4163 {
4162 FILE *f=fopen("conftestval", "w"); 4164 FILE *f=fopen("conftestval", "w");
4163 if (!f) exit(1); 4165 if (!f) exit(1);
4164 fprintf(f, "%d\n", sizeof(long)); 4166 fprintf(f, "%d\n", sizeof(long));
4165 exit(0); 4167 exit(0);
4166 } 4168 }
4167 EOF 4169 EOF
4168 if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4170 if { (eval echo configure:4171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4169 then 4171 then
4170 ac_cv_sizeof_long=`cat conftestval` 4172 ac_cv_sizeof_long=`cat conftestval`
4171 else 4173 else
4172 conftest_rc="$?" 4174 conftest_rc="$?"
4173 echo "configure: failed program was:" >&5 4175 echo "configure: failed program was:" >&5
4185 EOF 4187 EOF
4186 } 4188 }
4187 4189
4188 4190
4189 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4191 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4190 echo "configure:4191: checking size of long long" >&5 4192 echo "configure:4193: checking size of long long" >&5
4191 4193
4192 cat > conftest.$ac_ext <<EOF 4194 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure" 4195 #line 4196 "configure"
4194 #include "confdefs.h" 4196 #include "confdefs.h"
4195 #include <stdio.h> 4197 #include <stdio.h>
4196 main() 4198 main()
4197 { 4199 {
4198 FILE *f=fopen("conftestval", "w"); 4200 FILE *f=fopen("conftestval", "w");
4199 if (!f) exit(1); 4201 if (!f) exit(1);
4200 fprintf(f, "%d\n", sizeof(long long)); 4202 fprintf(f, "%d\n", sizeof(long long));
4201 exit(0); 4203 exit(0);
4202 } 4204 }
4203 EOF 4205 EOF
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4205 then 4207 then
4206 ac_cv_sizeof_long_long=`cat conftestval` 4208 ac_cv_sizeof_long_long=`cat conftestval`
4207 else 4209 else
4208 conftest_rc="$?" 4210 conftest_rc="$?"
4209 echo "configure: failed program was:" >&5 4211 echo "configure: failed program was:" >&5
4221 EOF 4223 EOF
4222 } 4224 }
4223 4225
4224 4226
4225 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4227 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4226 echo "configure:4227: checking size of void *" >&5 4228 echo "configure:4229: checking size of void *" >&5
4227 4229
4228 cat > conftest.$ac_ext <<EOF 4230 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure" 4231 #line 4232 "configure"
4230 #include "confdefs.h" 4232 #include "confdefs.h"
4231 #include <stdio.h> 4233 #include <stdio.h>
4232 main() 4234 main()
4233 { 4235 {
4234 FILE *f=fopen("conftestval", "w"); 4236 FILE *f=fopen("conftestval", "w");
4235 if (!f) exit(1); 4237 if (!f) exit(1);
4236 fprintf(f, "%d\n", sizeof(void *)); 4238 fprintf(f, "%d\n", sizeof(void *));
4237 exit(0); 4239 exit(0);
4238 } 4240 }
4239 EOF 4241 EOF
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4241 then 4243 then
4242 ac_cv_sizeof_void_p=`cat conftestval` 4244 ac_cv_sizeof_void_p=`cat conftestval`
4243 else 4245 else
4244 conftest_rc="$?" 4246 conftest_rc="$?"
4245 echo "configure: failed program was:" >&5 4247 echo "configure: failed program was:" >&5
4258 } 4260 }
4259 4261
4260 4262
4261 4263
4262 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4264 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4263 echo "configure:4264: checking for long file names" >&5 4265 echo "configure:4266: checking for long file names" >&5
4264 4266
4265 ac_cv_sys_long_file_names=yes 4267 ac_cv_sys_long_file_names=yes
4266 # Test for long file names in all the places we know might matter: 4268 # Test for long file names in all the places we know might matter:
4267 # . the current directory, where building will happen 4269 # . the current directory, where building will happen
4268 # $prefix/lib where we will be installing things 4270 # $prefix/lib where we will be installing things
4305 fi 4307 fi
4306 4308
4307 4309
4308 4310
4309 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4311 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4310 echo "configure:4311: checking for sin in -lm" >&5 4312 echo "configure:4313: checking for sin in -lm" >&5
4311 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4313 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4312 4314
4313 xe_check_libs=" -lm " 4315 xe_check_libs=" -lm "
4314 cat > conftest.$ac_ext <<EOF 4316 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure" 4317 #line 4318 "configure"
4316 #include "confdefs.h" 4318 #include "confdefs.h"
4317 /* Override any gcc2 internal prototype to avoid an error. */ 4319 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2 4320 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */ 4321 builtin and then its argument prototype would still apply. */
4320 char sin(); 4322 char sin();
4321 4323
4322 int main() { 4324 int main() {
4323 sin() 4325 sin()
4324 ; return 0; } 4326 ; return 0; }
4325 EOF 4327 EOF
4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 rm -rf conftest* 4329 rm -rf conftest*
4328 eval "ac_cv_lib_$ac_lib_var=yes" 4330 eval "ac_cv_lib_$ac_lib_var=yes"
4329 else 4331 else
4330 echo "configure: failed program was:" >&5 4332 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5 4333 cat conftest.$ac_ext >&5
4363 EOF 4365 EOF
4364 } 4366 }
4365 4367
4366 4368
4367 cat > conftest.$ac_ext <<EOF 4369 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure" 4370 #line 4371 "configure"
4369 #include "confdefs.h" 4371 #include "confdefs.h"
4370 #include <math.h> 4372 #include <math.h>
4371 int main() { 4373 int main() {
4372 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4374 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4373 ; return 0; } 4375 ; return 0; }
4374 EOF 4376 EOF
4375 if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4376 rm -rf conftest* 4378 rm -rf conftest*
4377 { test "$extra_verbose" = "yes" && cat << \EOF 4379 { test "$extra_verbose" = "yes" && cat << \EOF
4378 Defining HAVE_INVERSE_HYPERBOLIC 4380 Defining HAVE_INVERSE_HYPERBOLIC
4379 EOF 4381 EOF
4380 cat >> confdefs.h <<\EOF 4382 cat >> confdefs.h <<\EOF
4387 cat conftest.$ac_ext >&5 4389 cat conftest.$ac_ext >&5
4388 fi 4390 fi
4389 rm -f conftest* 4391 rm -f conftest*
4390 4392
4391 echo "checking type of mail spool file locking" 1>&6 4393 echo "checking type of mail spool file locking" 1>&6
4392 echo "configure:4393: checking type of mail spool file locking" >&5 4394 echo "configure:4395: checking type of mail spool file locking" >&5
4393 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4395 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4394 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4396 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4395 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4397 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4396 Defining REAL_MAIL_USE_LOCKF 4398 Defining REAL_MAIL_USE_LOCKF
4397 EOF 4399 EOF
4411 else mail_locking="dot-locking" 4413 else mail_locking="dot-locking"
4412 fi 4414 fi
4413 4415
4414 4416
4415 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4417 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4416 echo "configure:4417: checking for kstat_open in -lkstat" >&5 4418 echo "configure:4419: checking for kstat_open in -lkstat" >&5
4417 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4419 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4418 4420
4419 xe_check_libs=" -lkstat " 4421 xe_check_libs=" -lkstat "
4420 cat > conftest.$ac_ext <<EOF 4422 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure" 4423 #line 4424 "configure"
4422 #include "confdefs.h" 4424 #include "confdefs.h"
4423 /* Override any gcc2 internal prototype to avoid an error. */ 4425 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2 4426 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */ 4427 builtin and then its argument prototype would still apply. */
4426 char kstat_open(); 4428 char kstat_open();
4427 4429
4428 int main() { 4430 int main() {
4429 kstat_open() 4431 kstat_open()
4430 ; return 0; } 4432 ; return 0; }
4431 EOF 4433 EOF
4432 if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4433 rm -rf conftest* 4435 rm -rf conftest*
4434 eval "ac_cv_lib_$ac_lib_var=yes" 4436 eval "ac_cv_lib_$ac_lib_var=yes"
4435 else 4437 else
4436 echo "configure: failed program was:" >&5 4438 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5 4439 cat conftest.$ac_ext >&5
4461 4463
4462 4464
4463 4465
4464 4466
4465 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4467 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4466 echo "configure:4467: checking for kvm_read in -lkvm" >&5 4468 echo "configure:4469: checking for kvm_read in -lkvm" >&5
4467 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4469 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4468 4470
4469 xe_check_libs=" -lkvm " 4471 xe_check_libs=" -lkvm "
4470 cat > conftest.$ac_ext <<EOF 4472 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure" 4473 #line 4474 "configure"
4472 #include "confdefs.h" 4474 #include "confdefs.h"
4473 /* Override any gcc2 internal prototype to avoid an error. */ 4475 /* Override any gcc2 internal prototype to avoid an error. */
4474 /* We use char because int might match the return type of a gcc2 4476 /* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */ 4477 builtin and then its argument prototype would still apply. */
4476 char kvm_read(); 4478 char kvm_read();
4477 4479
4478 int main() { 4480 int main() {
4479 kvm_read() 4481 kvm_read()
4480 ; return 0; } 4482 ; return 0; }
4481 EOF 4483 EOF
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4483 rm -rf conftest* 4485 rm -rf conftest*
4484 eval "ac_cv_lib_$ac_lib_var=yes" 4486 eval "ac_cv_lib_$ac_lib_var=yes"
4485 else 4487 else
4486 echo "configure: failed program was:" >&5 4488 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5 4489 cat conftest.$ac_ext >&5
4512 4514
4513 4515
4514 case "$opsys" in decosf*) 4516 case "$opsys" in decosf*)
4515 4517
4516 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4518 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4517 echo "configure:4518: checking for cma_open in -lpthreads" >&5 4519 echo "configure:4520: checking for cma_open in -lpthreads" >&5
4518 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4520 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4519 4521
4520 xe_check_libs=" -lpthreads " 4522 xe_check_libs=" -lpthreads "
4521 cat > conftest.$ac_ext <<EOF 4523 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure" 4524 #line 4525 "configure"
4523 #include "confdefs.h" 4525 #include "confdefs.h"
4524 /* Override any gcc2 internal prototype to avoid an error. */ 4526 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2 4527 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */ 4528 builtin and then its argument prototype would still apply. */
4527 char cma_open(); 4529 char cma_open();
4528 4530
4529 int main() { 4531 int main() {
4530 cma_open() 4532 cma_open()
4531 ; return 0; } 4533 ; return 0; }
4532 EOF 4534 EOF
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4534 rm -rf conftest* 4536 rm -rf conftest*
4535 eval "ac_cv_lib_$ac_lib_var=yes" 4537 eval "ac_cv_lib_$ac_lib_var=yes"
4536 else 4538 else
4537 echo "configure: failed program was:" >&5 4539 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5 4540 cat conftest.$ac_ext >&5
4564 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4566 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4565 c_switch_site="$c_switch_site -threads" ;; 4567 c_switch_site="$c_switch_site -threads" ;;
4566 esac 4568 esac
4567 4569
4568 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4570 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4569 echo "configure:4570: checking whether the -xildoff compiler flag is required" >&5 4571 echo "configure:4572: checking whether the -xildoff compiler flag is required" >&5
4570 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4572 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4571 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4573 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4572 then echo "$ac_t""no" 1>&6; 4574 then echo "$ac_t""no" 1>&6;
4573 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 4575 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
4574 fi 4576 fi
4575 else echo "$ac_t""no" 1>&6 4577 else echo "$ac_t""no" 1>&6
4576 fi 4578 fi
4577 4579
4578 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4580 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4579 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4581 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4580 echo "configure:4581: checking for \"-z ignore\" linker flag" >&5 4582 echo "configure:4583: checking for \"-z ignore\" linker flag" >&5
4581 case "`ld -h 2>&1`" in 4583 case "`ld -h 2>&1`" in
4582 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4584 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4583 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4585 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4584 *) echo "$ac_t""no" 1>&6 ;; 4586 *) echo "$ac_t""no" 1>&6 ;;
4585 esac 4587 esac
4586 fi 4588 fi
4587 4589
4588 4590
4589 echo "checking "for specified window system"" 1>&6 4591 echo "checking "for specified window system"" 1>&6
4590 echo "configure:4591: checking "for specified window system"" >&5 4592 echo "configure:4593: checking "for specified window system"" >&5
4591 4593
4592 if test "$with_x11" != "no"; then 4594 if test "$with_x11" != "no"; then
4593 test "$x_includes $x_libraries" != "NONE NONE" && \ 4595 test "$x_includes $x_libraries" != "NONE NONE" && \
4594 window_system=x11 with_x11=yes 4596 window_system=x11 with_x11=yes
4595 4597
4618 # If we find X, set shell vars x_includes and x_libraries to the 4620 # If we find X, set shell vars x_includes and x_libraries to the
4619 # paths, otherwise set no_x=yes. 4621 # paths, otherwise set no_x=yes.
4620 # Uses ac_ vars as temps to allow command line to override cache and checks. 4622 # Uses ac_ vars as temps to allow command line to override cache and checks.
4621 # --without-x overrides everything else, but does not touch the cache. 4623 # --without-x overrides everything else, but does not touch the cache.
4622 echo $ac_n "checking for X""... $ac_c" 1>&6 4624 echo $ac_n "checking for X""... $ac_c" 1>&6
4623 echo "configure:4624: checking for X" >&5 4625 echo "configure:4626: checking for X" >&5
4624 4626
4625 # Check whether --with-x or --without-x was given. 4627 # Check whether --with-x or --without-x was given.
4626 if test "${with_x+set}" = set; then 4628 if test "${with_x+set}" = set; then
4627 withval="$with_x" 4629 withval="$with_x"
4628 : 4630 :
4678 # Guess where to find include files, by looking for this one X11 .h file. 4680 # Guess where to find include files, by looking for this one X11 .h file.
4679 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4681 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4680 4682
4681 # First, try using that file with no special directory specified. 4683 # First, try using that file with no special directory specified.
4682 cat > conftest.$ac_ext <<EOF 4684 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure" 4685 #line 4686 "configure"
4684 #include "confdefs.h" 4686 #include "confdefs.h"
4685 #include <$x_direct_test_include> 4687 #include <$x_direct_test_include>
4686 EOF 4688 EOF
4687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4688 { (eval echo configure:4689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4690 if test -z "$ac_err"; then 4692 if test -z "$ac_err"; then
4691 rm -rf conftest* 4693 rm -rf conftest*
4692 # We can compile using X headers with no special include directory. 4694 # We can compile using X headers with no special include directory.
4693 ac_x_includes= 4695 ac_x_includes=
4752 # See if we find them without any special options. 4754 # See if we find them without any special options.
4753 # Don't add to $LIBS permanently. 4755 # Don't add to $LIBS permanently.
4754 ac_save_LIBS="$LIBS" 4756 ac_save_LIBS="$LIBS"
4755 LIBS="-l$x_direct_test_library $LIBS" 4757 LIBS="-l$x_direct_test_library $LIBS"
4756 cat > conftest.$ac_ext <<EOF 4758 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure" 4759 #line 4760 "configure"
4758 #include "confdefs.h" 4760 #include "confdefs.h"
4759 4761
4760 int main() { 4762 int main() {
4761 ${x_direct_test_function}() 4763 ${x_direct_test_function}()
4762 ; return 0; } 4764 ; return 0; }
4763 EOF 4765 EOF
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765 rm -rf conftest* 4767 rm -rf conftest*
4766 LIBS="$ac_save_LIBS" 4768 LIBS="$ac_save_LIBS"
4767 # We can link X programs with no special library path. 4769 # We can link X programs with no special library path.
4768 ac_x_libraries= 4770 ac_x_libraries=
4769 else 4771 else
4868 # For Solaris; some versions of Sun CC require a space after -R and 4870 # For Solaris; some versions of Sun CC require a space after -R and
4869 # others require no space. Words are not sufficient . . . . 4871 # others require no space. Words are not sufficient . . . .
4870 case "`(uname -sr) 2>/dev/null`" in 4872 case "`(uname -sr) 2>/dev/null`" in
4871 "SunOS 5"*) 4873 "SunOS 5"*)
4872 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4874 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4873 echo "configure:4874: checking whether -R must be followed by a space" >&5 4875 echo "configure:4876: checking whether -R must be followed by a space" >&5
4874 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4876 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4875 cat > conftest.$ac_ext <<EOF 4877 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure" 4878 #line 4879 "configure"
4877 #include "confdefs.h" 4879 #include "confdefs.h"
4878 4880
4879 int main() { 4881 int main() {
4880 4882
4881 ; return 0; } 4883 ; return 0; }
4882 EOF 4884 EOF
4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884 rm -rf conftest* 4886 rm -rf conftest*
4885 ac_R_nospace=yes 4887 ac_R_nospace=yes
4886 else 4888 else
4887 echo "configure: failed program was:" >&5 4889 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5 4890 cat conftest.$ac_ext >&5
4894 echo "$ac_t""no" 1>&6 4896 echo "$ac_t""no" 1>&6
4895 X_LIBS="$X_LIBS -R$x_libraries" 4897 X_LIBS="$X_LIBS -R$x_libraries"
4896 else 4898 else
4897 LIBS="$ac_xsave_LIBS -R $x_libraries" 4899 LIBS="$ac_xsave_LIBS -R $x_libraries"
4898 cat > conftest.$ac_ext <<EOF 4900 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure" 4901 #line 4902 "configure"
4900 #include "confdefs.h" 4902 #include "confdefs.h"
4901 4903
4902 int main() { 4904 int main() {
4903 4905
4904 ; return 0; } 4906 ; return 0; }
4905 EOF 4907 EOF
4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 rm -rf conftest* 4909 rm -rf conftest*
4908 ac_R_space=yes 4910 ac_R_space=yes
4909 else 4911 else
4910 echo "configure: failed program was:" >&5 4912 echo "configure: failed program was:" >&5
4911 cat conftest.$ac_ext >&5 4913 cat conftest.$ac_ext >&5
4937 if test "$with_dnet" = "no" ; then 4939 if test "$with_dnet" = "no" ; then
4938 ac_cv_lib_dnet_dnet_ntoa=no 4940 ac_cv_lib_dnet_dnet_ntoa=no
4939 else 4941 else
4940 4942
4941 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4943 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4942 echo "configure:4943: checking for dnet_ntoa in -ldnet" >&5 4944 echo "configure:4945: checking for dnet_ntoa in -ldnet" >&5
4943 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4945 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4944 4946
4945 xe_check_libs=" -ldnet " 4947 xe_check_libs=" -ldnet "
4946 cat > conftest.$ac_ext <<EOF 4948 cat > conftest.$ac_ext <<EOF
4947 #line 4948 "configure" 4949 #line 4950 "configure"
4948 #include "confdefs.h" 4950 #include "confdefs.h"
4949 /* Override any gcc2 internal prototype to avoid an error. */ 4951 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2 4952 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */ 4953 builtin and then its argument prototype would still apply. */
4952 char dnet_ntoa(); 4954 char dnet_ntoa();
4953 4955
4954 int main() { 4956 int main() {
4955 dnet_ntoa() 4957 dnet_ntoa()
4956 ; return 0; } 4958 ; return 0; }
4957 EOF 4959 EOF
4958 if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4959 rm -rf conftest* 4961 rm -rf conftest*
4960 eval "ac_cv_lib_$ac_lib_var=yes" 4962 eval "ac_cv_lib_$ac_lib_var=yes"
4961 else 4963 else
4962 echo "configure: failed program was:" >&5 4964 echo "configure: failed program was:" >&5
4963 cat conftest.$ac_ext >&5 4965 cat conftest.$ac_ext >&5
4977 fi 4979 fi
4978 4980
4979 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4981 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4980 4982
4981 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4983 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4982 echo "configure:4983: checking for dnet_ntoa in -ldnet_stub" >&5 4984 echo "configure:4985: checking for dnet_ntoa in -ldnet_stub" >&5
4983 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4985 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4984 4986
4985 xe_check_libs=" -ldnet_stub " 4987 xe_check_libs=" -ldnet_stub "
4986 cat > conftest.$ac_ext <<EOF 4988 cat > conftest.$ac_ext <<EOF
4987 #line 4988 "configure" 4989 #line 4990 "configure"
4988 #include "confdefs.h" 4990 #include "confdefs.h"
4989 /* Override any gcc2 internal prototype to avoid an error. */ 4991 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2 4992 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */ 4993 builtin and then its argument prototype would still apply. */
4992 char dnet_ntoa(); 4994 char dnet_ntoa();
4993 4995
4994 int main() { 4996 int main() {
4995 dnet_ntoa() 4997 dnet_ntoa()
4996 ; return 0; } 4998 ; return 0; }
4997 EOF 4999 EOF
4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5000 if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4999 rm -rf conftest* 5001 rm -rf conftest*
5000 eval "ac_cv_lib_$ac_lib_var=yes" 5002 eval "ac_cv_lib_$ac_lib_var=yes"
5001 else 5003 else
5002 echo "configure: failed program was:" >&5 5004 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5 5005 cat conftest.$ac_ext >&5
5022 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5024 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5023 # needs -lnsl. 5025 # needs -lnsl.
5024 # The nsl library prevents programs from opening the X display 5026 # The nsl library prevents programs from opening the X display
5025 # on Irix 5.2, according to dickey@clark.net. 5027 # on Irix 5.2, according to dickey@clark.net.
5026 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5028 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5027 echo "configure:5028: checking for gethostbyname" >&5 5029 echo "configure:5030: checking for gethostbyname" >&5
5028 5030
5029 cat > conftest.$ac_ext <<EOF 5031 cat > conftest.$ac_ext <<EOF
5030 #line 5031 "configure" 5032 #line 5033 "configure"
5031 #include "confdefs.h" 5033 #include "confdefs.h"
5032 /* System header to define __stub macros and hopefully few prototypes, 5034 /* System header to define __stub macros and hopefully few prototypes,
5033 which can conflict with char gethostbyname(); below. */ 5035 which can conflict with char gethostbyname(); below. */
5034 #include <assert.h> 5036 #include <assert.h>
5035 /* Override any gcc2 internal prototype to avoid an error. */ 5037 /* Override any gcc2 internal prototype to avoid an error. */
5048 gethostbyname(); 5050 gethostbyname();
5049 #endif 5051 #endif
5050 5052
5051 ; return 0; } 5053 ; return 0; }
5052 EOF 5054 EOF
5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5054 rm -rf conftest* 5056 rm -rf conftest*
5055 eval "ac_cv_func_gethostbyname=yes" 5057 eval "ac_cv_func_gethostbyname=yes"
5056 else 5058 else
5057 echo "configure: failed program was:" >&5 5059 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5 5060 cat conftest.$ac_ext >&5
5069 fi 5071 fi
5070 5072
5071 if test $ac_cv_func_gethostbyname = no; then 5073 if test $ac_cv_func_gethostbyname = no; then
5072 5074
5073 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5075 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5074 echo "configure:5075: checking for gethostbyname in -lnsl" >&5 5076 echo "configure:5077: checking for gethostbyname in -lnsl" >&5
5075 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5077 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5076 5078
5077 xe_check_libs=" -lnsl " 5079 xe_check_libs=" -lnsl "
5078 cat > conftest.$ac_ext <<EOF 5080 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure" 5081 #line 5082 "configure"
5080 #include "confdefs.h" 5082 #include "confdefs.h"
5081 /* Override any gcc2 internal prototype to avoid an error. */ 5083 /* Override any gcc2 internal prototype to avoid an error. */
5082 /* We use char because int might match the return type of a gcc2 5084 /* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */ 5085 builtin and then its argument prototype would still apply. */
5084 char gethostbyname(); 5086 char gethostbyname();
5085 5087
5086 int main() { 5088 int main() {
5087 gethostbyname() 5089 gethostbyname()
5088 ; return 0; } 5090 ; return 0; }
5089 EOF 5091 EOF
5090 if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5092 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5091 rm -rf conftest* 5093 rm -rf conftest*
5092 eval "ac_cv_lib_$ac_lib_var=yes" 5094 eval "ac_cv_lib_$ac_lib_var=yes"
5093 else 5095 else
5094 echo "configure: failed program was:" >&5 5096 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5 5097 cat conftest.$ac_ext >&5
5115 # on later versions), says simon@lia.di.epfl.ch: it contains 5117 # on later versions), says simon@lia.di.epfl.ch: it contains
5116 # gethostby* variants that don't use the nameserver (or something). 5118 # gethostby* variants that don't use the nameserver (or something).
5117 # -lsocket must be given before -lnsl if both are needed. 5119 # -lsocket must be given before -lnsl if both are needed.
5118 # We assume that if connect needs -lnsl, so does gethostbyname. 5120 # We assume that if connect needs -lnsl, so does gethostbyname.
5119 echo $ac_n "checking for connect""... $ac_c" 1>&6 5121 echo $ac_n "checking for connect""... $ac_c" 1>&6
5120 echo "configure:5121: checking for connect" >&5 5122 echo "configure:5123: checking for connect" >&5
5121 5123
5122 cat > conftest.$ac_ext <<EOF 5124 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure" 5125 #line 5126 "configure"
5124 #include "confdefs.h" 5126 #include "confdefs.h"
5125 /* System header to define __stub macros and hopefully few prototypes, 5127 /* System header to define __stub macros and hopefully few prototypes,
5126 which can conflict with char connect(); below. */ 5128 which can conflict with char connect(); below. */
5127 #include <assert.h> 5129 #include <assert.h>
5128 /* Override any gcc2 internal prototype to avoid an error. */ 5130 /* Override any gcc2 internal prototype to avoid an error. */
5141 connect(); 5143 connect();
5142 #endif 5144 #endif
5143 5145
5144 ; return 0; } 5146 ; return 0; }
5145 EOF 5147 EOF
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147 rm -rf conftest* 5149 rm -rf conftest*
5148 eval "ac_cv_func_connect=yes" 5150 eval "ac_cv_func_connect=yes"
5149 else 5151 else
5150 echo "configure: failed program was:" >&5 5152 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5 5153 cat conftest.$ac_ext >&5
5164 if test $ac_cv_func_connect = no; then 5166 if test $ac_cv_func_connect = no; then
5165 5167
5166 xe_msg_checking="for connect in -lsocket" 5168 xe_msg_checking="for connect in -lsocket"
5167 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5169 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5168 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5170 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5169 echo "configure:5170: checking "$xe_msg_checking"" >&5 5171 echo "configure:5172: checking "$xe_msg_checking"" >&5
5170 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5172 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5171 5173
5172 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5174 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5173 cat > conftest.$ac_ext <<EOF 5175 cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure" 5176 #line 5177 "configure"
5175 #include "confdefs.h" 5177 #include "confdefs.h"
5176 /* Override any gcc2 internal prototype to avoid an error. */ 5178 /* Override any gcc2 internal prototype to avoid an error. */
5177 /* We use char because int might match the return type of a gcc2 5179 /* We use char because int might match the return type of a gcc2
5178 builtin and then its argument prototype would still apply. */ 5180 builtin and then its argument prototype would still apply. */
5179 char connect(); 5181 char connect();
5180 5182
5181 int main() { 5183 int main() {
5182 connect() 5184 connect()
5183 ; return 0; } 5185 ; return 0; }
5184 EOF 5186 EOF
5185 if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5186 rm -rf conftest* 5188 rm -rf conftest*
5187 eval "ac_cv_lib_$ac_lib_var=yes" 5189 eval "ac_cv_lib_$ac_lib_var=yes"
5188 else 5190 else
5189 echo "configure: failed program was:" >&5 5191 echo "configure: failed program was:" >&5
5190 cat conftest.$ac_ext >&5 5192 cat conftest.$ac_ext >&5
5204 5206
5205 fi 5207 fi
5206 5208
5207 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5209 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5208 echo $ac_n "checking for remove""... $ac_c" 1>&6 5210 echo $ac_n "checking for remove""... $ac_c" 1>&6
5209 echo "configure:5210: checking for remove" >&5 5211 echo "configure:5212: checking for remove" >&5
5210 5212
5211 cat > conftest.$ac_ext <<EOF 5213 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure" 5214 #line 5215 "configure"
5213 #include "confdefs.h" 5215 #include "confdefs.h"
5214 /* System header to define __stub macros and hopefully few prototypes, 5216 /* System header to define __stub macros and hopefully few prototypes,
5215 which can conflict with char remove(); below. */ 5217 which can conflict with char remove(); below. */
5216 #include <assert.h> 5218 #include <assert.h>
5217 /* Override any gcc2 internal prototype to avoid an error. */ 5219 /* Override any gcc2 internal prototype to avoid an error. */
5230 remove(); 5232 remove();
5231 #endif 5233 #endif
5232 5234
5233 ; return 0; } 5235 ; return 0; }
5234 EOF 5236 EOF
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5236 rm -rf conftest* 5238 rm -rf conftest*
5237 eval "ac_cv_func_remove=yes" 5239 eval "ac_cv_func_remove=yes"
5238 else 5240 else
5239 echo "configure: failed program was:" >&5 5241 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5 5242 cat conftest.$ac_ext >&5
5251 fi 5253 fi
5252 5254
5253 if test $ac_cv_func_remove = no; then 5255 if test $ac_cv_func_remove = no; then
5254 5256
5255 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5257 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5256 echo "configure:5257: checking for remove in -lposix" >&5 5258 echo "configure:5259: checking for remove in -lposix" >&5
5257 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5259 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5258 5260
5259 xe_check_libs=" -lposix " 5261 xe_check_libs=" -lposix "
5260 cat > conftest.$ac_ext <<EOF 5262 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure" 5263 #line 5264 "configure"
5262 #include "confdefs.h" 5264 #include "confdefs.h"
5263 /* Override any gcc2 internal prototype to avoid an error. */ 5265 /* Override any gcc2 internal prototype to avoid an error. */
5264 /* We use char because int might match the return type of a gcc2 5266 /* We use char because int might match the return type of a gcc2
5265 builtin and then its argument prototype would still apply. */ 5267 builtin and then its argument prototype would still apply. */
5266 char remove(); 5268 char remove();
5267 5269
5268 int main() { 5270 int main() {
5269 remove() 5271 remove()
5270 ; return 0; } 5272 ; return 0; }
5271 EOF 5273 EOF
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5274 if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5273 rm -rf conftest* 5275 rm -rf conftest*
5274 eval "ac_cv_lib_$ac_lib_var=yes" 5276 eval "ac_cv_lib_$ac_lib_var=yes"
5275 else 5277 else
5276 echo "configure: failed program was:" >&5 5278 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5 5279 cat conftest.$ac_ext >&5
5291 5293
5292 fi 5294 fi
5293 5295
5294 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5296 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5295 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5297 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5296 echo "configure:5297: checking for shmat" >&5 5298 echo "configure:5299: checking for shmat" >&5
5297 5299
5298 cat > conftest.$ac_ext <<EOF 5300 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure" 5301 #line 5302 "configure"
5300 #include "confdefs.h" 5302 #include "confdefs.h"
5301 /* System header to define __stub macros and hopefully few prototypes, 5303 /* System header to define __stub macros and hopefully few prototypes,
5302 which can conflict with char shmat(); below. */ 5304 which can conflict with char shmat(); below. */
5303 #include <assert.h> 5305 #include <assert.h>
5304 /* Override any gcc2 internal prototype to avoid an error. */ 5306 /* Override any gcc2 internal prototype to avoid an error. */
5317 shmat(); 5319 shmat();
5318 #endif 5320 #endif
5319 5321
5320 ; return 0; } 5322 ; return 0; }
5321 EOF 5323 EOF
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 rm -rf conftest* 5325 rm -rf conftest*
5324 eval "ac_cv_func_shmat=yes" 5326 eval "ac_cv_func_shmat=yes"
5325 else 5327 else
5326 echo "configure: failed program was:" >&5 5328 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5 5329 cat conftest.$ac_ext >&5
5338 fi 5340 fi
5339 5341
5340 if test $ac_cv_func_shmat = no; then 5342 if test $ac_cv_func_shmat = no; then
5341 5343
5342 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5344 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5343 echo "configure:5344: checking for shmat in -lipc" >&5 5345 echo "configure:5346: checking for shmat in -lipc" >&5
5344 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5346 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5345 5347
5346 xe_check_libs=" -lipc " 5348 xe_check_libs=" -lipc "
5347 cat > conftest.$ac_ext <<EOF 5349 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure" 5350 #line 5351 "configure"
5349 #include "confdefs.h" 5351 #include "confdefs.h"
5350 /* Override any gcc2 internal prototype to avoid an error. */ 5352 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2 5353 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */ 5354 builtin and then its argument prototype would still apply. */
5353 char shmat(); 5355 char shmat();
5354 5356
5355 int main() { 5357 int main() {
5356 shmat() 5358 shmat()
5357 ; return 0; } 5359 ; return 0; }
5358 EOF 5360 EOF
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5360 rm -rf conftest* 5362 rm -rf conftest*
5361 eval "ac_cv_lib_$ac_lib_var=yes" 5363 eval "ac_cv_lib_$ac_lib_var=yes"
5362 else 5364 else
5363 echo "configure: failed program was:" >&5 5365 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5 5366 cat conftest.$ac_ext >&5
5390 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5392 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5391 5393
5392 xe_msg_checking="for IceConnectionNumber in -lICE" 5394 xe_msg_checking="for IceConnectionNumber in -lICE"
5393 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5395 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5394 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5396 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5395 echo "configure:5396: checking "$xe_msg_checking"" >&5 5397 echo "configure:5398: checking "$xe_msg_checking"" >&5
5396 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5398 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5397 5399
5398 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5400 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5399 cat > conftest.$ac_ext <<EOF 5401 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure" 5402 #line 5403 "configure"
5401 #include "confdefs.h" 5403 #include "confdefs.h"
5402 /* Override any gcc2 internal prototype to avoid an error. */ 5404 /* Override any gcc2 internal prototype to avoid an error. */
5403 /* We use char because int might match the return type of a gcc2 5405 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */ 5406 builtin and then its argument prototype would still apply. */
5405 char IceConnectionNumber(); 5407 char IceConnectionNumber();
5406 5408
5407 int main() { 5409 int main() {
5408 IceConnectionNumber() 5410 IceConnectionNumber()
5409 ; return 0; } 5411 ; return 0; }
5410 EOF 5412 EOF
5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 rm -rf conftest* 5414 rm -rf conftest*
5413 eval "ac_cv_lib_$ac_lib_var=yes" 5415 eval "ac_cv_lib_$ac_lib_var=yes"
5414 else 5416 else
5415 echo "configure: failed program was:" >&5 5417 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5 5418 cat conftest.$ac_ext >&5
5575 EOF 5577 EOF
5576 } 5578 }
5577 5579
5578 5580
5579 echo "checking for X defines extracted by xmkmf" 1>&6 5581 echo "checking for X defines extracted by xmkmf" 1>&6
5580 echo "configure:5581: checking for X defines extracted by xmkmf" >&5 5582 echo "configure:5583: checking for X defines extracted by xmkmf" >&5
5581 rm -fr conftestdir 5583 rm -fr conftestdir
5582 if mkdir conftestdir; then 5584 if mkdir conftestdir; then
5583 cd conftestdir 5585 cd conftestdir
5584 cat > Imakefile <<'EOF' 5586 cat > Imakefile <<'EOF'
5585 xetest: 5587 xetest:
5607 done 5609 done
5608 fi 5610 fi
5609 5611
5610 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5612 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5611 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5613 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5612 echo "configure:5613: checking for X11/Intrinsic.h" >&5 5614 echo "configure:5615: checking for X11/Intrinsic.h" >&5
5613 5615
5614 cat > conftest.$ac_ext <<EOF 5616 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure" 5617 #line 5618 "configure"
5616 #include "confdefs.h" 5618 #include "confdefs.h"
5617 #include <X11/Intrinsic.h> 5619 #include <X11/Intrinsic.h>
5618 EOF 5620 EOF
5619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5620 { (eval echo configure:5621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5622 { (eval echo configure:5623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5622 if test -z "$ac_err"; then 5624 if test -z "$ac_err"; then
5623 rm -rf conftest* 5625 rm -rf conftest*
5624 eval "ac_cv_header_$ac_safe=yes" 5626 eval "ac_cv_header_$ac_safe=yes"
5625 else 5627 else
5639 fi 5641 fi
5640 5642
5641 5643
5642 5644
5643 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5645 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5644 echo "configure:5645: checking for XOpenDisplay in -lX11" >&5 5646 echo "configure:5647: checking for XOpenDisplay in -lX11" >&5
5645 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5647 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5646 5648
5647 xe_check_libs=" -lX11 " 5649 xe_check_libs=" -lX11 "
5648 cat > conftest.$ac_ext <<EOF 5650 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure" 5651 #line 5652 "configure"
5650 #include "confdefs.h" 5652 #include "confdefs.h"
5651 /* Override any gcc2 internal prototype to avoid an error. */ 5653 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2 5654 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */ 5655 builtin and then its argument prototype would still apply. */
5654 char XOpenDisplay(); 5656 char XOpenDisplay();
5655 5657
5656 int main() { 5658 int main() {
5657 XOpenDisplay() 5659 XOpenDisplay()
5658 ; return 0; } 5660 ; return 0; }
5659 EOF 5661 EOF
5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5661 rm -rf conftest* 5663 rm -rf conftest*
5662 eval "ac_cv_lib_$ac_lib_var=yes" 5664 eval "ac_cv_lib_$ac_lib_var=yes"
5663 else 5665 else
5664 echo "configure: failed program was:" >&5 5666 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5 5667 cat conftest.$ac_ext >&5
5680 if test "$have_lib_x11" != "yes"; then 5682 if test "$have_lib_x11" != "yes"; then
5681 5683
5682 xe_msg_checking="for XGetFontProperty in -lX11" 5684 xe_msg_checking="for XGetFontProperty in -lX11"
5683 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5685 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5684 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5686 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5685 echo "configure:5686: checking "$xe_msg_checking"" >&5 5687 echo "configure:5688: checking "$xe_msg_checking"" >&5
5686 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5688 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5687 5689
5688 xe_check_libs=" -lX11 -b i486-linuxaout" 5690 xe_check_libs=" -lX11 -b i486-linuxaout"
5689 cat > conftest.$ac_ext <<EOF 5691 cat > conftest.$ac_ext <<EOF
5690 #line 5691 "configure" 5692 #line 5693 "configure"
5691 #include "confdefs.h" 5693 #include "confdefs.h"
5692 /* Override any gcc2 internal prototype to avoid an error. */ 5694 /* Override any gcc2 internal prototype to avoid an error. */
5693 /* We use char because int might match the return type of a gcc2 5695 /* We use char because int might match the return type of a gcc2
5694 builtin and then its argument prototype would still apply. */ 5696 builtin and then its argument prototype would still apply. */
5695 char XGetFontProperty(); 5697 char XGetFontProperty();
5696 5698
5697 int main() { 5699 int main() {
5698 XGetFontProperty() 5700 XGetFontProperty()
5699 ; return 0; } 5701 ; return 0; }
5700 EOF 5702 EOF
5701 if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5702 rm -rf conftest* 5704 rm -rf conftest*
5703 eval "ac_cv_lib_$ac_lib_var=yes" 5705 eval "ac_cv_lib_$ac_lib_var=yes"
5704 else 5706 else
5705 echo "configure: failed program was:" >&5 5707 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5 5708 cat conftest.$ac_ext >&5
5723 libs_x="-lX11" 5725 libs_x="-lX11"
5724 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5726 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5725 5727
5726 5728
5727 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5729 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5728 echo "configure:5729: checking for XShapeSelectInput in -lXext" >&5 5730 echo "configure:5731: checking for XShapeSelectInput in -lXext" >&5
5729 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5731 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5730 5732
5731 xe_check_libs=" -lXext " 5733 xe_check_libs=" -lXext "
5732 cat > conftest.$ac_ext <<EOF 5734 cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure" 5735 #line 5736 "configure"
5734 #include "confdefs.h" 5736 #include "confdefs.h"
5735 /* Override any gcc2 internal prototype to avoid an error. */ 5737 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2 5738 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */ 5739 builtin and then its argument prototype would still apply. */
5738 char XShapeSelectInput(); 5740 char XShapeSelectInput();
5739 5741
5740 int main() { 5742 int main() {
5741 XShapeSelectInput() 5743 XShapeSelectInput()
5742 ; return 0; } 5744 ; return 0; }
5743 EOF 5745 EOF
5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5745 rm -rf conftest* 5747 rm -rf conftest*
5746 eval "ac_cv_lib_$ac_lib_var=yes" 5748 eval "ac_cv_lib_$ac_lib_var=yes"
5747 else 5749 else
5748 echo "configure: failed program was:" >&5 5750 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5 5751 cat conftest.$ac_ext >&5
5762 5764
5763 5765
5764 5766
5765 5767
5766 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5768 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5767 echo "configure:5768: checking for XtOpenDisplay in -lXt" >&5 5769 echo "configure:5770: checking for XtOpenDisplay in -lXt" >&5
5768 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5770 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5769 5771
5770 xe_check_libs=" -lXt " 5772 xe_check_libs=" -lXt "
5771 cat > conftest.$ac_ext <<EOF 5773 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure" 5774 #line 5775 "configure"
5773 #include "confdefs.h" 5775 #include "confdefs.h"
5774 /* Override any gcc2 internal prototype to avoid an error. */ 5776 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2 5777 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */ 5778 builtin and then its argument prototype would still apply. */
5777 char XtOpenDisplay(); 5779 char XtOpenDisplay();
5778 5780
5779 int main() { 5781 int main() {
5780 XtOpenDisplay() 5782 XtOpenDisplay()
5781 ; return 0; } 5783 ; return 0; }
5782 EOF 5784 EOF
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784 rm -rf conftest* 5786 rm -rf conftest*
5785 eval "ac_cv_lib_$ac_lib_var=yes" 5787 eval "ac_cv_lib_$ac_lib_var=yes"
5786 else 5788 else
5787 echo "configure: failed program was:" >&5 5789 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5 5790 cat conftest.$ac_ext >&5
5801 fi 5803 fi
5802 5804
5803 5805
5804 5806
5805 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5807 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5806 echo "configure:5807: checking the version of X11 being used" >&5 5808 echo "configure:5809: checking the version of X11 being used" >&5
5807 cat > conftest.$ac_ext <<EOF 5809 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure" 5810 #line 5811 "configure"
5809 #include "confdefs.h" 5811 #include "confdefs.h"
5810 #include <X11/Intrinsic.h> 5812 #include <X11/Intrinsic.h>
5811 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5813 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5812 EOF 5814 EOF
5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5814 then 5816 then
5815 ./conftest foobar; x11_release=$? 5817 ./conftest foobar; x11_release=$?
5816 else 5818 else
5817 conftest_rc="$?" 5819 conftest_rc="$?"
5818 echo "configure: failed program was:" >&5 5820 echo "configure: failed program was:" >&5
5833 5835
5834 for ac_hdr in X11/Xlocale.h 5836 for ac_hdr in X11/Xlocale.h
5835 do 5837 do
5836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5838 echo "configure:5839: checking for $ac_hdr" >&5 5840 echo "configure:5841: checking for $ac_hdr" >&5
5839 5841
5840 cat > conftest.$ac_ext <<EOF 5842 cat > conftest.$ac_ext <<EOF
5841 #line 5842 "configure" 5843 #line 5844 "configure"
5842 #include "confdefs.h" 5844 #include "confdefs.h"
5843 #include <$ac_hdr> 5845 #include <$ac_hdr>
5844 EOF 5846 EOF
5845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5846 { (eval echo configure:5847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5848 { (eval echo configure:5849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5848 if test -z "$ac_err"; then 5850 if test -z "$ac_err"; then
5849 rm -rf conftest* 5851 rm -rf conftest*
5850 eval "ac_cv_header_$ac_safe=yes" 5852 eval "ac_cv_header_$ac_safe=yes"
5851 else 5853 else
5872 fi 5874 fi
5873 done 5875 done
5874 5876
5875 5877
5876 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5878 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5877 echo "configure:5878: checking for XFree86" >&5 5879 echo "configure:5880: checking for XFree86" >&5
5878 if test -d "/usr/X386/include" -o \ 5880 if test -d "/usr/X386/include" -o \
5879 -f "/etc/XF86Config" -o \ 5881 -f "/etc/XF86Config" -o \
5880 -f "/etc/X11/XF86Config" -o \ 5882 -f "/etc/X11/XF86Config" -o \
5881 -f "/usr/X11R6/lib/X11/XF86Config"; then 5883 -f "/usr/X11R6/lib/X11/XF86Config"; then
5882 echo "$ac_t""yes" 1>&6 5884 echo "$ac_t""yes" 1>&6
5892 echo "$ac_t""no" 1>&6 5894 echo "$ac_t""no" 1>&6
5893 fi 5895 fi
5894 5896
5895 test -z "$with_xmu" && { 5897 test -z "$with_xmu" && {
5896 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5898 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5897 echo "configure:5898: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5899 echo "configure:5900: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5898 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5900 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5899 5901
5900 xe_check_libs=" -lXmu " 5902 xe_check_libs=" -lXmu "
5901 cat > conftest.$ac_ext <<EOF 5903 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure" 5904 #line 5905 "configure"
5903 #include "confdefs.h" 5905 #include "confdefs.h"
5904 /* Override any gcc2 internal prototype to avoid an error. */ 5906 /* Override any gcc2 internal prototype to avoid an error. */
5905 /* We use char because int might match the return type of a gcc2 5907 /* We use char because int might match the return type of a gcc2
5906 builtin and then its argument prototype would still apply. */ 5908 builtin and then its argument prototype would still apply. */
5907 char XmuReadBitmapDataFromFile(); 5909 char XmuReadBitmapDataFromFile();
5908 5910
5909 int main() { 5911 int main() {
5910 XmuReadBitmapDataFromFile() 5912 XmuReadBitmapDataFromFile()
5911 ; return 0; } 5913 ; return 0; }
5912 EOF 5914 EOF
5913 if { (eval echo configure:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5914 rm -rf conftest* 5916 rm -rf conftest*
5915 eval "ac_cv_lib_$ac_lib_var=yes" 5917 eval "ac_cv_lib_$ac_lib_var=yes"
5916 else 5918 else
5917 echo "configure: failed program was:" >&5 5919 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5 5920 cat conftest.$ac_ext >&5
5947 5949
5948 fi 5950 fi
5949 5951
5950 5952
5951 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5953 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5952 echo "configure:5953: checking for main in -lXbsd" >&5 5954 echo "configure:5955: checking for main in -lXbsd" >&5
5953 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5955 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5954 5956
5955 xe_check_libs=" -lXbsd " 5957 xe_check_libs=" -lXbsd "
5956 cat > conftest.$ac_ext <<EOF 5958 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure" 5959 #line 5960 "configure"
5958 #include "confdefs.h" 5960 #include "confdefs.h"
5959 5961
5960 int main() { 5962 int main() {
5961 main() 5963 main()
5962 ; return 0; } 5964 ; return 0; }
5963 EOF 5965 EOF
5964 if { (eval echo configure:5965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5966 if { (eval echo configure:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5965 rm -rf conftest* 5967 rm -rf conftest*
5966 eval "ac_cv_lib_$ac_lib_var=yes" 5968 eval "ac_cv_lib_$ac_lib_var=yes"
5967 else 5969 else
5968 echo "configure: failed program was:" >&5 5970 echo "configure: failed program was:" >&5
5969 cat conftest.$ac_ext >&5 5971 cat conftest.$ac_ext >&5
5996 fi 5998 fi
5997 5999
5998 fi 6000 fi
5999 if test "$with_msw" != "no"; then 6001 if test "$with_msw" != "no"; then
6000 echo "checking for MS-Windows" 1>&6 6002 echo "checking for MS-Windows" 1>&6
6001 echo "configure:6002: checking for MS-Windows" >&5 6003 echo "configure:6004: checking for MS-Windows" >&5
6002 6004
6003 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6005 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6004 echo "configure:6005: checking for main in -lgdi32" >&5 6006 echo "configure:6007: checking for main in -lgdi32" >&5
6005 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6007 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6006 6008
6007 xe_check_libs=" -lgdi32 " 6009 xe_check_libs=" -lgdi32 "
6008 cat > conftest.$ac_ext <<EOF 6010 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure" 6011 #line 6012 "configure"
6010 #include "confdefs.h" 6012 #include "confdefs.h"
6011 6013
6012 int main() { 6014 int main() {
6013 main() 6015 main()
6014 ; return 0; } 6016 ; return 0; }
6015 EOF 6017 EOF
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 rm -rf conftest* 6019 rm -rf conftest*
6018 eval "ac_cv_lib_$ac_lib_var=yes" 6020 eval "ac_cv_lib_$ac_lib_var=yes"
6019 else 6021 else
6020 echo "configure: failed program was:" >&5 6022 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5 6023 cat conftest.$ac_ext >&5
6041 #define HAVE_MS_WINDOWS 1 6043 #define HAVE_MS_WINDOWS 1
6042 EOF 6044 EOF
6043 } 6045 }
6044 6046
6045 install_pp="$blddir/lib-src/installexe.sh" 6047 install_pp="$blddir/lib-src/installexe.sh"
6048 exe_suffix=".exe"
6046 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi 6049 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi
6047 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi 6050 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6048 if test "$window_system" != x11; then 6051 if test "$window_system" != x11; then
6049 window_system=msw 6052 window_system=msw
6050 test "$with_scrollbars" != "no" && with_scrollbars=msw \ 6053 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6076 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6079 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6077 echo " xemacs will be linked with \"dialog-msw.o\"" 6080 echo " xemacs will be linked with \"dialog-msw.o\""
6078 fi 6081 fi
6079 fi 6082 fi
6080 cat > conftest.$ac_ext <<EOF 6083 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure" 6084 #line 6085 "configure"
6082 #include "confdefs.h" 6085 #include "confdefs.h"
6083 #include <fcntl.h> 6086 #include <fcntl.h>
6084 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6087 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6085 EOF 6088 EOF
6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6089 if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6087 then 6090 then
6088 { test "$extra_verbose" = "yes" && cat << \EOF 6091 { test "$extra_verbose" = "yes" && cat << \EOF
6089 Defining HAVE_MSG_SELECT 6092 Defining HAVE_MSG_SELECT
6090 EOF 6093 EOF
6091 cat >> confdefs.h <<\EOF 6094 cat >> confdefs.h <<\EOF
6109 fi 6112 fi
6110 fi 6113 fi
6111 6114
6112 6115
6113 6116
6117
6114 test -z "$window_system" && window_system="none" 6118 test -z "$window_system" && window_system="none"
6115 6119
6116 if test "$window_system" = "none"; then 6120 if test "$window_system" = "none"; then
6117 for feature in menubars scrollbars toolbars dialogs dragndrop 6121 for feature in menubars scrollbars toolbars dialogs dragndrop
6118 do 6122 do
6160 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6164 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6161 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6165 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6162 esac 6166 esac
6163 6167
6164 echo "checking for session-management option" 1>&6 6168 echo "checking for session-management option" 1>&6
6165 echo "configure:6166: checking for session-management option" >&5; 6169 echo "configure:6170: checking for session-management option" >&5;
6166 if test "$with_session" != "no"; then 6170 if test "$with_session" != "no"; then
6167 { test "$extra_verbose" = "yes" && cat << \EOF 6171 { test "$extra_verbose" = "yes" && cat << \EOF
6168 Defining HAVE_SESSION 6172 Defining HAVE_SESSION
6169 EOF 6173 EOF
6170 cat >> confdefs.h <<\EOF 6174 cat >> confdefs.h <<\EOF
6175 fi 6179 fi
6176 6180
6177 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6181 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6178 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6182 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6179 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6183 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6180 echo "configure:6181: checking for X11/Xauth.h" >&5 6184 echo "configure:6185: checking for X11/Xauth.h" >&5
6181 6185
6182 cat > conftest.$ac_ext <<EOF 6186 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure" 6187 #line 6188 "configure"
6184 #include "confdefs.h" 6188 #include "confdefs.h"
6185 #include <X11/Xauth.h> 6189 #include <X11/Xauth.h>
6186 EOF 6190 EOF
6187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6188 { (eval echo configure:6189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6192 { (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6190 if test -z "$ac_err"; then 6194 if test -z "$ac_err"; then
6191 rm -rf conftest* 6195 rm -rf conftest*
6192 eval "ac_cv_header_$ac_safe=yes" 6196 eval "ac_cv_header_$ac_safe=yes"
6193 else 6197 else
6206 with_xauth=no 6210 with_xauth=no
6207 fi 6211 fi
6208 } 6212 }
6209 test -z "$with_xauth" && { 6213 test -z "$with_xauth" && {
6210 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6214 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6211 echo "configure:6212: checking for XauGetAuthByAddr in -lXau" >&5 6215 echo "configure:6216: checking for XauGetAuthByAddr in -lXau" >&5
6212 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6216 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6213 6217
6214 xe_check_libs=" -lXau " 6218 xe_check_libs=" -lXau "
6215 cat > conftest.$ac_ext <<EOF 6219 cat > conftest.$ac_ext <<EOF
6216 #line 6217 "configure" 6220 #line 6221 "configure"
6217 #include "confdefs.h" 6221 #include "confdefs.h"
6218 /* Override any gcc2 internal prototype to avoid an error. */ 6222 /* Override any gcc2 internal prototype to avoid an error. */
6219 /* We use char because int might match the return type of a gcc2 6223 /* We use char because int might match the return type of a gcc2
6220 builtin and then its argument prototype would still apply. */ 6224 builtin and then its argument prototype would still apply. */
6221 char XauGetAuthByAddr(); 6225 char XauGetAuthByAddr();
6222 6226
6223 int main() { 6227 int main() {
6224 XauGetAuthByAddr() 6228 XauGetAuthByAddr()
6225 ; return 0; } 6229 ; return 0; }
6226 EOF 6230 EOF
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6231 if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 rm -rf conftest* 6232 rm -rf conftest*
6229 eval "ac_cv_lib_$ac_lib_var=yes" 6233 eval "ac_cv_lib_$ac_lib_var=yes"
6230 else 6234 else
6231 echo "configure: failed program was:" >&5 6235 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5 6236 cat conftest.$ac_ext >&5
6267 6271
6268 if test "$with_tooltalk" != "no" ; then 6272 if test "$with_tooltalk" != "no" ; then
6269 for dir in "" "Tt/" "desktop/" ; do 6273 for dir in "" "Tt/" "desktop/" ; do
6270 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6274 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6271 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6275 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6272 echo "configure:6273: checking for ${dir}tt_c.h" >&5 6276 echo "configure:6277: checking for ${dir}tt_c.h" >&5
6273 6277
6274 cat > conftest.$ac_ext <<EOF 6278 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure" 6279 #line 6280 "configure"
6276 #include "confdefs.h" 6280 #include "confdefs.h"
6277 #include <${dir}tt_c.h> 6281 #include <${dir}tt_c.h>
6278 EOF 6282 EOF
6279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6280 { (eval echo configure:6281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6284 { (eval echo configure:6285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6282 if test -z "$ac_err"; then 6286 if test -z "$ac_err"; then
6283 rm -rf conftest* 6287 rm -rf conftest*
6284 eval "ac_cv_header_$ac_safe=yes" 6288 eval "ac_cv_header_$ac_safe=yes"
6285 else 6289 else
6311 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6315 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6312 6316
6313 xe_msg_checking="for tt_message_create in -ltt" 6317 xe_msg_checking="for tt_message_create in -ltt"
6314 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6318 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6315 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6319 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6316 echo "configure:6317: checking "$xe_msg_checking"" >&5 6320 echo "configure:6321: checking "$xe_msg_checking"" >&5
6317 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6321 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6318 6322
6319 xe_check_libs=" -ltt $extra_libs" 6323 xe_check_libs=" -ltt $extra_libs"
6320 cat > conftest.$ac_ext <<EOF 6324 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure" 6325 #line 6326 "configure"
6322 #include "confdefs.h" 6326 #include "confdefs.h"
6323 /* Override any gcc2 internal prototype to avoid an error. */ 6327 /* Override any gcc2 internal prototype to avoid an error. */
6324 /* We use char because int might match the return type of a gcc2 6328 /* We use char because int might match the return type of a gcc2
6325 builtin and then its argument prototype would still apply. */ 6329 builtin and then its argument prototype would still apply. */
6326 char tt_message_create(); 6330 char tt_message_create();
6327 6331
6328 int main() { 6332 int main() {
6329 tt_message_create() 6333 tt_message_create()
6330 ; return 0; } 6334 ; return 0; }
6331 EOF 6335 EOF
6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6333 rm -rf conftest* 6337 rm -rf conftest*
6334 eval "ac_cv_lib_$ac_lib_var=yes" 6338 eval "ac_cv_lib_$ac_lib_var=yes"
6335 else 6339 else
6336 echo "configure: failed program was:" >&5 6340 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5 6341 cat conftest.$ac_ext >&5
6384 fi 6388 fi
6385 fi 6389 fi
6386 6390
6387 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6391 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6388 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6392 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6389 echo "configure:6390: checking for Dt/Dt.h" >&5 6393 echo "configure:6394: checking for Dt/Dt.h" >&5
6390 6394
6391 cat > conftest.$ac_ext <<EOF 6395 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure" 6396 #line 6397 "configure"
6393 #include "confdefs.h" 6397 #include "confdefs.h"
6394 #include <Dt/Dt.h> 6398 #include <Dt/Dt.h>
6395 EOF 6399 EOF
6396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6397 { (eval echo configure:6398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6401 { (eval echo configure:6402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6399 if test -z "$ac_err"; then 6403 if test -z "$ac_err"; then
6400 rm -rf conftest* 6404 rm -rf conftest*
6401 eval "ac_cv_header_$ac_safe=yes" 6405 eval "ac_cv_header_$ac_safe=yes"
6402 else 6406 else
6415 with_cde=no 6419 with_cde=no
6416 fi 6420 fi
6417 } 6421 }
6418 test -z "$with_cde" && { 6422 test -z "$with_cde" && {
6419 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6423 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6420 echo "configure:6421: checking for DtDndDragStart in -lDtSvc" >&5 6424 echo "configure:6425: checking for DtDndDragStart in -lDtSvc" >&5
6421 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6425 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6422 6426
6423 xe_check_libs=" -lDtSvc " 6427 xe_check_libs=" -lDtSvc "
6424 cat > conftest.$ac_ext <<EOF 6428 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure" 6429 #line 6430 "configure"
6426 #include "confdefs.h" 6430 #include "confdefs.h"
6427 /* Override any gcc2 internal prototype to avoid an error. */ 6431 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2 6432 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */ 6433 builtin and then its argument prototype would still apply. */
6430 char DtDndDragStart(); 6434 char DtDndDragStart();
6431 6435
6432 int main() { 6436 int main() {
6433 DtDndDragStart() 6437 DtDndDragStart()
6434 ; return 0; } 6438 ; return 0; }
6435 EOF 6439 EOF
6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6437 rm -rf conftest* 6441 rm -rf conftest*
6438 eval "ac_cv_lib_$ac_lib_var=yes" 6442 eval "ac_cv_lib_$ac_lib_var=yes"
6439 else 6443 else
6440 echo "configure: failed program was:" >&5 6444 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5 6445 cat conftest.$ac_ext >&5
6500 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6504 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6501 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6505 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6502 fi 6506 fi
6503 6507
6504 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6508 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6505 echo "configure:6506: checking if drag and drop API is needed" >&5 6509 echo "configure:6510: checking if drag and drop API is needed" >&5
6506 if test "$with_dragndrop" != "no" ; then 6510 if test "$with_dragndrop" != "no" ; then
6507 if test -n "$dragndrop_proto" ; then 6511 if test -n "$dragndrop_proto" ; then
6508 with_dragndrop=yes 6512 with_dragndrop=yes
6509 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6513 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6510 { test "$extra_verbose" = "yes" && cat << \EOF 6514 { test "$extra_verbose" = "yes" && cat << \EOF
6521 echo "$ac_t""no" 1>&6 6525 echo "$ac_t""no" 1>&6
6522 fi 6526 fi
6523 fi 6527 fi
6524 6528
6525 echo "checking for LDAP" 1>&6 6529 echo "checking for LDAP" 1>&6
6526 echo "configure:6527: checking for LDAP" >&5 6530 echo "configure:6531: checking for LDAP" >&5
6527 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6531 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6528 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6532 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6529 echo "configure:6530: checking for ldap.h" >&5 6533 echo "configure:6534: checking for ldap.h" >&5
6530 6534
6531 cat > conftest.$ac_ext <<EOF 6535 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure" 6536 #line 6537 "configure"
6533 #include "confdefs.h" 6537 #include "confdefs.h"
6534 #include <ldap.h> 6538 #include <ldap.h>
6535 EOF 6539 EOF
6536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6537 { (eval echo configure:6538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6541 { (eval echo configure:6542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6539 if test -z "$ac_err"; then 6543 if test -z "$ac_err"; then
6540 rm -rf conftest* 6544 rm -rf conftest*
6541 eval "ac_cv_header_$ac_safe=yes" 6545 eval "ac_cv_header_$ac_safe=yes"
6542 else 6546 else
6555 with_ldap=no 6559 with_ldap=no
6556 fi 6560 fi
6557 } 6561 }
6558 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6562 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6559 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6563 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6560 echo "configure:6561: checking for lber.h" >&5 6564 echo "configure:6565: checking for lber.h" >&5
6561 6565
6562 cat > conftest.$ac_ext <<EOF 6566 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure" 6567 #line 6568 "configure"
6564 #include "confdefs.h" 6568 #include "confdefs.h"
6565 #include <lber.h> 6569 #include <lber.h>
6566 EOF 6570 EOF
6567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6568 { (eval echo configure:6569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6572 { (eval echo configure:6573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6570 if test -z "$ac_err"; then 6574 if test -z "$ac_err"; then
6571 rm -rf conftest* 6575 rm -rf conftest*
6572 eval "ac_cv_header_$ac_safe=yes" 6576 eval "ac_cv_header_$ac_safe=yes"
6573 else 6577 else
6589 if test "$with_ldap" != "no"; then 6593 if test "$with_ldap" != "no"; then
6590 test -z "$with_umich_ldap" && { 6594 test -z "$with_umich_ldap" && {
6591 xe_msg_checking="for ldap_open in -lldap" 6595 xe_msg_checking="for ldap_open in -lldap"
6592 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6596 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6593 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6597 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6594 echo "configure:6595: checking "$xe_msg_checking"" >&5 6598 echo "configure:6599: checking "$xe_msg_checking"" >&5
6595 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6599 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6596 6600
6597 xe_check_libs=" -lldap -llber" 6601 xe_check_libs=" -lldap -llber"
6598 cat > conftest.$ac_ext <<EOF 6602 cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure" 6603 #line 6604 "configure"
6600 #include "confdefs.h" 6604 #include "confdefs.h"
6601 /* Override any gcc2 internal prototype to avoid an error. */ 6605 /* Override any gcc2 internal prototype to avoid an error. */
6602 /* We use char because int might match the return type of a gcc2 6606 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */ 6607 builtin and then its argument prototype would still apply. */
6604 char ldap_open(); 6608 char ldap_open();
6605 6609
6606 int main() { 6610 int main() {
6607 ldap_open() 6611 ldap_open()
6608 ; return 0; } 6612 ; return 0; }
6609 EOF 6613 EOF
6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 rm -rf conftest* 6615 rm -rf conftest*
6612 eval "ac_cv_lib_$ac_lib_var=yes" 6616 eval "ac_cv_lib_$ac_lib_var=yes"
6613 else 6617 else
6614 echo "configure: failed program was:" >&5 6618 echo "configure: failed program was:" >&5
6615 cat conftest.$ac_ext >&5 6619 cat conftest.$ac_ext >&5
6628 fi 6632 fi
6629 6633
6630 } 6634 }
6631 test "$with_umich_ldap" = "no" && { 6635 test "$with_umich_ldap" = "no" && {
6632 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6636 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6633 echo "configure:6634: checking for ldap_set_option in -lldap10" >&5 6637 echo "configure:6638: checking for ldap_set_option in -lldap10" >&5
6634 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6638 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6635 6639
6636 xe_check_libs=" -lldap10 " 6640 xe_check_libs=" -lldap10 "
6637 cat > conftest.$ac_ext <<EOF 6641 cat > conftest.$ac_ext <<EOF
6638 #line 6639 "configure" 6642 #line 6643 "configure"
6639 #include "confdefs.h" 6643 #include "confdefs.h"
6640 /* Override any gcc2 internal prototype to avoid an error. */ 6644 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2 6645 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */ 6646 builtin and then its argument prototype would still apply. */
6643 char ldap_set_option(); 6647 char ldap_set_option();
6644 6648
6645 int main() { 6649 int main() {
6646 ldap_set_option() 6650 ldap_set_option()
6647 ; return 0; } 6651 ; return 0; }
6648 EOF 6652 EOF
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 rm -rf conftest* 6654 rm -rf conftest*
6651 eval "ac_cv_lib_$ac_lib_var=yes" 6655 eval "ac_cv_lib_$ac_lib_var=yes"
6652 else 6656 else
6653 echo "configure: failed program was:" >&5 6657 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5 6658 cat conftest.$ac_ext >&5
6708 fi 6712 fi
6709 6713
6710 6714
6711 if test "$window_system" != "none"; then 6715 if test "$window_system" != "none"; then
6712 echo "checking for graphics libraries" 1>&6 6716 echo "checking for graphics libraries" 1>&6
6713 echo "configure:6714: checking for graphics libraries" >&5 6717 echo "configure:6718: checking for graphics libraries" >&5
6714 6718
6715 xpm_problem="" 6719 xpm_problem=""
6716 if test -z "$with_xpm"; then 6720 if test -z "$with_xpm"; then
6717 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6721 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6718 echo "configure:6719: checking for Xpm - no older than 3.4f" >&5 6722 echo "configure:6723: checking for Xpm - no older than 3.4f" >&5
6719 xe_check_libs=-lXpm 6723 xe_check_libs=-lXpm
6720 cat > conftest.$ac_ext <<EOF 6724 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure" 6725 #line 6726 "configure"
6722 #include "confdefs.h" 6726 #include "confdefs.h"
6723 #include <X11/xpm.h> 6727 #include <X11/xpm.h>
6724 int main(int c, char **v) { 6728 int main(int c, char **v) {
6725 return c == 1 ? 0 : 6729 return c == 1 ? 0 :
6726 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6730 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6727 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6731 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6728 EOF 6732 EOF
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6733 if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6730 then 6734 then
6731 ./conftest dummy_arg; xpm_status=$?; 6735 ./conftest dummy_arg; xpm_status=$?;
6732 if test "$xpm_status" = "0"; then 6736 if test "$xpm_status" = "0"; then
6733 with_xpm=yes; 6737 with_xpm=yes;
6734 else 6738 else
6766 EOF 6770 EOF
6767 } 6771 }
6768 6772
6769 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6773 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6770 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6774 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6771 echo "configure:6772: checking for \"FOR_MSW\" xpm" >&5 6775 echo "configure:6776: checking for \"FOR_MSW\" xpm" >&5
6772 xe_check_libs=-lXpm 6776 xe_check_libs=-lXpm
6773 cat > conftest.$ac_ext <<EOF 6777 cat > conftest.$ac_ext <<EOF
6774 #line 6775 "configure" 6778 #line 6779 "configure"
6775 #include "confdefs.h" 6779 #include "confdefs.h"
6776 6780
6777 int main() { 6781 int main() {
6778 XpmCreatePixmapFromData() 6782 XpmCreatePixmapFromData()
6779 ; return 0; } 6783 ; return 0; }
6780 EOF 6784 EOF
6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6785 if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6782 rm -rf conftest* 6786 rm -rf conftest*
6783 xpm_for_msw=no 6787 xpm_for_msw=no
6784 else 6788 else
6785 echo "configure: failed program was:" >&5 6789 echo "configure: failed program was:" >&5
6786 cat conftest.$ac_ext >&5 6790 cat conftest.$ac_ext >&5
6818 fi 6822 fi
6819 6823
6820 if test "$with_png $with_tiff" != "no no"; then 6824 if test "$with_png $with_tiff" != "no no"; then
6821 6825
6822 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6826 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6823 echo "configure:6824: checking for inflate in -lc" >&5 6827 echo "configure:6828: checking for inflate in -lc" >&5
6824 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6828 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6825 6829
6826 xe_check_libs=" -lc " 6830 xe_check_libs=" -lc "
6827 cat > conftest.$ac_ext <<EOF 6831 cat > conftest.$ac_ext <<EOF
6828 #line 6829 "configure" 6832 #line 6833 "configure"
6829 #include "confdefs.h" 6833 #include "confdefs.h"
6830 /* Override any gcc2 internal prototype to avoid an error. */ 6834 /* Override any gcc2 internal prototype to avoid an error. */
6831 /* We use char because int might match the return type of a gcc2 6835 /* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */ 6836 builtin and then its argument prototype would still apply. */
6833 char inflate(); 6837 char inflate();
6834 6838
6835 int main() { 6839 int main() {
6836 inflate() 6840 inflate()
6837 ; return 0; } 6841 ; return 0; }
6838 EOF 6842 EOF
6839 if { (eval echo configure:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6843 if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6840 rm -rf conftest* 6844 rm -rf conftest*
6841 eval "ac_cv_lib_$ac_lib_var=yes" 6845 eval "ac_cv_lib_$ac_lib_var=yes"
6842 else 6846 else
6843 echo "configure: failed program was:" >&5 6847 echo "configure: failed program was:" >&5
6844 cat conftest.$ac_ext >&5 6848 cat conftest.$ac_ext >&5
6853 : 6857 :
6854 else 6858 else
6855 echo "$ac_t""no" 1>&6 6859 echo "$ac_t""no" 1>&6
6856 6860
6857 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6861 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6858 echo "configure:6859: checking for inflate in -lz" >&5 6862 echo "configure:6863: checking for inflate in -lz" >&5
6859 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6863 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6860 6864
6861 xe_check_libs=" -lz " 6865 xe_check_libs=" -lz "
6862 cat > conftest.$ac_ext <<EOF 6866 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure" 6867 #line 6868 "configure"
6864 #include "confdefs.h" 6868 #include "confdefs.h"
6865 /* Override any gcc2 internal prototype to avoid an error. */ 6869 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2 6870 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */ 6871 builtin and then its argument prototype would still apply. */
6868 char inflate(); 6872 char inflate();
6869 6873
6870 int main() { 6874 int main() {
6871 inflate() 6875 inflate()
6872 ; return 0; } 6876 ; return 0; }
6873 EOF 6877 EOF
6874 if { (eval echo configure:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6875 rm -rf conftest* 6879 rm -rf conftest*
6876 eval "ac_cv_lib_$ac_lib_var=yes" 6880 eval "ac_cv_lib_$ac_lib_var=yes"
6877 else 6881 else
6878 echo "configure: failed program was:" >&5 6882 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5 6883 cat conftest.$ac_ext >&5
6888 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6892 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6889 else 6893 else
6890 echo "$ac_t""no" 1>&6 6894 echo "$ac_t""no" 1>&6
6891 6895
6892 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6896 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6893 echo "configure:6894: checking for inflate in -lgz" >&5 6897 echo "configure:6898: checking for inflate in -lgz" >&5
6894 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6898 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6895 6899
6896 xe_check_libs=" -lgz " 6900 xe_check_libs=" -lgz "
6897 cat > conftest.$ac_ext <<EOF 6901 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure" 6902 #line 6903 "configure"
6899 #include "confdefs.h" 6903 #include "confdefs.h"
6900 /* Override any gcc2 internal prototype to avoid an error. */ 6904 /* Override any gcc2 internal prototype to avoid an error. */
6901 /* We use char because int might match the return type of a gcc2 6905 /* We use char because int might match the return type of a gcc2
6902 builtin and then its argument prototype would still apply. */ 6906 builtin and then its argument prototype would still apply. */
6903 char inflate(); 6907 char inflate();
6904 6908
6905 int main() { 6909 int main() {
6906 inflate() 6910 inflate()
6907 ; return 0; } 6911 ; return 0; }
6908 EOF 6912 EOF
6909 if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6913 if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6910 rm -rf conftest* 6914 rm -rf conftest*
6911 eval "ac_cv_lib_$ac_lib_var=yes" 6915 eval "ac_cv_lib_$ac_lib_var=yes"
6912 else 6916 else
6913 echo "configure: failed program was:" >&5 6917 echo "configure: failed program was:" >&5
6914 cat conftest.$ac_ext >&5 6918 cat conftest.$ac_ext >&5
6934 6938
6935 fi 6939 fi
6936 6940
6937 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6941 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6938 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6942 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6939 echo "configure:6940: checking for jpeglib.h" >&5 6943 echo "configure:6944: checking for jpeglib.h" >&5
6940 6944
6941 cat > conftest.$ac_ext <<EOF 6945 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure" 6946 #line 6947 "configure"
6943 #include "confdefs.h" 6947 #include "confdefs.h"
6944 #include <jpeglib.h> 6948 #include <jpeglib.h>
6945 EOF 6949 EOF
6946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6947 { (eval echo configure:6948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6951 { (eval echo configure:6952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6949 if test -z "$ac_err"; then 6953 if test -z "$ac_err"; then
6950 rm -rf conftest* 6954 rm -rf conftest*
6951 eval "ac_cv_header_$ac_safe=yes" 6955 eval "ac_cv_header_$ac_safe=yes"
6952 else 6956 else
6965 with_jpeg=no 6969 with_jpeg=no
6966 fi 6970 fi
6967 } 6971 }
6968 test -z "$with_jpeg" && { 6972 test -z "$with_jpeg" && {
6969 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6973 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6970 echo "configure:6971: checking for jpeg_destroy_decompress in -ljpeg" >&5 6974 echo "configure:6975: checking for jpeg_destroy_decompress in -ljpeg" >&5
6971 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6975 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6972 6976
6973 xe_check_libs=" -ljpeg " 6977 xe_check_libs=" -ljpeg "
6974 cat > conftest.$ac_ext <<EOF 6978 cat > conftest.$ac_ext <<EOF
6975 #line 6976 "configure" 6979 #line 6980 "configure"
6976 #include "confdefs.h" 6980 #include "confdefs.h"
6977 /* Override any gcc2 internal prototype to avoid an error. */ 6981 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2 6982 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */ 6983 builtin and then its argument prototype would still apply. */
6980 char jpeg_destroy_decompress(); 6984 char jpeg_destroy_decompress();
6981 6985
6982 int main() { 6986 int main() {
6983 jpeg_destroy_decompress() 6987 jpeg_destroy_decompress()
6984 ; return 0; } 6988 ; return 0; }
6985 EOF 6989 EOF
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6990 if { (eval echo configure:6991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6987 rm -rf conftest* 6991 rm -rf conftest*
6988 eval "ac_cv_lib_$ac_lib_var=yes" 6992 eval "ac_cv_lib_$ac_lib_var=yes"
6989 else 6993 else
6990 echo "configure: failed program was:" >&5 6994 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5 6995 cat conftest.$ac_ext >&5
7017 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7021 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7018 fi 7022 fi
7019 7023
7020 png_problem="" 7024 png_problem=""
7021 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7025 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7022 echo "configure:7023: checking for pow" >&5 7026 echo "configure:7027: checking for pow" >&5
7023 7027
7024 cat > conftest.$ac_ext <<EOF 7028 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure" 7029 #line 7030 "configure"
7026 #include "confdefs.h" 7030 #include "confdefs.h"
7027 /* System header to define __stub macros and hopefully few prototypes, 7031 /* System header to define __stub macros and hopefully few prototypes,
7028 which can conflict with char pow(); below. */ 7032 which can conflict with char pow(); below. */
7029 #include <assert.h> 7033 #include <assert.h>
7030 /* Override any gcc2 internal prototype to avoid an error. */ 7034 /* Override any gcc2 internal prototype to avoid an error. */
7043 pow(); 7047 pow();
7044 #endif 7048 #endif
7045 7049
7046 ; return 0; } 7050 ; return 0; }
7047 EOF 7051 EOF
7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7049 rm -rf conftest* 7053 rm -rf conftest*
7050 eval "ac_cv_func_pow=yes" 7054 eval "ac_cv_func_pow=yes"
7051 else 7055 else
7052 echo "configure: failed program was:" >&5 7056 echo "configure: failed program was:" >&5
7053 cat conftest.$ac_ext >&5 7057 cat conftest.$ac_ext >&5
7064 with_png=no 7068 with_png=no
7065 fi 7069 fi
7066 } 7070 }
7067 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7071 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7068 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7072 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7069 echo "configure:7070: checking for png.h" >&5 7073 echo "configure:7074: checking for png.h" >&5
7070 7074
7071 cat > conftest.$ac_ext <<EOF 7075 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure" 7076 #line 7077 "configure"
7073 #include "confdefs.h" 7077 #include "confdefs.h"
7074 #include <png.h> 7078 #include <png.h>
7075 EOF 7079 EOF
7076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7077 { (eval echo configure:7078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7081 { (eval echo configure:7082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7079 if test -z "$ac_err"; then 7083 if test -z "$ac_err"; then
7080 rm -rf conftest* 7084 rm -rf conftest*
7081 eval "ac_cv_header_$ac_safe=yes" 7085 eval "ac_cv_header_$ac_safe=yes"
7082 else 7086 else
7095 with_png=no 7099 with_png=no
7096 fi 7100 fi
7097 } 7101 }
7098 test -z "$with_png" && { 7102 test -z "$with_png" && {
7099 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7103 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7100 echo "configure:7101: checking for png_read_image in -lpng" >&5 7104 echo "configure:7105: checking for png_read_image in -lpng" >&5
7101 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7105 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7102 7106
7103 xe_check_libs=" -lpng " 7107 xe_check_libs=" -lpng "
7104 cat > conftest.$ac_ext <<EOF 7108 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure" 7109 #line 7110 "configure"
7106 #include "confdefs.h" 7110 #include "confdefs.h"
7107 /* Override any gcc2 internal prototype to avoid an error. */ 7111 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2 7112 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */ 7113 builtin and then its argument prototype would still apply. */
7110 char png_read_image(); 7114 char png_read_image();
7111 7115
7112 int main() { 7116 int main() {
7113 png_read_image() 7117 png_read_image()
7114 ; return 0; } 7118 ; return 0; }
7115 EOF 7119 EOF
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7120 if { (eval echo configure:7121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7117 rm -rf conftest* 7121 rm -rf conftest*
7118 eval "ac_cv_lib_$ac_lib_var=yes" 7122 eval "ac_cv_lib_$ac_lib_var=yes"
7119 else 7123 else
7120 echo "configure: failed program was:" >&5 7124 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5 7125 cat conftest.$ac_ext >&5
7134 fi 7138 fi
7135 7139
7136 } 7140 }
7137 if test -z "$with_png"; then 7141 if test -z "$with_png"; then
7138 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7142 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7139 echo "configure:7140: checking for workable png version information" >&5 7143 echo "configure:7144: checking for workable png version information" >&5
7140 xe_check_libs="-lpng -lz" 7144 xe_check_libs="-lpng -lz"
7141 cat > conftest.$ac_ext <<EOF 7145 cat > conftest.$ac_ext <<EOF
7142 #line 7143 "configure" 7146 #line 7147 "configure"
7143 #include "confdefs.h" 7147 #include "confdefs.h"
7144 #include <png.h> 7148 #include <png.h>
7145 int main(int c, char **v) { 7149 int main(int c, char **v) {
7146 if (c == 1) return 0; 7150 if (c == 1) return 0;
7147 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7151 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7148 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7152 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7149 EOF 7153 EOF
7150 if { (eval echo configure:7151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7151 then 7155 then
7152 ./conftest dummy_arg; png_status=$?; 7156 ./conftest dummy_arg; png_status=$?;
7153 if test "$png_status" = "0"; then 7157 if test "$png_status" = "0"; then
7154 with_png=yes; 7158 with_png=yes;
7155 else 7159 else
7188 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7192 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7189 fi 7193 fi
7190 7194
7191 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7195 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7192 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7196 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7193 echo "configure:7194: checking for tiffio.h" >&5 7197 echo "configure:7198: checking for tiffio.h" >&5
7194 7198
7195 cat > conftest.$ac_ext <<EOF 7199 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure" 7200 #line 7201 "configure"
7197 #include "confdefs.h" 7201 #include "confdefs.h"
7198 #include <tiffio.h> 7202 #include <tiffio.h>
7199 EOF 7203 EOF
7200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7201 { (eval echo configure:7202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7205 { (eval echo configure:7206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7203 if test -z "$ac_err"; then 7207 if test -z "$ac_err"; then
7204 rm -rf conftest* 7208 rm -rf conftest*
7205 eval "ac_cv_header_$ac_safe=yes" 7209 eval "ac_cv_header_$ac_safe=yes"
7206 else 7210 else
7219 with_tiff=no 7223 with_tiff=no
7220 fi 7224 fi
7221 } 7225 }
7222 test -z "$with_tiff" && { 7226 test -z "$with_tiff" && {
7223 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7227 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7224 echo "configure:7225: checking for TIFFClientOpen in -ltiff" >&5 7228 echo "configure:7229: checking for TIFFClientOpen in -ltiff" >&5
7225 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7229 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7226 7230
7227 xe_check_libs=" -ltiff " 7231 xe_check_libs=" -ltiff "
7228 cat > conftest.$ac_ext <<EOF 7232 cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure" 7233 #line 7234 "configure"
7230 #include "confdefs.h" 7234 #include "confdefs.h"
7231 /* Override any gcc2 internal prototype to avoid an error. */ 7235 /* Override any gcc2 internal prototype to avoid an error. */
7232 /* We use char because int might match the return type of a gcc2 7236 /* We use char because int might match the return type of a gcc2
7233 builtin and then its argument prototype would still apply. */ 7237 builtin and then its argument prototype would still apply. */
7234 char TIFFClientOpen(); 7238 char TIFFClientOpen();
7235 7239
7236 int main() { 7240 int main() {
7237 TIFFClientOpen() 7241 TIFFClientOpen()
7238 ; return 0; } 7242 ; return 0; }
7239 EOF 7243 EOF
7240 if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7244 if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7241 rm -rf conftest* 7245 rm -rf conftest*
7242 eval "ac_cv_lib_$ac_lib_var=yes" 7246 eval "ac_cv_lib_$ac_lib_var=yes"
7243 else 7247 else
7244 echo "configure: failed program was:" >&5 7248 echo "configure: failed program was:" >&5
7245 cat conftest.$ac_ext >&5 7249 cat conftest.$ac_ext >&5
7274 7278
7275 7279
7276 if test "$with_x11" = "yes"; then 7280 if test "$with_x11" = "yes"; then
7277 7281
7278 echo "checking for X11 graphics libraries" 1>&6 7282 echo "checking for X11 graphics libraries" 1>&6
7279 echo "configure:7280: checking for X11 graphics libraries" >&5 7283 echo "configure:7284: checking for X11 graphics libraries" >&5
7280 7284
7281 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7285 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7282 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7286 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7283 echo "configure:7284: checking for compface.h" >&5 7287 echo "configure:7288: checking for compface.h" >&5
7284 7288
7285 cat > conftest.$ac_ext <<EOF 7289 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure" 7290 #line 7291 "configure"
7287 #include "confdefs.h" 7291 #include "confdefs.h"
7288 #include <compface.h> 7292 #include <compface.h>
7289 EOF 7293 EOF
7290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7291 { (eval echo configure:7292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7295 { (eval echo configure:7296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7293 if test -z "$ac_err"; then 7297 if test -z "$ac_err"; then
7294 rm -rf conftest* 7298 rm -rf conftest*
7295 eval "ac_cv_header_$ac_safe=yes" 7299 eval "ac_cv_header_$ac_safe=yes"
7296 else 7300 else
7309 with_xface=no 7313 with_xface=no
7310 fi 7314 fi
7311 } 7315 }
7312 test -z "$with_xface" && { 7316 test -z "$with_xface" && {
7313 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7317 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7314 echo "configure:7315: checking for UnGenFace in -lcompface" >&5 7318 echo "configure:7319: checking for UnGenFace in -lcompface" >&5
7315 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7319 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7316 7320
7317 xe_check_libs=" -lcompface " 7321 xe_check_libs=" -lcompface "
7318 cat > conftest.$ac_ext <<EOF 7322 cat > conftest.$ac_ext <<EOF
7319 #line 7320 "configure" 7323 #line 7324 "configure"
7320 #include "confdefs.h" 7324 #include "confdefs.h"
7321 /* Override any gcc2 internal prototype to avoid an error. */ 7325 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2 7326 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */ 7327 builtin and then its argument prototype would still apply. */
7324 char UnGenFace(); 7328 char UnGenFace();
7325 7329
7326 int main() { 7330 int main() {
7327 UnGenFace() 7331 UnGenFace()
7328 ; return 0; } 7332 ; return 0; }
7329 EOF 7333 EOF
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7334 if { (eval echo configure:7335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7331 rm -rf conftest* 7335 rm -rf conftest*
7332 eval "ac_cv_lib_$ac_lib_var=yes" 7336 eval "ac_cv_lib_$ac_lib_var=yes"
7333 else 7337 else
7334 echo "configure: failed program was:" >&5 7338 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5 7339 cat conftest.$ac_ext >&5
7361 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 7365 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7362 fi 7366 fi
7363 7367
7364 7368
7365 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7369 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7366 echo "configure:7367: checking for XawScrollbarSetThumb in -lXaw" >&5 7370 echo "configure:7371: checking for XawScrollbarSetThumb in -lXaw" >&5
7367 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7371 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7368 7372
7369 xe_check_libs=" -lXaw " 7373 xe_check_libs=" -lXaw "
7370 cat > conftest.$ac_ext <<EOF 7374 cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure" 7375 #line 7376 "configure"
7372 #include "confdefs.h" 7376 #include "confdefs.h"
7373 /* Override any gcc2 internal prototype to avoid an error. */ 7377 /* Override any gcc2 internal prototype to avoid an error. */
7374 /* We use char because int might match the return type of a gcc2 7378 /* We use char because int might match the return type of a gcc2
7375 builtin and then its argument prototype would still apply. */ 7379 builtin and then its argument prototype would still apply. */
7376 char XawScrollbarSetThumb(); 7380 char XawScrollbarSetThumb();
7377 7381
7378 int main() { 7382 int main() {
7379 XawScrollbarSetThumb() 7383 XawScrollbarSetThumb()
7380 ; return 0; } 7384 ; return 0; }
7381 EOF 7385 EOF
7382 if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7383 rm -rf conftest* 7387 rm -rf conftest*
7384 eval "ac_cv_lib_$ac_lib_var=yes" 7388 eval "ac_cv_lib_$ac_lib_var=yes"
7385 else 7389 else
7386 echo "configure: failed program was:" >&5 7390 echo "configure: failed program was:" >&5
7387 cat conftest.$ac_ext >&5 7391 cat conftest.$ac_ext >&5
7401 7405
7402 7406
7403 7407
7404 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7408 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7405 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7409 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7406 echo "configure:7407: checking for Xm/Xm.h" >&5 7410 echo "configure:7411: checking for Xm/Xm.h" >&5
7407 7411
7408 cat > conftest.$ac_ext <<EOF 7412 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure" 7413 #line 7414 "configure"
7410 #include "confdefs.h" 7414 #include "confdefs.h"
7411 #include <Xm/Xm.h> 7415 #include <Xm/Xm.h>
7412 EOF 7416 EOF
7413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7414 { (eval echo configure:7415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7418 { (eval echo configure:7419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7416 if test -z "$ac_err"; then 7420 if test -z "$ac_err"; then
7417 rm -rf conftest* 7421 rm -rf conftest*
7418 eval "ac_cv_header_$ac_safe=yes" 7422 eval "ac_cv_header_$ac_safe=yes"
7419 else 7423 else
7426 rm -f conftest* 7430 rm -f conftest*
7427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7428 echo "$ac_t""yes" 1>&6 7432 echo "$ac_t""yes" 1>&6
7429 7433
7430 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7434 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7431 echo "configure:7432: checking for XmStringFree in -lXm" >&5 7435 echo "configure:7436: checking for XmStringFree in -lXm" >&5
7432 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7436 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7433 7437
7434 xe_check_libs=" -lXm " 7438 xe_check_libs=" -lXm "
7435 cat > conftest.$ac_ext <<EOF 7439 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure" 7440 #line 7441 "configure"
7437 #include "confdefs.h" 7441 #include "confdefs.h"
7438 /* Override any gcc2 internal prototype to avoid an error. */ 7442 /* Override any gcc2 internal prototype to avoid an error. */
7439 /* We use char because int might match the return type of a gcc2 7443 /* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */ 7444 builtin and then its argument prototype would still apply. */
7441 char XmStringFree(); 7445 char XmStringFree();
7442 7446
7443 int main() { 7447 int main() {
7444 XmStringFree() 7448 XmStringFree()
7445 ; return 0; } 7449 ; return 0; }
7446 EOF 7450 EOF
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7451 if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7448 rm -rf conftest* 7452 rm -rf conftest*
7449 eval "ac_cv_lib_$ac_lib_var=yes" 7453 eval "ac_cv_lib_$ac_lib_var=yes"
7450 else 7454 else
7451 echo "configure: failed program was:" >&5 7455 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5 7456 cat conftest.$ac_ext >&5
7471 fi 7475 fi
7472 7476
7473 7477
7474 if test "$have_motif" = "yes"; then 7478 if test "$have_motif" = "yes"; then
7475 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7479 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7476 echo "configure:7477: checking for Lesstif" >&5 7480 echo "configure:7481: checking for Lesstif" >&5
7477 cat > conftest.$ac_ext <<EOF 7481 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure" 7482 #line 7483 "configure"
7479 #include "confdefs.h" 7483 #include "confdefs.h"
7480 #include <Xm/Xm.h> 7484 #include <Xm/Xm.h>
7481 #ifdef LESSTIF_VERSION 7485 #ifdef LESSTIF_VERSION
7482 yes 7486 yes
7483 #endif 7487 #endif
7757 fi 7761 fi
7758 fi 7762 fi
7759 7763
7760 if test "$with_mule" = "yes" ; then 7764 if test "$with_mule" = "yes" ; then
7761 echo "checking for Mule-related features" 1>&6 7765 echo "checking for Mule-related features" 1>&6
7762 echo "configure:7763: checking for Mule-related features" >&5 7766 echo "configure:7767: checking for Mule-related features" >&5
7763 { test "$extra_verbose" = "yes" && cat << \EOF 7767 { test "$extra_verbose" = "yes" && cat << \EOF
7764 Defining MULE 7768 Defining MULE
7765 EOF 7769 EOF
7766 cat >> confdefs.h <<\EOF 7770 cat >> confdefs.h <<\EOF
7767 #define MULE 1 7771 #define MULE 1
7782 7786
7783 for ac_hdr in libintl.h 7787 for ac_hdr in libintl.h
7784 do 7788 do
7785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7787 echo "configure:7788: checking for $ac_hdr" >&5 7791 echo "configure:7792: checking for $ac_hdr" >&5
7788 7792
7789 cat > conftest.$ac_ext <<EOF 7793 cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure" 7794 #line 7795 "configure"
7791 #include "confdefs.h" 7795 #include "confdefs.h"
7792 #include <$ac_hdr> 7796 #include <$ac_hdr>
7793 EOF 7797 EOF
7794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7795 { (eval echo configure:7796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7799 { (eval echo configure:7800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7797 if test -z "$ac_err"; then 7801 if test -z "$ac_err"; then
7798 rm -rf conftest* 7802 rm -rf conftest*
7799 eval "ac_cv_header_$ac_safe=yes" 7803 eval "ac_cv_header_$ac_safe=yes"
7800 else 7804 else
7821 fi 7825 fi
7822 done 7826 done
7823 7827
7824 7828
7825 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7829 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7826 echo "configure:7827: checking for strerror in -lintl" >&5 7830 echo "configure:7831: checking for strerror in -lintl" >&5
7827 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7831 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7828 7832
7829 xe_check_libs=" -lintl " 7833 xe_check_libs=" -lintl "
7830 cat > conftest.$ac_ext <<EOF 7834 cat > conftest.$ac_ext <<EOF
7831 #line 7832 "configure" 7835 #line 7836 "configure"
7832 #include "confdefs.h" 7836 #include "confdefs.h"
7833 /* Override any gcc2 internal prototype to avoid an error. */ 7837 /* Override any gcc2 internal prototype to avoid an error. */
7834 /* We use char because int might match the return type of a gcc2 7838 /* We use char because int might match the return type of a gcc2
7835 builtin and then its argument prototype would still apply. */ 7839 builtin and then its argument prototype would still apply. */
7836 char strerror(); 7840 char strerror();
7837 7841
7838 int main() { 7842 int main() {
7839 strerror() 7843 strerror()
7840 ; return 0; } 7844 ; return 0; }
7841 EOF 7845 EOF
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7846 if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7843 rm -rf conftest* 7847 rm -rf conftest*
7844 eval "ac_cv_lib_$ac_lib_var=yes" 7848 eval "ac_cv_lib_$ac_lib_var=yes"
7845 else 7849 else
7846 echo "configure: failed program was:" >&5 7850 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5 7851 cat conftest.$ac_ext >&5
7870 fi 7874 fi
7871 7875
7872 7876
7873 7877
7874 echo "checking for Mule input methods" 1>&6 7878 echo "checking for Mule input methods" 1>&6
7875 echo "configure:7876: checking for Mule input methods" >&5 7879 echo "configure:7880: checking for Mule input methods" >&5
7876 case "$with_xim" in "" | "yes" ) 7880 case "$with_xim" in "" | "yes" )
7877 echo "checking for XIM" 1>&6 7881 echo "checking for XIM" 1>&6
7878 echo "configure:7879: checking for XIM" >&5 7882 echo "configure:7883: checking for XIM" >&5
7879 7883
7880 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 7884 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7881 echo "configure:7882: checking for XOpenIM in -lX11" >&5 7885 echo "configure:7886: checking for XOpenIM in -lX11" >&5
7882 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 7886 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7883 7887
7884 xe_check_libs=" -lX11 " 7888 xe_check_libs=" -lX11 "
7885 cat > conftest.$ac_ext <<EOF 7889 cat > conftest.$ac_ext <<EOF
7886 #line 7887 "configure" 7890 #line 7891 "configure"
7887 #include "confdefs.h" 7891 #include "confdefs.h"
7888 /* Override any gcc2 internal prototype to avoid an error. */ 7892 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2 7893 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */ 7894 builtin and then its argument prototype would still apply. */
7891 char XOpenIM(); 7895 char XOpenIM();
7892 7896
7893 int main() { 7897 int main() {
7894 XOpenIM() 7898 XOpenIM()
7895 ; return 0; } 7899 ; return 0; }
7896 EOF 7900 EOF
7897 if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7898 rm -rf conftest* 7902 rm -rf conftest*
7899 eval "ac_cv_lib_$ac_lib_var=yes" 7903 eval "ac_cv_lib_$ac_lib_var=yes"
7900 else 7904 else
7901 echo "configure: failed program was:" >&5 7905 echo "configure: failed program was:" >&5
7902 cat conftest.$ac_ext >&5 7906 cat conftest.$ac_ext >&5
7916 7920
7917 7921
7918 if test "$have_motif $have_lesstif" = "yes no"; then 7922 if test "$have_motif $have_lesstif" = "yes no"; then
7919 7923
7920 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7924 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7921 echo "configure:7922: checking for XmImMbLookupString in -lXm" >&5 7925 echo "configure:7926: checking for XmImMbLookupString in -lXm" >&5
7922 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7926 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7923 7927
7924 xe_check_libs=" -lXm " 7928 xe_check_libs=" -lXm "
7925 cat > conftest.$ac_ext <<EOF 7929 cat > conftest.$ac_ext <<EOF
7926 #line 7927 "configure" 7930 #line 7931 "configure"
7927 #include "confdefs.h" 7931 #include "confdefs.h"
7928 /* Override any gcc2 internal prototype to avoid an error. */ 7932 /* Override any gcc2 internal prototype to avoid an error. */
7929 /* We use char because int might match the return type of a gcc2 7933 /* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */ 7934 builtin and then its argument prototype would still apply. */
7931 char XmImMbLookupString(); 7935 char XmImMbLookupString();
7932 7936
7933 int main() { 7937 int main() {
7934 XmImMbLookupString() 7938 XmImMbLookupString()
7935 ; return 0; } 7939 ; return 0; }
7936 EOF 7940 EOF
7937 if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7941 if { (eval echo configure:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7938 rm -rf conftest* 7942 rm -rf conftest*
7939 eval "ac_cv_lib_$ac_lib_var=yes" 7943 eval "ac_cv_lib_$ac_lib_var=yes"
7940 else 7944 else
7941 echo "configure: failed program was:" >&5 7945 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5 7946 cat conftest.$ac_ext >&5
7997 fi 8001 fi
7998 fi 8002 fi
7999 8003
8000 if test "$with_xfs" = "yes" ; then 8004 if test "$with_xfs" = "yes" ; then
8001 echo "checking for XFontSet" 1>&6 8005 echo "checking for XFontSet" 1>&6
8002 echo "configure:8003: checking for XFontSet" >&5 8006 echo "configure:8007: checking for XFontSet" >&5
8003 8007
8004 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 8008 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8005 echo "configure:8006: checking for XmbDrawString in -lX11" >&5 8009 echo "configure:8010: checking for XmbDrawString in -lX11" >&5
8006 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 8010 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8007 8011
8008 xe_check_libs=" -lX11 " 8012 xe_check_libs=" -lX11 "
8009 cat > conftest.$ac_ext <<EOF 8013 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure" 8014 #line 8015 "configure"
8011 #include "confdefs.h" 8015 #include "confdefs.h"
8012 /* Override any gcc2 internal prototype to avoid an error. */ 8016 /* Override any gcc2 internal prototype to avoid an error. */
8013 /* We use char because int might match the return type of a gcc2 8017 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */ 8018 builtin and then its argument prototype would still apply. */
8015 char XmbDrawString(); 8019 char XmbDrawString();
8016 8020
8017 int main() { 8021 int main() {
8018 XmbDrawString() 8022 XmbDrawString()
8019 ; return 0; } 8023 ; return 0; }
8020 EOF 8024 EOF
8021 if { (eval echo configure:8022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8025 if { (eval echo configure:8026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8022 rm -rf conftest* 8026 rm -rf conftest*
8023 eval "ac_cv_lib_$ac_lib_var=yes" 8027 eval "ac_cv_lib_$ac_lib_var=yes"
8024 else 8028 else
8025 echo "configure: failed program was:" >&5 8029 echo "configure: failed program was:" >&5
8026 cat conftest.$ac_ext >&5 8030 cat conftest.$ac_ext >&5
8056 fi 8060 fi
8057 fi 8061 fi
8058 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 8062 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8059 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 8063 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8060 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 8064 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8061 echo "configure:8062: checking for wnn/jllib.h" >&5 8065 echo "configure:8066: checking for wnn/jllib.h" >&5
8062 8066
8063 cat > conftest.$ac_ext <<EOF 8067 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure" 8068 #line 8069 "configure"
8065 #include "confdefs.h" 8069 #include "confdefs.h"
8066 #include <wnn/jllib.h> 8070 #include <wnn/jllib.h>
8067 EOF 8071 EOF
8068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8069 { (eval echo configure:8070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8073 { (eval echo configure:8074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8071 if test -z "$ac_err"; then 8075 if test -z "$ac_err"; then
8072 rm -rf conftest* 8076 rm -rf conftest*
8073 eval "ac_cv_header_$ac_safe=yes" 8077 eval "ac_cv_header_$ac_safe=yes"
8074 else 8078 else
8089 } 8093 }
8090 if test "$with_wnn" != "no"; then 8094 if test "$with_wnn" != "no"; then
8091 for ac_func in crypt 8095 for ac_func in crypt
8092 do 8096 do
8093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8094 echo "configure:8095: checking for $ac_func" >&5 8098 echo "configure:8099: checking for $ac_func" >&5
8095 8099
8096 cat > conftest.$ac_ext <<EOF 8100 cat > conftest.$ac_ext <<EOF
8097 #line 8098 "configure" 8101 #line 8102 "configure"
8098 #include "confdefs.h" 8102 #include "confdefs.h"
8099 /* System header to define __stub macros and hopefully few prototypes, 8103 /* System header to define __stub macros and hopefully few prototypes,
8100 which can conflict with char $ac_func(); below. */ 8104 which can conflict with char $ac_func(); below. */
8101 #include <assert.h> 8105 #include <assert.h>
8102 /* Override any gcc2 internal prototype to avoid an error. */ 8106 /* Override any gcc2 internal prototype to avoid an error. */
8115 $ac_func(); 8119 $ac_func();
8116 #endif 8120 #endif
8117 8121
8118 ; return 0; } 8122 ; return 0; }
8119 EOF 8123 EOF
8120 if { (eval echo configure:8121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8121 rm -rf conftest* 8125 rm -rf conftest*
8122 eval "ac_cv_func_$ac_func=yes" 8126 eval "ac_cv_func_$ac_func=yes"
8123 else 8127 else
8124 echo "configure: failed program was:" >&5 8128 echo "configure: failed program was:" >&5
8125 cat conftest.$ac_ext >&5 8129 cat conftest.$ac_ext >&5
8144 fi 8148 fi
8145 done 8149 done
8146 8150
8147 test "$ac_cv_func_crypt" != "yes" && { 8151 test "$ac_cv_func_crypt" != "yes" && {
8148 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 8152 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8149 echo "configure:8150: checking for crypt in -lcrypt" >&5 8153 echo "configure:8154: checking for crypt in -lcrypt" >&5
8150 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 8154 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8151 8155
8152 xe_check_libs=" -lcrypt " 8156 xe_check_libs=" -lcrypt "
8153 cat > conftest.$ac_ext <<EOF 8157 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure" 8158 #line 8159 "configure"
8155 #include "confdefs.h" 8159 #include "confdefs.h"
8156 /* Override any gcc2 internal prototype to avoid an error. */ 8160 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2 8161 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */ 8162 builtin and then its argument prototype would still apply. */
8159 char crypt(); 8163 char crypt();
8160 8164
8161 int main() { 8165 int main() {
8162 crypt() 8166 crypt()
8163 ; return 0; } 8167 ; return 0; }
8164 EOF 8168 EOF
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8169 if { (eval echo configure:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166 rm -rf conftest* 8170 rm -rf conftest*
8167 eval "ac_cv_lib_$ac_lib_var=yes" 8171 eval "ac_cv_lib_$ac_lib_var=yes"
8168 else 8172 else
8169 echo "configure: failed program was:" >&5 8173 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5 8174 cat conftest.$ac_ext >&5
8195 } 8199 }
8196 fi 8200 fi
8197 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 8201 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8198 8202
8199 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 8203 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8200 echo "configure:8201: checking for jl_dic_list_e in -lwnn" >&5 8204 echo "configure:8205: checking for jl_dic_list_e in -lwnn" >&5
8201 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8205 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8202 8206
8203 xe_check_libs=" -lwnn " 8207 xe_check_libs=" -lwnn "
8204 cat > conftest.$ac_ext <<EOF 8208 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure" 8209 #line 8210 "configure"
8206 #include "confdefs.h" 8210 #include "confdefs.h"
8207 /* Override any gcc2 internal prototype to avoid an error. */ 8211 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2 8212 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */ 8213 builtin and then its argument prototype would still apply. */
8210 char jl_dic_list_e(); 8214 char jl_dic_list_e();
8211 8215
8212 int main() { 8216 int main() {
8213 jl_dic_list_e() 8217 jl_dic_list_e()
8214 ; return 0; } 8218 ; return 0; }
8215 EOF 8219 EOF
8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8220 if { (eval echo configure:8221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8217 rm -rf conftest* 8221 rm -rf conftest*
8218 eval "ac_cv_lib_$ac_lib_var=yes" 8222 eval "ac_cv_lib_$ac_lib_var=yes"
8219 else 8223 else
8220 echo "configure: failed program was:" >&5 8224 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5 8225 cat conftest.$ac_ext >&5
8229 echo "$ac_t""yes" 1>&6 8233 echo "$ac_t""yes" 1>&6
8230 libwnn=wnn 8234 libwnn=wnn
8231 else 8235 else
8232 echo "$ac_t""no" 1>&6 8236 echo "$ac_t""no" 1>&6
8233 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 8237 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8234 echo "configure:8235: checking for jl_dic_list_e in -lwnn4" >&5 8238 echo "configure:8239: checking for jl_dic_list_e in -lwnn4" >&5
8235 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8239 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8236 8240
8237 xe_check_libs=" -lwnn4 " 8241 xe_check_libs=" -lwnn4 "
8238 cat > conftest.$ac_ext <<EOF 8242 cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure" 8243 #line 8244 "configure"
8240 #include "confdefs.h" 8244 #include "confdefs.h"
8241 /* Override any gcc2 internal prototype to avoid an error. */ 8245 /* Override any gcc2 internal prototype to avoid an error. */
8242 /* We use char because int might match the return type of a gcc2 8246 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */ 8247 builtin and then its argument prototype would still apply. */
8244 char jl_dic_list_e(); 8248 char jl_dic_list_e();
8245 8249
8246 int main() { 8250 int main() {
8247 jl_dic_list_e() 8251 jl_dic_list_e()
8248 ; return 0; } 8252 ; return 0; }
8249 EOF 8253 EOF
8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8254 if { (eval echo configure:8255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 rm -rf conftest* 8255 rm -rf conftest*
8252 eval "ac_cv_lib_$ac_lib_var=yes" 8256 eval "ac_cv_lib_$ac_lib_var=yes"
8253 else 8257 else
8254 echo "configure: failed program was:" >&5 8258 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5 8259 cat conftest.$ac_ext >&5
8263 echo "$ac_t""yes" 1>&6 8267 echo "$ac_t""yes" 1>&6
8264 libwnn=wnn4 8268 libwnn=wnn4
8265 else 8269 else
8266 echo "$ac_t""no" 1>&6 8270 echo "$ac_t""no" 1>&6
8267 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 8271 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8268 echo "configure:8269: checking for jl_dic_list_e in -lwnn6" >&5 8272 echo "configure:8273: checking for jl_dic_list_e in -lwnn6" >&5
8269 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8273 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8270 8274
8271 xe_check_libs=" -lwnn6 " 8275 xe_check_libs=" -lwnn6 "
8272 cat > conftest.$ac_ext <<EOF 8276 cat > conftest.$ac_ext <<EOF
8273 #line 8274 "configure" 8277 #line 8278 "configure"
8274 #include "confdefs.h" 8278 #include "confdefs.h"
8275 /* Override any gcc2 internal prototype to avoid an error. */ 8279 /* Override any gcc2 internal prototype to avoid an error. */
8276 /* We use char because int might match the return type of a gcc2 8280 /* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */ 8281 builtin and then its argument prototype would still apply. */
8278 char jl_dic_list_e(); 8282 char jl_dic_list_e();
8279 8283
8280 int main() { 8284 int main() {
8281 jl_dic_list_e() 8285 jl_dic_list_e()
8282 ; return 0; } 8286 ; return 0; }
8283 EOF 8287 EOF
8284 if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8288 if { (eval echo configure:8289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8285 rm -rf conftest* 8289 rm -rf conftest*
8286 eval "ac_cv_lib_$ac_lib_var=yes" 8290 eval "ac_cv_lib_$ac_lib_var=yes"
8287 else 8291 else
8288 echo "configure: failed program was:" >&5 8292 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5 8293 cat conftest.$ac_ext >&5
8297 echo "$ac_t""yes" 1>&6 8301 echo "$ac_t""yes" 1>&6
8298 libwnn=wnn6 8302 libwnn=wnn6
8299 else 8303 else
8300 echo "$ac_t""no" 1>&6 8304 echo "$ac_t""no" 1>&6
8301 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 8305 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8302 echo "configure:8303: checking for dic_list_e in -lwnn6_fromsrc" >&5 8306 echo "configure:8307: checking for dic_list_e in -lwnn6_fromsrc" >&5
8303 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 8307 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8304 8308
8305 xe_check_libs=" -lwnn6_fromsrc " 8309 xe_check_libs=" -lwnn6_fromsrc "
8306 cat > conftest.$ac_ext <<EOF 8310 cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure" 8311 #line 8312 "configure"
8308 #include "confdefs.h" 8312 #include "confdefs.h"
8309 /* Override any gcc2 internal prototype to avoid an error. */ 8313 /* Override any gcc2 internal prototype to avoid an error. */
8310 /* We use char because int might match the return type of a gcc2 8314 /* We use char because int might match the return type of a gcc2
8311 builtin and then its argument prototype would still apply. */ 8315 builtin and then its argument prototype would still apply. */
8312 char dic_list_e(); 8316 char dic_list_e();
8313 8317
8314 int main() { 8318 int main() {
8315 dic_list_e() 8319 dic_list_e()
8316 ; return 0; } 8320 ; return 0; }
8317 EOF 8321 EOF
8318 if { (eval echo configure:8319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8322 if { (eval echo configure:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8319 rm -rf conftest* 8323 rm -rf conftest*
8320 eval "ac_cv_lib_$ac_lib_var=yes" 8324 eval "ac_cv_lib_$ac_lib_var=yes"
8321 else 8325 else
8322 echo "configure: failed program was:" >&5 8326 echo "configure: failed program was:" >&5
8323 cat conftest.$ac_ext >&5 8327 cat conftest.$ac_ext >&5
8361 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8365 echo " xemacs will be linked with \"mule-wnnfns.o\""
8362 fi 8366 fi
8363 if test "$with_wnn6" != "no"; then 8367 if test "$with_wnn6" != "no"; then
8364 8368
8365 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 8369 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8366 echo "configure:8367: checking for jl_fi_dic_list in -l$libwnn" >&5 8370 echo "configure:8371: checking for jl_fi_dic_list in -l$libwnn" >&5
8367 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8371 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8368 8372
8369 xe_check_libs=" -l$libwnn " 8373 xe_check_libs=" -l$libwnn "
8370 cat > conftest.$ac_ext <<EOF 8374 cat > conftest.$ac_ext <<EOF
8371 #line 8372 "configure" 8375 #line 8376 "configure"
8372 #include "confdefs.h" 8376 #include "confdefs.h"
8373 /* Override any gcc2 internal prototype to avoid an error. */ 8377 /* Override any gcc2 internal prototype to avoid an error. */
8374 /* We use char because int might match the return type of a gcc2 8378 /* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */ 8379 builtin and then its argument prototype would still apply. */
8376 char jl_fi_dic_list(); 8380 char jl_fi_dic_list();
8377 8381
8378 int main() { 8382 int main() {
8379 jl_fi_dic_list() 8383 jl_fi_dic_list()
8380 ; return 0; } 8384 ; return 0; }
8381 EOF 8385 EOF
8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8386 if { (eval echo configure:8387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8383 rm -rf conftest* 8387 rm -rf conftest*
8384 eval "ac_cv_lib_$ac_lib_var=yes" 8388 eval "ac_cv_lib_$ac_lib_var=yes"
8385 else 8389 else
8386 echo "configure: failed program was:" >&5 8390 echo "configure: failed program was:" >&5
8387 cat conftest.$ac_ext >&5 8391 cat conftest.$ac_ext >&5
8412 8416
8413 canna_includes_found=no 8417 canna_includes_found=no
8414 if test "$with_canna" != "no"; then 8418 if test "$with_canna" != "no"; then
8415 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8419 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8416 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8420 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8417 echo "configure:8418: checking for canna/jrkanji.h" >&5 8421 echo "configure:8422: checking for canna/jrkanji.h" >&5
8418 8422
8419 cat > conftest.$ac_ext <<EOF 8423 cat > conftest.$ac_ext <<EOF
8420 #line 8421 "configure" 8424 #line 8425 "configure"
8421 #include "confdefs.h" 8425 #include "confdefs.h"
8422 #include <canna/jrkanji.h> 8426 #include <canna/jrkanji.h>
8423 EOF 8427 EOF
8424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8425 { (eval echo configure:8426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8429 { (eval echo configure:8430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8427 if test -z "$ac_err"; then 8431 if test -z "$ac_err"; then
8428 rm -rf conftest* 8432 rm -rf conftest*
8429 eval "ac_cv_header_$ac_safe=yes" 8433 eval "ac_cv_header_$ac_safe=yes"
8430 else 8434 else
8447 -d "/usr/local/canna/include"; then 8451 -d "/usr/local/canna/include"; then
8448 save_c_switch_site="$c_switch_site" 8452 save_c_switch_site="$c_switch_site"
8449 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8453 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8450 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8454 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8451 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8455 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8452 echo "configure:8453: checking for canna/jrkanji.h" >&5 8456 echo "configure:8457: checking for canna/jrkanji.h" >&5
8453 8457
8454 cat > conftest.$ac_ext <<EOF 8458 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure" 8459 #line 8460 "configure"
8456 #include "confdefs.h" 8460 #include "confdefs.h"
8457 #include <canna/jrkanji.h> 8461 #include <canna/jrkanji.h>
8458 EOF 8462 EOF
8459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8460 { (eval echo configure:8461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8464 { (eval echo configure:8465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8462 if test -z "$ac_err"; then 8466 if test -z "$ac_err"; then
8463 rm -rf conftest* 8467 rm -rf conftest*
8464 eval "ac_cv_header_$ac_safe=yes" 8468 eval "ac_cv_header_$ac_safe=yes"
8465 else 8469 else
8483 fi 8487 fi
8484 fi 8488 fi
8485 8489
8486 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8490 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8487 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8491 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8488 echo "configure:8489: checking for canna/RK.h" >&5 8492 echo "configure:8493: checking for canna/RK.h" >&5
8489 8493
8490 cat > conftest.$ac_ext <<EOF 8494 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure" 8495 #line 8496 "configure"
8492 #include "confdefs.h" 8496 #include "confdefs.h"
8493 #include <canna/RK.h> 8497 #include <canna/RK.h>
8494 EOF 8498 EOF
8495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8496 { (eval echo configure:8497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8500 { (eval echo configure:8501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8498 if test -z "$ac_err"; then 8502 if test -z "$ac_err"; then
8499 rm -rf conftest* 8503 rm -rf conftest*
8500 eval "ac_cv_header_$ac_safe=yes" 8504 eval "ac_cv_header_$ac_safe=yes"
8501 else 8505 else
8514 with_canna=no 8518 with_canna=no
8515 fi 8519 fi
8516 } 8520 }
8517 test -z "$with_canna" && { 8521 test -z "$with_canna" && {
8518 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8522 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8519 echo "configure:8520: checking for RkBgnBun in -lRKC" >&5 8523 echo "configure:8524: checking for RkBgnBun in -lRKC" >&5
8520 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8524 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8521 8525
8522 xe_check_libs=" -lRKC " 8526 xe_check_libs=" -lRKC "
8523 cat > conftest.$ac_ext <<EOF 8527 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure" 8528 #line 8529 "configure"
8525 #include "confdefs.h" 8529 #include "confdefs.h"
8526 /* Override any gcc2 internal prototype to avoid an error. */ 8530 /* Override any gcc2 internal prototype to avoid an error. */
8527 /* We use char because int might match the return type of a gcc2 8531 /* We use char because int might match the return type of a gcc2
8528 builtin and then its argument prototype would still apply. */ 8532 builtin and then its argument prototype would still apply. */
8529 char RkBgnBun(); 8533 char RkBgnBun();
8530 8534
8531 int main() { 8535 int main() {
8532 RkBgnBun() 8536 RkBgnBun()
8533 ; return 0; } 8537 ; return 0; }
8534 EOF 8538 EOF
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8539 if { (eval echo configure:8540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8536 rm -rf conftest* 8540 rm -rf conftest*
8537 eval "ac_cv_lib_$ac_lib_var=yes" 8541 eval "ac_cv_lib_$ac_lib_var=yes"
8538 else 8542 else
8539 echo "configure: failed program was:" >&5 8543 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5 8544 cat conftest.$ac_ext >&5
8553 fi 8557 fi
8554 8558
8555 } 8559 }
8556 test -z "$with_canna" && { 8560 test -z "$with_canna" && {
8557 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8561 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8558 echo "configure:8559: checking for jrKanjiControl in -lcanna" >&5 8562 echo "configure:8563: checking for jrKanjiControl in -lcanna" >&5
8559 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8563 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8560 8564
8561 xe_check_libs=" -lcanna " 8565 xe_check_libs=" -lcanna "
8562 cat > conftest.$ac_ext <<EOF 8566 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure" 8567 #line 8568 "configure"
8564 #include "confdefs.h" 8568 #include "confdefs.h"
8565 /* Override any gcc2 internal prototype to avoid an error. */ 8569 /* Override any gcc2 internal prototype to avoid an error. */
8566 /* We use char because int might match the return type of a gcc2 8570 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */ 8571 builtin and then its argument prototype would still apply. */
8568 char jrKanjiControl(); 8572 char jrKanjiControl();
8569 8573
8570 int main() { 8574 int main() {
8571 jrKanjiControl() 8575 jrKanjiControl()
8572 ; return 0; } 8576 ; return 0; }
8573 EOF 8577 EOF
8574 if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8578 if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8575 rm -rf conftest* 8579 rm -rf conftest*
8576 eval "ac_cv_lib_$ac_lib_var=yes" 8580 eval "ac_cv_lib_$ac_lib_var=yes"
8577 else 8581 else
8578 echo "configure: failed program was:" >&5 8582 echo "configure: failed program was:" >&5
8579 cat conftest.$ac_ext >&5 8583 cat conftest.$ac_ext >&5
8618 8622
8619 if test "$need_motif" = "yes" ; then 8623 if test "$need_motif" = "yes" ; then
8620 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8624 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8621 8625
8622 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8626 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8623 echo "configure:8624: checking for layout_object_getvalue in -li18n" >&5 8627 echo "configure:8628: checking for layout_object_getvalue in -li18n" >&5
8624 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8628 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8625 8629
8626 xe_check_libs=" -li18n " 8630 xe_check_libs=" -li18n "
8627 cat > conftest.$ac_ext <<EOF 8631 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure" 8632 #line 8633 "configure"
8629 #include "confdefs.h" 8633 #include "confdefs.h"
8630 /* Override any gcc2 internal prototype to avoid an error. */ 8634 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2 8635 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */ 8636 builtin and then its argument prototype would still apply. */
8633 char layout_object_getvalue(); 8637 char layout_object_getvalue();
8634 8638
8635 int main() { 8639 int main() {
8636 layout_object_getvalue() 8640 layout_object_getvalue()
8637 ; return 0; } 8641 ; return 0; }
8638 EOF 8642 EOF
8639 if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8643 if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640 rm -rf conftest* 8644 rm -rf conftest*
8641 eval "ac_cv_lib_$ac_lib_var=yes" 8645 eval "ac_cv_lib_$ac_lib_var=yes"
8642 else 8646 else
8643 echo "configure: failed program was:" >&5 8647 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5 8648 cat conftest.$ac_ext >&5
8720 fi 8724 fi
8721 8725
8722 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 8726 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8723 do 8727 do
8724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8725 echo "configure:8726: checking for $ac_func" >&5 8729 echo "configure:8730: checking for $ac_func" >&5
8726 8730
8727 cat > conftest.$ac_ext <<EOF 8731 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure" 8732 #line 8733 "configure"
8729 #include "confdefs.h" 8733 #include "confdefs.h"
8730 /* System header to define __stub macros and hopefully few prototypes, 8734 /* System header to define __stub macros and hopefully few prototypes,
8731 which can conflict with char $ac_func(); below. */ 8735 which can conflict with char $ac_func(); below. */
8732 #include <assert.h> 8736 #include <assert.h>
8733 /* Override any gcc2 internal prototype to avoid an error. */ 8737 /* Override any gcc2 internal prototype to avoid an error. */
8746 $ac_func(); 8750 $ac_func();
8747 #endif 8751 #endif
8748 8752
8749 ; return 0; } 8753 ; return 0; }
8750 EOF 8754 EOF
8751 if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8752 rm -rf conftest* 8756 rm -rf conftest*
8753 eval "ac_cv_func_$ac_func=yes" 8757 eval "ac_cv_func_$ac_func=yes"
8754 else 8758 else
8755 echo "configure: failed program was:" >&5 8759 echo "configure: failed program was:" >&5
8756 cat conftest.$ac_ext >&5 8760 cat conftest.$ac_ext >&5
8787 echo " xemacs will be linked with \"realpath.o\"" 8791 echo " xemacs will be linked with \"realpath.o\""
8788 fi ;; 8792 fi ;;
8789 * ) for ac_func in realpath 8793 * ) for ac_func in realpath
8790 do 8794 do
8791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8792 echo "configure:8793: checking for $ac_func" >&5 8796 echo "configure:8797: checking for $ac_func" >&5
8793 8797
8794 cat > conftest.$ac_ext <<EOF 8798 cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure" 8799 #line 8800 "configure"
8796 #include "confdefs.h" 8800 #include "confdefs.h"
8797 /* System header to define __stub macros and hopefully few prototypes, 8801 /* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func(); below. */ 8802 which can conflict with char $ac_func(); below. */
8799 #include <assert.h> 8803 #include <assert.h>
8800 /* Override any gcc2 internal prototype to avoid an error. */ 8804 /* Override any gcc2 internal prototype to avoid an error. */
8813 $ac_func(); 8817 $ac_func();
8814 #endif 8818 #endif
8815 8819
8816 ; return 0; } 8820 ; return 0; }
8817 EOF 8821 EOF
8818 if { (eval echo configure:8819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8822 if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8819 rm -rf conftest* 8823 rm -rf conftest*
8820 eval "ac_cv_func_$ac_func=yes" 8824 eval "ac_cv_func_$ac_func=yes"
8821 else 8825 else
8822 echo "configure: failed program was:" >&5 8826 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5 8827 cat conftest.$ac_ext >&5
8847 fi ;; 8851 fi ;;
8848 esac ;; 8852 esac ;;
8849 esac 8853 esac
8850 8854
8851 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8855 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8852 echo "configure:8853: checking whether netdb declares h_errno" >&5 8856 echo "configure:8857: checking whether netdb declares h_errno" >&5
8853 cat > conftest.$ac_ext <<EOF 8857 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure" 8858 #line 8859 "configure"
8855 #include "confdefs.h" 8859 #include "confdefs.h"
8856 #include <netdb.h> 8860 #include <netdb.h>
8857 int main() { 8861 int main() {
8858 return h_errno; 8862 return h_errno;
8859 ; return 0; } 8863 ; return 0; }
8860 EOF 8864 EOF
8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8862 rm -rf conftest* 8866 rm -rf conftest*
8863 echo "$ac_t""yes" 1>&6 8867 echo "$ac_t""yes" 1>&6
8864 { test "$extra_verbose" = "yes" && cat << \EOF 8868 { test "$extra_verbose" = "yes" && cat << \EOF
8865 Defining HAVE_H_ERRNO 8869 Defining HAVE_H_ERRNO
8866 EOF 8870 EOF
8876 echo "$ac_t""no" 1>&6 8880 echo "$ac_t""no" 1>&6
8877 fi 8881 fi
8878 rm -f conftest* 8882 rm -f conftest*
8879 8883
8880 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8884 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8881 echo "configure:8882: checking for sigsetjmp" >&5 8885 echo "configure:8886: checking for sigsetjmp" >&5
8882 cat > conftest.$ac_ext <<EOF 8886 cat > conftest.$ac_ext <<EOF
8883 #line 8884 "configure" 8887 #line 8888 "configure"
8884 #include "confdefs.h" 8888 #include "confdefs.h"
8885 #include <setjmp.h> 8889 #include <setjmp.h>
8886 int main() { 8890 int main() {
8887 sigjmp_buf bar; sigsetjmp (bar, 0); 8891 sigjmp_buf bar; sigsetjmp (bar, 0);
8888 ; return 0; } 8892 ; return 0; }
8889 EOF 8893 EOF
8890 if { (eval echo configure:8891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8894 if { (eval echo configure:8895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8891 rm -rf conftest* 8895 rm -rf conftest*
8892 echo "$ac_t""yes" 1>&6 8896 echo "$ac_t""yes" 1>&6
8893 { test "$extra_verbose" = "yes" && cat << \EOF 8897 { test "$extra_verbose" = "yes" && cat << \EOF
8894 Defining HAVE_SIGSETJMP 8898 Defining HAVE_SIGSETJMP
8895 EOF 8899 EOF
8905 echo "$ac_t""no" 1>&6 8909 echo "$ac_t""no" 1>&6
8906 fi 8910 fi
8907 rm -f conftest* 8911 rm -f conftest*
8908 8912
8909 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8913 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8910 echo "configure:8911: checking whether localtime caches TZ" >&5 8914 echo "configure:8915: checking whether localtime caches TZ" >&5
8911 8915
8912 if test "$ac_cv_func_tzset" = "yes"; then 8916 if test "$ac_cv_func_tzset" = "yes"; then
8913 cat > conftest.$ac_ext <<EOF 8917 cat > conftest.$ac_ext <<EOF
8914 #line 8915 "configure" 8918 #line 8919 "configure"
8915 #include "confdefs.h" 8919 #include "confdefs.h"
8916 #include <time.h> 8920 #include <time.h>
8917 #if STDC_HEADERS 8921 #if STDC_HEADERS
8918 # include <stdlib.h> 8922 # include <stdlib.h>
8919 #endif 8923 #endif
8944 if (localtime (&now)->tm_hour != hour_unset) 8948 if (localtime (&now)->tm_hour != hour_unset)
8945 exit (1); 8949 exit (1);
8946 exit (0); 8950 exit (0);
8947 } 8951 }
8948 EOF 8952 EOF
8949 if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8950 then 8954 then
8951 emacs_cv_localtime_cache=no 8955 emacs_cv_localtime_cache=no
8952 else 8956 else
8953 conftest_rc="$?" 8957 conftest_rc="$?"
8954 echo "configure: failed program was:" >&5 8958 echo "configure: failed program was:" >&5
8974 8978
8975 fi 8979 fi
8976 8980
8977 if test "$HAVE_TIMEVAL" = "yes"; then 8981 if test "$HAVE_TIMEVAL" = "yes"; then
8978 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8982 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8979 echo "configure:8980: checking whether gettimeofday accepts one or two arguments" >&5 8983 echo "configure:8984: checking whether gettimeofday accepts one or two arguments" >&5
8980 cat > conftest.$ac_ext <<EOF 8984 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure" 8985 #line 8986 "configure"
8982 #include "confdefs.h" 8986 #include "confdefs.h"
8983 8987
8984 #ifdef TIME_WITH_SYS_TIME 8988 #ifdef TIME_WITH_SYS_TIME
8985 #include <sys/time.h> 8989 #include <sys/time.h>
8986 #include <time.h> 8990 #include <time.h>
8998 struct timezone dummy; 9002 struct timezone dummy;
8999 gettimeofday (&time, &dummy); 9003 gettimeofday (&time, &dummy);
9000 9004
9001 ; return 0; } 9005 ; return 0; }
9002 EOF 9006 EOF
9003 if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9007 if { (eval echo configure:9008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9004 rm -rf conftest* 9008 rm -rf conftest*
9005 echo "$ac_t""two" 1>&6 9009 echo "$ac_t""two" 1>&6
9006 else 9010 else
9007 echo "configure: failed program was:" >&5 9011 echo "configure: failed program was:" >&5
9008 cat conftest.$ac_ext >&5 9012 cat conftest.$ac_ext >&5
9020 rm -f conftest* 9024 rm -f conftest*
9021 fi 9025 fi
9022 9026
9023 9027
9024 echo $ac_n "checking for inline""... $ac_c" 1>&6 9028 echo $ac_n "checking for inline""... $ac_c" 1>&6
9025 echo "configure:9026: checking for inline" >&5 9029 echo "configure:9030: checking for inline" >&5
9026 9030
9027 ac_cv_c_inline=no 9031 ac_cv_c_inline=no
9028 for ac_kw in inline __inline__ __inline; do 9032 for ac_kw in inline __inline__ __inline; do
9029 cat > conftest.$ac_ext <<EOF 9033 cat > conftest.$ac_ext <<EOF
9030 #line 9031 "configure" 9034 #line 9035 "configure"
9031 #include "confdefs.h" 9035 #include "confdefs.h"
9032 9036
9033 int main() { 9037 int main() {
9034 } $ac_kw foo() { 9038 } $ac_kw foo() {
9035 ; return 0; } 9039 ; return 0; }
9036 EOF 9040 EOF
9037 if { (eval echo configure:9038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9041 if { (eval echo configure:9042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9038 rm -rf conftest* 9042 rm -rf conftest*
9039 ac_cv_c_inline=$ac_kw; break 9043 ac_cv_c_inline=$ac_kw; break
9040 else 9044 else
9041 echo "configure: failed program was:" >&5 9045 echo "configure: failed program was:" >&5
9042 cat conftest.$ac_ext >&5 9046 cat conftest.$ac_ext >&5
9082 9086
9083 9087
9084 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9088 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9085 # for constant arguments. Useless! 9089 # for constant arguments. Useless!
9086 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 9090 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9087 echo "configure:9088: checking for working alloca.h" >&5 9091 echo "configure:9092: checking for working alloca.h" >&5
9088 9092
9089 cat > conftest.$ac_ext <<EOF 9093 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure" 9094 #line 9095 "configure"
9091 #include "confdefs.h" 9095 #include "confdefs.h"
9092 #include <alloca.h> 9096 #include <alloca.h>
9093 int main() { 9097 int main() {
9094 char *p = alloca(2 * sizeof(int)); 9098 char *p = alloca(2 * sizeof(int));
9095 ; return 0; } 9099 ; return 0; }
9096 EOF 9100 EOF
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9101 if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9098 rm -rf conftest* 9102 rm -rf conftest*
9099 ac_cv_header_alloca_h=yes 9103 ac_cv_header_alloca_h=yes
9100 else 9104 else
9101 echo "configure: failed program was:" >&5 9105 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5 9106 cat conftest.$ac_ext >&5
9116 } 9120 }
9117 9121
9118 fi 9122 fi
9119 9123
9120 echo $ac_n "checking for alloca""... $ac_c" 1>&6 9124 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9121 echo "configure:9122: checking for alloca" >&5 9125 echo "configure:9126: checking for alloca" >&5
9122 9126
9123 cat > conftest.$ac_ext <<EOF 9127 cat > conftest.$ac_ext <<EOF
9124 #line 9125 "configure" 9128 #line 9129 "configure"
9125 #include "confdefs.h" 9129 #include "confdefs.h"
9126 9130
9127 #ifdef __GNUC__ 9131 #ifdef __GNUC__
9128 # define alloca __builtin_alloca 9132 # define alloca __builtin_alloca
9129 #else 9133 #else
9147 9151
9148 int main() { 9152 int main() {
9149 char *p = (char *) alloca(1); 9153 char *p = (char *) alloca(1);
9150 ; return 0; } 9154 ; return 0; }
9151 EOF 9155 EOF
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9156 if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9153 rm -rf conftest* 9157 rm -rf conftest*
9154 ac_cv_func_alloca_works=yes 9158 ac_cv_func_alloca_works=yes
9155 else 9159 else
9156 echo "configure: failed program was:" >&5 9160 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5 9161 cat conftest.$ac_ext >&5
9186 EOF 9190 EOF
9187 } 9191 }
9188 9192
9189 9193
9190 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 9194 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9191 echo "configure:9192: checking whether alloca needs Cray hooks" >&5 9195 echo "configure:9196: checking whether alloca needs Cray hooks" >&5
9192 9196
9193 cat > conftest.$ac_ext <<EOF 9197 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure" 9198 #line 9199 "configure"
9195 #include "confdefs.h" 9199 #include "confdefs.h"
9196 #if defined(CRAY) && ! defined(CRAY2) 9200 #if defined(CRAY) && ! defined(CRAY2)
9197 webecray 9201 webecray
9198 #else 9202 #else
9199 wenotbecray 9203 wenotbecray
9213 9217
9214 echo "$ac_t""$ac_cv_os_cray" 1>&6 9218 echo "$ac_t""$ac_cv_os_cray" 1>&6
9215 if test $ac_cv_os_cray = yes; then 9219 if test $ac_cv_os_cray = yes; then
9216 for ac_func in _getb67 GETB67 getb67; do 9220 for ac_func in _getb67 GETB67 getb67; do
9217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9218 echo "configure:9219: checking for $ac_func" >&5 9222 echo "configure:9223: checking for $ac_func" >&5
9219 9223
9220 cat > conftest.$ac_ext <<EOF 9224 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure" 9225 #line 9226 "configure"
9222 #include "confdefs.h" 9226 #include "confdefs.h"
9223 /* System header to define __stub macros and hopefully few prototypes, 9227 /* System header to define __stub macros and hopefully few prototypes,
9224 which can conflict with char $ac_func(); below. */ 9228 which can conflict with char $ac_func(); below. */
9225 #include <assert.h> 9229 #include <assert.h>
9226 /* Override any gcc2 internal prototype to avoid an error. */ 9230 /* Override any gcc2 internal prototype to avoid an error. */
9239 $ac_func(); 9243 $ac_func();
9240 #endif 9244 #endif
9241 9245
9242 ; return 0; } 9246 ; return 0; }
9243 EOF 9247 EOF
9244 if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9248 if { (eval echo configure:9249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9245 rm -rf conftest* 9249 rm -rf conftest*
9246 eval "ac_cv_func_$ac_func=yes" 9250 eval "ac_cv_func_$ac_func=yes"
9247 else 9251 else
9248 echo "configure: failed program was:" >&5 9252 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5 9253 cat conftest.$ac_ext >&5
9269 9273
9270 done 9274 done
9271 fi 9275 fi
9272 9276
9273 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 9277 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9274 echo "configure:9275: checking stack direction for C alloca" >&5 9278 echo "configure:9279: checking stack direction for C alloca" >&5
9275 9279
9276 cat > conftest.$ac_ext <<EOF 9280 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure" 9281 #line 9282 "configure"
9278 #include "confdefs.h" 9282 #include "confdefs.h"
9279 find_stack_direction () 9283 find_stack_direction ()
9280 { 9284 {
9281 static char *addr = 0; 9285 static char *addr = 0;
9282 auto char dummy; 9286 auto char dummy;
9291 main () 9295 main ()
9292 { 9296 {
9293 exit (find_stack_direction() < 0); 9297 exit (find_stack_direction() < 0);
9294 } 9298 }
9295 EOF 9299 EOF
9296 if { (eval echo configure:9297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9300 if { (eval echo configure:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9297 then 9301 then
9298 ac_cv_c_stack_direction=1 9302 ac_cv_c_stack_direction=1
9299 else 9303 else
9300 conftest_rc="$?" 9304 conftest_rc="$?"
9301 echo "configure: failed program was:" >&5 9305 echo "configure: failed program was:" >&5
9320 echo " xemacs will be linked with \"$ALLOCA\"" 9324 echo " xemacs will be linked with \"$ALLOCA\""
9321 fi 9325 fi
9322 9326
9323 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 9327 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9324 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 9328 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9325 echo "configure:9326: checking for vfork.h" >&5 9329 echo "configure:9330: checking for vfork.h" >&5
9326 9330
9327 cat > conftest.$ac_ext <<EOF 9331 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure" 9332 #line 9333 "configure"
9329 #include "confdefs.h" 9333 #include "confdefs.h"
9330 #include <vfork.h> 9334 #include <vfork.h>
9331 EOF 9335 EOF
9332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9333 { (eval echo configure:9334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9337 { (eval echo configure:9338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9335 if test -z "$ac_err"; then 9339 if test -z "$ac_err"; then
9336 rm -rf conftest* 9340 rm -rf conftest*
9337 eval "ac_cv_header_$ac_safe=yes" 9341 eval "ac_cv_header_$ac_safe=yes"
9338 else 9342 else
9356 else 9360 else
9357 echo "$ac_t""no" 1>&6 9361 echo "$ac_t""no" 1>&6
9358 fi 9362 fi
9359 9363
9360 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9364 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9361 echo "configure:9362: checking for working vfork" >&5 9365 echo "configure:9366: checking for working vfork" >&5
9362 9366
9363 cat > conftest.$ac_ext <<EOF 9367 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure" 9368 #line 9369 "configure"
9365 #include "confdefs.h" 9369 #include "confdefs.h"
9366 /* Thanks to Paul Eggert for this test. */ 9370 /* Thanks to Paul Eggert for this test. */
9367 #include <stdio.h> 9371 #include <stdio.h>
9368 #include <sys/types.h> 9372 #include <sys/types.h>
9369 #include <sys/stat.h> 9373 #include <sys/stat.h>
9454 || fstat(fileno(stdout), &st) != 0 9458 || fstat(fileno(stdout), &st) != 0
9455 ); 9459 );
9456 } 9460 }
9457 } 9461 }
9458 EOF 9462 EOF
9459 if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9460 then 9464 then
9461 ac_cv_func_vfork_works=yes 9465 ac_cv_func_vfork_works=yes
9462 else 9466 else
9463 conftest_rc="$?" 9467 conftest_rc="$?"
9464 echo "configure: failed program was:" >&5 9468 echo "configure: failed program was:" >&5
9480 9484
9481 fi 9485 fi
9482 9486
9483 9487
9484 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9488 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9485 echo "configure:9486: checking for working strcoll" >&5 9489 echo "configure:9490: checking for working strcoll" >&5
9486 9490
9487 cat > conftest.$ac_ext <<EOF 9491 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure" 9492 #line 9493 "configure"
9489 #include "confdefs.h" 9493 #include "confdefs.h"
9490 #include <string.h> 9494 #include <string.h>
9491 main () 9495 main ()
9492 { 9496 {
9493 exit (strcoll ("abc", "def") >= 0 || 9497 exit (strcoll ("abc", "def") >= 0 ||
9494 strcoll ("ABC", "DEF") >= 0 || 9498 strcoll ("ABC", "DEF") >= 0 ||
9495 strcoll ("123", "456") >= 0); 9499 strcoll ("123", "456") >= 0);
9496 } 9500 }
9497 EOF 9501 EOF
9498 if { (eval echo configure:9499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9499 then 9503 then
9500 ac_cv_func_strcoll_works=yes 9504 ac_cv_func_strcoll_works=yes
9501 else 9505 else
9502 conftest_rc="$?" 9506 conftest_rc="$?"
9503 echo "configure: failed program was:" >&5 9507 echo "configure: failed program was:" >&5
9521 9525
9522 9526
9523 for ac_func in getpgrp 9527 for ac_func in getpgrp
9524 do 9528 do
9525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9526 echo "configure:9527: checking for $ac_func" >&5 9530 echo "configure:9531: checking for $ac_func" >&5
9527 9531
9528 cat > conftest.$ac_ext <<EOF 9532 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure" 9533 #line 9534 "configure"
9530 #include "confdefs.h" 9534 #include "confdefs.h"
9531 /* System header to define __stub macros and hopefully few prototypes, 9535 /* System header to define __stub macros and hopefully few prototypes,
9532 which can conflict with char $ac_func(); below. */ 9536 which can conflict with char $ac_func(); below. */
9533 #include <assert.h> 9537 #include <assert.h>
9534 /* Override any gcc2 internal prototype to avoid an error. */ 9538 /* Override any gcc2 internal prototype to avoid an error. */
9547 $ac_func(); 9551 $ac_func();
9548 #endif 9552 #endif
9549 9553
9550 ; return 0; } 9554 ; return 0; }
9551 EOF 9555 EOF
9552 if { (eval echo configure:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9556 if { (eval echo configure:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9553 rm -rf conftest* 9557 rm -rf conftest*
9554 eval "ac_cv_func_$ac_func=yes" 9558 eval "ac_cv_func_$ac_func=yes"
9555 else 9559 else
9556 echo "configure: failed program was:" >&5 9560 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5 9561 cat conftest.$ac_ext >&5
9575 echo "$ac_t""no" 1>&6 9579 echo "$ac_t""no" 1>&6
9576 fi 9580 fi
9577 done 9581 done
9578 9582
9579 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9583 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9580 echo "configure:9581: checking whether getpgrp takes no argument" >&5 9584 echo "configure:9585: checking whether getpgrp takes no argument" >&5
9581 9585
9582 cat > conftest.$ac_ext <<EOF 9586 cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure" 9587 #line 9588 "configure"
9584 #include "confdefs.h" 9588 #include "confdefs.h"
9585 9589
9586 /* 9590 /*
9587 * If this system has a BSD-style getpgrp(), 9591 * If this system has a BSD-style getpgrp(),
9588 * which takes a pid argument, exit unsuccessfully. 9592 * which takes a pid argument, exit unsuccessfully.
9633 exit(s>>8); 9637 exit(s>>8);
9634 } 9638 }
9635 } 9639 }
9636 9640
9637 EOF 9641 EOF
9638 if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9642 if { (eval echo configure:9643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9639 then 9643 then
9640 ac_cv_func_getpgrp_void=yes 9644 ac_cv_func_getpgrp_void=yes
9641 else 9645 else
9642 conftest_rc="$?" 9646 conftest_rc="$?"
9643 echo "configure: failed program was:" >&5 9647 echo "configure: failed program was:" >&5
9660 9664
9661 fi 9665 fi
9662 9666
9663 9667
9664 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9668 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9665 echo "configure:9666: checking for working mmap" >&5 9669 echo "configure:9670: checking for working mmap" >&5
9666 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9670 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9667 cat > conftest.$ac_ext <<EOF 9671 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure" 9672 #line 9673 "configure"
9669 #include "confdefs.h" 9673 #include "confdefs.h"
9670 #include <stdio.h> 9674 #include <stdio.h>
9671 #include <unistd.h> 9675 #include <unistd.h>
9672 #include <fcntl.h> 9676 #include <fcntl.h>
9673 #include <sys/mman.h> 9677 #include <sys/mman.h>
9696 return 0; 9700 return 0;
9697 perror ("conftest: mmap failed"); 9701 perror ("conftest: mmap failed");
9698 return 1; 9702 return 1;
9699 } 9703 }
9700 EOF 9704 EOF
9701 if { (eval echo configure:9702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9705 if { (eval echo configure:9706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9702 then 9706 then
9703 have_mmap=yes 9707 have_mmap=yes
9704 else 9708 else
9705 conftest_rc="$?" 9709 conftest_rc="$?"
9706 echo "configure: failed program was:" >&5 9710 echo "configure: failed program was:" >&5
9731 } 9735 }
9732 9736
9733 9737
9734 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9738 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9735 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9739 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9736 echo "configure:9737: checking for termios.h" >&5 9740 echo "configure:9741: checking for termios.h" >&5
9737 9741
9738 cat > conftest.$ac_ext <<EOF 9742 cat > conftest.$ac_ext <<EOF
9739 #line 9740 "configure" 9743 #line 9744 "configure"
9740 #include "confdefs.h" 9744 #include "confdefs.h"
9741 #include <termios.h> 9745 #include <termios.h>
9742 EOF 9746 EOF
9743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9744 { (eval echo configure:9745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9748 { (eval echo configure:9749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9746 if test -z "$ac_err"; then 9750 if test -z "$ac_err"; then
9747 rm -rf conftest* 9751 rm -rf conftest*
9748 eval "ac_cv_header_$ac_safe=yes" 9752 eval "ac_cv_header_$ac_safe=yes"
9749 else 9753 else
9782 9786
9783 else 9787 else
9784 echo "$ac_t""no" 1>&6 9788 echo "$ac_t""no" 1>&6
9785 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9789 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9786 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9790 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9787 echo "configure:9788: checking for termio.h" >&5 9791 echo "configure:9792: checking for termio.h" >&5
9788 9792
9789 cat > conftest.$ac_ext <<EOF 9793 cat > conftest.$ac_ext <<EOF
9790 #line 9791 "configure" 9794 #line 9795 "configure"
9791 #include "confdefs.h" 9795 #include "confdefs.h"
9792 #include <termio.h> 9796 #include <termio.h>
9793 EOF 9797 EOF
9794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9795 { (eval echo configure:9796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9799 { (eval echo configure:9800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9797 if test -z "$ac_err"; then 9801 if test -z "$ac_err"; then
9798 rm -rf conftest* 9802 rm -rf conftest*
9799 eval "ac_cv_header_$ac_safe=yes" 9803 eval "ac_cv_header_$ac_safe=yes"
9800 else 9804 else
9822 fi 9826 fi
9823 9827
9824 9828
9825 9829
9826 echo $ac_n "checking for socket""... $ac_c" 1>&6 9830 echo $ac_n "checking for socket""... $ac_c" 1>&6
9827 echo "configure:9828: checking for socket" >&5 9831 echo "configure:9832: checking for socket" >&5
9828 9832
9829 cat > conftest.$ac_ext <<EOF 9833 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure" 9834 #line 9835 "configure"
9831 #include "confdefs.h" 9835 #include "confdefs.h"
9832 /* System header to define __stub macros and hopefully few prototypes, 9836 /* System header to define __stub macros and hopefully few prototypes,
9833 which can conflict with char socket(); below. */ 9837 which can conflict with char socket(); below. */
9834 #include <assert.h> 9838 #include <assert.h>
9835 /* Override any gcc2 internal prototype to avoid an error. */ 9839 /* Override any gcc2 internal prototype to avoid an error. */
9848 socket(); 9852 socket();
9849 #endif 9853 #endif
9850 9854
9851 ; return 0; } 9855 ; return 0; }
9852 EOF 9856 EOF
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9857 if { (eval echo configure:9858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9854 rm -rf conftest* 9858 rm -rf conftest*
9855 eval "ac_cv_func_socket=yes" 9859 eval "ac_cv_func_socket=yes"
9856 else 9860 else
9857 echo "configure: failed program was:" >&5 9861 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5 9862 cat conftest.$ac_ext >&5
9863 9867
9864 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9868 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9865 echo "$ac_t""yes" 1>&6 9869 echo "$ac_t""yes" 1>&6
9866 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9870 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9867 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9871 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9868 echo "configure:9869: checking for netinet/in.h" >&5 9872 echo "configure:9873: checking for netinet/in.h" >&5
9869 9873
9870 cat > conftest.$ac_ext <<EOF 9874 cat > conftest.$ac_ext <<EOF
9871 #line 9872 "configure" 9875 #line 9876 "configure"
9872 #include "confdefs.h" 9876 #include "confdefs.h"
9873 #include <netinet/in.h> 9877 #include <netinet/in.h>
9874 EOF 9878 EOF
9875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9876 { (eval echo configure:9877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9880 { (eval echo configure:9881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9878 if test -z "$ac_err"; then 9882 if test -z "$ac_err"; then
9879 rm -rf conftest* 9883 rm -rf conftest*
9880 eval "ac_cv_header_$ac_safe=yes" 9884 eval "ac_cv_header_$ac_safe=yes"
9881 else 9885 else
9888 rm -f conftest* 9892 rm -f conftest*
9889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9890 echo "$ac_t""yes" 1>&6 9894 echo "$ac_t""yes" 1>&6
9891 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9895 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9892 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9896 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9893 echo "configure:9894: checking for arpa/inet.h" >&5 9897 echo "configure:9898: checking for arpa/inet.h" >&5
9894 9898
9895 cat > conftest.$ac_ext <<EOF 9899 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure" 9900 #line 9901 "configure"
9897 #include "confdefs.h" 9901 #include "confdefs.h"
9898 #include <arpa/inet.h> 9902 #include <arpa/inet.h>
9899 EOF 9903 EOF
9900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9901 { (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9905 { (eval echo configure:9906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9903 if test -z "$ac_err"; then 9907 if test -z "$ac_err"; then
9904 rm -rf conftest* 9908 rm -rf conftest*
9905 eval "ac_cv_header_$ac_safe=yes" 9909 eval "ac_cv_header_$ac_safe=yes"
9906 else 9910 else
9921 #define HAVE_SOCKETS 1 9925 #define HAVE_SOCKETS 1
9922 EOF 9926 EOF
9923 } 9927 }
9924 9928
9925 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9929 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
9926 echo "configure:9927: checking "for sun_len member in struct sockaddr_un"" >&5 9930 echo "configure:9931: checking "for sun_len member in struct sockaddr_un"" >&5
9927 cat > conftest.$ac_ext <<EOF 9931 cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure" 9932 #line 9933 "configure"
9929 #include "confdefs.h" 9933 #include "confdefs.h"
9930 9934
9931 #include <sys/types.h> 9935 #include <sys/types.h>
9932 #include <sys/socket.h> 9936 #include <sys/socket.h>
9933 #include <sys/un.h> 9937 #include <sys/un.h>
9934 9938
9935 int main() { 9939 int main() {
9936 static struct sockaddr_un x; x.sun_len = 1; 9940 static struct sockaddr_un x; x.sun_len = 1;
9937 ; return 0; } 9941 ; return 0; }
9938 EOF 9942 EOF
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9943 if { (eval echo configure:9944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940 rm -rf conftest* 9944 rm -rf conftest*
9941 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9945 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9942 Defining HAVE_SOCKADDR_SUN_LEN 9946 Defining HAVE_SOCKADDR_SUN_LEN
9943 EOF 9947 EOF
9944 cat >> confdefs.h <<\EOF 9948 cat >> confdefs.h <<\EOF
9952 rm -rf conftest* 9956 rm -rf conftest*
9953 echo "$ac_t""no" 1>&6 9957 echo "$ac_t""no" 1>&6
9954 fi 9958 fi
9955 rm -f conftest* 9959 rm -f conftest*
9956 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 9960 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
9957 echo "configure:9958: checking "for ip_mreq struct in netinet/in.h"" >&5 9961 echo "configure:9962: checking "for ip_mreq struct in netinet/in.h"" >&5
9958 cat > conftest.$ac_ext <<EOF 9962 cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure" 9963 #line 9964 "configure"
9960 #include "confdefs.h" 9964 #include "confdefs.h"
9961 9965
9962 #include <sys/types.h> 9966 #include <sys/types.h>
9963 #include <netinet/in.h> 9967 #include <netinet/in.h>
9964 9968
9965 int main() { 9969 int main() {
9966 static struct ip_mreq x; 9970 static struct ip_mreq x;
9967 ; return 0; } 9971 ; return 0; }
9968 EOF 9972 EOF
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9973 if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9970 rm -rf conftest* 9974 rm -rf conftest*
9971 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9975 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
9972 Defining HAVE_MULTICAST 9976 Defining HAVE_MULTICAST
9973 EOF 9977 EOF
9974 cat >> confdefs.h <<\EOF 9978 cat >> confdefs.h <<\EOF
9995 echo "$ac_t""no" 1>&6 9999 echo "$ac_t""no" 1>&6
9996 fi 10000 fi
9997 10001
9998 10002
9999 echo $ac_n "checking for msgget""... $ac_c" 1>&6 10003 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10000 echo "configure:10001: checking for msgget" >&5 10004 echo "configure:10005: checking for msgget" >&5
10001 10005
10002 cat > conftest.$ac_ext <<EOF 10006 cat > conftest.$ac_ext <<EOF
10003 #line 10004 "configure" 10007 #line 10008 "configure"
10004 #include "confdefs.h" 10008 #include "confdefs.h"
10005 /* System header to define __stub macros and hopefully few prototypes, 10009 /* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char msgget(); below. */ 10010 which can conflict with char msgget(); below. */
10007 #include <assert.h> 10011 #include <assert.h>
10008 /* Override any gcc2 internal prototype to avoid an error. */ 10012 /* Override any gcc2 internal prototype to avoid an error. */
10021 msgget(); 10025 msgget();
10022 #endif 10026 #endif
10023 10027
10024 ; return 0; } 10028 ; return 0; }
10025 EOF 10029 EOF
10026 if { (eval echo configure:10027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10030 if { (eval echo configure:10031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10027 rm -rf conftest* 10031 rm -rf conftest*
10028 eval "ac_cv_func_msgget=yes" 10032 eval "ac_cv_func_msgget=yes"
10029 else 10033 else
10030 echo "configure: failed program was:" >&5 10034 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5 10035 cat conftest.$ac_ext >&5
10036 10040
10037 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10041 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10038 echo "$ac_t""yes" 1>&6 10042 echo "$ac_t""yes" 1>&6
10039 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10043 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10040 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10044 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10041 echo "configure:10042: checking for sys/ipc.h" >&5 10045 echo "configure:10046: checking for sys/ipc.h" >&5
10042 10046
10043 cat > conftest.$ac_ext <<EOF 10047 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure" 10048 #line 10049 "configure"
10045 #include "confdefs.h" 10049 #include "confdefs.h"
10046 #include <sys/ipc.h> 10050 #include <sys/ipc.h>
10047 EOF 10051 EOF
10048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10049 { (eval echo configure:10050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10053 { (eval echo configure:10054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10051 if test -z "$ac_err"; then 10055 if test -z "$ac_err"; then
10052 rm -rf conftest* 10056 rm -rf conftest*
10053 eval "ac_cv_header_$ac_safe=yes" 10057 eval "ac_cv_header_$ac_safe=yes"
10054 else 10058 else
10061 rm -f conftest* 10065 rm -f conftest*
10062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10063 echo "$ac_t""yes" 1>&6 10067 echo "$ac_t""yes" 1>&6
10064 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 10068 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10065 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 10069 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10066 echo "configure:10067: checking for sys/msg.h" >&5 10070 echo "configure:10071: checking for sys/msg.h" >&5
10067 10071
10068 cat > conftest.$ac_ext <<EOF 10072 cat > conftest.$ac_ext <<EOF
10069 #line 10070 "configure" 10073 #line 10074 "configure"
10070 #include "confdefs.h" 10074 #include "confdefs.h"
10071 #include <sys/msg.h> 10075 #include <sys/msg.h>
10072 EOF 10076 EOF
10073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10074 { (eval echo configure:10075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10078 { (eval echo configure:10079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10076 if test -z "$ac_err"; then 10080 if test -z "$ac_err"; then
10077 rm -rf conftest* 10081 rm -rf conftest*
10078 eval "ac_cv_header_$ac_safe=yes" 10082 eval "ac_cv_header_$ac_safe=yes"
10079 else 10083 else
10107 fi 10111 fi
10108 10112
10109 10113
10110 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10114 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10111 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10115 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10112 echo "configure:10113: checking for dirent.h" >&5 10116 echo "configure:10117: checking for dirent.h" >&5
10113 10117
10114 cat > conftest.$ac_ext <<EOF 10118 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure" 10119 #line 10120 "configure"
10116 #include "confdefs.h" 10120 #include "confdefs.h"
10117 #include <dirent.h> 10121 #include <dirent.h>
10118 EOF 10122 EOF
10119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10120 { (eval echo configure:10121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10124 { (eval echo configure:10125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10122 if test -z "$ac_err"; then 10126 if test -z "$ac_err"; then
10123 rm -rf conftest* 10127 rm -rf conftest*
10124 eval "ac_cv_header_$ac_safe=yes" 10128 eval "ac_cv_header_$ac_safe=yes"
10125 else 10129 else
10142 10146
10143 else 10147 else
10144 echo "$ac_t""no" 1>&6 10148 echo "$ac_t""no" 1>&6
10145 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10149 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10146 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10150 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10147 echo "configure:10148: checking for sys/dir.h" >&5 10151 echo "configure:10152: checking for sys/dir.h" >&5
10148 10152
10149 cat > conftest.$ac_ext <<EOF 10153 cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure" 10154 #line 10155 "configure"
10151 #include "confdefs.h" 10155 #include "confdefs.h"
10152 #include <sys/dir.h> 10156 #include <sys/dir.h>
10153 EOF 10157 EOF
10154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10155 { (eval echo configure:10156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10159 { (eval echo configure:10160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10157 if test -z "$ac_err"; then 10161 if test -z "$ac_err"; then
10158 rm -rf conftest* 10162 rm -rf conftest*
10159 eval "ac_cv_header_$ac_safe=yes" 10163 eval "ac_cv_header_$ac_safe=yes"
10160 else 10164 else
10183 fi 10187 fi
10184 10188
10185 10189
10186 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10190 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10187 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10191 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10188 echo "configure:10189: checking for nlist.h" >&5 10192 echo "configure:10193: checking for nlist.h" >&5
10189 10193
10190 cat > conftest.$ac_ext <<EOF 10194 cat > conftest.$ac_ext <<EOF
10191 #line 10192 "configure" 10195 #line 10196 "configure"
10192 #include "confdefs.h" 10196 #include "confdefs.h"
10193 #include <nlist.h> 10197 #include <nlist.h>
10194 EOF 10198 EOF
10195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10196 { (eval echo configure:10197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10200 { (eval echo configure:10201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10198 if test -z "$ac_err"; then 10202 if test -z "$ac_err"; then
10199 rm -rf conftest* 10203 rm -rf conftest*
10200 eval "ac_cv_header_$ac_safe=yes" 10204 eval "ac_cv_header_$ac_safe=yes"
10201 else 10205 else
10221 fi 10225 fi
10222 10226
10223 10227
10224 10228
10225 echo "checking "for sound support"" 1>&6 10229 echo "checking "for sound support"" 1>&6
10226 echo "configure:10227: checking "for sound support"" >&5 10230 echo "configure:10231: checking "for sound support"" >&5
10227 case "$with_sound" in 10231 case "$with_sound" in
10228 native | both ) with_native_sound=yes;; 10232 native | both ) with_native_sound=yes;;
10229 nas | no ) with_native_sound=no;; 10233 nas | no ) with_native_sound=no;;
10230 esac 10234 esac
10231 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10235 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10232 10236
10233 if test "$with_native_sound" != "no"; then 10237 if test "$with_native_sound" != "no"; then
10234 if test -n "$native_sound_lib"; then 10238 if test -n "$native_sound_lib"; then
10235 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10239 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10236 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10240 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10237 echo "configure:10238: checking for multimedia/audio_device.h" >&5 10241 echo "configure:10242: checking for multimedia/audio_device.h" >&5
10238 10242
10239 cat > conftest.$ac_ext <<EOF 10243 cat > conftest.$ac_ext <<EOF
10240 #line 10241 "configure" 10244 #line 10245 "configure"
10241 #include "confdefs.h" 10245 #include "confdefs.h"
10242 #include <multimedia/audio_device.h> 10246 #include <multimedia/audio_device.h>
10243 EOF 10247 EOF
10244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10245 { (eval echo configure:10246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10249 { (eval echo configure:10250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10247 if test -z "$ac_err"; then 10251 if test -z "$ac_err"; then
10248 rm -rf conftest* 10252 rm -rf conftest*
10249 eval "ac_cv_header_$ac_safe=yes" 10253 eval "ac_cv_header_$ac_safe=yes"
10250 else 10254 else
10288 case "$canonical" in 10292 case "$canonical" in
10289 *-sgi-* ) 10293 *-sgi-* )
10290 if test -z "$native_sound_lib"; then 10294 if test -z "$native_sound_lib"; then
10291 10295
10292 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10296 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10293 echo "configure:10294: checking for ALopenport in -laudio" >&5 10297 echo "configure:10298: checking for ALopenport in -laudio" >&5
10294 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10298 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10295 10299
10296 xe_check_libs=" -laudio " 10300 xe_check_libs=" -laudio "
10297 cat > conftest.$ac_ext <<EOF 10301 cat > conftest.$ac_ext <<EOF
10298 #line 10299 "configure" 10302 #line 10303 "configure"
10299 #include "confdefs.h" 10303 #include "confdefs.h"
10300 /* Override any gcc2 internal prototype to avoid an error. */ 10304 /* Override any gcc2 internal prototype to avoid an error. */
10301 /* We use char because int might match the return type of a gcc2 10305 /* We use char because int might match the return type of a gcc2
10302 builtin and then its argument prototype would still apply. */ 10306 builtin and then its argument prototype would still apply. */
10303 char ALopenport(); 10307 char ALopenport();
10304 10308
10305 int main() { 10309 int main() {
10306 ALopenport() 10310 ALopenport()
10307 ; return 0; } 10311 ; return 0; }
10308 EOF 10312 EOF
10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10313 if { (eval echo configure:10314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10310 rm -rf conftest* 10314 rm -rf conftest*
10311 eval "ac_cv_lib_$ac_lib_var=yes" 10315 eval "ac_cv_lib_$ac_lib_var=yes"
10312 else 10316 else
10313 echo "configure: failed program was:" >&5 10317 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5 10318 cat conftest.$ac_ext >&5
10335 fi ;; 10339 fi ;;
10336 hppa*-hp-hpux* ) 10340 hppa*-hp-hpux* )
10337 if test -z "$native_sound_lib"; then 10341 if test -z "$native_sound_lib"; then
10338 10342
10339 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10343 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10340 echo "configure:10341: checking for AOpenAudio in -lAlib" >&5 10344 echo "configure:10345: checking for AOpenAudio in -lAlib" >&5
10341 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10345 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10342 10346
10343 xe_check_libs=" -lAlib " 10347 xe_check_libs=" -lAlib "
10344 cat > conftest.$ac_ext <<EOF 10348 cat > conftest.$ac_ext <<EOF
10345 #line 10346 "configure" 10349 #line 10350 "configure"
10346 #include "confdefs.h" 10350 #include "confdefs.h"
10347 /* Override any gcc2 internal prototype to avoid an error. */ 10351 /* Override any gcc2 internal prototype to avoid an error. */
10348 /* We use char because int might match the return type of a gcc2 10352 /* We use char because int might match the return type of a gcc2
10349 builtin and then its argument prototype would still apply. */ 10353 builtin and then its argument prototype would still apply. */
10350 char AOpenAudio(); 10354 char AOpenAudio();
10351 10355
10352 int main() { 10356 int main() {
10353 AOpenAudio() 10357 AOpenAudio()
10354 ; return 0; } 10358 ; return 0; }
10355 EOF 10359 EOF
10356 if { (eval echo configure:10357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10360 if { (eval echo configure:10361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10357 rm -rf conftest* 10361 rm -rf conftest*
10358 eval "ac_cv_lib_$ac_lib_var=yes" 10362 eval "ac_cv_lib_$ac_lib_var=yes"
10359 else 10363 else
10360 echo "configure: failed program was:" >&5 10364 echo "configure: failed program was:" >&5
10361 cat conftest.$ac_ext >&5 10365 cat conftest.$ac_ext >&5
10389 10393
10390 if test -z "$sound_found"; then 10394 if test -z "$sound_found"; then
10391 for dir in "machine" "sys" "linux"; do 10395 for dir in "machine" "sys" "linux"; do
10392 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10396 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10393 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10397 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10394 echo "configure:10395: checking for ${dir}/soundcard.h" >&5 10398 echo "configure:10399: checking for ${dir}/soundcard.h" >&5
10395 10399
10396 cat > conftest.$ac_ext <<EOF 10400 cat > conftest.$ac_ext <<EOF
10397 #line 10398 "configure" 10401 #line 10402 "configure"
10398 #include "confdefs.h" 10402 #include "confdefs.h"
10399 #include <${dir}/soundcard.h> 10403 #include <${dir}/soundcard.h>
10400 EOF 10404 EOF
10401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10402 { (eval echo configure:10403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10406 { (eval echo configure:10407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10404 if test -z "$ac_err"; then 10408 if test -z "$ac_err"; then
10405 rm -rf conftest* 10409 rm -rf conftest*
10406 eval "ac_cv_header_$ac_safe=yes" 10410 eval "ac_cv_header_$ac_safe=yes"
10407 else 10411 else
10467 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10471 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10468 echo " xemacs will be linked with \"nas.o\"" 10472 echo " xemacs will be linked with \"nas.o\""
10469 fi 10473 fi
10470 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10474 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10471 cat > conftest.$ac_ext <<EOF 10475 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure" 10476 #line 10477 "configure"
10473 #include "confdefs.h" 10477 #include "confdefs.h"
10474 #include <audio/Xtutil.h> 10478 #include <audio/Xtutil.h>
10475 EOF 10479 EOF
10476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10477 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10481 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10494 10498
10495 test -z "$with_tty" && with_tty=yes 10499 test -z "$with_tty" && with_tty=yes
10496 10500
10497 if test "$with_tty" = "yes" ; then 10501 if test "$with_tty" = "yes" ; then
10498 echo "checking for TTY-related features" 1>&6 10502 echo "checking for TTY-related features" 1>&6
10499 echo "configure:10500: checking for TTY-related features" >&5 10503 echo "configure:10504: checking for TTY-related features" >&5
10500 { test "$extra_verbose" = "yes" && cat << \EOF 10504 { test "$extra_verbose" = "yes" && cat << \EOF
10501 Defining HAVE_TTY 10505 Defining HAVE_TTY
10502 EOF 10506 EOF
10503 cat >> confdefs.h <<\EOF 10507 cat >> confdefs.h <<\EOF
10504 #define HAVE_TTY 1 10508 #define HAVE_TTY 1
10510 fi 10514 fi
10511 10515
10512 if test -z "$with_ncurses"; then 10516 if test -z "$with_ncurses"; then
10513 10517
10514 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10518 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10515 echo "configure:10516: checking for tgetent in -lncurses" >&5 10519 echo "configure:10520: checking for tgetent in -lncurses" >&5
10516 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10520 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10517 10521
10518 xe_check_libs=" -lncurses " 10522 xe_check_libs=" -lncurses "
10519 cat > conftest.$ac_ext <<EOF 10523 cat > conftest.$ac_ext <<EOF
10520 #line 10521 "configure" 10524 #line 10525 "configure"
10521 #include "confdefs.h" 10525 #include "confdefs.h"
10522 /* Override any gcc2 internal prototype to avoid an error. */ 10526 /* Override any gcc2 internal prototype to avoid an error. */
10523 /* We use char because int might match the return type of a gcc2 10527 /* We use char because int might match the return type of a gcc2
10524 builtin and then its argument prototype would still apply. */ 10528 builtin and then its argument prototype would still apply. */
10525 char tgetent(); 10529 char tgetent();
10526 10530
10527 int main() { 10531 int main() {
10528 tgetent() 10532 tgetent()
10529 ; return 0; } 10533 ; return 0; }
10530 EOF 10534 EOF
10531 if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10532 rm -rf conftest* 10536 rm -rf conftest*
10533 eval "ac_cv_lib_$ac_lib_var=yes" 10537 eval "ac_cv_lib_$ac_lib_var=yes"
10534 else 10538 else
10535 echo "configure: failed program was:" >&5 10539 echo "configure: failed program was:" >&5
10536 cat conftest.$ac_ext >&5 10540 cat conftest.$ac_ext >&5
10559 EOF 10563 EOF
10560 } 10564 }
10561 10565
10562 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10566 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10563 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10567 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10564 echo "configure:10565: checking for ncurses/curses.h" >&5 10568 echo "configure:10569: checking for ncurses/curses.h" >&5
10565 10569
10566 cat > conftest.$ac_ext <<EOF 10570 cat > conftest.$ac_ext <<EOF
10567 #line 10568 "configure" 10571 #line 10572 "configure"
10568 #include "confdefs.h" 10572 #include "confdefs.h"
10569 #include <ncurses/curses.h> 10573 #include <ncurses/curses.h>
10570 EOF 10574 EOF
10571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10572 { (eval echo configure:10573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10576 { (eval echo configure:10577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10574 if test -z "$ac_err"; then 10578 if test -z "$ac_err"; then
10575 rm -rf conftest* 10579 rm -rf conftest*
10576 eval "ac_cv_header_$ac_safe=yes" 10580 eval "ac_cv_header_$ac_safe=yes"
10577 else 10581 else
10589 echo "$ac_t""no" 1>&6 10593 echo "$ac_t""no" 1>&6
10590 fi 10594 fi
10591 10595
10592 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10596 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10593 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10597 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10594 echo "configure:10595: checking for ncurses/term.h" >&5 10598 echo "configure:10599: checking for ncurses/term.h" >&5
10595 10599
10596 cat > conftest.$ac_ext <<EOF 10600 cat > conftest.$ac_ext <<EOF
10597 #line 10598 "configure" 10601 #line 10602 "configure"
10598 #include "confdefs.h" 10602 #include "confdefs.h"
10599 #include <ncurses/term.h> 10603 #include <ncurses/term.h>
10600 EOF 10604 EOF
10601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10606 { (eval echo configure:10607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10604 if test -z "$ac_err"; then 10608 if test -z "$ac_err"; then
10605 rm -rf conftest* 10609 rm -rf conftest*
10606 eval "ac_cv_header_$ac_safe=yes" 10610 eval "ac_cv_header_$ac_safe=yes"
10607 else 10611 else
10627 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10631 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10628 save_c_switch_site="$c_switch_site" 10632 save_c_switch_site="$c_switch_site"
10629 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10633 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10630 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10634 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10631 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10635 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10632 echo "configure:10633: checking for ncurses/curses.h" >&5 10636 echo "configure:10637: checking for ncurses/curses.h" >&5
10633 10637
10634 cat > conftest.$ac_ext <<EOF 10638 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure" 10639 #line 10640 "configure"
10636 #include "confdefs.h" 10640 #include "confdefs.h"
10637 #include <ncurses/curses.h> 10641 #include <ncurses/curses.h>
10638 EOF 10642 EOF
10639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10640 { (eval echo configure:10641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10644 { (eval echo configure:10645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10642 if test -z "$ac_err"; then 10646 if test -z "$ac_err"; then
10643 rm -rf conftest* 10647 rm -rf conftest*
10644 eval "ac_cv_header_$ac_safe=yes" 10648 eval "ac_cv_header_$ac_safe=yes"
10645 else 10649 else
10670 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10674 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10671 else 10675 else
10672 for lib in curses termlib termcap; do 10676 for lib in curses termlib termcap; do
10673 10677
10674 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10678 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10675 echo "configure:10676: checking for tgetent in -l$lib" >&5 10679 echo "configure:10680: checking for tgetent in -l$lib" >&5
10676 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10680 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10677 10681
10678 xe_check_libs=" -l$lib " 10682 xe_check_libs=" -l$lib "
10679 cat > conftest.$ac_ext <<EOF 10683 cat > conftest.$ac_ext <<EOF
10680 #line 10681 "configure" 10684 #line 10685 "configure"
10681 #include "confdefs.h" 10685 #include "confdefs.h"
10682 /* Override any gcc2 internal prototype to avoid an error. */ 10686 /* Override any gcc2 internal prototype to avoid an error. */
10683 /* We use char because int might match the return type of a gcc2 10687 /* We use char because int might match the return type of a gcc2
10684 builtin and then its argument prototype would still apply. */ 10688 builtin and then its argument prototype would still apply. */
10685 char tgetent(); 10689 char tgetent();
10686 10690
10687 int main() { 10691 int main() {
10688 tgetent() 10692 tgetent()
10689 ; return 0; } 10693 ; return 0; }
10690 EOF 10694 EOF
10691 if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10695 if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10692 rm -rf conftest* 10696 rm -rf conftest*
10693 eval "ac_cv_lib_$ac_lib_var=yes" 10697 eval "ac_cv_lib_$ac_lib_var=yes"
10694 else 10698 else
10695 echo "configure: failed program was:" >&5 10699 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5 10700 cat conftest.$ac_ext >&5
10717 if test -n "$libs_termcap"; then 10721 if test -n "$libs_termcap"; then
10718 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10722 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10719 else 10723 else
10720 10724
10721 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10725 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10722 echo "configure:10723: checking for tgetent in -lcurses" >&5 10726 echo "configure:10727: checking for tgetent in -lcurses" >&5
10723 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10727 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10724 10728
10725 xe_check_libs=" -lcurses " 10729 xe_check_libs=" -lcurses "
10726 cat > conftest.$ac_ext <<EOF 10730 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure" 10731 #line 10732 "configure"
10728 #include "confdefs.h" 10732 #include "confdefs.h"
10729 /* Override any gcc2 internal prototype to avoid an error. */ 10733 /* Override any gcc2 internal prototype to avoid an error. */
10730 /* We use char because int might match the return type of a gcc2 10734 /* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */ 10735 builtin and then its argument prototype would still apply. */
10732 char tgetent(); 10736 char tgetent();
10733 10737
10734 int main() { 10738 int main() {
10735 tgetent() 10739 tgetent()
10736 ; return 0; } 10740 ; return 0; }
10737 EOF 10741 EOF
10738 if { (eval echo configure:10739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10742 if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10739 rm -rf conftest* 10743 rm -rf conftest*
10740 eval "ac_cv_lib_$ac_lib_var=yes" 10744 eval "ac_cv_lib_$ac_lib_var=yes"
10741 else 10745 else
10742 echo "configure: failed program was:" >&5 10746 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5 10747 cat conftest.$ac_ext >&5
10751 echo "$ac_t""yes" 1>&6 10755 echo "$ac_t""yes" 1>&6
10752 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10756 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10753 else 10757 else
10754 echo "$ac_t""no" 1>&6 10758 echo "$ac_t""no" 1>&6
10755 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10759 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10756 echo "configure:10757: checking for tgetent in -ltermcap" >&5 10760 echo "configure:10761: checking for tgetent in -ltermcap" >&5
10757 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10761 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10758 10762
10759 xe_check_libs=" -ltermcap " 10763 xe_check_libs=" -ltermcap "
10760 cat > conftest.$ac_ext <<EOF 10764 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure" 10765 #line 10766 "configure"
10762 #include "confdefs.h" 10766 #include "confdefs.h"
10763 /* Override any gcc2 internal prototype to avoid an error. */ 10767 /* Override any gcc2 internal prototype to avoid an error. */
10764 /* We use char because int might match the return type of a gcc2 10768 /* We use char because int might match the return type of a gcc2
10765 builtin and then its argument prototype would still apply. */ 10769 builtin and then its argument prototype would still apply. */
10766 char tgetent(); 10770 char tgetent();
10767 10771
10768 int main() { 10772 int main() {
10769 tgetent() 10773 tgetent()
10770 ; return 0; } 10774 ; return 0; }
10771 EOF 10775 EOF
10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10773 rm -rf conftest* 10777 rm -rf conftest*
10774 eval "ac_cv_lib_$ac_lib_var=yes" 10778 eval "ac_cv_lib_$ac_lib_var=yes"
10775 else 10779 else
10776 echo "configure: failed program was:" >&5 10780 echo "configure: failed program was:" >&5
10777 cat conftest.$ac_ext >&5 10781 cat conftest.$ac_ext >&5
10815 } 10819 }
10816 10820
10817 10821
10818 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10822 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10819 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10823 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10820 echo "configure:10821: checking for gpm.h" >&5 10824 echo "configure:10825: checking for gpm.h" >&5
10821 10825
10822 cat > conftest.$ac_ext <<EOF 10826 cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure" 10827 #line 10828 "configure"
10824 #include "confdefs.h" 10828 #include "confdefs.h"
10825 #include <gpm.h> 10829 #include <gpm.h>
10826 EOF 10830 EOF
10827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10828 { (eval echo configure:10829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10832 { (eval echo configure:10833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10830 if test -z "$ac_err"; then 10834 if test -z "$ac_err"; then
10831 rm -rf conftest* 10835 rm -rf conftest*
10832 eval "ac_cv_header_$ac_safe=yes" 10836 eval "ac_cv_header_$ac_safe=yes"
10833 else 10837 else
10846 with_gpm=no 10850 with_gpm=no
10847 fi 10851 fi
10848 } 10852 }
10849 test -z "$with_gpm" && { 10853 test -z "$with_gpm" && {
10850 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10854 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10851 echo "configure:10852: checking for Gpm_Open in -lgpm" >&5 10855 echo "configure:10856: checking for Gpm_Open in -lgpm" >&5
10852 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10856 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10853 10857
10854 xe_check_libs=" -lgpm " 10858 xe_check_libs=" -lgpm "
10855 cat > conftest.$ac_ext <<EOF 10859 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure" 10860 #line 10861 "configure"
10857 #include "confdefs.h" 10861 #include "confdefs.h"
10858 /* Override any gcc2 internal prototype to avoid an error. */ 10862 /* Override any gcc2 internal prototype to avoid an error. */
10859 /* We use char because int might match the return type of a gcc2 10863 /* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */ 10864 builtin and then its argument prototype would still apply. */
10861 char Gpm_Open(); 10865 char Gpm_Open();
10862 10866
10863 int main() { 10867 int main() {
10864 Gpm_Open() 10868 Gpm_Open()
10865 ; return 0; } 10869 ; return 0; }
10866 EOF 10870 EOF
10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10871 if { (eval echo configure:10872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10868 rm -rf conftest* 10872 rm -rf conftest*
10869 eval "ac_cv_lib_$ac_lib_var=yes" 10873 eval "ac_cv_lib_$ac_lib_var=yes"
10870 else 10874 else
10871 echo "configure: failed program was:" >&5 10875 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5 10876 cat conftest.$ac_ext >&5
10911 echo " xemacs will be linked with \"event-unixoid.o\"" 10915 echo " xemacs will be linked with \"event-unixoid.o\""
10912 fi 10916 fi
10913 10917
10914 10918
10915 echo "checking for database support" 1>&6 10919 echo "checking for database support" 1>&6
10916 echo "configure:10917: checking for database support" >&5 10920 echo "configure:10921: checking for database support" >&5
10917 10921
10918 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 10922 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
10919 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 10923 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
10920 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 10924 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
10921 echo "configure:10922: checking for ndbm.h" >&5 10925 echo "configure:10926: checking for ndbm.h" >&5
10922 10926
10923 cat > conftest.$ac_ext <<EOF 10927 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure" 10928 #line 10929 "configure"
10925 #include "confdefs.h" 10929 #include "confdefs.h"
10926 #include <ndbm.h> 10930 #include <ndbm.h>
10927 EOF 10931 EOF
10928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10929 { (eval echo configure:10930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10933 { (eval echo configure:10934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10931 if test -z "$ac_err"; then 10935 if test -z "$ac_err"; then
10932 rm -rf conftest* 10936 rm -rf conftest*
10933 eval "ac_cv_header_$ac_safe=yes" 10937 eval "ac_cv_header_$ac_safe=yes"
10934 else 10938 else
10954 fi 10958 fi
10955 10959
10956 if test "$with_database_gnudbm" != "no"; then 10960 if test "$with_database_gnudbm" != "no"; then
10957 10961
10958 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 10962 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
10959 echo "configure:10960: checking for dbm_open in -lgdbm" >&5 10963 echo "configure:10964: checking for dbm_open in -lgdbm" >&5
10960 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 10964 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
10961 10965
10962 xe_check_libs=" -lgdbm " 10966 xe_check_libs=" -lgdbm "
10963 cat > conftest.$ac_ext <<EOF 10967 cat > conftest.$ac_ext <<EOF
10964 #line 10965 "configure" 10968 #line 10969 "configure"
10965 #include "confdefs.h" 10969 #include "confdefs.h"
10966 /* Override any gcc2 internal prototype to avoid an error. */ 10970 /* Override any gcc2 internal prototype to avoid an error. */
10967 /* We use char because int might match the return type of a gcc2 10971 /* We use char because int might match the return type of a gcc2
10968 builtin and then its argument prototype would still apply. */ 10972 builtin and then its argument prototype would still apply. */
10969 char dbm_open(); 10973 char dbm_open();
10970 10974
10971 int main() { 10975 int main() {
10972 dbm_open() 10976 dbm_open()
10973 ; return 0; } 10977 ; return 0; }
10974 EOF 10978 EOF
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10976 rm -rf conftest* 10980 rm -rf conftest*
10977 eval "ac_cv_lib_$ac_lib_var=yes" 10981 eval "ac_cv_lib_$ac_lib_var=yes"
10978 else 10982 else
10979 echo "configure: failed program was:" >&5 10983 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5 10984 cat conftest.$ac_ext >&5
10998 11002
10999 fi 11003 fi
11000 11004
11001 if test "$with_database_dbm" != "no"; then 11005 if test "$with_database_dbm" != "no"; then
11002 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 11006 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11003 echo "configure:11004: checking for dbm_open" >&5 11007 echo "configure:11008: checking for dbm_open" >&5
11004 11008
11005 cat > conftest.$ac_ext <<EOF 11009 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure" 11010 #line 11011 "configure"
11007 #include "confdefs.h" 11011 #include "confdefs.h"
11008 /* System header to define __stub macros and hopefully few prototypes, 11012 /* System header to define __stub macros and hopefully few prototypes,
11009 which can conflict with char dbm_open(); below. */ 11013 which can conflict with char dbm_open(); below. */
11010 #include <assert.h> 11014 #include <assert.h>
11011 /* Override any gcc2 internal prototype to avoid an error. */ 11015 /* Override any gcc2 internal prototype to avoid an error. */
11024 dbm_open(); 11028 dbm_open();
11025 #endif 11029 #endif
11026 11030
11027 ; return 0; } 11031 ; return 0; }
11028 EOF 11032 EOF
11029 if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11030 rm -rf conftest* 11034 rm -rf conftest*
11031 eval "ac_cv_func_dbm_open=yes" 11035 eval "ac_cv_func_dbm_open=yes"
11032 else 11036 else
11033 echo "configure: failed program was:" >&5 11037 echo "configure: failed program was:" >&5
11034 cat conftest.$ac_ext >&5 11038 cat conftest.$ac_ext >&5
11043 else 11047 else
11044 echo "$ac_t""no" 1>&6 11048 echo "$ac_t""no" 1>&6
11045 11049
11046 11050
11047 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11051 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11048 echo "configure:11049: checking for dbm_open in -ldbm" >&5 11052 echo "configure:11053: checking for dbm_open in -ldbm" >&5
11049 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11053 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11050 11054
11051 xe_check_libs=" -ldbm " 11055 xe_check_libs=" -ldbm "
11052 cat > conftest.$ac_ext <<EOF 11056 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure" 11057 #line 11058 "configure"
11054 #include "confdefs.h" 11058 #include "confdefs.h"
11055 /* Override any gcc2 internal prototype to avoid an error. */ 11059 /* Override any gcc2 internal prototype to avoid an error. */
11056 /* We use char because int might match the return type of a gcc2 11060 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */ 11061 builtin and then its argument prototype would still apply. */
11058 char dbm_open(); 11062 char dbm_open();
11059 11063
11060 int main() { 11064 int main() {
11061 dbm_open() 11065 dbm_open()
11062 ; return 0; } 11066 ; return 0; }
11063 EOF 11067 EOF
11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11068 if { (eval echo configure:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11065 rm -rf conftest* 11069 rm -rf conftest*
11066 eval "ac_cv_lib_$ac_lib_var=yes" 11070 eval "ac_cv_lib_$ac_lib_var=yes"
11067 else 11071 else
11068 echo "configure: failed program was:" >&5 11072 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5 11073 cat conftest.$ac_ext >&5
11101 11105
11102 fi 11106 fi
11103 11107
11104 if test "$with_database_berkdb" != "no"; then 11108 if test "$with_database_berkdb" != "no"; then
11105 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11109 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11106 echo "configure:11107: checking for Berkeley db.h" >&5 11110 echo "configure:11111: checking for Berkeley db.h" >&5
11107 for path in "db/db.h" "db.h"; do 11111 for path in "db/db.h" "db.h"; do
11108 cat > conftest.$ac_ext <<EOF 11112 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure" 11113 #line 11114 "configure"
11110 #include "confdefs.h" 11114 #include "confdefs.h"
11111 #ifdef HAVE_INTTYPES_H 11115 #ifdef HAVE_INTTYPES_H
11112 #define __BIT_TYPES_DEFINED__ 11116 #define __BIT_TYPES_DEFINED__
11113 #include <inttypes.h> 11117 #include <inttypes.h>
11114 typedef uint8_t u_int8_t; 11118 typedef uint8_t u_int8_t;
11122 11126
11123 int main() { 11127 int main() {
11124 11128
11125 ; return 0; } 11129 ; return 0; }
11126 EOF 11130 EOF
11127 if { (eval echo configure:11128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11131 if { (eval echo configure:11132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11128 rm -rf conftest* 11132 rm -rf conftest*
11129 db_h_path="$path"; break 11133 db_h_path="$path"; break
11130 else 11134 else
11131 echo "configure: failed program was:" >&5 11135 echo "configure: failed program was:" >&5
11132 cat conftest.$ac_ext >&5 11136 cat conftest.$ac_ext >&5
11138 else echo "$ac_t""$db_h_path" 1>&6 11142 else echo "$ac_t""$db_h_path" 1>&6
11139 fi 11143 fi
11140 11144
11141 if test "$with_database_berkdb" != "no"; then 11145 if test "$with_database_berkdb" != "no"; then
11142 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11146 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11143 echo "configure:11144: checking for Berkeley DB version" >&5 11147 echo "configure:11148: checking for Berkeley DB version" >&5
11144 cat > conftest.$ac_ext <<EOF 11148 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure" 11149 #line 11150 "configure"
11146 #include "confdefs.h" 11150 #include "confdefs.h"
11147 #include <$db_h_path> 11151 #include <$db_h_path>
11148 #if DB_VERSION_MAJOR > 1 11152 #if DB_VERSION_MAJOR > 1
11149 yes 11153 yes
11150 #endif 11154 #endif
11159 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11163 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11160 fi 11164 fi
11161 rm -f conftest* 11165 rm -f conftest*
11162 11166
11163 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11167 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11164 echo "configure:11165: checking for $dbfunc" >&5 11168 echo "configure:11169: checking for $dbfunc" >&5
11165 11169
11166 cat > conftest.$ac_ext <<EOF 11170 cat > conftest.$ac_ext <<EOF
11167 #line 11168 "configure" 11171 #line 11172 "configure"
11168 #include "confdefs.h" 11172 #include "confdefs.h"
11169 /* System header to define __stub macros and hopefully few prototypes, 11173 /* System header to define __stub macros and hopefully few prototypes,
11170 which can conflict with char $dbfunc(); below. */ 11174 which can conflict with char $dbfunc(); below. */
11171 #include <assert.h> 11175 #include <assert.h>
11172 /* Override any gcc2 internal prototype to avoid an error. */ 11176 /* Override any gcc2 internal prototype to avoid an error. */
11185 $dbfunc(); 11189 $dbfunc();
11186 #endif 11190 #endif
11187 11191
11188 ; return 0; } 11192 ; return 0; }
11189 EOF 11193 EOF
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11191 rm -rf conftest* 11195 rm -rf conftest*
11192 eval "ac_cv_func_$dbfunc=yes" 11196 eval "ac_cv_func_$dbfunc=yes"
11193 else 11197 else
11194 echo "configure: failed program was:" >&5 11198 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5 11199 cat conftest.$ac_ext >&5
11204 else 11208 else
11205 echo "$ac_t""no" 1>&6 11209 echo "$ac_t""no" 1>&6
11206 11210
11207 11211
11208 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11212 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11209 echo "configure:11210: checking for $dbfunc in -ldb" >&5 11213 echo "configure:11214: checking for $dbfunc in -ldb" >&5
11210 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11214 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11211 11215
11212 xe_check_libs=" -ldb " 11216 xe_check_libs=" -ldb "
11213 cat > conftest.$ac_ext <<EOF 11217 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure" 11218 #line 11219 "configure"
11215 #include "confdefs.h" 11219 #include "confdefs.h"
11216 /* Override any gcc2 internal prototype to avoid an error. */ 11220 /* Override any gcc2 internal prototype to avoid an error. */
11217 /* We use char because int might match the return type of a gcc2 11221 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */ 11222 builtin and then its argument prototype would still apply. */
11219 char $dbfunc(); 11223 char $dbfunc();
11220 11224
11221 int main() { 11225 int main() {
11222 $dbfunc() 11226 $dbfunc()
11223 ; return 0; } 11227 ; return 0; }
11224 EOF 11228 EOF
11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11229 if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11226 rm -rf conftest* 11230 rm -rf conftest*
11227 eval "ac_cv_lib_$ac_lib_var=yes" 11231 eval "ac_cv_lib_$ac_lib_var=yes"
11228 else 11232 else
11229 echo "configure: failed program was:" >&5 11233 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5 11234 cat conftest.$ac_ext >&5
11284 fi 11288 fi
11285 11289
11286 if test "$with_socks" = "yes"; then 11290 if test "$with_socks" = "yes"; then
11287 11291
11288 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11292 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11289 echo "configure:11290: checking for SOCKSinit in -lsocks" >&5 11293 echo "configure:11294: checking for SOCKSinit in -lsocks" >&5
11290 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11294 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11291 11295
11292 xe_check_libs=" -lsocks " 11296 xe_check_libs=" -lsocks "
11293 cat > conftest.$ac_ext <<EOF 11297 cat > conftest.$ac_ext <<EOF
11294 #line 11295 "configure" 11298 #line 11299 "configure"
11295 #include "confdefs.h" 11299 #include "confdefs.h"
11296 /* Override any gcc2 internal prototype to avoid an error. */ 11300 /* Override any gcc2 internal prototype to avoid an error. */
11297 /* We use char because int might match the return type of a gcc2 11301 /* We use char because int might match the return type of a gcc2
11298 builtin and then its argument prototype would still apply. */ 11302 builtin and then its argument prototype would still apply. */
11299 char SOCKSinit(); 11303 char SOCKSinit();
11300 11304
11301 int main() { 11305 int main() {
11302 SOCKSinit() 11306 SOCKSinit()
11303 ; return 0; } 11307 ; return 0; }
11304 EOF 11308 EOF
11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11309 if { (eval echo configure:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11306 rm -rf conftest* 11310 rm -rf conftest*
11307 eval "ac_cv_lib_$ac_lib_var=yes" 11311 eval "ac_cv_lib_$ac_lib_var=yes"
11308 else 11312 else
11309 echo "configure: failed program was:" >&5 11313 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5 11314 cat conftest.$ac_ext >&5
11359 11363
11360 for ac_hdr in dlfcn.h 11364 for ac_hdr in dlfcn.h
11361 do 11365 do
11362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11364 echo "configure:11365: checking for $ac_hdr" >&5 11368 echo "configure:11369: checking for $ac_hdr" >&5
11365 11369
11366 cat > conftest.$ac_ext <<EOF 11370 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure" 11371 #line 11372 "configure"
11368 #include "confdefs.h" 11372 #include "confdefs.h"
11369 #include <$ac_hdr> 11373 #include <$ac_hdr>
11370 EOF 11374 EOF
11371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11372 { (eval echo configure:11373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11376 { (eval echo configure:11377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11374 if test -z "$ac_err"; then 11378 if test -z "$ac_err"; then
11375 rm -rf conftest* 11379 rm -rf conftest*
11376 eval "ac_cv_header_$ac_safe=yes" 11380 eval "ac_cv_header_$ac_safe=yes"
11377 else 11381 else
11398 fi 11402 fi
11399 done 11403 done
11400 11404
11401 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11405 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11402 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11406 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11403 echo "configure:11404: checking for dlopen in -ldl" >&5 11407 echo "configure:11408: checking for dlopen in -ldl" >&5
11404 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11408 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11405 11409
11406 xe_check_libs=" -ldl " 11410 xe_check_libs=" -ldl "
11407 cat > conftest.$ac_ext <<EOF 11411 cat > conftest.$ac_ext <<EOF
11408 #line 11409 "configure" 11412 #line 11413 "configure"
11409 #include "confdefs.h" 11413 #include "confdefs.h"
11410 /* Override any gcc2 internal prototype to avoid an error. */ 11414 /* Override any gcc2 internal prototype to avoid an error. */
11411 /* We use char because int might match the return type of a gcc2 11415 /* We use char because int might match the return type of a gcc2
11412 builtin and then its argument prototype would still apply. */ 11416 builtin and then its argument prototype would still apply. */
11413 char dlopen(); 11417 char dlopen();
11414 11418
11415 int main() { 11419 int main() {
11416 dlopen() 11420 dlopen()
11417 ; return 0; } 11421 ; return 0; }
11418 EOF 11422 EOF
11419 if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11423 if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11420 rm -rf conftest* 11424 rm -rf conftest*
11421 eval "ac_cv_lib_$ac_lib_var=yes" 11425 eval "ac_cv_lib_$ac_lib_var=yes"
11422 else 11426 else
11423 echo "configure: failed program was:" >&5 11427 echo "configure: failed program was:" >&5
11424 cat conftest.$ac_ext >&5 11428 cat conftest.$ac_ext >&5
11443 fi 11447 fi
11444 11448
11445 } 11449 }
11446 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11450 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11447 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11451 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11448 echo "configure:11449: checking for _dlopen in -lc" >&5 11452 echo "configure:11453: checking for _dlopen in -lc" >&5
11449 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11453 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11450 11454
11451 xe_check_libs=" -lc " 11455 xe_check_libs=" -lc "
11452 cat > conftest.$ac_ext <<EOF 11456 cat > conftest.$ac_ext <<EOF
11453 #line 11454 "configure" 11457 #line 11458 "configure"
11454 #include "confdefs.h" 11458 #include "confdefs.h"
11455 /* Override any gcc2 internal prototype to avoid an error. */ 11459 /* Override any gcc2 internal prototype to avoid an error. */
11456 /* We use char because int might match the return type of a gcc2 11460 /* We use char because int might match the return type of a gcc2
11457 builtin and then its argument prototype would still apply. */ 11461 builtin and then its argument prototype would still apply. */
11458 char _dlopen(); 11462 char _dlopen();
11459 11463
11460 int main() { 11464 int main() {
11461 _dlopen() 11465 _dlopen()
11462 ; return 0; } 11466 ; return 0; }
11463 EOF 11467 EOF
11464 if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11468 if { (eval echo configure:11469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11465 rm -rf conftest* 11469 rm -rf conftest*
11466 eval "ac_cv_lib_$ac_lib_var=yes" 11470 eval "ac_cv_lib_$ac_lib_var=yes"
11467 else 11471 else
11468 echo "configure: failed program was:" >&5 11472 echo "configure: failed program was:" >&5
11469 cat conftest.$ac_ext >&5 11473 cat conftest.$ac_ext >&5
11488 fi 11492 fi
11489 11493
11490 } 11494 }
11491 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11495 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11492 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11496 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11493 echo "configure:11494: checking for dlopen in -lc" >&5 11497 echo "configure:11498: checking for dlopen in -lc" >&5
11494 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11498 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11495 11499
11496 xe_check_libs=" -lc " 11500 xe_check_libs=" -lc "
11497 cat > conftest.$ac_ext <<EOF 11501 cat > conftest.$ac_ext <<EOF
11498 #line 11499 "configure" 11502 #line 11503 "configure"
11499 #include "confdefs.h" 11503 #include "confdefs.h"
11500 /* Override any gcc2 internal prototype to avoid an error. */ 11504 /* Override any gcc2 internal prototype to avoid an error. */
11501 /* We use char because int might match the return type of a gcc2 11505 /* We use char because int might match the return type of a gcc2
11502 builtin and then its argument prototype would still apply. */ 11506 builtin and then its argument prototype would still apply. */
11503 char dlopen(); 11507 char dlopen();
11504 11508
11505 int main() { 11509 int main() {
11506 dlopen() 11510 dlopen()
11507 ; return 0; } 11511 ; return 0; }
11508 EOF 11512 EOF
11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11513 if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11510 rm -rf conftest* 11514 rm -rf conftest*
11511 eval "ac_cv_lib_$ac_lib_var=yes" 11515 eval "ac_cv_lib_$ac_lib_var=yes"
11512 else 11516 else
11513 echo "configure: failed program was:" >&5 11517 echo "configure: failed program was:" >&5
11514 cat conftest.$ac_ext >&5 11518 cat conftest.$ac_ext >&5
11533 fi 11537 fi
11534 11538
11535 } 11539 }
11536 test -z "$with_shlib" && { 11540 test -z "$with_shlib" && {
11537 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11541 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11538 echo "configure:11539: checking for shl_load in -ldld" >&5 11542 echo "configure:11543: checking for shl_load in -ldld" >&5
11539 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11543 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11540 11544
11541 xe_check_libs=" -ldld " 11545 xe_check_libs=" -ldld "
11542 cat > conftest.$ac_ext <<EOF 11546 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure" 11547 #line 11548 "configure"
11544 #include "confdefs.h" 11548 #include "confdefs.h"
11545 /* Override any gcc2 internal prototype to avoid an error. */ 11549 /* Override any gcc2 internal prototype to avoid an error. */
11546 /* We use char because int might match the return type of a gcc2 11550 /* We use char because int might match the return type of a gcc2
11547 builtin and then its argument prototype would still apply. */ 11551 builtin and then its argument prototype would still apply. */
11548 char shl_load(); 11552 char shl_load();
11549 11553
11550 int main() { 11554 int main() {
11551 shl_load() 11555 shl_load()
11552 ; return 0; } 11556 ; return 0; }
11553 EOF 11557 EOF
11554 if { (eval echo configure:11555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11558 if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11555 rm -rf conftest* 11559 rm -rf conftest*
11556 eval "ac_cv_lib_$ac_lib_var=yes" 11560 eval "ac_cv_lib_$ac_lib_var=yes"
11557 else 11561 else
11558 echo "configure: failed program was:" >&5 11562 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5 11563 cat conftest.$ac_ext >&5
11578 fi 11582 fi
11579 11583
11580 } 11584 }
11581 test -z "$with_shlib" && { 11585 test -z "$with_shlib" && {
11582 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11586 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11583 echo "configure:11584: checking for dld_init in -ldld" >&5 11587 echo "configure:11588: checking for dld_init in -ldld" >&5
11584 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11588 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11585 11589
11586 xe_check_libs=" -ldld " 11590 xe_check_libs=" -ldld "
11587 cat > conftest.$ac_ext <<EOF 11591 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure" 11592 #line 11593 "configure"
11589 #include "confdefs.h" 11593 #include "confdefs.h"
11590 /* Override any gcc2 internal prototype to avoid an error. */ 11594 /* Override any gcc2 internal prototype to avoid an error. */
11591 /* We use char because int might match the return type of a gcc2 11595 /* We use char because int might match the return type of a gcc2
11592 builtin and then its argument prototype would still apply. */ 11596 builtin and then its argument prototype would still apply. */
11593 char dld_init(); 11597 char dld_init();
11594 11598
11595 int main() { 11599 int main() {
11596 dld_init() 11600 dld_init()
11597 ; return 0; } 11601 ; return 0; }
11598 EOF 11602 EOF
11599 if { (eval echo configure:11600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11603 if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11600 rm -rf conftest* 11604 rm -rf conftest*
11601 eval "ac_cv_lib_$ac_lib_var=yes" 11605 eval "ac_cv_lib_$ac_lib_var=yes"
11602 else 11606 else
11603 echo "configure: failed program was:" >&5 11607 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5 11608 cat conftest.$ac_ext >&5
11644 dll_lflags="-shared" 11648 dll_lflags="-shared"
11645 dll_cflags="-r" 11649 dll_cflags="-r"
11646 dll_oflags="-o " 11650 dll_oflags="-o "
11647 11651
11648 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11652 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
11649 echo "configure:11650: checking how to build a shared library" >&5 11653 echo "configure:11654: checking how to build a shared library" >&5
11650 case `uname -rs` in 11654 case `uname -rs` in
11651 UNIX_SV*|UNIX_System_V*) 11655 UNIX_SV*|UNIX_System_V*)
11652 dll_lflags="-G" 11656 dll_lflags="-G"
11653 dll_cflags=-Kpic 11657 dll_cflags=-Kpic
11654 dll_ld="ld" 11658 dll_ld="ld"
11735 11739
11736 11740
11737 for ac_func in dlerror 11741 for ac_func in dlerror
11738 do 11742 do
11739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11740 echo "configure:11741: checking for $ac_func" >&5 11744 echo "configure:11745: checking for $ac_func" >&5
11741 11745
11742 cat > conftest.$ac_ext <<EOF 11746 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure" 11747 #line 11748 "configure"
11744 #include "confdefs.h" 11748 #include "confdefs.h"
11745 /* System header to define __stub macros and hopefully few prototypes, 11749 /* System header to define __stub macros and hopefully few prototypes,
11746 which can conflict with char $ac_func(); below. */ 11750 which can conflict with char $ac_func(); below. */
11747 #include <assert.h> 11751 #include <assert.h>
11748 /* Override any gcc2 internal prototype to avoid an error. */ 11752 /* Override any gcc2 internal prototype to avoid an error. */
11761 $ac_func(); 11765 $ac_func();
11762 #endif 11766 #endif
11763 11767
11764 ; return 0; } 11768 ; return 0; }
11765 EOF 11769 EOF
11766 if { (eval echo configure:11767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11770 if { (eval echo configure:11771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11767 rm -rf conftest* 11771 rm -rf conftest*
11768 eval "ac_cv_func_$ac_func=yes" 11772 eval "ac_cv_func_$ac_func=yes"
11769 else 11773 else
11770 echo "configure: failed program was:" >&5 11774 echo "configure: failed program was:" >&5
11771 cat conftest.$ac_ext >&5 11775 cat conftest.$ac_ext >&5
11797 *) ;; 11801 *) ;;
11798 esac 11802 esac
11799 fi 11803 fi
11800 11804
11801 cat > conftest.$ac_ext <<EOF 11805 cat > conftest.$ac_ext <<EOF
11802 #line 11803 "configure" 11806 #line 11807 "configure"
11803 #include "confdefs.h" 11807 #include "confdefs.h"
11804 int main(int c,char *v[]){return 0;} 11808 int main(int c,char *v[]){return 0;}
11805 EOF 11809 EOF
11806 if { (eval echo configure:11807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11807 then 11811 then
11808 : 11812 :
11809 else 11813 else
11810 conftest_rc="$?" 11814 conftest_rc="$?"
11811 echo "configure: failed program was:" >&5 11815 echo "configure: failed program was:" >&5
12120 T="" 12124 T=""
12121 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 12125 for W in $ac_configure_args; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
12122 ac_configure_args="$T" 12126 ac_configure_args="$T"
12123 12127
12124 { test "$extra_verbose" = "yes" && cat << EOF 12128 { test "$extra_verbose" = "yes" && cat << EOF
12125 Defining EMACS_CONFIGURATION = "$canonical" 12129 Defining EMACS_CONFIGURATION = "$configuration"
12126 EOF 12130 EOF
12127 cat >> confdefs.h <<EOF 12131 cat >> confdefs.h <<EOF
12128 #define EMACS_CONFIGURATION "$canonical" 12132 #define EMACS_CONFIGURATION "$configuration"
12129 EOF 12133 EOF
12130 } 12134 }
12131 12135
12132 { test "$extra_verbose" = "yes" && cat << EOF 12136 { test "$extra_verbose" = "yes" && cat << EOF
12133 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args" 12137 Defining EMACS_CONFIG_OPTIONS = "$ac_configure_args"
12620 s%@X_CFLAGS@%$X_CFLAGS%g 12624 s%@X_CFLAGS@%$X_CFLAGS%g
12621 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 12625 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12622 s%@X_LIBS@%$X_LIBS%g 12626 s%@X_LIBS@%$X_LIBS%g
12623 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 12627 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12624 s%@install_pp@%$install_pp%g 12628 s%@install_pp@%$install_pp%g
12629 s%@exe_suffix@%$exe_suffix%g
12625 s%@libs_xauth@%$libs_xauth%g 12630 s%@libs_xauth@%$libs_xauth%g
12626 s%@dnd_objs@%$dnd_objs%g 12631 s%@dnd_objs@%$dnd_objs%g
12627 s%@lwlib_objs@%$lwlib_objs%g 12632 s%@lwlib_objs@%$lwlib_objs%g
12628 s%@ALLOCA@%$ALLOCA%g 12633 s%@ALLOCA@%$ALLOCA%g
12629 s%@dll_ld@%$dll_ld%g 12634 s%@dll_ld@%$dll_ld%g