comparison configure @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 84b14dcb0985
children abe6d1db359e
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
262 with_toolbars="" 262 with_toolbars=""
263 with_tty="" 263 with_tty=""
264 use_union_type="no" 264 use_union_type="no"
265 with_dnet="" 265 with_dnet=""
266 pdump="no" 266 pdump="no"
267 with_dragndrop="no"
267 268
268 269
269 270
270 271
271 arguments="$@" 272 arguments="$@"
829 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
830 fi 831 fi
831 fi 832 fi
832 833
833 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 834 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
834 echo "configure:835: checking whether ln -s works" >&5 835 echo "configure:836: checking whether ln -s works" >&5
835 836
836 rm -f conftestdata 837 rm -f conftestdata
837 if ln -s X conftestdata 2>/dev/null 838 if ln -s X conftestdata 2>/dev/null
838 then 839 then
839 rm -f conftestdata 840 rm -f conftestdata
1046 if test "${debug:=$beta}" = "yes"; then 1047 if test "${debug:=$beta}" = "yes"; then
1047 use_assertions=yes memory_usage_stats=yes 1048 use_assertions=yes memory_usage_stats=yes
1048 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then 1049 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then
1049 echo " xemacs will be linked with \"debug.o\"" 1050 echo " xemacs will be linked with \"debug.o\""
1050 fi 1051 fi
1052 extra_objs="$extra_objs tests.o" && if test "$extra_verbose" = "yes"; then
1053 echo " xemacs will be linked with \"tests.o\""
1054 fi
1051 { test "$extra_verbose" = "yes" && cat << \EOF 1055 { test "$extra_verbose" = "yes" && cat << \EOF
1052 Defining DEBUG_XEMACS 1056 Defining DEBUG_XEMACS
1053 EOF 1057 EOF
1054 cat >> confdefs.h <<\EOF 1058 cat >> confdefs.h <<\EOF
1055 #define DEBUG_XEMACS 1 1059 #define DEBUG_XEMACS 1
1074 } 1078 }
1075 1079
1076 1080
1077 1081
1078 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1082 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1079 echo "configure:1080: checking "host system type"" >&5 1083 echo "configure:1084: checking "host system type"" >&5
1080 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1084 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1081 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1085 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1082 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1086 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1083 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1087 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1084 echo "$ac_t""$configuration" 1>&6 1088 echo "$ac_t""$configuration" 1>&6
1092 case "$canonical" in 1096 case "$canonical" in
1093 sparc-*-* ) machine=sparc ;; 1097 sparc-*-* ) machine=sparc ;;
1094 alpha*-*-* ) machine=alpha ;; 1098 alpha*-*-* ) machine=alpha ;;
1095 vax-*-* ) machine=vax ;; 1099 vax-*-* ) machine=vax ;;
1096 mips-dec-* ) machine=pmax ;; 1100 mips-dec-* ) machine=pmax ;;
1101 mips-sgi-irix6* ) machine=iris6d ;;
1097 mips-sgi-* ) machine=iris4d ;; 1102 mips-sgi-* ) machine=iris4d ;;
1098 mips*-linux ) machine=mips ;; 1103 mips*-linux ) machine=mips ;;
1099 romp-ibm-* ) machine=ibmrt ;; 1104 romp-ibm-* ) machine=ibmrt ;;
1100 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1105 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1101 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 1106 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1104 m88k-dg-* ) machine=aviion ;; 1109 m88k-dg-* ) machine=aviion ;;
1105 m68*-sony-* ) machine=news ;; 1110 m68*-sony-* ) machine=news ;;
1106 mips-sony-* ) machine=news-risc ;; 1111 mips-sony-* ) machine=news-risc ;;
1107 clipper-* ) machine=clipper ;; 1112 clipper-* ) machine=clipper ;;
1108 arm-* ) machine=arm ;; 1113 arm-* ) machine=arm ;;
1114 armv34lb-* ) machine=arm ;;
1109 ns32k-* ) machine=ns32000 ;; 1115 ns32k-* ) machine=ns32000 ;;
1110 esac 1116 esac
1111 1117
1112 case "$canonical" in 1118 case "$canonical" in
1113 *-*-linux* ) opsys=linux ;; 1119 *-*-linux* ) opsys=linux ;;
1568 xe_save_CFLAGS="$CFLAGS" 1574 xe_save_CFLAGS="$CFLAGS"
1569 1575
1570 # Extract the first word of "gcc", so it can be a program name with args. 1576 # Extract the first word of "gcc", so it can be a program name with args.
1571 set dummy gcc; ac_word=$2 1577 set dummy gcc; ac_word=$2
1572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1573 echo "configure:1574: checking for $ac_word" >&5 1579 echo "configure:1580: checking for $ac_word" >&5
1574 1580
1575 if test -n "$CC"; then 1581 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test. 1582 ac_cv_prog_CC="$CC" # Let the user override the test.
1577 else 1583 else
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1595 1601
1596 if test -z "$CC"; then 1602 if test -z "$CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args. 1603 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2 1604 set dummy cc; ac_word=$2
1599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1600 echo "configure:1601: checking for $ac_word" >&5 1606 echo "configure:1607: checking for $ac_word" >&5
1601 1607
1602 if test -n "$CC"; then 1608 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test. 1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else 1610 else
1605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1643 case "`uname -s`" in 1649 case "`uname -s`" in
1644 *win32* | *WIN32*) 1650 *win32* | *WIN32*)
1645 # Extract the first word of "cl", so it can be a program name with args. 1651 # Extract the first word of "cl", so it can be a program name with args.
1646 set dummy cl; ac_word=$2 1652 set dummy cl; ac_word=$2
1647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1648 echo "configure:1649: checking for $ac_word" >&5 1654 echo "configure:1655: checking for $ac_word" >&5
1649 1655
1650 if test -n "$CC"; then 1656 if test -n "$CC"; then
1651 ac_cv_prog_CC="$CC" # Let the user override the test. 1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1652 else 1658 else
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1672 fi 1678 fi
1673 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1679 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1674 fi 1680 fi
1675 1681
1676 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1683 echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1678 1684
1679 ac_ext=c 1685 ac_ext=c
1680 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1686 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1681 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1687 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1682 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1688 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1685 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1691 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1686 cross_compiling=no 1692 cross_compiling=no
1687 1693
1688 cat > conftest.$ac_ext << EOF 1694 cat > conftest.$ac_ext << EOF
1689 1695
1690 #line 1691 "configure" 1696 #line 1697 "configure"
1691 #include "confdefs.h" 1697 #include "confdefs.h"
1692 1698
1693 main(){return(0);} 1699 main(){return(0);}
1694 EOF 1700 EOF
1695 if { (eval echo configure:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1696 ac_cv_prog_cc_works=yes 1702 ac_cv_prog_cc_works=yes
1697 # If we can't run a trivial program, we are probably using a cross compiler. 1703 # If we can't run a trivial program, we are probably using a cross compiler.
1698 if (./conftest; exit) 2>/dev/null; then 1704 if (./conftest; exit) 2>/dev/null; then
1699 ac_cv_prog_cc_cross=no 1705 ac_cv_prog_cc_cross=no
1700 else 1706 else
1718 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1719 if test $ac_cv_prog_cc_works = no; then 1725 if test $ac_cv_prog_cc_works = no; then
1720 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1726 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1721 fi 1727 fi
1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1724 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1725 cross_compiling=$ac_cv_prog_cc_cross 1731 cross_compiling=$ac_cv_prog_cc_cross
1726 1732
1727 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1728 echo "configure:1729: checking whether we are using GNU C" >&5 1734 echo "configure:1735: checking whether we are using GNU C" >&5
1729 1735
1730 cat > conftest.c <<EOF 1736 cat > conftest.c <<EOF
1731 #ifdef __GNUC__ 1737 #ifdef __GNUC__
1732 yes; 1738 yes;
1733 #endif 1739 #endif
1734 EOF 1740 EOF
1735 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1741 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1736 ac_cv_prog_gcc=yes 1742 ac_cv_prog_gcc=yes
1737 else 1743 else
1738 ac_cv_prog_gcc=no 1744 ac_cv_prog_gcc=no
1739 fi 1745 fi
1740 1746
1748 1754
1749 ac_test_CFLAGS="${CFLAGS+set}" 1755 ac_test_CFLAGS="${CFLAGS+set}"
1750 ac_save_CFLAGS="$CFLAGS" 1756 ac_save_CFLAGS="$CFLAGS"
1751 CFLAGS= 1757 CFLAGS=
1752 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1758 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether ${CC-cc} accepts -g" >&5 1759 echo "configure:1760: checking whether ${CC-cc} accepts -g" >&5
1754 1760
1755 echo 'void f(){}' > conftest.c 1761 echo 'void f(){}' > conftest.c
1756 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1762 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1757 ac_cv_prog_cc_g=yes 1763 ac_cv_prog_cc_g=yes
1758 else 1764 else
1781 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1787 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1782 CC=${NON_GNU_CC-cc} 1788 CC=${NON_GNU_CC-cc}
1783 # Extract the first word of "gcc", so it can be a program name with args. 1789 # Extract the first word of "gcc", so it can be a program name with args.
1784 set dummy gcc; ac_word=$2 1790 set dummy gcc; ac_word=$2
1785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1786 echo "configure:1787: checking for $ac_word" >&5 1792 echo "configure:1793: checking for $ac_word" >&5
1787 1793
1788 if test -n "$CC"; then 1794 if test -n "$CC"; then
1789 ac_cv_prog_CC="$CC" # Let the user override the test. 1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1790 else 1796 else
1791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1808 1814
1809 if test -z "$CC"; then 1815 if test -z "$CC"; then
1810 # Extract the first word of "cc", so it can be a program name with args. 1816 # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2 1817 set dummy cc; ac_word=$2
1812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1813 echo "configure:1814: checking for $ac_word" >&5 1819 echo "configure:1820: checking for $ac_word" >&5
1814 1820
1815 if test -n "$CC"; then 1821 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test. 1822 ac_cv_prog_CC="$CC" # Let the user override the test.
1817 else 1823 else
1818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 case "`uname -s`" in 1862 case "`uname -s`" in
1857 *win32* | *WIN32*) 1863 *win32* | *WIN32*)
1858 # Extract the first word of "cl", so it can be a program name with args. 1864 # Extract the first word of "cl", so it can be a program name with args.
1859 set dummy cl; ac_word=$2 1865 set dummy cl; ac_word=$2
1860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_word" >&5 1867 echo "configure:1868: checking for $ac_word" >&5
1862 1868
1863 if test -n "$CC"; then 1869 if test -n "$CC"; then
1864 ac_cv_prog_CC="$CC" # Let the user override the test. 1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1865 else 1871 else
1866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1885 fi 1891 fi
1886 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1887 fi 1893 fi
1888 1894
1889 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1890 echo "configure:1891: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1896 echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1891 1897
1892 ac_ext=c 1898 ac_ext=c
1893 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1899 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1894 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1900 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1895 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1901 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1898 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1904 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1899 cross_compiling=no 1905 cross_compiling=no
1900 1906
1901 cat > conftest.$ac_ext << EOF 1907 cat > conftest.$ac_ext << EOF
1902 1908
1903 #line 1904 "configure" 1909 #line 1910 "configure"
1904 #include "confdefs.h" 1910 #include "confdefs.h"
1905 1911
1906 main(){return(0);} 1912 main(){return(0);}
1907 EOF 1913 EOF
1908 if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1909 ac_cv_prog_cc_works=yes 1915 ac_cv_prog_cc_works=yes
1910 # If we can't run a trivial program, we are probably using a cross compiler. 1916 # If we can't run a trivial program, we are probably using a cross compiler.
1911 if (./conftest; exit) 2>/dev/null; then 1917 if (./conftest; exit) 2>/dev/null; then
1912 ac_cv_prog_cc_cross=no 1918 ac_cv_prog_cc_cross=no
1913 else 1919 else
1931 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1937 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1932 if test $ac_cv_prog_cc_works = no; then 1938 if test $ac_cv_prog_cc_works = no; then
1933 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1939 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1934 fi 1940 fi
1935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1937 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1943 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1938 cross_compiling=$ac_cv_prog_cc_cross 1944 cross_compiling=$ac_cv_prog_cc_cross
1939 1945
1940 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1946 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1941 echo "configure:1942: checking whether we are using GNU C" >&5 1947 echo "configure:1948: checking whether we are using GNU C" >&5
1942 1948
1943 cat > conftest.c <<EOF 1949 cat > conftest.c <<EOF
1944 #ifdef __GNUC__ 1950 #ifdef __GNUC__
1945 yes; 1951 yes;
1946 #endif 1952 #endif
1947 EOF 1953 EOF
1948 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1954 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1949 ac_cv_prog_gcc=yes 1955 ac_cv_prog_gcc=yes
1950 else 1956 else
1951 ac_cv_prog_gcc=no 1957 ac_cv_prog_gcc=no
1952 fi 1958 fi
1953 1959
1961 1967
1962 ac_test_CFLAGS="${CFLAGS+set}" 1968 ac_test_CFLAGS="${CFLAGS+set}"
1963 ac_save_CFLAGS="$CFLAGS" 1969 ac_save_CFLAGS="$CFLAGS"
1964 CFLAGS= 1970 CFLAGS=
1965 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether ${CC-cc} accepts -g" >&5 1972 echo "configure:1973: checking whether ${CC-cc} accepts -g" >&5
1967 1973
1968 echo 'void f(){}' > conftest.c 1974 echo 'void f(){}' > conftest.c
1969 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1975 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1970 ac_cv_prog_cc_g=yes 1976 ac_cv_prog_cc_g=yes
1971 else 1977 else
1994 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2000 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1995 CC=gcc 2001 CC=gcc
1996 # Extract the first word of "gcc", so it can be a program name with args. 2002 # Extract the first word of "gcc", so it can be a program name with args.
1997 set dummy gcc; ac_word=$2 2003 set dummy gcc; ac_word=$2
1998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_word" >&5 2005 echo "configure:2006: checking for $ac_word" >&5
2000 2006
2001 if test -n "$CC"; then 2007 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test. 2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 else 2009 else
2004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2021 2027
2022 if test -z "$CC"; then 2028 if test -z "$CC"; then
2023 # Extract the first word of "cc", so it can be a program name with args. 2029 # Extract the first word of "cc", so it can be a program name with args.
2024 set dummy cc; ac_word=$2 2030 set dummy cc; ac_word=$2
2025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2026 echo "configure:2027: checking for $ac_word" >&5 2032 echo "configure:2033: checking for $ac_word" >&5
2027 2033
2028 if test -n "$CC"; then 2034 if test -n "$CC"; then
2029 ac_cv_prog_CC="$CC" # Let the user override the test. 2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2030 else 2036 else
2031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 case "`uname -s`" in 2075 case "`uname -s`" in
2070 *win32* | *WIN32*) 2076 *win32* | *WIN32*)
2071 # Extract the first word of "cl", so it can be a program name with args. 2077 # Extract the first word of "cl", so it can be a program name with args.
2072 set dummy cl; ac_word=$2 2078 set dummy cl; ac_word=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5 2080 echo "configure:2081: checking for $ac_word" >&5
2075 2081
2076 if test -n "$CC"; then 2082 if test -n "$CC"; then
2077 ac_cv_prog_CC="$CC" # Let the user override the test. 2083 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 else 2084 else
2079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2098 fi 2104 fi
2099 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2105 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2100 fi 2106 fi
2101 2107
2102 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2108 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2103 echo "configure:2104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2109 echo "configure:2110: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2104 2110
2105 ac_ext=c 2111 ac_ext=c
2106 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2112 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2107 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2113 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2108 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2114 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2111 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2117 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2112 cross_compiling=no 2118 cross_compiling=no
2113 2119
2114 cat > conftest.$ac_ext << EOF 2120 cat > conftest.$ac_ext << EOF
2115 2121
2116 #line 2117 "configure" 2122 #line 2123 "configure"
2117 #include "confdefs.h" 2123 #include "confdefs.h"
2118 2124
2119 main(){return(0);} 2125 main(){return(0);}
2120 EOF 2126 EOF
2121 if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2122 ac_cv_prog_cc_works=yes 2128 ac_cv_prog_cc_works=yes
2123 # If we can't run a trivial program, we are probably using a cross compiler. 2129 # If we can't run a trivial program, we are probably using a cross compiler.
2124 if (./conftest; exit) 2>/dev/null; then 2130 if (./conftest; exit) 2>/dev/null; then
2125 ac_cv_prog_cc_cross=no 2131 ac_cv_prog_cc_cross=no
2126 else 2132 else
2144 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2150 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2145 if test $ac_cv_prog_cc_works = no; then 2151 if test $ac_cv_prog_cc_works = no; then
2146 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2152 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2147 fi 2153 fi
2148 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2149 echo "configure:2150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2155 echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2150 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2156 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2151 cross_compiling=$ac_cv_prog_cc_cross 2157 cross_compiling=$ac_cv_prog_cc_cross
2152 2158
2153 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2159 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2154 echo "configure:2155: checking whether we are using GNU C" >&5 2160 echo "configure:2161: checking whether we are using GNU C" >&5
2155 2161
2156 cat > conftest.c <<EOF 2162 cat > conftest.c <<EOF
2157 #ifdef __GNUC__ 2163 #ifdef __GNUC__
2158 yes; 2164 yes;
2159 #endif 2165 #endif
2160 EOF 2166 EOF
2161 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2167 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2162 ac_cv_prog_gcc=yes 2168 ac_cv_prog_gcc=yes
2163 else 2169 else
2164 ac_cv_prog_gcc=no 2170 ac_cv_prog_gcc=no
2165 fi 2171 fi
2166 2172
2174 2180
2175 ac_test_CFLAGS="${CFLAGS+set}" 2181 ac_test_CFLAGS="${CFLAGS+set}"
2176 ac_save_CFLAGS="$CFLAGS" 2182 ac_save_CFLAGS="$CFLAGS"
2177 CFLAGS= 2183 CFLAGS=
2178 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2184 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2179 echo "configure:2180: checking whether ${CC-cc} accepts -g" >&5 2185 echo "configure:2186: checking whether ${CC-cc} accepts -g" >&5
2180 2186
2181 echo 'void f(){}' > conftest.c 2187 echo 'void f(){}' > conftest.c
2182 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2188 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2183 ac_cv_prog_cc_g=yes 2189 ac_cv_prog_cc_g=yes
2184 else 2190 else
2211 test -n "$CPP" -a -d "$CPP" && CPP= 2217 test -n "$CPP" -a -d "$CPP" && CPP=
2212 2218
2213 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2219 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2214 2220
2215 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2221 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2216 echo "configure:2217: checking how to run the C preprocessor" >&5 2222 echo "configure:2223: checking how to run the C preprocessor" >&5
2217 # On Suns, sometimes $CPP names a directory. 2223 # On Suns, sometimes $CPP names a directory.
2218 if test -n "$CPP" && test -d "$CPP"; then 2224 if test -n "$CPP" && test -d "$CPP"; then
2219 CPP= 2225 CPP=
2220 fi 2226 fi
2221 if test -z "$CPP"; then 2227 if test -z "$CPP"; then
2224 # substituted into the Makefile and "${CC-cc}" will confuse make. 2230 # substituted into the Makefile and "${CC-cc}" will confuse make.
2225 CPP="${CC-cc} -E" 2231 CPP="${CC-cc} -E"
2226 # On the NeXT, cc -E runs the code through the compiler's parser, 2232 # On the NeXT, cc -E runs the code through the compiler's parser,
2227 # not just through cpp. 2233 # not just through cpp.
2228 cat > conftest.$ac_ext <<EOF 2234 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure" 2235 #line 2236 "configure"
2230 #include "confdefs.h" 2236 #include "confdefs.h"
2231 #include <assert.h> 2237 #include <assert.h>
2232 Syntax Error 2238 Syntax Error
2233 EOF 2239 EOF
2234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2235 { (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2237 if test -z "$ac_err"; then 2243 if test -z "$ac_err"; then
2238 : 2244 :
2239 else 2245 else
2240 echo "$ac_err" >&5 2246 echo "$ac_err" >&5
2241 echo "configure: failed program was:" >&5 2247 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5 2248 cat conftest.$ac_ext >&5
2243 rm -rf conftest* 2249 rm -rf conftest*
2244 CPP="${CC-cc} -E -traditional-cpp" 2250 CPP="${CC-cc} -E -traditional-cpp"
2245 cat > conftest.$ac_ext <<EOF 2251 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure" 2252 #line 2253 "configure"
2247 #include "confdefs.h" 2253 #include "confdefs.h"
2248 #include <assert.h> 2254 #include <assert.h>
2249 Syntax Error 2255 Syntax Error
2250 EOF 2256 EOF
2251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2252 { (eval echo configure:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2254 if test -z "$ac_err"; then 2260 if test -z "$ac_err"; then
2255 : 2261 :
2256 else 2262 else
2257 echo "$ac_err" >&5 2263 echo "$ac_err" >&5
2258 echo "configure: failed program was:" >&5 2264 echo "configure: failed program was:" >&5
2259 cat conftest.$ac_ext >&5 2265 cat conftest.$ac_ext >&5
2260 rm -rf conftest* 2266 rm -rf conftest*
2261 CPP="${CC-cc} -nologo -E" 2267 CPP="${CC-cc} -nologo -E"
2262 cat > conftest.$ac_ext <<EOF 2268 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure" 2269 #line 2270 "configure"
2264 #include "confdefs.h" 2270 #include "confdefs.h"
2265 #include <assert.h> 2271 #include <assert.h>
2266 Syntax Error 2272 Syntax Error
2267 EOF 2273 EOF
2268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2269 { (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2271 if test -z "$ac_err"; then 2277 if test -z "$ac_err"; then
2272 : 2278 :
2273 else 2279 else
2274 echo "$ac_err" >&5 2280 echo "$ac_err" >&5
2289 fi 2295 fi
2290 echo "$ac_t""$CPP" 1>&6 2296 echo "$ac_t""$CPP" 1>&6
2291 2297
2292 2298
2293 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2299 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2294 echo "configure:2295: checking for AIX" >&5 2300 echo "configure:2301: checking for AIX" >&5
2295 cat > conftest.$ac_ext <<EOF 2301 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure" 2302 #line 2303 "configure"
2297 #include "confdefs.h" 2303 #include "confdefs.h"
2298 #ifdef _AIX 2304 #ifdef _AIX
2299 yes 2305 yes
2300 #endif 2306 #endif
2301 2307
2318 rm -f conftest* 2324 rm -f conftest*
2319 2325
2320 2326
2321 2327
2322 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2328 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2323 echo "configure:2324: checking for GNU libc" >&5 2329 echo "configure:2330: checking for GNU libc" >&5
2324 cat > conftest.$ac_ext <<EOF 2330 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure" 2331 #line 2332 "configure"
2326 #include "confdefs.h" 2332 #include "confdefs.h"
2327 #include <features.h> 2333 #include <features.h>
2328 int main() { 2334 int main() {
2329 2335
2330 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2336 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2332 ******* ======= ******** &&&&&&&& 2338 ******* ======= ******** &&&&&&&&
2333 #endif 2339 #endif
2334 2340
2335 ; return 0; } 2341 ; return 0; }
2336 EOF 2342 EOF
2337 if { (eval echo configure:2338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2343 if { (eval echo configure:2344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2338 rm -rf conftest* 2344 rm -rf conftest*
2339 have_glibc=yes 2345 have_glibc=yes
2340 else 2346 else
2341 echo "configure: failed program was:" >&5 2347 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5 2348 cat conftest.$ac_ext >&5
2354 } 2360 }
2355 2361
2356 2362
2357 2363
2358 cat > conftest.$ac_ext <<EOF 2364 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure" 2365 #line 2366 "configure"
2360 #include "confdefs.h" 2366 #include "confdefs.h"
2361 int main () { 2367 int main () {
2362 #if defined __SUNPRO_C 2368 #if defined __SUNPRO_C
2363 return 11; 2369 return 11;
2364 #elif defined __DECC 2370 #elif defined __DECC
2366 #else 2372 #else
2367 return 0; 2373 return 0;
2368 #endif 2374 #endif
2369 } 2375 }
2370 EOF 2376 EOF
2371 if { (eval echo configure:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2377 if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2372 then 2378 then
2373 : 2379 :
2374 else 2380 else
2375 conftest_rc="$?" 2381 conftest_rc="$?"
2376 echo "configure: failed program was:" >&5 2382 echo "configure: failed program was:" >&5
2574 2580
2575 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi 2581 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std\" to \$c_switch_site"; fi
2576 2582
2577 if test "$cflags_specified" = "no"; then 2583 if test "$cflags_specified" = "no"; then
2578 if test "$GCC" = "yes"; then 2584 if test "$GCC" = "yes"; then
2579 CFLAGS="-g -O3 -Wall -Wno-switch" 2585 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow"
2580 elif test "$__SUNPRO_C" = "yes"; then 2586 elif test "$__SUNPRO_C" = "yes"; then
2581 case "$opsys" in 2587 case "$opsys" in
2582 sol2 ) CFLAGS="-v -xO4" ;; 2588 sol2 ) CFLAGS="-v -xO4" ;;
2583 sunos4* ) CFLAGS="-xO2";; 2589 sunos4* ) CFLAGS="-xO2";;
2584 esac 2590 esac
2652 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2658 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2653 echo " xemacs will be linked with \"$unexec\"" 2659 echo " xemacs will be linked with \"$unexec\""
2654 fi 2660 fi
2655 2661
2656 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2662 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2657 echo "configure:2658: checking for dynodump" >&5 2663 echo "configure:2664: checking for dynodump" >&5
2658 if test "$unexec" != "unexsol2.o"; then 2664 if test "$unexec" != "unexsol2.o"; then
2659 echo "$ac_t""no" 1>&6 2665 echo "$ac_t""no" 1>&6
2660 else 2666 else
2661 echo "$ac_t""yes" 1>&6 2667 echo "$ac_t""yes" 1>&6
2662 { test "$extra_verbose" = "yes" && cat << \EOF 2668 { test "$extra_verbose" = "yes" && cat << \EOF
2690 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2696 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2691 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2697 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2692 done 2698 done
2693 2699
2694 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2700 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2695 echo "configure:2696: checking for terminateAndUnload in -lC" >&5 2701 echo "configure:2702: checking for terminateAndUnload in -lC" >&5
2696 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2702 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2697 2703
2698 xe_check_libs=" -lC " 2704 xe_check_libs=" -lC "
2699 cat > conftest.$ac_ext <<EOF 2705 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure" 2706 #line 2707 "configure"
2701 #include "confdefs.h" 2707 #include "confdefs.h"
2702 /* Override any gcc2 internal prototype to avoid an error. */ 2708 /* Override any gcc2 internal prototype to avoid an error. */
2703 /* We use char because int might match the return type of a gcc2 2709 /* We use char because int might match the return type of a gcc2
2704 builtin and then its argument prototype would still apply. */ 2710 builtin and then its argument prototype would still apply. */
2705 char terminateAndUnload(); 2711 char terminateAndUnload();
2706 2712
2707 int main() { 2713 int main() {
2708 terminateAndUnload() 2714 terminateAndUnload()
2709 ; return 0; } 2715 ; return 0; }
2710 EOF 2716 EOF
2711 if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2717 if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2712 rm -rf conftest* 2718 rm -rf conftest*
2713 eval "ac_cv_lib_$ac_lib_var=yes" 2719 eval "ac_cv_lib_$ac_lib_var=yes"
2714 else 2720 else
2715 echo "configure: failed program was:" >&5 2721 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5 2722 cat conftest.$ac_ext >&5
2790 done 2796 done
2791 fi 2797 fi
2792 2798
2793 2799
2794 for dir in "/usr/ccs/lib"; do 2800 for dir in "/usr/ccs/lib"; do
2795 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi 2801 test -d "$dir" && ld_switch_system="$ld_switch_system -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_system"; fi
2796 done 2802 done
2797 2803
2798 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac 2804 case "$site_runtime_libraries" in *:* ) site_runtime_libraries="`echo '' $site_runtime_libraries | sed -e 's/^ //' -e 's/:/ /g'`";; esac
2799 if test -n "$site_runtime_libraries"; then 2805 if test -n "$site_runtime_libraries"; then
2800 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" 2806 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`"
2801 export LD_RUN_PATH 2807 export LD_RUN_PATH
2802 fi 2808 fi
2803 2809
2804 2810
2805 if test "$dynamic" = "no"; then add_runtime_path=no 2811
2812
2813
2814 if test -n "$add_runtime_path"; then :;
2815 elif test "$dynamic" = "no"; then add_runtime_path=no
2806 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes 2816 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes
2807 else case "$opsys" in 2817 else case "$opsys" in
2808 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; 2818 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;;
2809 * ) add_runtime_path=no ;; 2819 * ) add_runtime_path=no ;;
2810 esac 2820 esac
2811 fi 2821 fi
2812 2822
2813 if test "$add_runtime_path" = "yes"; then 2823 if test "$add_runtime_path" = "yes"; then
2814 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2824 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2815 echo "configure:2816: checking "for runtime libraries flag"" >&5 2825 echo "configure:2826: checking "for runtime libraries flag"" >&5
2816 case "$opsys" in 2826 case "$opsys" in
2817 sol2 ) dash_r="-R" ;; 2827 sol2 ) dash_r="-R" ;;
2818 decosf* | linux* | irix*) dash_r="-rpath " ;; 2828 decosf* | linux* | irix*) dash_r="-rpath " ;;
2819 *) 2829 *)
2820 dash_r="" 2830 dash_r=""
2832 esac 2842 esac
2833 shift 2843 shift
2834 done 2844 done
2835 fi 2845 fi
2836 cat > conftest.$ac_ext <<EOF 2846 cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure" 2847 #line 2848 "configure"
2838 #include "confdefs.h" 2848 #include "confdefs.h"
2839 2849
2840 int main() { 2850 int main() {
2841 2851
2842 ; return 0; } 2852 ; return 0; }
2843 EOF 2853 EOF
2844 if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2845 rm -rf conftest* 2855 rm -rf conftest*
2846 dash_r="$try_dash_r" 2856 dash_r="$try_dash_r"
2847 else 2857 else
2848 echo "configure: failed program was:" >&5 2858 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 2859 cat conftest.$ac_ext >&5
2941 else 2951 else
2942 doug_lea_malloc=no 2952 doug_lea_malloc=no
2943 fi 2953 fi
2944 after_morecore_hook_exists=yes 2954 after_morecore_hook_exists=yes
2945 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2955 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2946 echo "configure:2947: checking for malloc_get_state" >&5 2956 echo "configure:2957: checking for malloc_get_state" >&5
2947 2957
2948 cat > conftest.$ac_ext <<EOF 2958 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure" 2959 #line 2960 "configure"
2950 #include "confdefs.h" 2960 #include "confdefs.h"
2951 /* System header to define __stub macros and hopefully few prototypes, 2961 /* System header to define __stub macros and hopefully few prototypes,
2952 which can conflict with char malloc_get_state(); below. */ 2962 which can conflict with char malloc_get_state(); below. */
2953 #include <assert.h> 2963 #include <assert.h>
2954 /* Override any gcc2 internal prototype to avoid an error. */ 2964 /* Override any gcc2 internal prototype to avoid an error. */
2967 malloc_get_state(); 2977 malloc_get_state();
2968 #endif 2978 #endif
2969 2979
2970 ; return 0; } 2980 ; return 0; }
2971 EOF 2981 EOF
2972 if { (eval echo configure:2973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2982 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2973 rm -rf conftest* 2983 rm -rf conftest*
2974 eval "ac_cv_func_malloc_get_state=yes" 2984 eval "ac_cv_func_malloc_get_state=yes"
2975 else 2985 else
2976 echo "configure: failed program was:" >&5 2986 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5 2987 cat conftest.$ac_ext >&5
2987 echo "$ac_t""no" 1>&6 2997 echo "$ac_t""no" 1>&6
2988 doug_lea_malloc=no 2998 doug_lea_malloc=no
2989 fi 2999 fi
2990 3000
2991 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3001 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2992 echo "configure:2993: checking for malloc_set_state" >&5 3002 echo "configure:3003: checking for malloc_set_state" >&5
2993 3003
2994 cat > conftest.$ac_ext <<EOF 3004 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure" 3005 #line 3006 "configure"
2996 #include "confdefs.h" 3006 #include "confdefs.h"
2997 /* System header to define __stub macros and hopefully few prototypes, 3007 /* System header to define __stub macros and hopefully few prototypes,
2998 which can conflict with char malloc_set_state(); below. */ 3008 which can conflict with char malloc_set_state(); below. */
2999 #include <assert.h> 3009 #include <assert.h>
3000 /* Override any gcc2 internal prototype to avoid an error. */ 3010 /* Override any gcc2 internal prototype to avoid an error. */
3013 malloc_set_state(); 3023 malloc_set_state();
3014 #endif 3024 #endif
3015 3025
3016 ; return 0; } 3026 ; return 0; }
3017 EOF 3027 EOF
3018 if { (eval echo configure:3019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3019 rm -rf conftest* 3029 rm -rf conftest*
3020 eval "ac_cv_func_malloc_set_state=yes" 3030 eval "ac_cv_func_malloc_set_state=yes"
3021 else 3031 else
3022 echo "configure: failed program was:" >&5 3032 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5 3033 cat conftest.$ac_ext >&5
3033 echo "$ac_t""no" 1>&6 3043 echo "$ac_t""no" 1>&6
3034 doug_lea_malloc=no 3044 doug_lea_malloc=no
3035 fi 3045 fi
3036 3046
3037 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3047 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3038 echo "configure:3039: checking whether __after_morecore_hook exists" >&5 3048 echo "configure:3049: checking whether __after_morecore_hook exists" >&5
3039 cat > conftest.$ac_ext <<EOF 3049 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure" 3050 #line 3051 "configure"
3041 #include "confdefs.h" 3051 #include "confdefs.h"
3042 extern void (* __after_morecore_hook)(); 3052 extern void (* __after_morecore_hook)();
3043 int main() { 3053 int main() {
3044 __after_morecore_hook = 0 3054 __after_morecore_hook = 0
3045 ; return 0; } 3055 ; return 0; }
3046 EOF 3056 EOF
3047 if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3057 if { (eval echo configure:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3048 rm -rf conftest* 3058 rm -rf conftest*
3049 echo "$ac_t""yes" 1>&6 3059 echo "$ac_t""yes" 1>&6
3050 else 3060 else
3051 echo "configure: failed program was:" >&5 3061 echo "configure: failed program was:" >&5
3052 cat conftest.$ac_ext >&5 3062 cat conftest.$ac_ext >&5
3101 3111
3102 3112
3103 # Extract the first word of "ranlib", so it can be a program name with args. 3113 # Extract the first word of "ranlib", so it can be a program name with args.
3104 set dummy ranlib; ac_word=$2 3114 set dummy ranlib; ac_word=$2
3105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3106 echo "configure:3107: checking for $ac_word" >&5 3116 echo "configure:3117: checking for $ac_word" >&5
3107 3117
3108 if test -n "$RANLIB"; then 3118 if test -n "$RANLIB"; then
3109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3110 else 3120 else
3111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3156 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3166 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3157 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3158 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3159 # ./install, which can be erroneously created by make from ./install.sh. 3169 # ./install, which can be erroneously created by make from ./install.sh.
3160 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3170 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3161 echo "configure:3162: checking for a BSD compatible install" >&5 3171 echo "configure:3172: checking for a BSD compatible install" >&5
3162 if test -z "$INSTALL"; then 3172 if test -z "$INSTALL"; then
3163 3173
3164 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3174 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3165 for ac_dir in $PATH; do 3175 for ac_dir in $PATH; do
3166 # Account for people who put trailing slashes in PATH elements. 3176 # Account for people who put trailing slashes in PATH elements.
3210 for ac_prog in 'bison -y' byacc 3220 for ac_prog in 'bison -y' byacc
3211 do 3221 do
3212 # Extract the first word of "$ac_prog", so it can be a program name with args. 3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2 3223 set dummy $ac_prog; ac_word=$2
3214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3215 echo "configure:3216: checking for $ac_word" >&5 3225 echo "configure:3226: checking for $ac_word" >&5
3216 3226
3217 if test -n "$YACC"; then 3227 if test -n "$YACC"; then
3218 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3228 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3219 else 3229 else
3220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3242 3252
3243 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 3253 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3244 do 3254 do
3245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_hdr" >&5 3257 echo "configure:3258: checking for $ac_hdr" >&5
3248 3258
3249 cat > conftest.$ac_ext <<EOF 3259 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure" 3260 #line 3261 "configure"
3251 #include "confdefs.h" 3261 #include "confdefs.h"
3252 #include <$ac_hdr> 3262 #include <$ac_hdr>
3253 EOF 3263 EOF
3254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3255 { (eval echo configure:3256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3265 { (eval echo configure:3266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3257 if test -z "$ac_err"; then 3267 if test -z "$ac_err"; then
3258 rm -rf conftest* 3268 rm -rf conftest*
3259 eval "ac_cv_header_$ac_safe=yes" 3269 eval "ac_cv_header_$ac_safe=yes"
3260 else 3270 else
3283 3293
3284 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 3294 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3285 do 3295 do
3286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3288 echo "configure:3289: checking for $ac_hdr" >&5 3298 echo "configure:3299: checking for $ac_hdr" >&5
3289 3299
3290 cat > conftest.$ac_ext <<EOF 3300 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure" 3301 #line 3302 "configure"
3292 #include "confdefs.h" 3302 #include "confdefs.h"
3293 #include <$ac_hdr> 3303 #include <$ac_hdr>
3294 EOF 3304 EOF
3295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3296 { (eval echo configure:3297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3306 { (eval echo configure:3307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3298 if test -z "$ac_err"; then 3308 if test -z "$ac_err"; then
3299 rm -rf conftest* 3309 rm -rf conftest*
3300 eval "ac_cv_header_$ac_safe=yes" 3310 eval "ac_cv_header_$ac_safe=yes"
3301 else 3311 else
3324 3334
3325 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3335 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3326 do 3336 do
3327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3329 echo "configure:3330: checking for $ac_hdr" >&5 3339 echo "configure:3340: checking for $ac_hdr" >&5
3330 3340
3331 cat > conftest.$ac_ext <<EOF 3341 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure" 3342 #line 3343 "configure"
3333 #include "confdefs.h" 3343 #include "confdefs.h"
3334 #include <$ac_hdr> 3344 #include <$ac_hdr>
3335 EOF 3345 EOF
3336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3337 { (eval echo configure:3338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3347 { (eval echo configure:3348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3339 if test -z "$ac_err"; then 3349 if test -z "$ac_err"; then
3340 rm -rf conftest* 3350 rm -rf conftest*
3341 eval "ac_cv_header_$ac_safe=yes" 3351 eval "ac_cv_header_$ac_safe=yes"
3342 else 3352 else
3362 echo "$ac_t""no" 1>&6 3372 echo "$ac_t""no" 1>&6
3363 fi 3373 fi
3364 done 3374 done
3365 3375
3366 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3376 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3367 echo "configure:3368: checking for sys/wait.h that is POSIX.1 compatible" >&5 3377 echo "configure:3378: checking for sys/wait.h that is POSIX.1 compatible" >&5
3368 3378
3369 cat > conftest.$ac_ext <<EOF 3379 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure" 3380 #line 3381 "configure"
3371 #include "confdefs.h" 3381 #include "confdefs.h"
3372 #include <sys/types.h> 3382 #include <sys/types.h>
3373 #include <sys/wait.h> 3383 #include <sys/wait.h>
3374 #ifndef WEXITSTATUS 3384 #ifndef WEXITSTATUS
3375 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3385 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3381 int s; 3391 int s;
3382 wait (&s); 3392 wait (&s);
3383 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3393 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3384 ; return 0; } 3394 ; return 0; }
3385 EOF 3395 EOF
3386 if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3396 if { (eval echo configure:3397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 rm -rf conftest* 3397 rm -rf conftest*
3388 ac_cv_header_sys_wait_h=yes 3398 ac_cv_header_sys_wait_h=yes
3389 else 3399 else
3390 echo "configure: failed program was:" >&5 3400 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5 3401 cat conftest.$ac_ext >&5
3405 } 3415 }
3406 3416
3407 fi 3417 fi
3408 3418
3409 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3419 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3410 echo "configure:3411: checking for ANSI C header files" >&5 3420 echo "configure:3421: checking for ANSI C header files" >&5
3411 3421
3412 cat > conftest.$ac_ext <<EOF 3422 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure" 3423 #line 3424 "configure"
3414 #include "confdefs.h" 3424 #include "confdefs.h"
3415 #include <stdlib.h> 3425 #include <stdlib.h>
3416 #include <stdarg.h> 3426 #include <stdarg.h>
3417 #include <string.h> 3427 #include <string.h>
3418 #include <float.h> 3428 #include <float.h>
3419 EOF 3429 EOF
3420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3421 { (eval echo configure:3422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3431 { (eval echo configure:3432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3423 if test -z "$ac_err"; then 3433 if test -z "$ac_err"; then
3424 rm -rf conftest* 3434 rm -rf conftest*
3425 ac_cv_header_stdc=yes 3435 ac_cv_header_stdc=yes
3426 else 3436 else
3433 rm -f conftest* 3443 rm -f conftest*
3434 3444
3435 if test $ac_cv_header_stdc = yes; then 3445 if test $ac_cv_header_stdc = yes; then
3436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3437 cat > conftest.$ac_ext <<EOF 3447 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure" 3448 #line 3449 "configure"
3439 #include "confdefs.h" 3449 #include "confdefs.h"
3440 #include <string.h> 3450 #include <string.h>
3441 EOF 3451 EOF
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 egrep "memchr" >/dev/null 2>&1; then 3453 egrep "memchr" >/dev/null 2>&1; then
3451 fi 3461 fi
3452 3462
3453 if test $ac_cv_header_stdc = yes; then 3463 if test $ac_cv_header_stdc = yes; then
3454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3455 cat > conftest.$ac_ext <<EOF 3465 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure" 3466 #line 3467 "configure"
3457 #include "confdefs.h" 3467 #include "confdefs.h"
3458 #include <stdlib.h> 3468 #include <stdlib.h>
3459 EOF 3469 EOF
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 egrep "free" >/dev/null 2>&1; then 3471 egrep "free" >/dev/null 2>&1; then
3469 fi 3479 fi
3470 3480
3471 if test $ac_cv_header_stdc = yes; then 3481 if test $ac_cv_header_stdc = yes; then
3472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3473 cat > conftest.$ac_ext <<EOF 3483 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure" 3484 #line 3485 "configure"
3475 #include "confdefs.h" 3485 #include "confdefs.h"
3476 #include <ctype.h> 3486 #include <ctype.h>
3477 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3487 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3478 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3488 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480 int main () { int i; for (i = 0; i < 256; i++) 3490 int main () { int i; for (i = 0; i < 256; i++)
3481 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3491 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3482 exit (0); } 3492 exit (0); }
3483 3493
3484 EOF 3494 EOF
3485 if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3495 if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3486 then 3496 then
3487 : 3497 :
3488 else 3498 else
3489 conftest_rc="$?" 3499 conftest_rc="$?"
3490 echo "configure: failed program was:" >&5 3500 echo "configure: failed program was:" >&5
3506 } 3516 }
3507 3517
3508 fi 3518 fi
3509 3519
3510 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3520 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3511 echo "configure:3512: checking whether time.h and sys/time.h may both be included" >&5 3521 echo "configure:3522: checking whether time.h and sys/time.h may both be included" >&5
3512 3522
3513 cat > conftest.$ac_ext <<EOF 3523 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure" 3524 #line 3525 "configure"
3515 #include "confdefs.h" 3525 #include "confdefs.h"
3516 #include <sys/types.h> 3526 #include <sys/types.h>
3517 #include <sys/time.h> 3527 #include <sys/time.h>
3518 #include <time.h> 3528 #include <time.h>
3519 int main() { 3529 int main() {
3520 struct tm *tp; 3530 struct tm *tp;
3521 ; return 0; } 3531 ; return 0; }
3522 EOF 3532 EOF
3523 if { (eval echo configure:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3533 if { (eval echo configure:3534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3524 rm -rf conftest* 3534 rm -rf conftest*
3525 ac_cv_header_time=yes 3535 ac_cv_header_time=yes
3526 else 3536 else
3527 echo "configure: failed program was:" >&5 3537 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5 3538 cat conftest.$ac_ext >&5
3542 } 3552 }
3543 3553
3544 fi 3554 fi
3545 3555
3546 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3556 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3547 echo "configure:3548: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3557 echo "configure:3558: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3548 3558
3549 cat > conftest.$ac_ext <<EOF 3559 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure" 3560 #line 3561 "configure"
3551 #include "confdefs.h" 3561 #include "confdefs.h"
3552 #include <sys/types.h> 3562 #include <sys/types.h>
3553 #include <signal.h> 3563 #include <signal.h>
3554 /* NetBSD declares sys_siglist in unistd.h. */ 3564 /* NetBSD declares sys_siglist in unistd.h. */
3555 #ifdef HAVE_UNISTD_H 3565 #ifdef HAVE_UNISTD_H
3557 #endif 3567 #endif
3558 int main() { 3568 int main() {
3559 char *msg = *(sys_siglist + 1); 3569 char *msg = *(sys_siglist + 1);
3560 ; return 0; } 3570 ; return 0; }
3561 EOF 3571 EOF
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3563 rm -rf conftest* 3573 rm -rf conftest*
3564 ac_cv_decl_sys_siglist=yes 3574 ac_cv_decl_sys_siglist=yes
3565 else 3575 else
3566 echo "configure: failed program was:" >&5 3576 echo "configure: failed program was:" >&5
3567 cat conftest.$ac_ext >&5 3577 cat conftest.$ac_ext >&5
3582 3592
3583 fi 3593 fi
3584 3594
3585 3595
3586 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3596 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3587 echo "configure:3588: checking for struct utimbuf" >&5 3597 echo "configure:3598: checking for struct utimbuf" >&5
3588 cat > conftest.$ac_ext <<EOF 3598 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure" 3599 #line 3600 "configure"
3590 #include "confdefs.h" 3600 #include "confdefs.h"
3591 #ifdef TIME_WITH_SYS_TIME 3601 #ifdef TIME_WITH_SYS_TIME
3592 #include <sys/time.h> 3602 #include <sys/time.h>
3593 #include <time.h> 3603 #include <time.h>
3594 #else 3604 #else
3603 #endif 3613 #endif
3604 int main() { 3614 int main() {
3605 static struct utimbuf x; x.actime = x.modtime; 3615 static struct utimbuf x; x.actime = x.modtime;
3606 ; return 0; } 3616 ; return 0; }
3607 EOF 3617 EOF
3608 if { (eval echo configure:3609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3618 if { (eval echo configure:3619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3609 rm -rf conftest* 3619 rm -rf conftest*
3610 echo "$ac_t""yes" 1>&6 3620 echo "$ac_t""yes" 1>&6
3611 { test "$extra_verbose" = "yes" && cat << \EOF 3621 { test "$extra_verbose" = "yes" && cat << \EOF
3612 Defining HAVE_STRUCT_UTIMBUF 3622 Defining HAVE_STRUCT_UTIMBUF
3613 EOF 3623 EOF
3623 echo "$ac_t""no" 1>&6 3633 echo "$ac_t""no" 1>&6
3624 fi 3634 fi
3625 rm -f conftest* 3635 rm -f conftest*
3626 3636
3627 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3637 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3628 echo "configure:3629: checking return type of signal handlers" >&5 3638 echo "configure:3639: checking return type of signal handlers" >&5
3629 3639
3630 cat > conftest.$ac_ext <<EOF 3640 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure" 3641 #line 3642 "configure"
3632 #include "confdefs.h" 3642 #include "confdefs.h"
3633 #include <sys/types.h> 3643 #include <sys/types.h>
3634 #include <signal.h> 3644 #include <signal.h>
3635 #ifdef signal 3645 #ifdef signal
3636 #undef signal 3646 #undef signal
3643 3653
3644 int main() { 3654 int main() {
3645 int i; 3655 int i;
3646 ; return 0; } 3656 ; return 0; }
3647 EOF 3657 EOF
3648 if { (eval echo configure:3649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3649 rm -rf conftest* 3659 rm -rf conftest*
3650 ac_cv_type_signal=void 3660 ac_cv_type_signal=void
3651 else 3661 else
3652 echo "configure: failed program was:" >&5 3662 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5 3663 cat conftest.$ac_ext >&5
3665 EOF 3675 EOF
3666 } 3676 }
3667 3677
3668 3678
3669 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3679 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3670 echo "configure:3671: checking for size_t" >&5 3680 echo "configure:3681: checking for size_t" >&5
3671 3681
3672 cat > conftest.$ac_ext <<EOF 3682 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure" 3683 #line 3684 "configure"
3674 #include "confdefs.h" 3684 #include "confdefs.h"
3675 #include <sys/types.h> 3685 #include <sys/types.h>
3676 #if STDC_HEADERS 3686 #if STDC_HEADERS
3677 #include <stdlib.h> 3687 #include <stdlib.h>
3678 #include <stddef.h> 3688 #include <stddef.h>
3699 } 3709 }
3700 3710
3701 fi 3711 fi
3702 3712
3703 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3713 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3704 echo "configure:3705: checking for pid_t" >&5 3714 echo "configure:3715: checking for pid_t" >&5
3705 3715
3706 cat > conftest.$ac_ext <<EOF 3716 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure" 3717 #line 3718 "configure"
3708 #include "confdefs.h" 3718 #include "confdefs.h"
3709 #include <sys/types.h> 3719 #include <sys/types.h>
3710 #if STDC_HEADERS 3720 #if STDC_HEADERS
3711 #include <stdlib.h> 3721 #include <stdlib.h>
3712 #include <stddef.h> 3722 #include <stddef.h>
3733 } 3743 }
3734 3744
3735 fi 3745 fi
3736 3746
3737 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3747 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3738 echo "configure:3739: checking for uid_t in sys/types.h" >&5 3748 echo "configure:3749: checking for uid_t in sys/types.h" >&5
3739 3749
3740 cat > conftest.$ac_ext <<EOF 3750 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure" 3751 #line 3752 "configure"
3742 #include "confdefs.h" 3752 #include "confdefs.h"
3743 #include <sys/types.h> 3753 #include <sys/types.h>
3744 EOF 3754 EOF
3745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746 egrep "uid_t" >/dev/null 2>&1; then 3756 egrep "uid_t" >/dev/null 2>&1; then
3772 } 3782 }
3773 3783
3774 fi 3784 fi
3775 3785
3776 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3786 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3777 echo "configure:3778: checking for mode_t" >&5 3787 echo "configure:3788: checking for mode_t" >&5
3778 3788
3779 cat > conftest.$ac_ext <<EOF 3789 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure" 3790 #line 3791 "configure"
3781 #include "confdefs.h" 3791 #include "confdefs.h"
3782 #include <sys/types.h> 3792 #include <sys/types.h>
3783 #if STDC_HEADERS 3793 #if STDC_HEADERS
3784 #include <stdlib.h> 3794 #include <stdlib.h>
3785 #include <stddef.h> 3795 #include <stddef.h>
3806 } 3816 }
3807 3817
3808 fi 3818 fi
3809 3819
3810 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3820 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3811 echo "configure:3812: checking for off_t" >&5 3821 echo "configure:3822: checking for off_t" >&5
3812 3822
3813 cat > conftest.$ac_ext <<EOF 3823 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure" 3824 #line 3825 "configure"
3815 #include "confdefs.h" 3825 #include "confdefs.h"
3816 #include <sys/types.h> 3826 #include <sys/types.h>
3817 #if STDC_HEADERS 3827 #if STDC_HEADERS
3818 #include <stdlib.h> 3828 #include <stdlib.h>
3819 #include <stddef.h> 3829 #include <stddef.h>
3840 } 3850 }
3841 3851
3842 fi 3852 fi
3843 3853
3844 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 3854 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3845 echo "configure:3846: checking for ssize_t" >&5 3855 echo "configure:3856: checking for ssize_t" >&5
3846 3856
3847 cat > conftest.$ac_ext <<EOF 3857 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure" 3858 #line 3859 "configure"
3849 #include "confdefs.h" 3859 #include "confdefs.h"
3850 #include <sys/types.h> 3860 #include <sys/types.h>
3851 #if STDC_HEADERS 3861 #if STDC_HEADERS
3852 #include <stdlib.h> 3862 #include <stdlib.h>
3853 #include <stddef.h> 3863 #include <stddef.h>
3875 3885
3876 fi 3886 fi
3877 3887
3878 3888
3879 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3889 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3880 echo "configure:3881: checking for struct timeval" >&5 3890 echo "configure:3891: checking for struct timeval" >&5
3881 cat > conftest.$ac_ext <<EOF 3891 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure" 3892 #line 3893 "configure"
3883 #include "confdefs.h" 3893 #include "confdefs.h"
3884 #ifdef TIME_WITH_SYS_TIME 3894 #ifdef TIME_WITH_SYS_TIME
3885 #include <sys/time.h> 3895 #include <sys/time.h>
3886 #include <time.h> 3896 #include <time.h>
3887 #else 3897 #else
3893 #endif 3903 #endif
3894 int main() { 3904 int main() {
3895 static struct timeval x; x.tv_sec = x.tv_usec; 3905 static struct timeval x; x.tv_sec = x.tv_usec;
3896 ; return 0; } 3906 ; return 0; }
3897 EOF 3907 EOF
3898 if { (eval echo configure:3899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3899 rm -rf conftest* 3909 rm -rf conftest*
3900 echo "$ac_t""yes" 1>&6 3910 echo "$ac_t""yes" 1>&6
3901 HAVE_TIMEVAL=yes 3911 HAVE_TIMEVAL=yes
3902 { test "$extra_verbose" = "yes" && cat << \EOF 3912 { test "$extra_verbose" = "yes" && cat << \EOF
3903 Defining HAVE_TIMEVAL 3913 Defining HAVE_TIMEVAL
3915 HAVE_TIMEVAL=no 3925 HAVE_TIMEVAL=no
3916 fi 3926 fi
3917 rm -f conftest* 3927 rm -f conftest*
3918 3928
3919 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3929 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3920 echo "configure:3921: checking whether struct tm is in sys/time.h or time.h" >&5 3930 echo "configure:3931: checking whether struct tm is in sys/time.h or time.h" >&5
3921 3931
3922 cat > conftest.$ac_ext <<EOF 3932 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure" 3933 #line 3934 "configure"
3924 #include "confdefs.h" 3934 #include "confdefs.h"
3925 #include <sys/types.h> 3935 #include <sys/types.h>
3926 #include <time.h> 3936 #include <time.h>
3927 int main() { 3937 int main() {
3928 struct tm *tp; tp->tm_sec; 3938 struct tm *tp; tp->tm_sec;
3929 ; return 0; } 3939 ; return 0; }
3930 EOF 3940 EOF
3931 if { (eval echo configure:3932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3941 if { (eval echo configure:3942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932 rm -rf conftest* 3942 rm -rf conftest*
3933 ac_cv_struct_tm=time.h 3943 ac_cv_struct_tm=time.h
3934 else 3944 else
3935 echo "configure: failed program was:" >&5 3945 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5 3946 cat conftest.$ac_ext >&5
3950 } 3960 }
3951 3961
3952 fi 3962 fi
3953 3963
3954 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3964 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3955 echo "configure:3956: checking for tm_zone in struct tm" >&5 3965 echo "configure:3966: checking for tm_zone in struct tm" >&5
3956 3966
3957 cat > conftest.$ac_ext <<EOF 3967 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure" 3968 #line 3969 "configure"
3959 #include "confdefs.h" 3969 #include "confdefs.h"
3960 #include <sys/types.h> 3970 #include <sys/types.h>
3961 #include <$ac_cv_struct_tm> 3971 #include <$ac_cv_struct_tm>
3962 int main() { 3972 int main() {
3963 struct tm tm; tm.tm_zone; 3973 struct tm tm; tm.tm_zone;
3964 ; return 0; } 3974 ; return 0; }
3965 EOF 3975 EOF
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3976 if { (eval echo configure:3977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3967 rm -rf conftest* 3977 rm -rf conftest*
3968 ac_cv_struct_tm_zone=yes 3978 ac_cv_struct_tm_zone=yes
3969 else 3979 else
3970 echo "configure: failed program was:" >&5 3980 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5 3981 cat conftest.$ac_ext >&5
3984 EOF 3994 EOF
3985 } 3995 }
3986 3996
3987 else 3997 else
3988 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3998 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3989 echo "configure:3990: checking for tzname" >&5 3999 echo "configure:4000: checking for tzname" >&5
3990 4000
3991 cat > conftest.$ac_ext <<EOF 4001 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure" 4002 #line 4003 "configure"
3993 #include "confdefs.h" 4003 #include "confdefs.h"
3994 #include <time.h> 4004 #include <time.h>
3995 #ifndef tzname /* For SGI. */ 4005 #ifndef tzname /* For SGI. */
3996 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4006 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3997 #endif 4007 #endif
3998 int main() { 4008 int main() {
3999 atoi(*tzname); 4009 atoi(*tzname);
4000 ; return 0; } 4010 ; return 0; }
4001 EOF 4011 EOF
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 rm -rf conftest* 4013 rm -rf conftest*
4004 ac_cv_var_tzname=yes 4014 ac_cv_var_tzname=yes
4005 else 4015 else
4006 echo "configure: failed program was:" >&5 4016 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5 4017 cat conftest.$ac_ext >&5
4023 fi 4033 fi
4024 fi 4034 fi
4025 4035
4026 4036
4027 echo $ac_n "checking for working const""... $ac_c" 1>&6 4037 echo $ac_n "checking for working const""... $ac_c" 1>&6
4028 echo "configure:4029: checking for working const" >&5 4038 echo "configure:4039: checking for working const" >&5
4029 4039
4030 cat > conftest.$ac_ext <<EOF 4040 cat > conftest.$ac_ext <<EOF
4031 #line 4032 "configure" 4041 #line 4042 "configure"
4032 #include "confdefs.h" 4042 #include "confdefs.h"
4033 4043
4034 int main() { 4044 int main() {
4035 4045
4036 /* Ultrix mips cc rejects this. */ 4046 /* Ultrix mips cc rejects this. */
4075 const int foo = 10; 4085 const int foo = 10;
4076 } 4086 }
4077 4087
4078 ; return 0; } 4088 ; return 0; }
4079 EOF 4089 EOF
4080 if { (eval echo configure:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4090 if { (eval echo configure:4091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 rm -rf conftest* 4091 rm -rf conftest*
4082 ac_cv_c_const=yes 4092 ac_cv_c_const=yes
4083 else 4093 else
4084 echo "configure: failed program was:" >&5 4094 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5 4095 cat conftest.$ac_ext >&5
4100 4110
4101 fi 4111 fi
4102 4112
4103 4113
4104 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4114 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4105 echo "configure:4106: checking whether ${MAKE-make} sets \${MAKE}" >&5 4115 echo "configure:4116: checking whether ${MAKE-make} sets \${MAKE}" >&5
4106 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4116 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4107 4117
4108 cat > conftestmake <<\EOF 4118 cat > conftestmake <<\EOF
4109 all: 4119 all:
4110 @echo 'ac_maketemp="${MAKE}"' 4120 @echo 'ac_maketemp="${MAKE}"'
4125 SET_MAKE="MAKE=${MAKE-make}" 4135 SET_MAKE="MAKE=${MAKE-make}"
4126 fi 4136 fi
4127 4137
4128 4138
4129 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4139 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4130 echo "configure:4131: checking whether byte ordering is bigendian" >&5 4140 echo "configure:4141: checking whether byte ordering is bigendian" >&5
4131 4141
4132 ac_cv_c_bigendian=unknown 4142 ac_cv_c_bigendian=unknown
4133 # See if sys/param.h defines the BYTE_ORDER macro. 4143 # See if sys/param.h defines the BYTE_ORDER macro.
4134 cat > conftest.$ac_ext <<EOF 4144 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure" 4145 #line 4146 "configure"
4136 #include "confdefs.h" 4146 #include "confdefs.h"
4137 #include <sys/types.h> 4147 #include <sys/types.h>
4138 #include <sys/param.h> 4148 #include <sys/param.h>
4139 int main() { 4149 int main() {
4140 4150
4141 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4142 bogus endian macros 4152 bogus endian macros
4143 #endif 4153 #endif
4144 ; return 0; } 4154 ; return 0; }
4145 EOF 4155 EOF
4146 if { (eval echo configure:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4156 if { (eval echo configure:4157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4147 rm -rf conftest* 4157 rm -rf conftest*
4148 # It does; now see whether it defined to BIG_ENDIAN or not. 4158 # It does; now see whether it defined to BIG_ENDIAN or not.
4149 cat > conftest.$ac_ext <<EOF 4159 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure" 4160 #line 4161 "configure"
4151 #include "confdefs.h" 4161 #include "confdefs.h"
4152 #include <sys/types.h> 4162 #include <sys/types.h>
4153 #include <sys/param.h> 4163 #include <sys/param.h>
4154 int main() { 4164 int main() {
4155 4165
4156 #if BYTE_ORDER != BIG_ENDIAN 4166 #if BYTE_ORDER != BIG_ENDIAN
4157 not big endian 4167 not big endian
4158 #endif 4168 #endif
4159 ; return 0; } 4169 ; return 0; }
4160 EOF 4170 EOF
4161 if { (eval echo configure:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4171 if { (eval echo configure:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4162 rm -rf conftest* 4172 rm -rf conftest*
4163 ac_cv_c_bigendian=yes 4173 ac_cv_c_bigendian=yes
4164 else 4174 else
4165 echo "configure: failed program was:" >&5 4175 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5 4176 cat conftest.$ac_ext >&5
4173 cat conftest.$ac_ext >&5 4183 cat conftest.$ac_ext >&5
4174 fi 4184 fi
4175 rm -f conftest* 4185 rm -f conftest*
4176 if test $ac_cv_c_bigendian = unknown; then 4186 if test $ac_cv_c_bigendian = unknown; then
4177 cat > conftest.$ac_ext <<EOF 4187 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure" 4188 #line 4189 "configure"
4179 #include "confdefs.h" 4189 #include "confdefs.h"
4180 main () { 4190 main () {
4181 /* Are we little or big endian? From Harbison&Steele. */ 4191 /* Are we little or big endian? From Harbison&Steele. */
4182 union 4192 union
4183 { 4193 {
4186 } u; 4196 } u;
4187 u.l = 1; 4197 u.l = 1;
4188 exit (u.c[sizeof (long) - 1] == 1); 4198 exit (u.c[sizeof (long) - 1] == 1);
4189 } 4199 }
4190 EOF 4200 EOF
4191 if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4192 then 4202 then
4193 ac_cv_c_bigendian=no 4203 ac_cv_c_bigendian=no
4194 else 4204 else
4195 conftest_rc="$?" 4205 conftest_rc="$?"
4196 echo "configure: failed program was:" >&5 4206 echo "configure: failed program was:" >&5
4213 4223
4214 fi 4224 fi
4215 4225
4216 4226
4217 echo $ac_n "checking size of short""... $ac_c" 1>&6 4227 echo $ac_n "checking size of short""... $ac_c" 1>&6
4218 echo "configure:4219: checking size of short" >&5 4228 echo "configure:4229: checking size of short" >&5
4219 4229
4220 cat > conftest.$ac_ext <<EOF 4230 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure" 4231 #line 4232 "configure"
4222 #include "confdefs.h" 4232 #include "confdefs.h"
4223 #include <stdio.h> 4233 #include <stdio.h>
4224 main() 4234 main()
4225 { 4235 {
4226 FILE *f=fopen("conftestval", "w"); 4236 FILE *f=fopen("conftestval", "w");
4227 if (!f) exit(1); 4237 if (!f) exit(1);
4228 fprintf(f, "%d\n", sizeof(short)); 4238 fprintf(f, "%d\n", sizeof(short));
4229 exit(0); 4239 exit(0);
4230 } 4240 }
4231 EOF 4241 EOF
4232 if { (eval echo configure:4233: \"$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
4233 then 4243 then
4234 ac_cv_sizeof_short=`cat conftestval` 4244 ac_cv_sizeof_short=`cat conftestval`
4235 else 4245 else
4236 conftest_rc="$?" 4246 conftest_rc="$?"
4237 echo "configure: failed program was:" >&5 4247 echo "configure: failed program was:" >&5
4255 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4265 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4256 echo "*** PANIC *** Please examine config.log for compilation errors." 4266 echo "*** PANIC *** Please examine config.log for compilation errors."
4257 exit 1 4267 exit 1
4258 fi 4268 fi
4259 echo $ac_n "checking size of int""... $ac_c" 1>&6 4269 echo $ac_n "checking size of int""... $ac_c" 1>&6
4260 echo "configure:4261: checking size of int" >&5 4270 echo "configure:4271: checking size of int" >&5
4261 4271
4262 cat > conftest.$ac_ext <<EOF 4272 cat > conftest.$ac_ext <<EOF
4263 #line 4264 "configure" 4273 #line 4274 "configure"
4264 #include "confdefs.h" 4274 #include "confdefs.h"
4265 #include <stdio.h> 4275 #include <stdio.h>
4266 main() 4276 main()
4267 { 4277 {
4268 FILE *f=fopen("conftestval", "w"); 4278 FILE *f=fopen("conftestval", "w");
4269 if (!f) exit(1); 4279 if (!f) exit(1);
4270 fprintf(f, "%d\n", sizeof(int)); 4280 fprintf(f, "%d\n", sizeof(int));
4271 exit(0); 4281 exit(0);
4272 } 4282 }
4273 EOF 4283 EOF
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4275 then 4285 then
4276 ac_cv_sizeof_int=`cat conftestval` 4286 ac_cv_sizeof_int=`cat conftestval`
4277 else 4287 else
4278 conftest_rc="$?" 4288 conftest_rc="$?"
4279 echo "configure: failed program was:" >&5 4289 echo "configure: failed program was:" >&5
4291 EOF 4301 EOF
4292 } 4302 }
4293 4303
4294 4304
4295 echo $ac_n "checking size of long""... $ac_c" 1>&6 4305 echo $ac_n "checking size of long""... $ac_c" 1>&6
4296 echo "configure:4297: checking size of long" >&5 4306 echo "configure:4307: checking size of long" >&5
4297 4307
4298 cat > conftest.$ac_ext <<EOF 4308 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure" 4309 #line 4310 "configure"
4300 #include "confdefs.h" 4310 #include "confdefs.h"
4301 #include <stdio.h> 4311 #include <stdio.h>
4302 main() 4312 main()
4303 { 4313 {
4304 FILE *f=fopen("conftestval", "w"); 4314 FILE *f=fopen("conftestval", "w");
4305 if (!f) exit(1); 4315 if (!f) exit(1);
4306 fprintf(f, "%d\n", sizeof(long)); 4316 fprintf(f, "%d\n", sizeof(long));
4307 exit(0); 4317 exit(0);
4308 } 4318 }
4309 EOF 4319 EOF
4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4311 then 4321 then
4312 ac_cv_sizeof_long=`cat conftestval` 4322 ac_cv_sizeof_long=`cat conftestval`
4313 else 4323 else
4314 conftest_rc="$?" 4324 conftest_rc="$?"
4315 echo "configure: failed program was:" >&5 4325 echo "configure: failed program was:" >&5
4327 EOF 4337 EOF
4328 } 4338 }
4329 4339
4330 4340
4331 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4341 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4332 echo "configure:4333: checking size of long long" >&5 4342 echo "configure:4343: checking size of long long" >&5
4333 4343
4334 cat > conftest.$ac_ext <<EOF 4344 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure" 4345 #line 4346 "configure"
4336 #include "confdefs.h" 4346 #include "confdefs.h"
4337 #include <stdio.h> 4347 #include <stdio.h>
4338 main() 4348 main()
4339 { 4349 {
4340 FILE *f=fopen("conftestval", "w"); 4350 FILE *f=fopen("conftestval", "w");
4341 if (!f) exit(1); 4351 if (!f) exit(1);
4342 fprintf(f, "%d\n", sizeof(long long)); 4352 fprintf(f, "%d\n", sizeof(long long));
4343 exit(0); 4353 exit(0);
4344 } 4354 }
4345 EOF 4355 EOF
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4347 then 4357 then
4348 ac_cv_sizeof_long_long=`cat conftestval` 4358 ac_cv_sizeof_long_long=`cat conftestval`
4349 else 4359 else
4350 conftest_rc="$?" 4360 conftest_rc="$?"
4351 echo "configure: failed program was:" >&5 4361 echo "configure: failed program was:" >&5
4363 EOF 4373 EOF
4364 } 4374 }
4365 4375
4366 4376
4367 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4377 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4368 echo "configure:4369: checking size of void *" >&5 4378 echo "configure:4379: checking size of void *" >&5
4369 4379
4370 cat > conftest.$ac_ext <<EOF 4380 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure" 4381 #line 4382 "configure"
4372 #include "confdefs.h" 4382 #include "confdefs.h"
4373 #include <stdio.h> 4383 #include <stdio.h>
4374 main() 4384 main()
4375 { 4385 {
4376 FILE *f=fopen("conftestval", "w"); 4386 FILE *f=fopen("conftestval", "w");
4377 if (!f) exit(1); 4387 if (!f) exit(1);
4378 fprintf(f, "%d\n", sizeof(void *)); 4388 fprintf(f, "%d\n", sizeof(void *));
4379 exit(0); 4389 exit(0);
4380 } 4390 }
4381 EOF 4391 EOF
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4383 then 4393 then
4384 ac_cv_sizeof_void_p=`cat conftestval` 4394 ac_cv_sizeof_void_p=`cat conftestval`
4385 else 4395 else
4386 conftest_rc="$?" 4396 conftest_rc="$?"
4387 echo "configure: failed program was:" >&5 4397 echo "configure: failed program was:" >&5
4400 } 4410 }
4401 4411
4402 4412
4403 4413
4404 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4414 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4405 echo "configure:4406: checking for long file names" >&5 4415 echo "configure:4416: checking for long file names" >&5
4406 4416
4407 ac_cv_sys_long_file_names=yes 4417 ac_cv_sys_long_file_names=yes
4408 # Test for long file names in all the places we know might matter: 4418 # Test for long file names in all the places we know might matter:
4409 # . the current directory, where building will happen 4419 # . the current directory, where building will happen
4410 # $prefix/lib where we will be installing things 4420 # $prefix/lib where we will be installing things
4446 4456
4447 fi 4457 fi
4448 4458
4449 4459
4450 echo $ac_n "checking for sin""... $ac_c" 1>&6 4460 echo $ac_n "checking for sin""... $ac_c" 1>&6
4451 echo "configure:4452: checking for sin" >&5 4461 echo "configure:4462: checking for sin" >&5
4452 4462
4453 cat > conftest.$ac_ext <<EOF 4463 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure" 4464 #line 4465 "configure"
4455 #include "confdefs.h" 4465 #include "confdefs.h"
4456 /* System header to define __stub macros and hopefully few prototypes, 4466 /* System header to define __stub macros and hopefully few prototypes,
4457 which can conflict with char sin(); below. */ 4467 which can conflict with char sin(); below. */
4458 #include <assert.h> 4468 #include <assert.h>
4459 /* Override any gcc2 internal prototype to avoid an error. */ 4469 /* Override any gcc2 internal prototype to avoid an error. */
4472 sin(); 4482 sin();
4473 #endif 4483 #endif
4474 4484
4475 ; return 0; } 4485 ; return 0; }
4476 EOF 4486 EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 rm -rf conftest* 4488 rm -rf conftest*
4479 eval "ac_cv_func_sin=yes" 4489 eval "ac_cv_func_sin=yes"
4480 else 4490 else
4481 echo "configure: failed program was:" >&5 4491 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5 4492 cat conftest.$ac_ext >&5
4490 : 4500 :
4491 else 4501 else
4492 echo "$ac_t""no" 1>&6 4502 echo "$ac_t""no" 1>&6
4493 4503
4494 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4504 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4495 echo "configure:4496: checking for sin in -lm" >&5 4505 echo "configure:4506: checking for sin in -lm" >&5
4496 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4506 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4497 4507
4498 xe_check_libs=" -lm " 4508 xe_check_libs=" -lm "
4499 cat > conftest.$ac_ext <<EOF 4509 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure" 4510 #line 4511 "configure"
4501 #include "confdefs.h" 4511 #include "confdefs.h"
4502 /* Override any gcc2 internal prototype to avoid an error. */ 4512 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2 4513 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */ 4514 builtin and then its argument prototype would still apply. */
4505 char sin(); 4515 char sin();
4506 4516
4507 int main() { 4517 int main() {
4508 sin() 4518 sin()
4509 ; return 0; } 4519 ; return 0; }
4510 EOF 4520 EOF
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512 rm -rf conftest* 4522 rm -rf conftest*
4513 eval "ac_cv_lib_$ac_lib_var=yes" 4523 eval "ac_cv_lib_$ac_lib_var=yes"
4514 else 4524 else
4515 echo "configure: failed program was:" >&5 4525 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5 4526 cat conftest.$ac_ext >&5
4550 EOF 4560 EOF
4551 } 4561 }
4552 4562
4553 4563
4554 cat > conftest.$ac_ext <<EOF 4564 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure" 4565 #line 4566 "configure"
4556 #include "confdefs.h" 4566 #include "confdefs.h"
4557 #include <math.h> 4567 #include <math.h>
4558 int main() { 4568 int main() {
4559 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4569 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4560 ; return 0; } 4570 ; return 0; }
4561 EOF 4571 EOF
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4563 rm -rf conftest* 4573 rm -rf conftest*
4564 { test "$extra_verbose" = "yes" && cat << \EOF 4574 { test "$extra_verbose" = "yes" && cat << \EOF
4565 Defining HAVE_INVERSE_HYPERBOLIC 4575 Defining HAVE_INVERSE_HYPERBOLIC
4566 EOF 4576 EOF
4567 cat >> confdefs.h <<\EOF 4577 cat >> confdefs.h <<\EOF
4574 cat conftest.$ac_ext >&5 4584 cat conftest.$ac_ext >&5
4575 fi 4585 fi
4576 rm -f conftest* 4586 rm -f conftest*
4577 4587
4578 echo "checking type of mail spool file locking" 1>&6 4588 echo "checking type of mail spool file locking" 1>&6
4579 echo "configure:4580: checking type of mail spool file locking" >&5 4589 echo "configure:4590: checking type of mail spool file locking" >&5
4580 for ac_func in lockf flock 4590 for ac_func in lockf flock
4581 do 4591 do
4582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_func" >&5 4593 echo "configure:4594: checking for $ac_func" >&5
4584 4594
4585 cat > conftest.$ac_ext <<EOF 4595 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure" 4596 #line 4597 "configure"
4587 #include "confdefs.h" 4597 #include "confdefs.h"
4588 /* System header to define __stub macros and hopefully few prototypes, 4598 /* System header to define __stub macros and hopefully few prototypes,
4589 which can conflict with char $ac_func(); below. */ 4599 which can conflict with char $ac_func(); below. */
4590 #include <assert.h> 4600 #include <assert.h>
4591 /* Override any gcc2 internal prototype to avoid an error. */ 4601 /* Override any gcc2 internal prototype to avoid an error. */
4604 $ac_func(); 4614 $ac_func();
4605 #endif 4615 #endif
4606 4616
4607 ; return 0; } 4617 ; return 0; }
4608 EOF 4618 EOF
4609 if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4610 rm -rf conftest* 4620 rm -rf conftest*
4611 eval "ac_cv_func_$ac_func=yes" 4621 eval "ac_cv_func_$ac_func=yes"
4612 else 4622 else
4613 echo "configure: failed program was:" >&5 4623 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5 4624 cat conftest.$ac_ext >&5
4677 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 4687 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4678 4688
4679 case "$opsys" in decosf*) 4689 case "$opsys" in decosf*)
4680 4690
4681 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4691 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4682 echo "configure:4683: checking for cma_open in -lpthreads" >&5 4692 echo "configure:4693: checking for cma_open in -lpthreads" >&5
4683 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4693 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4684 4694
4685 xe_check_libs=" -lpthreads " 4695 xe_check_libs=" -lpthreads "
4686 cat > conftest.$ac_ext <<EOF 4696 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure" 4697 #line 4698 "configure"
4688 #include "confdefs.h" 4698 #include "confdefs.h"
4689 /* Override any gcc2 internal prototype to avoid an error. */ 4699 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2 4700 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */ 4701 builtin and then its argument prototype would still apply. */
4692 char cma_open(); 4702 char cma_open();
4693 4703
4694 int main() { 4704 int main() {
4695 cma_open() 4705 cma_open()
4696 ; return 0; } 4706 ; return 0; }
4697 EOF 4707 EOF
4698 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4699 rm -rf conftest* 4709 rm -rf conftest*
4700 eval "ac_cv_lib_$ac_lib_var=yes" 4710 eval "ac_cv_lib_$ac_lib_var=yes"
4701 else 4711 else
4702 echo "configure: failed program was:" >&5 4712 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5 4713 cat conftest.$ac_ext >&5
4729 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4739 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4730 c_switch_site="$c_switch_site -threads" ;; 4740 c_switch_site="$c_switch_site -threads" ;;
4731 esac 4741 esac
4732 4742
4733 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4743 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4734 echo "configure:4735: checking whether the -xildoff compiler flag is required" >&5 4744 echo "configure:4745: checking whether the -xildoff compiler flag is required" >&5
4735 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4745 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4736 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4746 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4737 then echo "$ac_t""no" 1>&6; 4747 then echo "$ac_t""no" 1>&6;
4738 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 4748 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
4739 fi 4749 fi
4740 else echo "$ac_t""no" 1>&6 4750 else echo "$ac_t""no" 1>&6
4741 fi 4751 fi
4742 4752
4743 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4753 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4744 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4754 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4745 echo "configure:4746: checking for \"-z ignore\" linker flag" >&5 4755 echo "configure:4756: checking for \"-z ignore\" linker flag" >&5
4746 case "`ld -h 2>&1`" in 4756 case "`ld -h 2>&1`" in
4747 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4757 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4748 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4758 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4749 *) echo "$ac_t""no" 1>&6 ;; 4759 *) echo "$ac_t""no" 1>&6 ;;
4750 esac 4760 esac
4751 fi 4761 fi
4752 4762
4753 4763
4754 echo "checking "for specified window system"" 1>&6 4764 echo "checking "for specified window system"" 1>&6
4755 echo "configure:4756: checking "for specified window system"" >&5 4765 echo "configure:4766: checking "for specified window system"" >&5
4756 4766
4757 if test "$with_x11" != "no"; then 4767 if test "$with_x11" != "no"; then
4758 test "$x_includes $x_libraries" != "NONE NONE" && \ 4768 test "$x_includes $x_libraries" != "NONE NONE" && \
4759 window_system=x11 with_x11=yes 4769 window_system=x11 with_x11=yes
4760 4770
4783 # If we find X, set shell vars x_includes and x_libraries to the 4793 # If we find X, set shell vars x_includes and x_libraries to the
4784 # paths, otherwise set no_x=yes. 4794 # paths, otherwise set no_x=yes.
4785 # Uses ac_ vars as temps to allow command line to override cache and checks. 4795 # Uses ac_ vars as temps to allow command line to override cache and checks.
4786 # --without-x overrides everything else, but does not touch the cache. 4796 # --without-x overrides everything else, but does not touch the cache.
4787 echo $ac_n "checking for X""... $ac_c" 1>&6 4797 echo $ac_n "checking for X""... $ac_c" 1>&6
4788 echo "configure:4789: checking for X" >&5 4798 echo "configure:4799: checking for X" >&5
4789 4799
4790 # Check whether --with-x or --without-x was given. 4800 # Check whether --with-x or --without-x was given.
4791 if test "${with_x+set}" = set; then 4801 if test "${with_x+set}" = set; then
4792 withval="$with_x" 4802 withval="$with_x"
4793 : 4803 :
4843 # Guess where to find include files, by looking for this one X11 .h file. 4853 # Guess where to find include files, by looking for this one X11 .h file.
4844 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4854 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4845 4855
4846 # First, try using that file with no special directory specified. 4856 # First, try using that file with no special directory specified.
4847 cat > conftest.$ac_ext <<EOF 4857 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure" 4858 #line 4859 "configure"
4849 #include "confdefs.h" 4859 #include "confdefs.h"
4850 #include <$x_direct_test_include> 4860 #include <$x_direct_test_include>
4851 EOF 4861 EOF
4852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4853 { (eval echo configure:4854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4863 { (eval echo configure:4864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4855 if test -z "$ac_err"; then 4865 if test -z "$ac_err"; then
4856 rm -rf conftest* 4866 rm -rf conftest*
4857 # We can compile using X headers with no special include directory. 4867 # We can compile using X headers with no special include directory.
4858 ac_x_includes= 4868 ac_x_includes=
4917 # See if we find them without any special options. 4927 # See if we find them without any special options.
4918 # Don't add to $LIBS permanently. 4928 # Don't add to $LIBS permanently.
4919 ac_save_LIBS="$LIBS" 4929 ac_save_LIBS="$LIBS"
4920 LIBS="-l$x_direct_test_library $LIBS" 4930 LIBS="-l$x_direct_test_library $LIBS"
4921 cat > conftest.$ac_ext <<EOF 4931 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure" 4932 #line 4933 "configure"
4923 #include "confdefs.h" 4933 #include "confdefs.h"
4924 4934
4925 int main() { 4935 int main() {
4926 ${x_direct_test_function}() 4936 ${x_direct_test_function}()
4927 ; return 0; } 4937 ; return 0; }
4928 EOF 4938 EOF
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4939 if { (eval echo configure:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4930 rm -rf conftest* 4940 rm -rf conftest*
4931 LIBS="$ac_save_LIBS" 4941 LIBS="$ac_save_LIBS"
4932 # We can link X programs with no special library path. 4942 # We can link X programs with no special library path.
4933 ac_x_libraries= 4943 ac_x_libraries=
4934 else 4944 else
5033 # For Solaris; some versions of Sun CC require a space after -R and 5043 # For Solaris; some versions of Sun CC require a space after -R and
5034 # others require no space. Words are not sufficient . . . . 5044 # others require no space. Words are not sufficient . . . .
5035 case "`(uname -sr) 2>/dev/null`" in 5045 case "`(uname -sr) 2>/dev/null`" in
5036 "SunOS 5"*) 5046 "SunOS 5"*)
5037 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5047 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5038 echo "configure:5039: checking whether -R must be followed by a space" >&5 5048 echo "configure:5049: checking whether -R must be followed by a space" >&5
5039 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5049 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5040 cat > conftest.$ac_ext <<EOF 5050 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure" 5051 #line 5052 "configure"
5042 #include "confdefs.h" 5052 #include "confdefs.h"
5043 5053
5044 int main() { 5054 int main() {
5045 5055
5046 ; return 0; } 5056 ; return 0; }
5047 EOF 5057 EOF
5048 if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5049 rm -rf conftest* 5059 rm -rf conftest*
5050 ac_R_nospace=yes 5060 ac_R_nospace=yes
5051 else 5061 else
5052 echo "configure: failed program was:" >&5 5062 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5 5063 cat conftest.$ac_ext >&5
5059 echo "$ac_t""no" 1>&6 5069 echo "$ac_t""no" 1>&6
5060 X_LIBS="$X_LIBS -R$x_libraries" 5070 X_LIBS="$X_LIBS -R$x_libraries"
5061 else 5071 else
5062 LIBS="$ac_xsave_LIBS -R $x_libraries" 5072 LIBS="$ac_xsave_LIBS -R $x_libraries"
5063 cat > conftest.$ac_ext <<EOF 5073 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure" 5074 #line 5075 "configure"
5065 #include "confdefs.h" 5075 #include "confdefs.h"
5066 5076
5067 int main() { 5077 int main() {
5068 5078
5069 ; return 0; } 5079 ; return 0; }
5070 EOF 5080 EOF
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5081 if { (eval echo configure:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5072 rm -rf conftest* 5082 rm -rf conftest*
5073 ac_R_space=yes 5083 ac_R_space=yes
5074 else 5084 else
5075 echo "configure: failed program was:" >&5 5085 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5 5086 cat conftest.$ac_ext >&5
5102 if test "$with_dnet" = "no" ; then 5112 if test "$with_dnet" = "no" ; then
5103 ac_cv_lib_dnet_dnet_ntoa=no 5113 ac_cv_lib_dnet_dnet_ntoa=no
5104 else 5114 else
5105 5115
5106 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5116 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5107 echo "configure:5108: checking for dnet_ntoa in -ldnet" >&5 5117 echo "configure:5118: checking for dnet_ntoa in -ldnet" >&5
5108 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5118 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5109 5119
5110 xe_check_libs=" -ldnet " 5120 xe_check_libs=" -ldnet "
5111 cat > conftest.$ac_ext <<EOF 5121 cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure" 5122 #line 5123 "configure"
5113 #include "confdefs.h" 5123 #include "confdefs.h"
5114 /* Override any gcc2 internal prototype to avoid an error. */ 5124 /* Override any gcc2 internal prototype to avoid an error. */
5115 /* We use char because int might match the return type of a gcc2 5125 /* We use char because int might match the return type of a gcc2
5116 builtin and then its argument prototype would still apply. */ 5126 builtin and then its argument prototype would still apply. */
5117 char dnet_ntoa(); 5127 char dnet_ntoa();
5118 5128
5119 int main() { 5129 int main() {
5120 dnet_ntoa() 5130 dnet_ntoa()
5121 ; return 0; } 5131 ; return 0; }
5122 EOF 5132 EOF
5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5133 if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5124 rm -rf conftest* 5134 rm -rf conftest*
5125 eval "ac_cv_lib_$ac_lib_var=yes" 5135 eval "ac_cv_lib_$ac_lib_var=yes"
5126 else 5136 else
5127 echo "configure: failed program was:" >&5 5137 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5 5138 cat conftest.$ac_ext >&5
5142 fi 5152 fi
5143 5153
5144 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5154 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5145 5155
5146 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5156 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5147 echo "configure:5148: checking for dnet_ntoa in -ldnet_stub" >&5 5157 echo "configure:5158: checking for dnet_ntoa in -ldnet_stub" >&5
5148 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5158 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5149 5159
5150 xe_check_libs=" -ldnet_stub " 5160 xe_check_libs=" -ldnet_stub "
5151 cat > conftest.$ac_ext <<EOF 5161 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure" 5162 #line 5163 "configure"
5153 #include "confdefs.h" 5163 #include "confdefs.h"
5154 /* Override any gcc2 internal prototype to avoid an error. */ 5164 /* Override any gcc2 internal prototype to avoid an error. */
5155 /* We use char because int might match the return type of a gcc2 5165 /* We use char because int might match the return type of a gcc2
5156 builtin and then its argument prototype would still apply. */ 5166 builtin and then its argument prototype would still apply. */
5157 char dnet_ntoa(); 5167 char dnet_ntoa();
5158 5168
5159 int main() { 5169 int main() {
5160 dnet_ntoa() 5170 dnet_ntoa()
5161 ; return 0; } 5171 ; return 0; }
5162 EOF 5172 EOF
5163 if { (eval echo configure:5164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5164 rm -rf conftest* 5174 rm -rf conftest*
5165 eval "ac_cv_lib_$ac_lib_var=yes" 5175 eval "ac_cv_lib_$ac_lib_var=yes"
5166 else 5176 else
5167 echo "configure: failed program was:" >&5 5177 echo "configure: failed program was:" >&5
5168 cat conftest.$ac_ext >&5 5178 cat conftest.$ac_ext >&5
5187 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5197 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5188 # needs -lnsl. 5198 # needs -lnsl.
5189 # The nsl library prevents programs from opening the X display 5199 # The nsl library prevents programs from opening the X display
5190 # on Irix 5.2, according to dickey@clark.net. 5200 # on Irix 5.2, according to dickey@clark.net.
5191 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5201 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5192 echo "configure:5193: checking for gethostbyname" >&5 5202 echo "configure:5203: checking for gethostbyname" >&5
5193 5203
5194 cat > conftest.$ac_ext <<EOF 5204 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure" 5205 #line 5206 "configure"
5196 #include "confdefs.h" 5206 #include "confdefs.h"
5197 /* System header to define __stub macros and hopefully few prototypes, 5207 /* System header to define __stub macros and hopefully few prototypes,
5198 which can conflict with char gethostbyname(); below. */ 5208 which can conflict with char gethostbyname(); below. */
5199 #include <assert.h> 5209 #include <assert.h>
5200 /* Override any gcc2 internal prototype to avoid an error. */ 5210 /* Override any gcc2 internal prototype to avoid an error. */
5213 gethostbyname(); 5223 gethostbyname();
5214 #endif 5224 #endif
5215 5225
5216 ; return 0; } 5226 ; return 0; }
5217 EOF 5227 EOF
5218 if { (eval echo configure:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 rm -rf conftest* 5229 rm -rf conftest*
5220 eval "ac_cv_func_gethostbyname=yes" 5230 eval "ac_cv_func_gethostbyname=yes"
5221 else 5231 else
5222 echo "configure: failed program was:" >&5 5232 echo "configure: failed program was:" >&5
5223 cat conftest.$ac_ext >&5 5233 cat conftest.$ac_ext >&5
5234 fi 5244 fi
5235 5245
5236 if test $ac_cv_func_gethostbyname = no; then 5246 if test $ac_cv_func_gethostbyname = no; then
5237 5247
5238 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5248 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5239 echo "configure:5240: checking for gethostbyname in -lnsl" >&5 5249 echo "configure:5250: checking for gethostbyname in -lnsl" >&5
5240 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5250 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5241 5251
5242 xe_check_libs=" -lnsl " 5252 xe_check_libs=" -lnsl "
5243 cat > conftest.$ac_ext <<EOF 5253 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure" 5254 #line 5255 "configure"
5245 #include "confdefs.h" 5255 #include "confdefs.h"
5246 /* Override any gcc2 internal prototype to avoid an error. */ 5256 /* Override any gcc2 internal prototype to avoid an error. */
5247 /* We use char because int might match the return type of a gcc2 5257 /* We use char because int might match the return type of a gcc2
5248 builtin and then its argument prototype would still apply. */ 5258 builtin and then its argument prototype would still apply. */
5249 char gethostbyname(); 5259 char gethostbyname();
5250 5260
5251 int main() { 5261 int main() {
5252 gethostbyname() 5262 gethostbyname()
5253 ; return 0; } 5263 ; return 0; }
5254 EOF 5264 EOF
5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5265 if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 rm -rf conftest* 5266 rm -rf conftest*
5257 eval "ac_cv_lib_$ac_lib_var=yes" 5267 eval "ac_cv_lib_$ac_lib_var=yes"
5258 else 5268 else
5259 echo "configure: failed program was:" >&5 5269 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5 5270 cat conftest.$ac_ext >&5
5280 # on later versions), says simon@lia.di.epfl.ch: it contains 5290 # on later versions), says simon@lia.di.epfl.ch: it contains
5281 # gethostby* variants that don't use the nameserver (or something). 5291 # gethostby* variants that don't use the nameserver (or something).
5282 # -lsocket must be given before -lnsl if both are needed. 5292 # -lsocket must be given before -lnsl if both are needed.
5283 # We assume that if connect needs -lnsl, so does gethostbyname. 5293 # We assume that if connect needs -lnsl, so does gethostbyname.
5284 echo $ac_n "checking for connect""... $ac_c" 1>&6 5294 echo $ac_n "checking for connect""... $ac_c" 1>&6
5285 echo "configure:5286: checking for connect" >&5 5295 echo "configure:5296: checking for connect" >&5
5286 5296
5287 cat > conftest.$ac_ext <<EOF 5297 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure" 5298 #line 5299 "configure"
5289 #include "confdefs.h" 5299 #include "confdefs.h"
5290 /* System header to define __stub macros and hopefully few prototypes, 5300 /* System header to define __stub macros and hopefully few prototypes,
5291 which can conflict with char connect(); below. */ 5301 which can conflict with char connect(); below. */
5292 #include <assert.h> 5302 #include <assert.h>
5293 /* Override any gcc2 internal prototype to avoid an error. */ 5303 /* Override any gcc2 internal prototype to avoid an error. */
5306 connect(); 5316 connect();
5307 #endif 5317 #endif
5308 5318
5309 ; return 0; } 5319 ; return 0; }
5310 EOF 5320 EOF
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312 rm -rf conftest* 5322 rm -rf conftest*
5313 eval "ac_cv_func_connect=yes" 5323 eval "ac_cv_func_connect=yes"
5314 else 5324 else
5315 echo "configure: failed program was:" >&5 5325 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5 5326 cat conftest.$ac_ext >&5
5329 if test $ac_cv_func_connect = no; then 5339 if test $ac_cv_func_connect = no; then
5330 5340
5331 xe_msg_checking="for connect in -lsocket" 5341 xe_msg_checking="for connect in -lsocket"
5332 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5342 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5333 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5343 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5334 echo "configure:5335: checking "$xe_msg_checking"" >&5 5344 echo "configure:5345: checking "$xe_msg_checking"" >&5
5335 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5345 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5336 5346
5337 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5347 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5338 cat > conftest.$ac_ext <<EOF 5348 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure" 5349 #line 5350 "configure"
5340 #include "confdefs.h" 5350 #include "confdefs.h"
5341 /* Override any gcc2 internal prototype to avoid an error. */ 5351 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2 5352 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */ 5353 builtin and then its argument prototype would still apply. */
5344 char connect(); 5354 char connect();
5345 5355
5346 int main() { 5356 int main() {
5347 connect() 5357 connect()
5348 ; return 0; } 5358 ; return 0; }
5349 EOF 5359 EOF
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5351 rm -rf conftest* 5361 rm -rf conftest*
5352 eval "ac_cv_lib_$ac_lib_var=yes" 5362 eval "ac_cv_lib_$ac_lib_var=yes"
5353 else 5363 else
5354 echo "configure: failed program was:" >&5 5364 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5 5365 cat conftest.$ac_ext >&5
5369 5379
5370 fi 5380 fi
5371 5381
5372 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5382 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5373 echo $ac_n "checking for remove""... $ac_c" 1>&6 5383 echo $ac_n "checking for remove""... $ac_c" 1>&6
5374 echo "configure:5375: checking for remove" >&5 5384 echo "configure:5385: checking for remove" >&5
5375 5385
5376 cat > conftest.$ac_ext <<EOF 5386 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure" 5387 #line 5388 "configure"
5378 #include "confdefs.h" 5388 #include "confdefs.h"
5379 /* System header to define __stub macros and hopefully few prototypes, 5389 /* System header to define __stub macros and hopefully few prototypes,
5380 which can conflict with char remove(); below. */ 5390 which can conflict with char remove(); below. */
5381 #include <assert.h> 5391 #include <assert.h>
5382 /* Override any gcc2 internal prototype to avoid an error. */ 5392 /* Override any gcc2 internal prototype to avoid an error. */
5395 remove(); 5405 remove();
5396 #endif 5406 #endif
5397 5407
5398 ; return 0; } 5408 ; return 0; }
5399 EOF 5409 EOF
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5401 rm -rf conftest* 5411 rm -rf conftest*
5402 eval "ac_cv_func_remove=yes" 5412 eval "ac_cv_func_remove=yes"
5403 else 5413 else
5404 echo "configure: failed program was:" >&5 5414 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5 5415 cat conftest.$ac_ext >&5
5416 fi 5426 fi
5417 5427
5418 if test $ac_cv_func_remove = no; then 5428 if test $ac_cv_func_remove = no; then
5419 5429
5420 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5430 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5421 echo "configure:5422: checking for remove in -lposix" >&5 5431 echo "configure:5432: checking for remove in -lposix" >&5
5422 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5432 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5423 5433
5424 xe_check_libs=" -lposix " 5434 xe_check_libs=" -lposix "
5425 cat > conftest.$ac_ext <<EOF 5435 cat > conftest.$ac_ext <<EOF
5426 #line 5427 "configure" 5436 #line 5437 "configure"
5427 #include "confdefs.h" 5437 #include "confdefs.h"
5428 /* Override any gcc2 internal prototype to avoid an error. */ 5438 /* Override any gcc2 internal prototype to avoid an error. */
5429 /* We use char because int might match the return type of a gcc2 5439 /* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */ 5440 builtin and then its argument prototype would still apply. */
5431 char remove(); 5441 char remove();
5432 5442
5433 int main() { 5443 int main() {
5434 remove() 5444 remove()
5435 ; return 0; } 5445 ; return 0; }
5436 EOF 5446 EOF
5437 if { (eval echo configure:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5438 rm -rf conftest* 5448 rm -rf conftest*
5439 eval "ac_cv_lib_$ac_lib_var=yes" 5449 eval "ac_cv_lib_$ac_lib_var=yes"
5440 else 5450 else
5441 echo "configure: failed program was:" >&5 5451 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5 5452 cat conftest.$ac_ext >&5
5456 5466
5457 fi 5467 fi
5458 5468
5459 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5469 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5460 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5470 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5461 echo "configure:5462: checking for shmat" >&5 5471 echo "configure:5472: checking for shmat" >&5
5462 5472
5463 cat > conftest.$ac_ext <<EOF 5473 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure" 5474 #line 5475 "configure"
5465 #include "confdefs.h" 5475 #include "confdefs.h"
5466 /* System header to define __stub macros and hopefully few prototypes, 5476 /* System header to define __stub macros and hopefully few prototypes,
5467 which can conflict with char shmat(); below. */ 5477 which can conflict with char shmat(); below. */
5468 #include <assert.h> 5478 #include <assert.h>
5469 /* Override any gcc2 internal prototype to avoid an error. */ 5479 /* Override any gcc2 internal prototype to avoid an error. */
5482 shmat(); 5492 shmat();
5483 #endif 5493 #endif
5484 5494
5485 ; return 0; } 5495 ; return 0; }
5486 EOF 5496 EOF
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5488 rm -rf conftest* 5498 rm -rf conftest*
5489 eval "ac_cv_func_shmat=yes" 5499 eval "ac_cv_func_shmat=yes"
5490 else 5500 else
5491 echo "configure: failed program was:" >&5 5501 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5 5502 cat conftest.$ac_ext >&5
5503 fi 5513 fi
5504 5514
5505 if test $ac_cv_func_shmat = no; then 5515 if test $ac_cv_func_shmat = no; then
5506 5516
5507 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5517 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5508 echo "configure:5509: checking for shmat in -lipc" >&5 5518 echo "configure:5519: checking for shmat in -lipc" >&5
5509 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5519 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5510 5520
5511 xe_check_libs=" -lipc " 5521 xe_check_libs=" -lipc "
5512 cat > conftest.$ac_ext <<EOF 5522 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure" 5523 #line 5524 "configure"
5514 #include "confdefs.h" 5524 #include "confdefs.h"
5515 /* Override any gcc2 internal prototype to avoid an error. */ 5525 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2 5526 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */ 5527 builtin and then its argument prototype would still apply. */
5518 char shmat(); 5528 char shmat();
5519 5529
5520 int main() { 5530 int main() {
5521 shmat() 5531 shmat()
5522 ; return 0; } 5532 ; return 0; }
5523 EOF 5533 EOF
5524 if { (eval echo configure:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 rm -rf conftest* 5535 rm -rf conftest*
5526 eval "ac_cv_lib_$ac_lib_var=yes" 5536 eval "ac_cv_lib_$ac_lib_var=yes"
5527 else 5537 else
5528 echo "configure: failed program was:" >&5 5538 echo "configure: failed program was:" >&5
5529 cat conftest.$ac_ext >&5 5539 cat conftest.$ac_ext >&5
5555 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5565 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5556 5566
5557 xe_msg_checking="for IceConnectionNumber in -lICE" 5567 xe_msg_checking="for IceConnectionNumber in -lICE"
5558 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5568 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5559 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5569 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5560 echo "configure:5561: checking "$xe_msg_checking"" >&5 5570 echo "configure:5571: checking "$xe_msg_checking"" >&5
5561 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5571 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5562 5572
5563 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5573 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5564 cat > conftest.$ac_ext <<EOF 5574 cat > conftest.$ac_ext <<EOF
5565 #line 5566 "configure" 5575 #line 5576 "configure"
5566 #include "confdefs.h" 5576 #include "confdefs.h"
5567 /* Override any gcc2 internal prototype to avoid an error. */ 5577 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2 5578 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */ 5579 builtin and then its argument prototype would still apply. */
5570 char IceConnectionNumber(); 5580 char IceConnectionNumber();
5571 5581
5572 int main() { 5582 int main() {
5573 IceConnectionNumber() 5583 IceConnectionNumber()
5574 ; return 0; } 5584 ; return 0; }
5575 EOF 5585 EOF
5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5586 if { (eval echo configure:5587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5577 rm -rf conftest* 5587 rm -rf conftest*
5578 eval "ac_cv_lib_$ac_lib_var=yes" 5588 eval "ac_cv_lib_$ac_lib_var=yes"
5579 else 5589 else
5580 echo "configure: failed program was:" >&5 5590 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5 5591 cat conftest.$ac_ext >&5
5740 EOF 5750 EOF
5741 } 5751 }
5742 5752
5743 5753
5744 echo "checking for X defines extracted by xmkmf" 1>&6 5754 echo "checking for X defines extracted by xmkmf" 1>&6
5745 echo "configure:5746: checking for X defines extracted by xmkmf" >&5 5755 echo "configure:5756: checking for X defines extracted by xmkmf" >&5
5746 rm -fr conftestdir 5756 rm -fr conftestdir
5747 if mkdir conftestdir; then 5757 if mkdir conftestdir; then
5748 cd conftestdir 5758 cd conftestdir
5749 cat > Imakefile <<'EOF' 5759 cat > Imakefile <<'EOF'
5750 xetest: 5760 xetest:
5772 done 5782 done
5773 fi 5783 fi
5774 5784
5775 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5785 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5776 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5786 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5777 echo "configure:5778: checking for X11/Intrinsic.h" >&5 5787 echo "configure:5788: checking for X11/Intrinsic.h" >&5
5778 5788
5779 cat > conftest.$ac_ext <<EOF 5789 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure" 5790 #line 5791 "configure"
5781 #include "confdefs.h" 5791 #include "confdefs.h"
5782 #include <X11/Intrinsic.h> 5792 #include <X11/Intrinsic.h>
5783 EOF 5793 EOF
5784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5785 { (eval echo configure:5786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5795 { (eval echo configure:5796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5787 if test -z "$ac_err"; then 5797 if test -z "$ac_err"; then
5788 rm -rf conftest* 5798 rm -rf conftest*
5789 eval "ac_cv_header_$ac_safe=yes" 5799 eval "ac_cv_header_$ac_safe=yes"
5790 else 5800 else
5804 fi 5814 fi
5805 5815
5806 5816
5807 5817
5808 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5818 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5809 echo "configure:5810: checking for XOpenDisplay in -lX11" >&5 5819 echo "configure:5820: checking for XOpenDisplay in -lX11" >&5
5810 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5820 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5811 5821
5812 xe_check_libs=" -lX11 " 5822 xe_check_libs=" -lX11 "
5813 cat > conftest.$ac_ext <<EOF 5823 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure" 5824 #line 5825 "configure"
5815 #include "confdefs.h" 5825 #include "confdefs.h"
5816 /* Override any gcc2 internal prototype to avoid an error. */ 5826 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2 5827 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */ 5828 builtin and then its argument prototype would still apply. */
5819 char XOpenDisplay(); 5829 char XOpenDisplay();
5820 5830
5821 int main() { 5831 int main() {
5822 XOpenDisplay() 5832 XOpenDisplay()
5823 ; return 0; } 5833 ; return 0; }
5824 EOF 5834 EOF
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5835 if { (eval echo configure:5836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 rm -rf conftest* 5836 rm -rf conftest*
5827 eval "ac_cv_lib_$ac_lib_var=yes" 5837 eval "ac_cv_lib_$ac_lib_var=yes"
5828 else 5838 else
5829 echo "configure: failed program was:" >&5 5839 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5 5840 cat conftest.$ac_ext >&5
5845 if test "$have_lib_x11" != "yes"; then 5855 if test "$have_lib_x11" != "yes"; then
5846 5856
5847 xe_msg_checking="for XGetFontProperty in -lX11" 5857 xe_msg_checking="for XGetFontProperty in -lX11"
5848 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5858 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5849 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5859 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5850 echo "configure:5851: checking "$xe_msg_checking"" >&5 5860 echo "configure:5861: checking "$xe_msg_checking"" >&5
5851 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5861 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5852 5862
5853 xe_check_libs=" -lX11 -b i486-linuxaout" 5863 xe_check_libs=" -lX11 -b i486-linuxaout"
5854 cat > conftest.$ac_ext <<EOF 5864 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure" 5865 #line 5866 "configure"
5856 #include "confdefs.h" 5866 #include "confdefs.h"
5857 /* Override any gcc2 internal prototype to avoid an error. */ 5867 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2 5868 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */ 5869 builtin and then its argument prototype would still apply. */
5860 char XGetFontProperty(); 5870 char XGetFontProperty();
5861 5871
5862 int main() { 5872 int main() {
5863 XGetFontProperty() 5873 XGetFontProperty()
5864 ; return 0; } 5874 ; return 0; }
5865 EOF 5875 EOF
5866 if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5867 rm -rf conftest* 5877 rm -rf conftest*
5868 eval "ac_cv_lib_$ac_lib_var=yes" 5878 eval "ac_cv_lib_$ac_lib_var=yes"
5869 else 5879 else
5870 echo "configure: failed program was:" >&5 5880 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5 5881 cat conftest.$ac_ext >&5
5888 libs_x="-lX11" 5898 libs_x="-lX11"
5889 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5899 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5890 5900
5891 5901
5892 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5902 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5893 echo "configure:5894: checking for XShapeSelectInput in -lXext" >&5 5903 echo "configure:5904: checking for XShapeSelectInput in -lXext" >&5
5894 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5904 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5895 5905
5896 xe_check_libs=" -lXext " 5906 xe_check_libs=" -lXext "
5897 cat > conftest.$ac_ext <<EOF 5907 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure" 5908 #line 5909 "configure"
5899 #include "confdefs.h" 5909 #include "confdefs.h"
5900 /* Override any gcc2 internal prototype to avoid an error. */ 5910 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2 5911 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */ 5912 builtin and then its argument prototype would still apply. */
5903 char XShapeSelectInput(); 5913 char XShapeSelectInput();
5904 5914
5905 int main() { 5915 int main() {
5906 XShapeSelectInput() 5916 XShapeSelectInput()
5907 ; return 0; } 5917 ; return 0; }
5908 EOF 5918 EOF
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5910 rm -rf conftest* 5920 rm -rf conftest*
5911 eval "ac_cv_lib_$ac_lib_var=yes" 5921 eval "ac_cv_lib_$ac_lib_var=yes"
5912 else 5922 else
5913 echo "configure: failed program was:" >&5 5923 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5 5924 cat conftest.$ac_ext >&5
5927 5937
5928 5938
5929 5939
5930 5940
5931 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5941 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5932 echo "configure:5933: checking for XtOpenDisplay in -lXt" >&5 5942 echo "configure:5943: checking for XtOpenDisplay in -lXt" >&5
5933 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5943 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5934 5944
5935 xe_check_libs=" -lXt " 5945 xe_check_libs=" -lXt "
5936 cat > conftest.$ac_ext <<EOF 5946 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure" 5947 #line 5948 "configure"
5938 #include "confdefs.h" 5948 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error. */ 5949 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2 5950 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */ 5951 builtin and then its argument prototype would still apply. */
5942 char XtOpenDisplay(); 5952 char XtOpenDisplay();
5943 5953
5944 int main() { 5954 int main() {
5945 XtOpenDisplay() 5955 XtOpenDisplay()
5946 ; return 0; } 5956 ; return 0; }
5947 EOF 5957 EOF
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949 rm -rf conftest* 5959 rm -rf conftest*
5950 eval "ac_cv_lib_$ac_lib_var=yes" 5960 eval "ac_cv_lib_$ac_lib_var=yes"
5951 else 5961 else
5952 echo "configure: failed program was:" >&5 5962 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5 5963 cat conftest.$ac_ext >&5
5966 fi 5976 fi
5967 5977
5968 5978
5969 5979
5970 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5980 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5971 echo "configure:5972: checking the version of X11 being used" >&5 5981 echo "configure:5982: checking the version of X11 being used" >&5
5972 cat > conftest.$ac_ext <<EOF 5982 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure" 5983 #line 5984 "configure"
5974 #include "confdefs.h" 5984 #include "confdefs.h"
5975 #include <X11/Intrinsic.h> 5985 #include <X11/Intrinsic.h>
5976 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5986 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5977 EOF 5987 EOF
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5988 if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5979 then 5989 then
5980 ./conftest foobar; x11_release=$? 5990 ./conftest foobar; x11_release=$?
5981 else 5991 else
5982 conftest_rc="$?" 5992 conftest_rc="$?"
5983 echo "configure: failed program was:" >&5 5993 echo "configure: failed program was:" >&5
5998 6008
5999 for ac_hdr in X11/Xlocale.h 6009 for ac_hdr in X11/Xlocale.h
6000 do 6010 do
6001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6003 echo "configure:6004: checking for $ac_hdr" >&5 6013 echo "configure:6014: checking for $ac_hdr" >&5
6004 6014
6005 cat > conftest.$ac_ext <<EOF 6015 cat > conftest.$ac_ext <<EOF
6006 #line 6007 "configure" 6016 #line 6017 "configure"
6007 #include "confdefs.h" 6017 #include "confdefs.h"
6008 #include <$ac_hdr> 6018 #include <$ac_hdr>
6009 EOF 6019 EOF
6010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6011 { (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6021 { (eval echo configure:6022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6013 if test -z "$ac_err"; then 6023 if test -z "$ac_err"; then
6014 rm -rf conftest* 6024 rm -rf conftest*
6015 eval "ac_cv_header_$ac_safe=yes" 6025 eval "ac_cv_header_$ac_safe=yes"
6016 else 6026 else
6037 fi 6047 fi
6038 done 6048 done
6039 6049
6040 6050
6041 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 6051 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6042 echo "configure:6043: checking for XFree86" >&5 6052 echo "configure:6053: checking for XFree86" >&5
6043 if test -d "/usr/X386/include" -o \ 6053 if test -d "/usr/X386/include" -o \
6044 -f "/etc/XF86Config" -o \ 6054 -f "/etc/XF86Config" -o \
6045 -f "/etc/X11/XF86Config" -o \ 6055 -f "/etc/X11/XF86Config" -o \
6046 -f "/usr/X11R6/lib/X11/XF86Config"; then 6056 -f "/usr/X11R6/lib/X11/XF86Config"; then
6047 echo "$ac_t""yes" 1>&6 6057 echo "$ac_t""yes" 1>&6
6057 echo "$ac_t""no" 1>&6 6067 echo "$ac_t""no" 1>&6
6058 fi 6068 fi
6059 6069
6060 test -z "$with_xmu" && { 6070 test -z "$with_xmu" && {
6061 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6071 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6062 echo "configure:6063: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6072 echo "configure:6073: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6063 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6073 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6064 6074
6065 xe_check_libs=" -lXmu " 6075 xe_check_libs=" -lXmu "
6066 cat > conftest.$ac_ext <<EOF 6076 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure" 6077 #line 6078 "configure"
6068 #include "confdefs.h" 6078 #include "confdefs.h"
6069 /* Override any gcc2 internal prototype to avoid an error. */ 6079 /* Override any gcc2 internal prototype to avoid an error. */
6070 /* We use char because int might match the return type of a gcc2 6080 /* We use char because int might match the return type of a gcc2
6071 builtin and then its argument prototype would still apply. */ 6081 builtin and then its argument prototype would still apply. */
6072 char XmuReadBitmapDataFromFile(); 6082 char XmuReadBitmapDataFromFile();
6073 6083
6074 int main() { 6084 int main() {
6075 XmuReadBitmapDataFromFile() 6085 XmuReadBitmapDataFromFile()
6076 ; return 0; } 6086 ; return 0; }
6077 EOF 6087 EOF
6078 if { (eval echo configure:6079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6079 rm -rf conftest* 6089 rm -rf conftest*
6080 eval "ac_cv_lib_$ac_lib_var=yes" 6090 eval "ac_cv_lib_$ac_lib_var=yes"
6081 else 6091 else
6082 echo "configure: failed program was:" >&5 6092 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5 6093 cat conftest.$ac_ext >&5
6112 6122
6113 fi 6123 fi
6114 6124
6115 6125
6116 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 6126 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6117 echo "configure:6118: checking for main in -lXbsd" >&5 6127 echo "configure:6128: checking for main in -lXbsd" >&5
6118 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 6128 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6119 6129
6120 xe_check_libs=" -lXbsd " 6130 xe_check_libs=" -lXbsd "
6121 cat > conftest.$ac_ext <<EOF 6131 cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure" 6132 #line 6133 "configure"
6123 #include "confdefs.h" 6133 #include "confdefs.h"
6124 6134
6125 int main() { 6135 int main() {
6126 main() 6136 main()
6127 ; return 0; } 6137 ; return 0; }
6128 EOF 6138 EOF
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6130 rm -rf conftest* 6140 rm -rf conftest*
6131 eval "ac_cv_lib_$ac_lib_var=yes" 6141 eval "ac_cv_lib_$ac_lib_var=yes"
6132 else 6142 else
6133 echo "configure: failed program was:" >&5 6143 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5 6144 cat conftest.$ac_ext >&5
6161 fi 6171 fi
6162 6172
6163 fi 6173 fi
6164 if test "$with_msw" != "no"; then 6174 if test "$with_msw" != "no"; then
6165 echo "checking for MS-Windows" 1>&6 6175 echo "checking for MS-Windows" 1>&6
6166 echo "configure:6167: checking for MS-Windows" >&5 6176 echo "configure:6177: checking for MS-Windows" >&5
6167 6177
6168 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6178 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6169 echo "configure:6170: checking for main in -lgdi32" >&5 6179 echo "configure:6180: checking for main in -lgdi32" >&5
6170 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6180 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6171 6181
6172 xe_check_libs=" -lgdi32 " 6182 xe_check_libs=" -lgdi32 "
6173 cat > conftest.$ac_ext <<EOF 6183 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure" 6184 #line 6185 "configure"
6175 #include "confdefs.h" 6185 #include "confdefs.h"
6176 6186
6177 int main() { 6187 int main() {
6178 main() 6188 main()
6179 ; return 0; } 6189 ; return 0; }
6180 EOF 6190 EOF
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6191 if { (eval echo configure:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6182 rm -rf conftest* 6192 rm -rf conftest*
6183 eval "ac_cv_lib_$ac_lib_var=yes" 6193 eval "ac_cv_lib_$ac_lib_var=yes"
6184 else 6194 else
6185 echo "configure: failed program was:" >&5 6195 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5 6196 cat conftest.$ac_ext >&5
6206 #define HAVE_MS_WINDOWS 1 6216 #define HAVE_MS_WINDOWS 1
6207 EOF 6217 EOF
6208 } 6218 }
6209 6219
6210 install_pp="$blddir/lib-src/installexe.sh" 6220 install_pp="$blddir/lib-src/installexe.sh"
6211 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32\" to \$libs_system"; fi 6221 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6212 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi 6222 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6213 if test "$window_system" != x11; then 6223 if test "$window_system" != x11; then
6214 window_system=msw 6224 window_system=msw
6215 test "$with_scrollbars" != "no" && with_scrollbars=msw \ 6225 test "$with_scrollbars" != "no" && with_scrollbars=msw \
6216 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then 6226 && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6242 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6252 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6243 echo " xemacs will be linked with \"dialog-msw.o\"" 6253 echo " xemacs will be linked with \"dialog-msw.o\""
6244 fi 6254 fi
6245 fi 6255 fi
6246 cat > conftest.$ac_ext <<EOF 6256 cat > conftest.$ac_ext <<EOF
6247 #line 6248 "configure" 6257 #line 6258 "configure"
6248 #include "confdefs.h" 6258 #include "confdefs.h"
6249 #include <fcntl.h> 6259 #include <fcntl.h>
6250 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6260 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6251 EOF 6261 EOF
6252 if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6253 then 6263 then
6254 { test "$extra_verbose" = "yes" && cat << \EOF 6264 { test "$extra_verbose" = "yes" && cat << \EOF
6255 Defining HAVE_MSG_SELECT 6265 Defining HAVE_MSG_SELECT
6256 EOF 6266 EOF
6257 cat >> confdefs.h <<\EOF 6267 cat >> confdefs.h <<\EOF
6323 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6333 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6324 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6334 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6325 esac 6335 esac
6326 6336
6327 echo "checking for WM_COMMAND option" 1>&6 6337 echo "checking for WM_COMMAND option" 1>&6
6328 echo "configure:6329: checking for WM_COMMAND option" >&5; 6338 echo "configure:6339: checking for WM_COMMAND option" >&5;
6329 if test "$with_wmcommand" != "no"; then 6339 if test "$with_wmcommand" != "no"; then
6330 { test "$extra_verbose" = "yes" && cat << \EOF 6340 { test "$extra_verbose" = "yes" && cat << \EOF
6331 Defining HAVE_WMCOMMAND 6341 Defining HAVE_WMCOMMAND
6332 EOF 6342 EOF
6333 cat >> confdefs.h <<\EOF 6343 cat >> confdefs.h <<\EOF
6338 fi 6348 fi
6339 6349
6340 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6350 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6341 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6351 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6342 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6352 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6343 echo "configure:6344: checking for X11/Xauth.h" >&5 6353 echo "configure:6354: checking for X11/Xauth.h" >&5
6344 6354
6345 cat > conftest.$ac_ext <<EOF 6355 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure" 6356 #line 6357 "configure"
6347 #include "confdefs.h" 6357 #include "confdefs.h"
6348 #include <X11/Xauth.h> 6358 #include <X11/Xauth.h>
6349 EOF 6359 EOF
6350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6351 { (eval echo configure:6352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6361 { (eval echo configure:6362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6353 if test -z "$ac_err"; then 6363 if test -z "$ac_err"; then
6354 rm -rf conftest* 6364 rm -rf conftest*
6355 eval "ac_cv_header_$ac_safe=yes" 6365 eval "ac_cv_header_$ac_safe=yes"
6356 else 6366 else
6369 with_xauth=no 6379 with_xauth=no
6370 fi 6380 fi
6371 } 6381 }
6372 test -z "$with_xauth" && { 6382 test -z "$with_xauth" && {
6373 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6383 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6374 echo "configure:6375: checking for XauGetAuthByAddr in -lXau" >&5 6384 echo "configure:6385: checking for XauGetAuthByAddr in -lXau" >&5
6375 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6385 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6376 6386
6377 xe_check_libs=" -lXau " 6387 xe_check_libs=" -lXau "
6378 cat > conftest.$ac_ext <<EOF 6388 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure" 6389 #line 6390 "configure"
6380 #include "confdefs.h" 6390 #include "confdefs.h"
6381 /* Override any gcc2 internal prototype to avoid an error. */ 6391 /* Override any gcc2 internal prototype to avoid an error. */
6382 /* We use char because int might match the return type of a gcc2 6392 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */ 6393 builtin and then its argument prototype would still apply. */
6384 char XauGetAuthByAddr(); 6394 char XauGetAuthByAddr();
6385 6395
6386 int main() { 6396 int main() {
6387 XauGetAuthByAddr() 6397 XauGetAuthByAddr()
6388 ; return 0; } 6398 ; return 0; }
6389 EOF 6399 EOF
6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6400 if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6391 rm -rf conftest* 6401 rm -rf conftest*
6392 eval "ac_cv_lib_$ac_lib_var=yes" 6402 eval "ac_cv_lib_$ac_lib_var=yes"
6393 else 6403 else
6394 echo "configure: failed program was:" >&5 6404 echo "configure: failed program was:" >&5
6395 cat conftest.$ac_ext >&5 6405 cat conftest.$ac_ext >&5
6430 6440
6431 if test "$with_tooltalk" != "no" ; then 6441 if test "$with_tooltalk" != "no" ; then
6432 for dir in "" "Tt/" "desktop/" ; do 6442 for dir in "" "Tt/" "desktop/" ; do
6433 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6443 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6434 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6444 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6435 echo "configure:6436: checking for ${dir}tt_c.h" >&5 6445 echo "configure:6446: checking for ${dir}tt_c.h" >&5
6436 6446
6437 cat > conftest.$ac_ext <<EOF 6447 cat > conftest.$ac_ext <<EOF
6438 #line 6439 "configure" 6448 #line 6449 "configure"
6439 #include "confdefs.h" 6449 #include "confdefs.h"
6440 #include <${dir}tt_c.h> 6450 #include <${dir}tt_c.h>
6441 EOF 6451 EOF
6442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6443 { (eval echo configure:6444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6453 { (eval echo configure:6454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6445 if test -z "$ac_err"; then 6455 if test -z "$ac_err"; then
6446 rm -rf conftest* 6456 rm -rf conftest*
6447 eval "ac_cv_header_$ac_safe=yes" 6457 eval "ac_cv_header_$ac_safe=yes"
6448 else 6458 else
6474 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6484 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6475 6485
6476 xe_msg_checking="for tt_message_create in -ltt" 6486 xe_msg_checking="for tt_message_create in -ltt"
6477 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6487 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6478 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6488 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6479 echo "configure:6480: checking "$xe_msg_checking"" >&5 6489 echo "configure:6490: checking "$xe_msg_checking"" >&5
6480 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6490 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6481 6491
6482 xe_check_libs=" -ltt $extra_libs" 6492 xe_check_libs=" -ltt $extra_libs"
6483 cat > conftest.$ac_ext <<EOF 6493 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure" 6494 #line 6495 "configure"
6485 #include "confdefs.h" 6495 #include "confdefs.h"
6486 /* Override any gcc2 internal prototype to avoid an error. */ 6496 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2 6497 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */ 6498 builtin and then its argument prototype would still apply. */
6489 char tt_message_create(); 6499 char tt_message_create();
6490 6500
6491 int main() { 6501 int main() {
6492 tt_message_create() 6502 tt_message_create()
6493 ; return 0; } 6503 ; return 0; }
6494 EOF 6504 EOF
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 rm -rf conftest* 6506 rm -rf conftest*
6497 eval "ac_cv_lib_$ac_lib_var=yes" 6507 eval "ac_cv_lib_$ac_lib_var=yes"
6498 else 6508 else
6499 echo "configure: failed program was:" >&5 6509 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5 6510 cat conftest.$ac_ext >&5
6547 fi 6557 fi
6548 fi 6558 fi
6549 6559
6550 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6560 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6551 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6561 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6552 echo "configure:6553: checking for Dt/Dt.h" >&5 6562 echo "configure:6563: checking for Dt/Dt.h" >&5
6553 6563
6554 cat > conftest.$ac_ext <<EOF 6564 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure" 6565 #line 6566 "configure"
6556 #include "confdefs.h" 6566 #include "confdefs.h"
6557 #include <Dt/Dt.h> 6567 #include <Dt/Dt.h>
6558 EOF 6568 EOF
6559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6560 { (eval echo configure:6561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6570 { (eval echo configure:6571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6562 if test -z "$ac_err"; then 6572 if test -z "$ac_err"; then
6563 rm -rf conftest* 6573 rm -rf conftest*
6564 eval "ac_cv_header_$ac_safe=yes" 6574 eval "ac_cv_header_$ac_safe=yes"
6565 else 6575 else
6578 with_cde=no 6588 with_cde=no
6579 fi 6589 fi
6580 } 6590 }
6581 test -z "$with_cde" && { 6591 test -z "$with_cde" && {
6582 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6592 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6583 echo "configure:6584: checking for DtDndDragStart in -lDtSvc" >&5 6593 echo "configure:6594: checking for DtDndDragStart in -lDtSvc" >&5
6584 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6594 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6585 6595
6586 xe_check_libs=" -lDtSvc " 6596 xe_check_libs=" -lDtSvc "
6587 cat > conftest.$ac_ext <<EOF 6597 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure" 6598 #line 6599 "configure"
6589 #include "confdefs.h" 6599 #include "confdefs.h"
6590 /* Override any gcc2 internal prototype to avoid an error. */ 6600 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2 6601 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */ 6602 builtin and then its argument prototype would still apply. */
6593 char DtDndDragStart(); 6603 char DtDndDragStart();
6594 6604
6595 int main() { 6605 int main() {
6596 DtDndDragStart() 6606 DtDndDragStart()
6597 ; return 0; } 6607 ; return 0; }
6598 EOF 6608 EOF
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6600 rm -rf conftest* 6610 rm -rf conftest*
6601 eval "ac_cv_lib_$ac_lib_var=yes" 6611 eval "ac_cv_lib_$ac_lib_var=yes"
6602 else 6612 else
6603 echo "configure: failed program was:" >&5 6613 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5 6614 cat conftest.$ac_ext >&5
6663 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6673 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6664 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6674 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6665 fi 6675 fi
6666 6676
6667 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6677 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6668 echo "configure:6669: checking if drag and drop API is needed" >&5 6678 echo "configure:6679: checking if drag and drop API is needed" >&5
6669 if test "$with_dragndrop" != "no" ; then 6679 if test "$with_dragndrop" != "no" ; then
6670 if test -n "$dragndrop_proto" ; then 6680 if test -n "$dragndrop_proto" ; then
6671 with_dragndrop=yes 6681 with_dragndrop=yes
6672 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6682 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6673 { test "$extra_verbose" = "yes" && cat << \EOF 6683 { test "$extra_verbose" = "yes" && cat << \EOF
6684 echo "$ac_t""no" 1>&6 6694 echo "$ac_t""no" 1>&6
6685 fi 6695 fi
6686 fi 6696 fi
6687 6697
6688 echo "checking for LDAP" 1>&6 6698 echo "checking for LDAP" 1>&6
6689 echo "configure:6690: checking for LDAP" >&5 6699 echo "configure:6700: checking for LDAP" >&5
6690 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6700 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6691 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6701 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6692 echo "configure:6693: checking for ldap.h" >&5 6702 echo "configure:6703: checking for ldap.h" >&5
6693 6703
6694 cat > conftest.$ac_ext <<EOF 6704 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure" 6705 #line 6706 "configure"
6696 #include "confdefs.h" 6706 #include "confdefs.h"
6697 #include <ldap.h> 6707 #include <ldap.h>
6698 EOF 6708 EOF
6699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6700 { (eval echo configure:6701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6710 { (eval echo configure:6711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6702 if test -z "$ac_err"; then 6712 if test -z "$ac_err"; then
6703 rm -rf conftest* 6713 rm -rf conftest*
6704 eval "ac_cv_header_$ac_safe=yes" 6714 eval "ac_cv_header_$ac_safe=yes"
6705 else 6715 else
6718 with_ldap=no 6728 with_ldap=no
6719 fi 6729 fi
6720 } 6730 }
6721 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6731 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6722 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6732 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6723 echo "configure:6724: checking for lber.h" >&5 6733 echo "configure:6734: checking for lber.h" >&5
6724 6734
6725 cat > conftest.$ac_ext <<EOF 6735 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure" 6736 #line 6737 "configure"
6727 #include "confdefs.h" 6737 #include "confdefs.h"
6728 #include <lber.h> 6738 #include <lber.h>
6729 EOF 6739 EOF
6730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6731 { (eval echo configure:6732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6741 { (eval echo configure:6742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6733 if test -z "$ac_err"; then 6743 if test -z "$ac_err"; then
6734 rm -rf conftest* 6744 rm -rf conftest*
6735 eval "ac_cv_header_$ac_safe=yes" 6745 eval "ac_cv_header_$ac_safe=yes"
6736 else 6746 else
6750 fi 6760 fi
6751 } 6761 }
6752 if test "$with_ldap" != "no"; then 6762 if test "$with_ldap" != "no"; then
6753 6763
6754 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 6764 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6755 echo "configure:6756: checking for ldap_search in -lldap" >&5 6765 echo "configure:6766: checking for ldap_search in -lldap" >&5
6756 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 6766 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6757 6767
6758 xe_check_libs=" -lldap " 6768 xe_check_libs=" -lldap "
6759 cat > conftest.$ac_ext <<EOF 6769 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure" 6770 #line 6771 "configure"
6761 #include "confdefs.h" 6771 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */ 6772 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2 6773 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */ 6774 builtin and then its argument prototype would still apply. */
6765 char ldap_search(); 6775 char ldap_search();
6766 6776
6767 int main() { 6777 int main() {
6768 ldap_search() 6778 ldap_search()
6769 ; return 0; } 6779 ; return 0; }
6770 EOF 6780 EOF
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6772 rm -rf conftest* 6782 rm -rf conftest*
6773 eval "ac_cv_lib_$ac_lib_var=yes" 6783 eval "ac_cv_lib_$ac_lib_var=yes"
6774 else 6784 else
6775 echo "configure: failed program was:" >&5 6785 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5 6786 cat conftest.$ac_ext >&5
6791 6801
6792 test "$with_ldap_nolber" = "no" && { 6802 test "$with_ldap_nolber" = "no" && {
6793 xe_msg_checking="for ldap_open in -lldap" 6803 xe_msg_checking="for ldap_open in -lldap"
6794 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6804 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6795 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6805 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6796 echo "configure:6797: checking "$xe_msg_checking"" >&5 6806 echo "configure:6807: checking "$xe_msg_checking"" >&5
6797 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6807 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6798 6808
6799 xe_check_libs=" -lldap -llber" 6809 xe_check_libs=" -lldap -llber"
6800 cat > conftest.$ac_ext <<EOF 6810 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure" 6811 #line 6812 "configure"
6802 #include "confdefs.h" 6812 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */ 6813 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2 6814 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */ 6815 builtin and then its argument prototype would still apply. */
6806 char ldap_open(); 6816 char ldap_open();
6807 6817
6808 int main() { 6818 int main() {
6809 ldap_open() 6819 ldap_open()
6810 ; return 0; } 6820 ; return 0; }
6811 EOF 6821 EOF
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6813 rm -rf conftest* 6823 rm -rf conftest*
6814 eval "ac_cv_lib_$ac_lib_var=yes" 6824 eval "ac_cv_lib_$ac_lib_var=yes"
6815 else 6825 else
6816 echo "configure: failed program was:" >&5 6826 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5 6827 cat conftest.$ac_ext >&5
6832 } 6842 }
6833 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 6843 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6834 xe_msg_checking="for ldap_open in -lldap" 6844 xe_msg_checking="for ldap_open in -lldap"
6835 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 6845 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6836 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6846 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6837 echo "configure:6838: checking "$xe_msg_checking"" >&5 6847 echo "configure:6848: checking "$xe_msg_checking"" >&5
6838 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6848 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6839 6849
6840 xe_check_libs=" -lldap -llber -lkrb" 6850 xe_check_libs=" -lldap -llber -lkrb"
6841 cat > conftest.$ac_ext <<EOF 6851 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure" 6852 #line 6853 "configure"
6843 #include "confdefs.h" 6853 #include "confdefs.h"
6844 /* Override any gcc2 internal prototype to avoid an error. */ 6854 /* Override any gcc2 internal prototype to avoid an error. */
6845 /* We use char because int might match the return type of a gcc2 6855 /* We use char because int might match the return type of a gcc2
6846 builtin and then its argument prototype would still apply. */ 6856 builtin and then its argument prototype would still apply. */
6847 char ldap_open(); 6857 char ldap_open();
6848 6858
6849 int main() { 6859 int main() {
6850 ldap_open() 6860 ldap_open()
6851 ; return 0; } 6861 ; return 0; }
6852 EOF 6862 EOF
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6854 rm -rf conftest* 6864 rm -rf conftest*
6855 eval "ac_cv_lib_$ac_lib_var=yes" 6865 eval "ac_cv_lib_$ac_lib_var=yes"
6856 else 6866 else
6857 echo "configure: failed program was:" >&5 6867 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5 6868 cat conftest.$ac_ext >&5
6873 } 6883 }
6874 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 6884 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6875 xe_msg_checking="for ldap_open in -lldap" 6885 xe_msg_checking="for ldap_open in -lldap"
6876 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 6886 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6877 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6887 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6878 echo "configure:6879: checking "$xe_msg_checking"" >&5 6888 echo "configure:6889: checking "$xe_msg_checking"" >&5
6879 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6889 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6880 6890
6881 xe_check_libs=" -lldap -llber -lkrb -ldes" 6891 xe_check_libs=" -lldap -llber -lkrb -ldes"
6882 cat > conftest.$ac_ext <<EOF 6892 cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure" 6893 #line 6894 "configure"
6884 #include "confdefs.h" 6894 #include "confdefs.h"
6885 /* Override any gcc2 internal prototype to avoid an error. */ 6895 /* Override any gcc2 internal prototype to avoid an error. */
6886 /* We use char because int might match the return type of a gcc2 6896 /* We use char because int might match the return type of a gcc2
6887 builtin and then its argument prototype would still apply. */ 6897 builtin and then its argument prototype would still apply. */
6888 char ldap_open(); 6898 char ldap_open();
6889 6899
6890 int main() { 6900 int main() {
6891 ldap_open() 6901 ldap_open()
6892 ; return 0; } 6902 ; return 0; }
6893 EOF 6903 EOF
6894 if { (eval echo configure:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6895 rm -rf conftest* 6905 rm -rf conftest*
6896 eval "ac_cv_lib_$ac_lib_var=yes" 6906 eval "ac_cv_lib_$ac_lib_var=yes"
6897 else 6907 else
6898 echo "configure: failed program was:" >&5 6908 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5 6909 cat conftest.$ac_ext >&5
6940 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 6950 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6941 fi 6951 fi
6942 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 6952 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6943 do 6953 do
6944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_func" >&5 6955 echo "configure:6956: checking for $ac_func" >&5
6946 6956
6947 cat > conftest.$ac_ext <<EOF 6957 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure" 6958 #line 6959 "configure"
6949 #include "confdefs.h" 6959 #include "confdefs.h"
6950 /* System header to define __stub macros and hopefully few prototypes, 6960 /* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char $ac_func(); below. */ 6961 which can conflict with char $ac_func(); below. */
6952 #include <assert.h> 6962 #include <assert.h>
6953 /* Override any gcc2 internal prototype to avoid an error. */ 6963 /* Override any gcc2 internal prototype to avoid an error. */
6966 $ac_func(); 6976 $ac_func();
6967 #endif 6977 #endif
6968 6978
6969 ; return 0; } 6979 ; return 0; }
6970 EOF 6980 EOF
6971 if { (eval echo configure:6972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6981 if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6972 rm -rf conftest* 6982 rm -rf conftest*
6973 eval "ac_cv_func_$ac_func=yes" 6983 eval "ac_cv_func_$ac_func=yes"
6974 else 6984 else
6975 echo "configure: failed program was:" >&5 6985 echo "configure: failed program was:" >&5
6976 cat conftest.$ac_ext >&5 6986 cat conftest.$ac_ext >&5
6998 fi 7008 fi
6999 7009
7000 7010
7001 if test "$window_system" != "none"; then 7011 if test "$window_system" != "none"; then
7002 echo "checking for graphics libraries" 1>&6 7012 echo "checking for graphics libraries" 1>&6
7003 echo "configure:7004: checking for graphics libraries" >&5 7013 echo "configure:7014: checking for graphics libraries" >&5
7004 7014
7005 xpm_problem="" 7015 xpm_problem=""
7006 if test -z "$with_xpm"; then 7016 if test -z "$with_xpm"; then
7007 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 7017 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7008 echo "configure:7009: checking for Xpm - no older than 3.4f" >&5 7018 echo "configure:7019: checking for Xpm - no older than 3.4f" >&5
7009 xe_check_libs=-lXpm 7019 xe_check_libs=-lXpm
7010 cat > conftest.$ac_ext <<EOF 7020 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure" 7021 #line 7022 "configure"
7012 #include "confdefs.h" 7022 #include "confdefs.h"
7013 #include <X11/xpm.h> 7023 #include <X11/xpm.h>
7014 int main(int c, char **v) { 7024 int main(int c, char **v) {
7015 return c == 1 ? 0 : 7025 return c == 1 ? 0 :
7016 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 7026 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7017 XpmIncludeVersion < 30406 ? 2 : 0 ;} 7027 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7018 EOF 7028 EOF
7019 if { (eval echo configure:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7029 if { (eval echo configure:7030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7020 then 7030 then
7021 ./conftest dummy_arg; xpm_status=$?; 7031 ./conftest dummy_arg; xpm_status=$?;
7022 if test "$xpm_status" = "0"; then 7032 if test "$xpm_status" = "0"; then
7023 with_xpm=yes; 7033 with_xpm=yes;
7024 else 7034 else
7056 EOF 7066 EOF
7057 } 7067 }
7058 7068
7059 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 7069 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7060 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 7070 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7061 echo "configure:7062: checking for \"FOR_MSW\" xpm" >&5 7071 echo "configure:7072: checking for \"FOR_MSW\" xpm" >&5
7062 xe_check_libs=-lXpm 7072 xe_check_libs=-lXpm
7063 cat > conftest.$ac_ext <<EOF 7073 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure" 7074 #line 7075 "configure"
7065 #include "confdefs.h" 7075 #include "confdefs.h"
7066 7076
7067 int main() { 7077 int main() {
7068 XpmCreatePixmapFromData() 7078 XpmCreatePixmapFromData()
7069 ; return 0; } 7079 ; return 0; }
7070 EOF 7080 EOF
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7081 if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7072 rm -rf conftest* 7082 rm -rf conftest*
7073 xpm_for_msw=no 7083 xpm_for_msw=no
7074 else 7084 else
7075 echo "configure: failed program was:" >&5 7085 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5 7086 cat conftest.$ac_ext >&5
7092 fi 7102 fi
7093 fi 7103 fi
7094 7104
7095 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7105 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7096 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7106 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7097 echo "configure:7098: checking for compface.h" >&5 7107 echo "configure:7108: checking for compface.h" >&5
7098 7108
7099 cat > conftest.$ac_ext <<EOF 7109 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure" 7110 #line 7111 "configure"
7101 #include "confdefs.h" 7111 #include "confdefs.h"
7102 #include <compface.h> 7112 #include <compface.h>
7103 EOF 7113 EOF
7104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7105 { (eval echo configure:7106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7115 { (eval echo configure:7116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7107 if test -z "$ac_err"; then 7117 if test -z "$ac_err"; then
7108 rm -rf conftest* 7118 rm -rf conftest*
7109 eval "ac_cv_header_$ac_safe=yes" 7119 eval "ac_cv_header_$ac_safe=yes"
7110 else 7120 else
7123 with_xface=no 7133 with_xface=no
7124 fi 7134 fi
7125 } 7135 }
7126 test -z "$with_xface" && { 7136 test -z "$with_xface" && {
7127 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7137 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7128 echo "configure:7129: checking for UnGenFace in -lcompface" >&5 7138 echo "configure:7139: checking for UnGenFace in -lcompface" >&5
7129 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7139 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7130 7140
7131 xe_check_libs=" -lcompface " 7141 xe_check_libs=" -lcompface "
7132 cat > conftest.$ac_ext <<EOF 7142 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure" 7143 #line 7144 "configure"
7134 #include "confdefs.h" 7144 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */ 7145 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2 7146 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */ 7147 builtin and then its argument prototype would still apply. */
7138 char UnGenFace(); 7148 char UnGenFace();
7139 7149
7140 int main() { 7150 int main() {
7141 UnGenFace() 7151 UnGenFace()
7142 ; return 0; } 7152 ; return 0; }
7143 EOF 7153 EOF
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7145 rm -rf conftest* 7155 rm -rf conftest*
7146 eval "ac_cv_lib_$ac_lib_var=yes" 7156 eval "ac_cv_lib_$ac_lib_var=yes"
7147 else 7157 else
7148 echo "configure: failed program was:" >&5 7158 echo "configure: failed program was:" >&5
7149 cat conftest.$ac_ext >&5 7159 cat conftest.$ac_ext >&5
7191 fi 7201 fi
7192 7202
7193 if test "$with_png $with_tiff" != "no no"; then 7203 if test "$with_png $with_tiff" != "no no"; then
7194 7204
7195 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 7205 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7196 echo "configure:7197: checking for inflate in -lc" >&5 7206 echo "configure:7207: checking for inflate in -lc" >&5
7197 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 7207 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7198 7208
7199 xe_check_libs=" -lc " 7209 xe_check_libs=" -lc "
7200 cat > conftest.$ac_ext <<EOF 7210 cat > conftest.$ac_ext <<EOF
7201 #line 7202 "configure" 7211 #line 7212 "configure"
7202 #include "confdefs.h" 7212 #include "confdefs.h"
7203 /* Override any gcc2 internal prototype to avoid an error. */ 7213 /* Override any gcc2 internal prototype to avoid an error. */
7204 /* We use char because int might match the return type of a gcc2 7214 /* We use char because int might match the return type of a gcc2
7205 builtin and then its argument prototype would still apply. */ 7215 builtin and then its argument prototype would still apply. */
7206 char inflate(); 7216 char inflate();
7207 7217
7208 int main() { 7218 int main() {
7209 inflate() 7219 inflate()
7210 ; return 0; } 7220 ; return 0; }
7211 EOF 7221 EOF
7212 if { (eval echo configure:7213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7222 if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7213 rm -rf conftest* 7223 rm -rf conftest*
7214 eval "ac_cv_lib_$ac_lib_var=yes" 7224 eval "ac_cv_lib_$ac_lib_var=yes"
7215 else 7225 else
7216 echo "configure: failed program was:" >&5 7226 echo "configure: failed program was:" >&5
7217 cat conftest.$ac_ext >&5 7227 cat conftest.$ac_ext >&5
7226 : 7236 :
7227 else 7237 else
7228 echo "$ac_t""no" 1>&6 7238 echo "$ac_t""no" 1>&6
7229 7239
7230 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 7240 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7231 echo "configure:7232: checking for inflate in -lz" >&5 7241 echo "configure:7242: checking for inflate in -lz" >&5
7232 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 7242 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7233 7243
7234 xe_check_libs=" -lz " 7244 xe_check_libs=" -lz "
7235 cat > conftest.$ac_ext <<EOF 7245 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure" 7246 #line 7247 "configure"
7237 #include "confdefs.h" 7247 #include "confdefs.h"
7238 /* Override any gcc2 internal prototype to avoid an error. */ 7248 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2 7249 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */ 7250 builtin and then its argument prototype would still apply. */
7241 char inflate(); 7251 char inflate();
7242 7252
7243 int main() { 7253 int main() {
7244 inflate() 7254 inflate()
7245 ; return 0; } 7255 ; return 0; }
7246 EOF 7256 EOF
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7248 rm -rf conftest* 7258 rm -rf conftest*
7249 eval "ac_cv_lib_$ac_lib_var=yes" 7259 eval "ac_cv_lib_$ac_lib_var=yes"
7250 else 7260 else
7251 echo "configure: failed program was:" >&5 7261 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5 7262 cat conftest.$ac_ext >&5
7261 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 7271 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7262 else 7272 else
7263 echo "$ac_t""no" 1>&6 7273 echo "$ac_t""no" 1>&6
7264 7274
7265 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 7275 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7266 echo "configure:7267: checking for inflate in -lgz" >&5 7276 echo "configure:7277: checking for inflate in -lgz" >&5
7267 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 7277 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7268 7278
7269 xe_check_libs=" -lgz " 7279 xe_check_libs=" -lgz "
7270 cat > conftest.$ac_ext <<EOF 7280 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure" 7281 #line 7282 "configure"
7272 #include "confdefs.h" 7282 #include "confdefs.h"
7273 /* Override any gcc2 internal prototype to avoid an error. */ 7283 /* Override any gcc2 internal prototype to avoid an error. */
7274 /* We use char because int might match the return type of a gcc2 7284 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */ 7285 builtin and then its argument prototype would still apply. */
7276 char inflate(); 7286 char inflate();
7277 7287
7278 int main() { 7288 int main() {
7279 inflate() 7289 inflate()
7280 ; return 0; } 7290 ; return 0; }
7281 EOF 7291 EOF
7282 if { (eval echo configure:7283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7292 if { (eval echo configure:7293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7283 rm -rf conftest* 7293 rm -rf conftest*
7284 eval "ac_cv_lib_$ac_lib_var=yes" 7294 eval "ac_cv_lib_$ac_lib_var=yes"
7285 else 7295 else
7286 echo "configure: failed program was:" >&5 7296 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5 7297 cat conftest.$ac_ext >&5
7307 7317
7308 fi 7318 fi
7309 7319
7310 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 7320 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7311 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 7321 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7312 echo "configure:7313: checking for jpeglib.h" >&5 7322 echo "configure:7323: checking for jpeglib.h" >&5
7313 7323
7314 cat > conftest.$ac_ext <<EOF 7324 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure" 7325 #line 7326 "configure"
7316 #include "confdefs.h" 7326 #include "confdefs.h"
7317 #include <jpeglib.h> 7327 #include <jpeglib.h>
7318 EOF 7328 EOF
7319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7320 { (eval echo configure:7321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7330 { (eval echo configure:7331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7322 if test -z "$ac_err"; then 7332 if test -z "$ac_err"; then
7323 rm -rf conftest* 7333 rm -rf conftest*
7324 eval "ac_cv_header_$ac_safe=yes" 7334 eval "ac_cv_header_$ac_safe=yes"
7325 else 7335 else
7338 with_jpeg=no 7348 with_jpeg=no
7339 fi 7349 fi
7340 } 7350 }
7341 test -z "$with_jpeg" && { 7351 test -z "$with_jpeg" && {
7342 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 7352 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7343 echo "configure:7344: checking for jpeg_destroy_decompress in -ljpeg" >&5 7353 echo "configure:7354: checking for jpeg_destroy_decompress in -ljpeg" >&5
7344 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 7354 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7345 7355
7346 xe_check_libs=" -ljpeg " 7356 xe_check_libs=" -ljpeg "
7347 cat > conftest.$ac_ext <<EOF 7357 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure" 7358 #line 7359 "configure"
7349 #include "confdefs.h" 7359 #include "confdefs.h"
7350 /* Override any gcc2 internal prototype to avoid an error. */ 7360 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2 7361 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */ 7362 builtin and then its argument prototype would still apply. */
7353 char jpeg_destroy_decompress(); 7363 char jpeg_destroy_decompress();
7354 7364
7355 int main() { 7365 int main() {
7356 jpeg_destroy_decompress() 7366 jpeg_destroy_decompress()
7357 ; return 0; } 7367 ; return 0; }
7358 EOF 7368 EOF
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7369 if { (eval echo configure:7370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7360 rm -rf conftest* 7370 rm -rf conftest*
7361 eval "ac_cv_lib_$ac_lib_var=yes" 7371 eval "ac_cv_lib_$ac_lib_var=yes"
7362 else 7372 else
7363 echo "configure: failed program was:" >&5 7373 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5 7374 cat conftest.$ac_ext >&5
7390 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7400 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7391 fi 7401 fi
7392 7402
7393 png_problem="" 7403 png_problem=""
7394 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7404 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7395 echo "configure:7396: checking for pow" >&5 7405 echo "configure:7406: checking for pow" >&5
7396 7406
7397 cat > conftest.$ac_ext <<EOF 7407 cat > conftest.$ac_ext <<EOF
7398 #line 7399 "configure" 7408 #line 7409 "configure"
7399 #include "confdefs.h" 7409 #include "confdefs.h"
7400 /* System header to define __stub macros and hopefully few prototypes, 7410 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char pow(); below. */ 7411 which can conflict with char pow(); below. */
7402 #include <assert.h> 7412 #include <assert.h>
7403 /* Override any gcc2 internal prototype to avoid an error. */ 7413 /* Override any gcc2 internal prototype to avoid an error. */
7416 pow(); 7426 pow();
7417 #endif 7427 #endif
7418 7428
7419 ; return 0; } 7429 ; return 0; }
7420 EOF 7430 EOF
7421 if { (eval echo configure:7422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 rm -rf conftest* 7432 rm -rf conftest*
7423 eval "ac_cv_func_pow=yes" 7433 eval "ac_cv_func_pow=yes"
7424 else 7434 else
7425 echo "configure: failed program was:" >&5 7435 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5 7436 cat conftest.$ac_ext >&5
7437 with_png=no 7447 with_png=no
7438 fi 7448 fi
7439 } 7449 }
7440 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7450 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7441 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7451 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7442 echo "configure:7443: checking for png.h" >&5 7452 echo "configure:7453: checking for png.h" >&5
7443 7453
7444 cat > conftest.$ac_ext <<EOF 7454 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure" 7455 #line 7456 "configure"
7446 #include "confdefs.h" 7456 #include "confdefs.h"
7447 #include <png.h> 7457 #include <png.h>
7448 EOF 7458 EOF
7449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7450 { (eval echo configure:7451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7460 { (eval echo configure:7461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7452 if test -z "$ac_err"; then 7462 if test -z "$ac_err"; then
7453 rm -rf conftest* 7463 rm -rf conftest*
7454 eval "ac_cv_header_$ac_safe=yes" 7464 eval "ac_cv_header_$ac_safe=yes"
7455 else 7465 else
7468 with_png=no 7478 with_png=no
7469 fi 7479 fi
7470 } 7480 }
7471 test -z "$with_png" && { 7481 test -z "$with_png" && {
7472 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7482 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7473 echo "configure:7474: checking for png_read_image in -lpng" >&5 7483 echo "configure:7484: checking for png_read_image in -lpng" >&5
7474 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7484 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7475 7485
7476 xe_check_libs=" -lpng " 7486 xe_check_libs=" -lpng "
7477 cat > conftest.$ac_ext <<EOF 7487 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure" 7488 #line 7489 "configure"
7479 #include "confdefs.h" 7489 #include "confdefs.h"
7480 /* Override any gcc2 internal prototype to avoid an error. */ 7490 /* Override any gcc2 internal prototype to avoid an error. */
7481 /* We use char because int might match the return type of a gcc2 7491 /* We use char because int might match the return type of a gcc2
7482 builtin and then its argument prototype would still apply. */ 7492 builtin and then its argument prototype would still apply. */
7483 char png_read_image(); 7493 char png_read_image();
7484 7494
7485 int main() { 7495 int main() {
7486 png_read_image() 7496 png_read_image()
7487 ; return 0; } 7497 ; return 0; }
7488 EOF 7498 EOF
7489 if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7499 if { (eval echo configure:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7490 rm -rf conftest* 7500 rm -rf conftest*
7491 eval "ac_cv_lib_$ac_lib_var=yes" 7501 eval "ac_cv_lib_$ac_lib_var=yes"
7492 else 7502 else
7493 echo "configure: failed program was:" >&5 7503 echo "configure: failed program was:" >&5
7494 cat conftest.$ac_ext >&5 7504 cat conftest.$ac_ext >&5
7507 fi 7517 fi
7508 7518
7509 } 7519 }
7510 if test -z "$with_png"; then 7520 if test -z "$with_png"; then
7511 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7521 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7512 echo "configure:7513: checking for workable png version information" >&5 7522 echo "configure:7523: checking for workable png version information" >&5
7513 xe_check_libs="-lpng -lz" 7523 xe_check_libs="-lpng -lz"
7514 cat > conftest.$ac_ext <<EOF 7524 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure" 7525 #line 7526 "configure"
7516 #include "confdefs.h" 7526 #include "confdefs.h"
7517 #include <png.h> 7527 #include <png.h>
7518 int main(int c, char **v) { 7528 int main(int c, char **v) {
7519 if (c == 1) return 0; 7529 if (c == 1) return 0;
7520 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7530 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7521 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7531 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7522 EOF 7532 EOF
7523 if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7524 then 7534 then
7525 ./conftest dummy_arg; png_status=$?; 7535 ./conftest dummy_arg; png_status=$?;
7526 if test "$png_status" = "0"; then 7536 if test "$png_status" = "0"; then
7527 with_png=yes; 7537 with_png=yes;
7528 else 7538 else
7561 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7571 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7562 fi 7572 fi
7563 7573
7564 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7574 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7565 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7575 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7566 echo "configure:7567: checking for tiffio.h" >&5 7576 echo "configure:7577: checking for tiffio.h" >&5
7567 7577
7568 cat > conftest.$ac_ext <<EOF 7578 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure" 7579 #line 7580 "configure"
7570 #include "confdefs.h" 7580 #include "confdefs.h"
7571 #include <tiffio.h> 7581 #include <tiffio.h>
7572 EOF 7582 EOF
7573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7574 { (eval echo configure:7575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7584 { (eval echo configure:7585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7576 if test -z "$ac_err"; then 7586 if test -z "$ac_err"; then
7577 rm -rf conftest* 7587 rm -rf conftest*
7578 eval "ac_cv_header_$ac_safe=yes" 7588 eval "ac_cv_header_$ac_safe=yes"
7579 else 7589 else
7592 with_tiff=no 7602 with_tiff=no
7593 fi 7603 fi
7594 } 7604 }
7595 test -z "$with_tiff" && { 7605 test -z "$with_tiff" && {
7596 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7606 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7597 echo "configure:7598: checking for TIFFClientOpen in -ltiff" >&5 7607 echo "configure:7608: checking for TIFFClientOpen in -ltiff" >&5
7598 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7608 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7599 7609
7600 xe_check_libs=" -ltiff " 7610 xe_check_libs=" -ltiff "
7601 cat > conftest.$ac_ext <<EOF 7611 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure" 7612 #line 7613 "configure"
7603 #include "confdefs.h" 7613 #include "confdefs.h"
7604 /* Override any gcc2 internal prototype to avoid an error. */ 7614 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2 7615 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */ 7616 builtin and then its argument prototype would still apply. */
7607 char TIFFClientOpen(); 7617 char TIFFClientOpen();
7608 7618
7609 int main() { 7619 int main() {
7610 TIFFClientOpen() 7620 TIFFClientOpen()
7611 ; return 0; } 7621 ; return 0; }
7612 EOF 7622 EOF
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7623 if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7614 rm -rf conftest* 7624 rm -rf conftest*
7615 eval "ac_cv_lib_$ac_lib_var=yes" 7625 eval "ac_cv_lib_$ac_lib_var=yes"
7616 else 7626 else
7617 echo "configure: failed program was:" >&5 7627 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5 7628 cat conftest.$ac_ext >&5
7647 7657
7648 7658
7649 if test "$with_x11" = "yes"; then 7659 if test "$with_x11" = "yes"; then
7650 7660
7651 echo "checking for X11 graphics libraries" 1>&6 7661 echo "checking for X11 graphics libraries" 1>&6
7652 echo "configure:7653: checking for X11 graphics libraries" >&5 7662 echo "configure:7663: checking for X11 graphics libraries" >&5
7653 7663
7654 echo "checking for the Athena widgets" 1>&6 7664 echo "checking for the Athena widgets" 1>&6
7655 echo "configure:7656: checking for the Athena widgets" >&5 7665 echo "configure:7666: checking for the Athena widgets" >&5
7656 7666
7657 case "$with_athena" in 7667 case "$with_athena" in
7658 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 7668 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7659 "3d") athena_variant=Xaw3d athena_3d=yes ;; 7669 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7660 "next") athena_variant=neXtaw athena_3d=yes ;; 7670 "next") athena_variant=neXtaw athena_3d=yes ;;
7664 esac 7674 esac
7665 7675
7666 if test "$athena_3d" = "no"; then 7676 if test "$athena_3d" = "no"; then
7667 7677
7668 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 7678 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7669 echo "configure:7670: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 7679 echo "configure:7680: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7670 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7680 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7671 7681
7672 xe_check_libs=" -l$athena_variant " 7682 xe_check_libs=" -l$athena_variant "
7673 cat > conftest.$ac_ext <<EOF 7683 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure" 7684 #line 7685 "configure"
7675 #include "confdefs.h" 7685 #include "confdefs.h"
7676 /* Override any gcc2 internal prototype to avoid an error. */ 7686 /* Override any gcc2 internal prototype to avoid an error. */
7677 /* We use char because int might match the return type of a gcc2 7687 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */ 7688 builtin and then its argument prototype would still apply. */
7679 char XawScrollbarSetThumb(); 7689 char XawScrollbarSetThumb();
7680 7690
7681 int main() { 7691 int main() {
7682 XawScrollbarSetThumb() 7692 XawScrollbarSetThumb()
7683 ; return 0; } 7693 ; return 0; }
7684 EOF 7694 EOF
7685 if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7686 rm -rf conftest* 7696 rm -rf conftest*
7687 eval "ac_cv_lib_$ac_lib_var=yes" 7697 eval "ac_cv_lib_$ac_lib_var=yes"
7688 else 7698 else
7689 echo "configure: failed program was:" >&5 7699 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5 7700 cat conftest.$ac_ext >&5
7696 7706
7697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 7707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7698 echo "$ac_t""yes" 1>&6 7708 echo "$ac_t""yes" 1>&6
7699 7709
7700 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 7710 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7701 echo "configure:7702: checking for threeDClassRec in -l$athena_variant" >&5 7711 echo "configure:7712: checking for threeDClassRec in -l$athena_variant" >&5
7702 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 7712 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7703 7713
7704 xe_check_libs=" -l$athena_variant " 7714 xe_check_libs=" -l$athena_variant "
7705 cat > conftest.$ac_ext <<EOF 7715 cat > conftest.$ac_ext <<EOF
7706 #line 7707 "configure" 7716 #line 7717 "configure"
7707 #include "confdefs.h" 7717 #include "confdefs.h"
7708 /* Override any gcc2 internal prototype to avoid an error. */ 7718 /* Override any gcc2 internal prototype to avoid an error. */
7709 /* We use char because int might match the return type of a gcc2 7719 /* We use char because int might match the return type of a gcc2
7710 builtin and then its argument prototype would still apply. */ 7720 builtin and then its argument prototype would still apply. */
7711 char threeDClassRec(); 7721 char threeDClassRec();
7712 7722
7713 int main() { 7723 int main() {
7714 threeDClassRec() 7724 threeDClassRec()
7715 ; return 0; } 7725 ; return 0; }
7716 EOF 7726 EOF
7717 if { (eval echo configure:7718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7718 rm -rf conftest* 7728 rm -rf conftest*
7719 eval "ac_cv_lib_$ac_lib_var=yes" 7729 eval "ac_cv_lib_$ac_lib_var=yes"
7720 else 7730 else
7721 echo "configure: failed program was:" >&5 7731 echo "configure: failed program was:" >&5
7722 cat conftest.$ac_ext >&5 7732 cat conftest.$ac_ext >&5
7743 7753
7744 7754
7745 else 7755 else
7746 7756
7747 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 7757 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7748 echo "configure:7749: checking for threeDClassRec in -l$athena_variant" >&5 7758 echo "configure:7759: checking for threeDClassRec in -l$athena_variant" >&5
7749 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 7759 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7750 7760
7751 xe_check_libs=" -l$athena_variant " 7761 xe_check_libs=" -l$athena_variant "
7752 cat > conftest.$ac_ext <<EOF 7762 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure" 7763 #line 7764 "configure"
7754 #include "confdefs.h" 7764 #include "confdefs.h"
7755 /* Override any gcc2 internal prototype to avoid an error. */ 7765 /* Override any gcc2 internal prototype to avoid an error. */
7756 /* We use char because int might match the return type of a gcc2 7766 /* We use char because int might match the return type of a gcc2
7757 builtin and then its argument prototype would still apply. */ 7767 builtin and then its argument prototype would still apply. */
7758 char threeDClassRec(); 7768 char threeDClassRec();
7759 7769
7760 int main() { 7770 int main() {
7761 threeDClassRec() 7771 threeDClassRec()
7762 ; return 0; } 7772 ; return 0; }
7763 EOF 7773 EOF
7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7765 rm -rf conftest* 7775 rm -rf conftest*
7766 eval "ac_cv_lib_$ac_lib_var=yes" 7776 eval "ac_cv_lib_$ac_lib_var=yes"
7767 else 7777 else
7768 echo "configure: failed program was:" >&5 7778 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5 7779 cat conftest.$ac_ext >&5
7777 echo "$ac_t""yes" 1>&6 7787 echo "$ac_t""yes" 1>&6
7778 athena_lib=$athena_variant 7788 athena_lib=$athena_variant
7779 else 7789 else
7780 echo "$ac_t""no" 1>&6 7790 echo "$ac_t""no" 1>&6
7781 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 7791 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
7782 echo "configure:7783: checking for threeDClassRec in -lXaw" >&5 7792 echo "configure:7793: checking for threeDClassRec in -lXaw" >&5
7783 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 7793 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
7784 7794
7785 xe_check_libs=" -lXaw " 7795 xe_check_libs=" -lXaw "
7786 cat > conftest.$ac_ext <<EOF 7796 cat > conftest.$ac_ext <<EOF
7787 #line 7788 "configure" 7797 #line 7798 "configure"
7788 #include "confdefs.h" 7798 #include "confdefs.h"
7789 /* Override any gcc2 internal prototype to avoid an error. */ 7799 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2 7800 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */ 7801 builtin and then its argument prototype would still apply. */
7792 char threeDClassRec(); 7802 char threeDClassRec();
7793 7803
7794 int main() { 7804 int main() {
7795 threeDClassRec() 7805 threeDClassRec()
7796 ; return 0; } 7806 ; return 0; }
7797 EOF 7807 EOF
7798 if { (eval echo configure:7799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7799 rm -rf conftest* 7809 rm -rf conftest*
7800 eval "ac_cv_lib_$ac_lib_var=yes" 7810 eval "ac_cv_lib_$ac_lib_var=yes"
7801 else 7811 else
7802 echo "configure: failed program was:" >&5 7812 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5 7813 cat conftest.$ac_ext >&5
7824 fi 7834 fi
7825 7835
7826 if test "$athena_3d" = "no"; then 7836 if test "$athena_3d" = "no"; then
7827 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 7837 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7828 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 7838 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7829 echo "configure:7830: checking for X11/Xaw/ThreeD.h" >&5 7839 echo "configure:7840: checking for X11/Xaw/ThreeD.h" >&5
7830 7840
7831 cat > conftest.$ac_ext <<EOF 7841 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure" 7842 #line 7843 "configure"
7833 #include "confdefs.h" 7843 #include "confdefs.h"
7834 #include <X11/Xaw/ThreeD.h> 7844 #include <X11/Xaw/ThreeD.h>
7835 EOF 7845 EOF
7836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7837 { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7847 { (eval echo configure:7848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839 if test -z "$ac_err"; then 7849 if test -z "$ac_err"; then
7840 rm -rf conftest* 7850 rm -rf conftest*
7841 eval "ac_cv_header_$ac_safe=yes" 7851 eval "ac_cv_header_$ac_safe=yes"
7842 else 7852 else
7852 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2 7862 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7853 else 7863 else
7854 echo "$ac_t""no" 1>&6 7864 echo "$ac_t""no" 1>&6
7855 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 7865 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
7856 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 7866 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
7857 echo "configure:7858: checking for X11/Xaw/XawInit.h" >&5 7867 echo "configure:7868: checking for X11/Xaw/XawInit.h" >&5
7858 7868
7859 cat > conftest.$ac_ext <<EOF 7869 cat > conftest.$ac_ext <<EOF
7860 #line 7861 "configure" 7870 #line 7871 "configure"
7861 #include "confdefs.h" 7871 #include "confdefs.h"
7862 #include <X11/Xaw/XawInit.h> 7872 #include <X11/Xaw/XawInit.h>
7863 EOF 7873 EOF
7864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7865 { (eval echo configure:7866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7867 if test -z "$ac_err"; then 7877 if test -z "$ac_err"; then
7868 rm -rf conftest* 7878 rm -rf conftest*
7869 eval "ac_cv_header_$ac_safe=yes" 7879 eval "ac_cv_header_$ac_safe=yes"
7870 else 7880 else
7886 fi 7896 fi
7887 7897
7888 else 7898 else
7889 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 7899 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
7890 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 7900 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
7891 echo "configure:7892: checking for X11/$athena_variant/XawInit.h" >&5 7901 echo "configure:7902: checking for X11/$athena_variant/XawInit.h" >&5
7892 7902
7893 cat > conftest.$ac_ext <<EOF 7903 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure" 7904 #line 7905 "configure"
7895 #include "confdefs.h" 7905 #include "confdefs.h"
7896 #include <X11/$athena_variant/XawInit.h> 7906 #include <X11/$athena_variant/XawInit.h>
7897 EOF 7907 EOF
7898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7899 { (eval echo configure:7900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7909 { (eval echo configure:7910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7901 if test -z "$ac_err"; then 7911 if test -z "$ac_err"; then
7902 rm -rf conftest* 7912 rm -rf conftest*
7903 eval "ac_cv_header_$ac_safe=yes" 7913 eval "ac_cv_header_$ac_safe=yes"
7904 else 7914 else
7911 rm -f conftest* 7921 rm -f conftest*
7912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7913 echo "$ac_t""yes" 1>&6 7923 echo "$ac_t""yes" 1>&6
7914 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 7924 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
7915 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 7925 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
7916 echo "configure:7917: checking for X11/$athena_variant/ThreeD.h" >&5 7926 echo "configure:7927: checking for X11/$athena_variant/ThreeD.h" >&5
7917 7927
7918 cat > conftest.$ac_ext <<EOF 7928 cat > conftest.$ac_ext <<EOF
7919 #line 7920 "configure" 7929 #line 7930 "configure"
7920 #include "confdefs.h" 7930 #include "confdefs.h"
7921 #include <X11/$athena_variant/ThreeD.h> 7931 #include <X11/$athena_variant/ThreeD.h>
7922 EOF 7932 EOF
7923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7924 { (eval echo configure:7925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7934 { (eval echo configure:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7926 if test -z "$ac_err"; then 7936 if test -z "$ac_err"; then
7927 rm -rf conftest* 7937 rm -rf conftest*
7928 eval "ac_cv_header_$ac_safe=yes" 7938 eval "ac_cv_header_$ac_safe=yes"
7929 else 7939 else
7944 else 7954 else
7945 echo "$ac_t""no" 1>&6 7955 echo "$ac_t""no" 1>&6
7946 fi 7956 fi
7947 7957
7948 7958
7959 if test -z "$athena_h_path"; then
7960 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
7961 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
7962 echo "configure:7963: checking for $athena_variant/XawInit.h" >&5
7963
7964 cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7967 #include <$athena_variant/XawInit.h>
7968 EOF
7969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7970 { (eval echo configure:7971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7972 if test -z "$ac_err"; then
7973 rm -rf conftest*
7974 eval "ac_cv_header_$ac_safe=yes"
7975 else
7976 echo "$ac_err" >&5
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7979 rm -rf conftest*
7980 eval "ac_cv_header_$ac_safe=no"
7981 fi
7982 rm -f conftest*
7983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7984 echo "$ac_t""yes" 1>&6
7985 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
7986 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
7987 echo "configure:7988: checking for $athena_variant/ThreeD.h" >&5
7988
7989 cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7992 #include <$athena_variant/ThreeD.h>
7993 EOF
7994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7995 { (eval echo configure:7996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7997 if test -z "$ac_err"; then
7998 rm -rf conftest*
7999 eval "ac_cv_header_$ac_safe=yes"
8000 else
8001 echo "$ac_err" >&5
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8004 rm -rf conftest*
8005 eval "ac_cv_header_$ac_safe=no"
8006 fi
8007 rm -f conftest*
8008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8009 echo "$ac_t""yes" 1>&6
8010 athena_h_path=$athena_variant
8011 else
8012 echo "$ac_t""no" 1>&6
8013 fi
8014
8015 else
8016 echo "$ac_t""no" 1>&6
8017 fi
8018
8019 fi
8020
7949 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 8021 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
7950 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 8022 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
7951 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 8023 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
7952 echo "configure:7953: checking for X11/Xaw3d/XawInit.h" >&5 8024 echo "configure:8025: checking for X11/Xaw3d/XawInit.h" >&5
7953 8025
7954 cat > conftest.$ac_ext <<EOF 8026 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure" 8027 #line 8028 "configure"
7956 #include "confdefs.h" 8028 #include "confdefs.h"
7957 #include <X11/Xaw3d/XawInit.h> 8029 #include <X11/Xaw3d/XawInit.h>
7958 EOF 8030 EOF
7959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7960 { (eval echo configure:7961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8032 { (eval echo configure:8033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7962 if test -z "$ac_err"; then 8034 if test -z "$ac_err"; then
7963 rm -rf conftest* 8035 rm -rf conftest*
7964 eval "ac_cv_header_$ac_safe=yes" 8036 eval "ac_cv_header_$ac_safe=yes"
7965 else 8037 else
7972 rm -f conftest* 8044 rm -f conftest*
7973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6 8046 echo "$ac_t""yes" 1>&6
7975 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 8047 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
7976 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 8048 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
7977 echo "configure:7978: checking for X11/Xaw3d/ThreeD.h" >&5 8049 echo "configure:8050: checking for X11/Xaw3d/ThreeD.h" >&5
7978 8050
7979 cat > conftest.$ac_ext <<EOF 8051 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure" 8052 #line 8053 "configure"
7981 #include "confdefs.h" 8053 #include "confdefs.h"
7982 #include <X11/Xaw3d/ThreeD.h> 8054 #include <X11/Xaw3d/ThreeD.h>
7983 EOF 8055 EOF
7984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7985 { (eval echo configure:7986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8057 { (eval echo configure:8058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7987 if test -z "$ac_err"; then 8059 if test -z "$ac_err"; then
7988 rm -rf conftest* 8060 rm -rf conftest*
7989 eval "ac_cv_header_$ac_safe=yes" 8061 eval "ac_cv_header_$ac_safe=yes"
7990 else 8062 else
8009 echo "$ac_t""no" 1>&6 8081 echo "$ac_t""no" 1>&6
8010 fi 8082 fi
8011 8083
8012 fi 8084 fi
8013 8085
8086 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8087 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8088 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8089 echo "configure:8090: checking for Xaw3d/XawInit.h" >&5
8090
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 #include <Xaw3d/XawInit.h>
8095 EOF
8096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8097 { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8099 if test -z "$ac_err"; then
8100 rm -rf conftest*
8101 eval "ac_cv_header_$ac_safe=yes"
8102 else
8103 echo "$ac_err" >&5
8104 echo "configure: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
8106 rm -rf conftest*
8107 eval "ac_cv_header_$ac_safe=no"
8108 fi
8109 rm -f conftest*
8110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8111 echo "$ac_t""yes" 1>&6
8112 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8113 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8114 echo "configure:8115: checking for Xaw3d/ThreeD.h" >&5
8115
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8119 #include <Xaw3d/ThreeD.h>
8120 EOF
8121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8122 { (eval echo configure:8123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8124 if test -z "$ac_err"; then
8125 rm -rf conftest*
8126 eval "ac_cv_header_$ac_safe=yes"
8127 else
8128 echo "$ac_err" >&5
8129 echo "configure: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 rm -rf conftest*
8132 eval "ac_cv_header_$ac_safe=no"
8133 fi
8134 rm -f conftest*
8135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8137
8138 echo "configure: warning: "Assuming that Xaw3d headers are suitable for $athena_variant."" 1>&2
8139 athena_h_path=Xaw3d
8140
8141 else
8142 echo "$ac_t""no" 1>&6
8143 fi
8144
8145 else
8146 echo "$ac_t""no" 1>&6
8147 fi
8148
8149 fi
8150
8014 if test -z "$athena_h_path"; then 8151 if test -z "$athena_h_path"; then
8015 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8152 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8016 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8153 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8017 echo "configure:8018: checking for X11/Xaw/ThreeD.h" >&5 8154 echo "configure:8155: checking for X11/Xaw/ThreeD.h" >&5
8018 8155
8019 cat > conftest.$ac_ext <<EOF 8156 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure" 8157 #line 8158 "configure"
8021 #include "confdefs.h" 8158 #include "confdefs.h"
8022 #include <X11/Xaw/ThreeD.h> 8159 #include <X11/Xaw/ThreeD.h>
8023 EOF 8160 EOF
8024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8025 { (eval echo configure:8026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8162 { (eval echo configure:8163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8027 if test -z "$ac_err"; then 8164 if test -z "$ac_err"; then
8028 rm -rf conftest* 8165 rm -rf conftest*
8029 eval "ac_cv_header_$ac_safe=yes" 8166 eval "ac_cv_header_$ac_safe=yes"
8030 else 8167 else
8055 have_xaw=no 8192 have_xaw=no
8056 fi 8193 fi
8057 8194
8058 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 8195 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8059 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 8196 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8060 echo "configure:8061: checking for Xm/Xm.h" >&5 8197 echo "configure:8198: checking for Xm/Xm.h" >&5
8061 8198
8062 cat > conftest.$ac_ext <<EOF 8199 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure" 8200 #line 8201 "configure"
8064 #include "confdefs.h" 8201 #include "confdefs.h"
8065 #include <Xm/Xm.h> 8202 #include <Xm/Xm.h>
8066 EOF 8203 EOF
8067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8068 { (eval echo configure:8069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8205 { (eval echo configure:8206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8070 if test -z "$ac_err"; then 8207 if test -z "$ac_err"; then
8071 rm -rf conftest* 8208 rm -rf conftest*
8072 eval "ac_cv_header_$ac_safe=yes" 8209 eval "ac_cv_header_$ac_safe=yes"
8073 else 8210 else
8080 rm -f conftest* 8217 rm -f conftest*
8081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8082 echo "$ac_t""yes" 1>&6 8219 echo "$ac_t""yes" 1>&6
8083 8220
8084 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 8221 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8085 echo "configure:8086: checking for XmStringFree in -lXm" >&5 8222 echo "configure:8223: checking for XmStringFree in -lXm" >&5
8086 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 8223 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8087 8224
8088 xe_check_libs=" -lXm " 8225 xe_check_libs=" -lXm "
8089 cat > conftest.$ac_ext <<EOF 8226 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure" 8227 #line 8228 "configure"
8091 #include "confdefs.h" 8228 #include "confdefs.h"
8092 /* Override any gcc2 internal prototype to avoid an error. */ 8229 /* Override any gcc2 internal prototype to avoid an error. */
8093 /* We use char because int might match the return type of a gcc2 8230 /* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */ 8231 builtin and then its argument prototype would still apply. */
8095 char XmStringFree(); 8232 char XmStringFree();
8096 8233
8097 int main() { 8234 int main() {
8098 XmStringFree() 8235 XmStringFree()
8099 ; return 0; } 8236 ; return 0; }
8100 EOF 8237 EOF
8101 if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8238 if { (eval echo configure:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8102 rm -rf conftest* 8239 rm -rf conftest*
8103 eval "ac_cv_lib_$ac_lib_var=yes" 8240 eval "ac_cv_lib_$ac_lib_var=yes"
8104 else 8241 else
8105 echo "configure: failed program was:" >&5 8242 echo "configure: failed program was:" >&5
8106 cat conftest.$ac_ext >&5 8243 cat conftest.$ac_ext >&5
8125 fi 8262 fi
8126 8263
8127 8264
8128 if test "$have_motif" = "yes"; then 8265 if test "$have_motif" = "yes"; then
8129 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 8266 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8130 echo "configure:8131: checking for Lesstif" >&5 8267 echo "configure:8268: checking for Lesstif" >&5
8131 cat > conftest.$ac_ext <<EOF 8268 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure" 8269 #line 8270 "configure"
8133 #include "confdefs.h" 8270 #include "confdefs.h"
8134 #include <Xm/Xm.h> 8271 #include <Xm/Xm.h>
8135 #ifdef LESSTIF_VERSION 8272 #ifdef LESSTIF_VERSION
8136 yes 8273 yes
8137 #endif 8274 #endif
8349 cat >> confdefs.h <<\EOF 8486 cat >> confdefs.h <<\EOF
8350 #define HAVE_TOOLBARS 1 8487 #define HAVE_TOOLBARS 1
8351 EOF 8488 EOF
8352 } 8489 }
8353 8490
8354 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF 8491 test "$with_widgets" != "no" && { test "$extra_verbose" = "yes" && cat << \EOF
8355 Defining HAVE_WIDGETS 8492 Defining HAVE_WIDGETS
8356 EOF 8493 EOF
8357 cat >> confdefs.h <<\EOF 8494 cat >> confdefs.h <<\EOF
8358 #define HAVE_WIDGETS 1 8495 #define HAVE_WIDGETS 1
8359 EOF 8496 EOF
8408 #define LWLIB_WIDGETS_MOTIF 1 8545 #define LWLIB_WIDGETS_MOTIF 1
8409 EOF 8546 EOF
8410 } 8547 }
8411 8548
8412 8549
8413 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then 8550 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then
8414 echo " xemacs will be linked with \"menubar.o\"" 8551 echo " xemacs will be linked with \"menubar.o\""
8415 fi 8552 fi
8416 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then 8553 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then
8417 echo " xemacs will be linked with \"scrollbar.o\"" 8554 echo " xemacs will be linked with \"scrollbar.o\""
8418 fi 8555 fi
8419 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then 8556 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then
8420 echo " xemacs will be linked with \"dialog.o\"" 8557 echo " xemacs will be linked with \"dialog.o\""
8421 fi 8558 fi
8422 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then 8559 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
8423 echo " xemacs will be linked with \"toolbar.o\"" 8560 echo " xemacs will be linked with \"toolbar.o\""
8424 fi 8561 fi
8425 8562
8426 if test "$with_x11" = "yes"; then 8563 if test "$with_x11" = "yes"; then
8427 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then 8564 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
8428 echo " xemacs will be linked with \"menubar-x.o\"" 8565 echo " xemacs will be linked with \"menubar-x.o\""
8429 fi 8566 fi
8430 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then 8567 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
8431 echo " xemacs will be linked with \"scrollbar-x.o\"" 8568 echo " xemacs will be linked with \"scrollbar-x.o\""
8432 fi 8569 fi
8433 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then 8570 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then
8434 echo " xemacs will be linked with \"dialog-x.o\"" 8571 echo " xemacs will be linked with \"dialog-x.o\""
8435 fi 8572 fi
8436 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then 8573 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then
8437 echo " xemacs will be linked with \"toolbar-x.o\"" 8574 echo " xemacs will be linked with \"toolbar-x.o\""
8438 fi 8575 fi
8439 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then 8576 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then
8440 echo " xemacs will be linked with \"gui-x.o\"" 8577 echo " xemacs will be linked with \"gui-x.o\""
8441 fi 8578 fi
8460 fi 8597 fi
8461 fi 8598 fi
8462 8599
8463 if test "$with_mule" = "yes" ; then 8600 if test "$with_mule" = "yes" ; then
8464 echo "checking for Mule-related features" 1>&6 8601 echo "checking for Mule-related features" 1>&6
8465 echo "configure:8466: checking for Mule-related features" >&5 8602 echo "configure:8603: checking for Mule-related features" >&5
8466 { test "$extra_verbose" = "yes" && cat << \EOF 8603 { test "$extra_verbose" = "yes" && cat << \EOF
8467 Defining MULE 8604 Defining MULE
8468 EOF 8605 EOF
8469 cat >> confdefs.h <<\EOF 8606 cat >> confdefs.h <<\EOF
8470 #define MULE 1 8607 #define MULE 1
8485 8622
8486 for ac_hdr in libintl.h 8623 for ac_hdr in libintl.h
8487 do 8624 do
8488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 8625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 8626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8490 echo "configure:8491: checking for $ac_hdr" >&5 8627 echo "configure:8628: checking for $ac_hdr" >&5
8491 8628
8492 cat > conftest.$ac_ext <<EOF 8629 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure" 8630 #line 8631 "configure"
8494 #include "confdefs.h" 8631 #include "confdefs.h"
8495 #include <$ac_hdr> 8632 #include <$ac_hdr>
8496 EOF 8633 EOF
8497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8498 { (eval echo configure:8499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8635 { (eval echo configure:8636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8500 if test -z "$ac_err"; then 8637 if test -z "$ac_err"; then
8501 rm -rf conftest* 8638 rm -rf conftest*
8502 eval "ac_cv_header_$ac_safe=yes" 8639 eval "ac_cv_header_$ac_safe=yes"
8503 else 8640 else
8524 fi 8661 fi
8525 done 8662 done
8526 8663
8527 8664
8528 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 8665 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8529 echo "configure:8530: checking for strerror in -lintl" >&5 8666 echo "configure:8667: checking for strerror in -lintl" >&5
8530 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 8667 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8531 8668
8532 xe_check_libs=" -lintl " 8669 xe_check_libs=" -lintl "
8533 cat > conftest.$ac_ext <<EOF 8670 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure" 8671 #line 8672 "configure"
8535 #include "confdefs.h" 8672 #include "confdefs.h"
8536 /* Override any gcc2 internal prototype to avoid an error. */ 8673 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2 8674 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */ 8675 builtin and then its argument prototype would still apply. */
8539 char strerror(); 8676 char strerror();
8540 8677
8541 int main() { 8678 int main() {
8542 strerror() 8679 strerror()
8543 ; return 0; } 8680 ; return 0; }
8544 EOF 8681 EOF
8545 if { (eval echo configure:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8682 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8546 rm -rf conftest* 8683 rm -rf conftest*
8547 eval "ac_cv_lib_$ac_lib_var=yes" 8684 eval "ac_cv_lib_$ac_lib_var=yes"
8548 else 8685 else
8549 echo "configure: failed program was:" >&5 8686 echo "configure: failed program was:" >&5
8550 cat conftest.$ac_ext >&5 8687 cat conftest.$ac_ext >&5
8573 fi 8710 fi
8574 8711
8575 8712
8576 8713
8577 echo "checking for Mule input methods" 1>&6 8714 echo "checking for Mule input methods" 1>&6
8578 echo "configure:8579: checking for Mule input methods" >&5 8715 echo "configure:8716: checking for Mule input methods" >&5
8579 case "$with_xim" in "" | "yes" ) 8716 case "$with_xim" in "" | "yes" )
8580 echo "checking for XIM" 1>&6 8717 echo "checking for XIM" 1>&6
8581 echo "configure:8582: checking for XIM" >&5 8718 echo "configure:8719: checking for XIM" >&5
8582 8719
8583 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 8720 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8584 echo "configure:8585: checking for XOpenIM in -lX11" >&5 8721 echo "configure:8722: checking for XOpenIM in -lX11" >&5
8585 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 8722 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8586 8723
8587 xe_check_libs=" -lX11 " 8724 xe_check_libs=" -lX11 "
8588 cat > conftest.$ac_ext <<EOF 8725 cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure" 8726 #line 8727 "configure"
8590 #include "confdefs.h" 8727 #include "confdefs.h"
8591 /* Override any gcc2 internal prototype to avoid an error. */ 8728 /* Override any gcc2 internal prototype to avoid an error. */
8592 /* We use char because int might match the return type of a gcc2 8729 /* We use char because int might match the return type of a gcc2
8593 builtin and then its argument prototype would still apply. */ 8730 builtin and then its argument prototype would still apply. */
8594 char XOpenIM(); 8731 char XOpenIM();
8595 8732
8596 int main() { 8733 int main() {
8597 XOpenIM() 8734 XOpenIM()
8598 ; return 0; } 8735 ; return 0; }
8599 EOF 8736 EOF
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8601 rm -rf conftest* 8738 rm -rf conftest*
8602 eval "ac_cv_lib_$ac_lib_var=yes" 8739 eval "ac_cv_lib_$ac_lib_var=yes"
8603 else 8740 else
8604 echo "configure: failed program was:" >&5 8741 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5 8742 cat conftest.$ac_ext >&5
8619 8756
8620 8757
8621 if test "$have_motif $have_lesstif" = "yes no"; then 8758 if test "$have_motif $have_lesstif" = "yes no"; then
8622 8759
8623 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 8760 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8624 echo "configure:8625: checking for XmImMbLookupString in -lXm" >&5 8761 echo "configure:8762: checking for XmImMbLookupString in -lXm" >&5
8625 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 8762 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8626 8763
8627 xe_check_libs=" -lXm " 8764 xe_check_libs=" -lXm "
8628 cat > conftest.$ac_ext <<EOF 8765 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure" 8766 #line 8767 "configure"
8630 #include "confdefs.h" 8767 #include "confdefs.h"
8631 /* Override any gcc2 internal prototype to avoid an error. */ 8768 /* Override any gcc2 internal prototype to avoid an error. */
8632 /* We use char because int might match the return type of a gcc2 8769 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */ 8770 builtin and then its argument prototype would still apply. */
8634 char XmImMbLookupString(); 8771 char XmImMbLookupString();
8635 8772
8636 int main() { 8773 int main() {
8637 XmImMbLookupString() 8774 XmImMbLookupString()
8638 ; return 0; } 8775 ; return 0; }
8639 EOF 8776 EOF
8640 if { (eval echo configure:8641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8777 if { (eval echo configure:8778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8641 rm -rf conftest* 8778 rm -rf conftest*
8642 eval "ac_cv_lib_$ac_lib_var=yes" 8779 eval "ac_cv_lib_$ac_lib_var=yes"
8643 else 8780 else
8644 echo "configure: failed program was:" >&5 8781 echo "configure: failed program was:" >&5
8645 cat conftest.$ac_ext >&5 8782 cat conftest.$ac_ext >&5
8700 fi 8837 fi
8701 fi 8838 fi
8702 8839
8703 if test "$with_xfs" = "yes" ; then 8840 if test "$with_xfs" = "yes" ; then
8704 echo "checking for XFontSet" 1>&6 8841 echo "checking for XFontSet" 1>&6
8705 echo "configure:8706: checking for XFontSet" >&5 8842 echo "configure:8843: checking for XFontSet" >&5
8706 8843
8707 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 8844 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8708 echo "configure:8709: checking for XmbDrawString in -lX11" >&5 8845 echo "configure:8846: checking for XmbDrawString in -lX11" >&5
8709 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 8846 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8710 8847
8711 xe_check_libs=" -lX11 " 8848 xe_check_libs=" -lX11 "
8712 cat > conftest.$ac_ext <<EOF 8849 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure" 8850 #line 8851 "configure"
8714 #include "confdefs.h" 8851 #include "confdefs.h"
8715 /* Override any gcc2 internal prototype to avoid an error. */ 8852 /* Override any gcc2 internal prototype to avoid an error. */
8716 /* We use char because int might match the return type of a gcc2 8853 /* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */ 8854 builtin and then its argument prototype would still apply. */
8718 char XmbDrawString(); 8855 char XmbDrawString();
8719 8856
8720 int main() { 8857 int main() {
8721 XmbDrawString() 8858 XmbDrawString()
8722 ; return 0; } 8859 ; return 0; }
8723 EOF 8860 EOF
8724 if { (eval echo configure:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8725 rm -rf conftest* 8862 rm -rf conftest*
8726 eval "ac_cv_lib_$ac_lib_var=yes" 8863 eval "ac_cv_lib_$ac_lib_var=yes"
8727 else 8864 else
8728 echo "configure: failed program was:" >&5 8865 echo "configure: failed program was:" >&5
8729 cat conftest.$ac_ext >&5 8866 cat conftest.$ac_ext >&5
8759 fi 8896 fi
8760 fi 8897 fi
8761 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 8898 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8762 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 8899 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8763 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 8900 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8764 echo "configure:8765: checking for wnn/jllib.h" >&5 8901 echo "configure:8902: checking for wnn/jllib.h" >&5
8765 8902
8766 cat > conftest.$ac_ext <<EOF 8903 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure" 8904 #line 8905 "configure"
8768 #include "confdefs.h" 8905 #include "confdefs.h"
8769 #include <wnn/jllib.h> 8906 #include <wnn/jllib.h>
8770 EOF 8907 EOF
8771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8772 { (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8909 { (eval echo configure:8910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8774 if test -z "$ac_err"; then 8911 if test -z "$ac_err"; then
8775 rm -rf conftest* 8912 rm -rf conftest*
8776 eval "ac_cv_header_$ac_safe=yes" 8913 eval "ac_cv_header_$ac_safe=yes"
8777 else 8914 else
8792 } 8929 }
8793 if test "$with_wnn" != "no"; then 8930 if test "$with_wnn" != "no"; then
8794 for ac_func in crypt 8931 for ac_func in crypt
8795 do 8932 do
8796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8797 echo "configure:8798: checking for $ac_func" >&5 8934 echo "configure:8935: checking for $ac_func" >&5
8798 8935
8799 cat > conftest.$ac_ext <<EOF 8936 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure" 8937 #line 8938 "configure"
8801 #include "confdefs.h" 8938 #include "confdefs.h"
8802 /* System header to define __stub macros and hopefully few prototypes, 8939 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char $ac_func(); below. */ 8940 which can conflict with char $ac_func(); below. */
8804 #include <assert.h> 8941 #include <assert.h>
8805 /* Override any gcc2 internal prototype to avoid an error. */ 8942 /* Override any gcc2 internal prototype to avoid an error. */
8818 $ac_func(); 8955 $ac_func();
8819 #endif 8956 #endif
8820 8957
8821 ; return 0; } 8958 ; return 0; }
8822 EOF 8959 EOF
8823 if { (eval echo configure:8824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8960 if { (eval echo configure:8961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8824 rm -rf conftest* 8961 rm -rf conftest*
8825 eval "ac_cv_func_$ac_func=yes" 8962 eval "ac_cv_func_$ac_func=yes"
8826 else 8963 else
8827 echo "configure: failed program was:" >&5 8964 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5 8965 cat conftest.$ac_ext >&5
8847 fi 8984 fi
8848 done 8985 done
8849 8986
8850 test "$ac_cv_func_crypt" != "yes" && { 8987 test "$ac_cv_func_crypt" != "yes" && {
8851 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 8988 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8852 echo "configure:8853: checking for crypt in -lcrypt" >&5 8989 echo "configure:8990: checking for crypt in -lcrypt" >&5
8853 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 8990 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8854 8991
8855 xe_check_libs=" -lcrypt " 8992 xe_check_libs=" -lcrypt "
8856 cat > conftest.$ac_ext <<EOF 8993 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure" 8994 #line 8995 "configure"
8858 #include "confdefs.h" 8995 #include "confdefs.h"
8859 /* Override any gcc2 internal prototype to avoid an error. */ 8996 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2 8997 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */ 8998 builtin and then its argument prototype would still apply. */
8862 char crypt(); 8999 char crypt();
8863 9000
8864 int main() { 9001 int main() {
8865 crypt() 9002 crypt()
8866 ; return 0; } 9003 ; return 0; }
8867 EOF 9004 EOF
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9005 if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8869 rm -rf conftest* 9006 rm -rf conftest*
8870 eval "ac_cv_lib_$ac_lib_var=yes" 9007 eval "ac_cv_lib_$ac_lib_var=yes"
8871 else 9008 else
8872 echo "configure: failed program was:" >&5 9009 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5 9010 cat conftest.$ac_ext >&5
8898 } 9035 }
8899 fi 9036 fi
8900 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 9037 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8901 9038
8902 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 9039 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8903 echo "configure:8904: checking for jl_dic_list_e in -lwnn" >&5 9040 echo "configure:9041: checking for jl_dic_list_e in -lwnn" >&5
8904 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9041 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8905 9042
8906 xe_check_libs=" -lwnn " 9043 xe_check_libs=" -lwnn "
8907 cat > conftest.$ac_ext <<EOF 9044 cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure" 9045 #line 9046 "configure"
8909 #include "confdefs.h" 9046 #include "confdefs.h"
8910 /* Override any gcc2 internal prototype to avoid an error. */ 9047 /* Override any gcc2 internal prototype to avoid an error. */
8911 /* We use char because int might match the return type of a gcc2 9048 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */ 9049 builtin and then its argument prototype would still apply. */
8913 char jl_dic_list_e(); 9050 char jl_dic_list_e();
8914 9051
8915 int main() { 9052 int main() {
8916 jl_dic_list_e() 9053 jl_dic_list_e()
8917 ; return 0; } 9054 ; return 0; }
8918 EOF 9055 EOF
8919 if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8920 rm -rf conftest* 9057 rm -rf conftest*
8921 eval "ac_cv_lib_$ac_lib_var=yes" 9058 eval "ac_cv_lib_$ac_lib_var=yes"
8922 else 9059 else
8923 echo "configure: failed program was:" >&5 9060 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5 9061 cat conftest.$ac_ext >&5
8932 echo "$ac_t""yes" 1>&6 9069 echo "$ac_t""yes" 1>&6
8933 libwnn=wnn 9070 libwnn=wnn
8934 else 9071 else
8935 echo "$ac_t""no" 1>&6 9072 echo "$ac_t""no" 1>&6
8936 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 9073 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8937 echo "configure:8938: checking for jl_dic_list_e in -lwnn4" >&5 9074 echo "configure:9075: checking for jl_dic_list_e in -lwnn4" >&5
8938 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9075 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8939 9076
8940 xe_check_libs=" -lwnn4 " 9077 xe_check_libs=" -lwnn4 "
8941 cat > conftest.$ac_ext <<EOF 9078 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure" 9079 #line 9080 "configure"
8943 #include "confdefs.h" 9080 #include "confdefs.h"
8944 /* Override any gcc2 internal prototype to avoid an error. */ 9081 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2 9082 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */ 9083 builtin and then its argument prototype would still apply. */
8947 char jl_dic_list_e(); 9084 char jl_dic_list_e();
8948 9085
8949 int main() { 9086 int main() {
8950 jl_dic_list_e() 9087 jl_dic_list_e()
8951 ; return 0; } 9088 ; return 0; }
8952 EOF 9089 EOF
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8954 rm -rf conftest* 9091 rm -rf conftest*
8955 eval "ac_cv_lib_$ac_lib_var=yes" 9092 eval "ac_cv_lib_$ac_lib_var=yes"
8956 else 9093 else
8957 echo "configure: failed program was:" >&5 9094 echo "configure: failed program was:" >&5
8958 cat conftest.$ac_ext >&5 9095 cat conftest.$ac_ext >&5
8966 echo "$ac_t""yes" 1>&6 9103 echo "$ac_t""yes" 1>&6
8967 libwnn=wnn4 9104 libwnn=wnn4
8968 else 9105 else
8969 echo "$ac_t""no" 1>&6 9106 echo "$ac_t""no" 1>&6
8970 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 9107 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8971 echo "configure:8972: checking for jl_dic_list_e in -lwnn6" >&5 9108 echo "configure:9109: checking for jl_dic_list_e in -lwnn6" >&5
8972 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9109 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8973 9110
8974 xe_check_libs=" -lwnn6 " 9111 xe_check_libs=" -lwnn6 "
8975 cat > conftest.$ac_ext <<EOF 9112 cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure" 9113 #line 9114 "configure"
8977 #include "confdefs.h" 9114 #include "confdefs.h"
8978 /* Override any gcc2 internal prototype to avoid an error. */ 9115 /* Override any gcc2 internal prototype to avoid an error. */
8979 /* We use char because int might match the return type of a gcc2 9116 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */ 9117 builtin and then its argument prototype would still apply. */
8981 char jl_dic_list_e(); 9118 char jl_dic_list_e();
8982 9119
8983 int main() { 9120 int main() {
8984 jl_dic_list_e() 9121 jl_dic_list_e()
8985 ; return 0; } 9122 ; return 0; }
8986 EOF 9123 EOF
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9124 if { (eval echo configure:9125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8988 rm -rf conftest* 9125 rm -rf conftest*
8989 eval "ac_cv_lib_$ac_lib_var=yes" 9126 eval "ac_cv_lib_$ac_lib_var=yes"
8990 else 9127 else
8991 echo "configure: failed program was:" >&5 9128 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5 9129 cat conftest.$ac_ext >&5
9000 echo "$ac_t""yes" 1>&6 9137 echo "$ac_t""yes" 1>&6
9001 libwnn=wnn6 9138 libwnn=wnn6
9002 else 9139 else
9003 echo "$ac_t""no" 1>&6 9140 echo "$ac_t""no" 1>&6
9004 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 9141 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9005 echo "configure:9006: checking for dic_list_e in -lwnn6_fromsrc" >&5 9142 echo "configure:9143: checking for dic_list_e in -lwnn6_fromsrc" >&5
9006 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 9143 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9007 9144
9008 xe_check_libs=" -lwnn6_fromsrc " 9145 xe_check_libs=" -lwnn6_fromsrc "
9009 cat > conftest.$ac_ext <<EOF 9146 cat > conftest.$ac_ext <<EOF
9010 #line 9011 "configure" 9147 #line 9148 "configure"
9011 #include "confdefs.h" 9148 #include "confdefs.h"
9012 /* Override any gcc2 internal prototype to avoid an error. */ 9149 /* Override any gcc2 internal prototype to avoid an error. */
9013 /* We use char because int might match the return type of a gcc2 9150 /* We use char because int might match the return type of a gcc2
9014 builtin and then its argument prototype would still apply. */ 9151 builtin and then its argument prototype would still apply. */
9015 char dic_list_e(); 9152 char dic_list_e();
9016 9153
9017 int main() { 9154 int main() {
9018 dic_list_e() 9155 dic_list_e()
9019 ; return 0; } 9156 ; return 0; }
9020 EOF 9157 EOF
9021 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9158 if { (eval echo configure:9159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9022 rm -rf conftest* 9159 rm -rf conftest*
9023 eval "ac_cv_lib_$ac_lib_var=yes" 9160 eval "ac_cv_lib_$ac_lib_var=yes"
9024 else 9161 else
9025 echo "configure: failed program was:" >&5 9162 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5 9163 cat conftest.$ac_ext >&5
9064 echo " xemacs will be linked with \"mule-wnnfns.o\"" 9201 echo " xemacs will be linked with \"mule-wnnfns.o\""
9065 fi 9202 fi
9066 if test "$with_wnn6" != "no"; then 9203 if test "$with_wnn6" != "no"; then
9067 9204
9068 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 9205 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9069 echo "configure:9070: checking for jl_fi_dic_list in -l$libwnn" >&5 9206 echo "configure:9207: checking for jl_fi_dic_list in -l$libwnn" >&5
9070 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 9207 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9071 9208
9072 xe_check_libs=" -l$libwnn " 9209 xe_check_libs=" -l$libwnn "
9073 cat > conftest.$ac_ext <<EOF 9210 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure" 9211 #line 9212 "configure"
9075 #include "confdefs.h" 9212 #include "confdefs.h"
9076 /* Override any gcc2 internal prototype to avoid an error. */ 9213 /* Override any gcc2 internal prototype to avoid an error. */
9077 /* We use char because int might match the return type of a gcc2 9214 /* We use char because int might match the return type of a gcc2
9078 builtin and then its argument prototype would still apply. */ 9215 builtin and then its argument prototype would still apply. */
9079 char jl_fi_dic_list(); 9216 char jl_fi_dic_list();
9080 9217
9081 int main() { 9218 int main() {
9082 jl_fi_dic_list() 9219 jl_fi_dic_list()
9083 ; return 0; } 9220 ; return 0; }
9084 EOF 9221 EOF
9085 if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9086 rm -rf conftest* 9223 rm -rf conftest*
9087 eval "ac_cv_lib_$ac_lib_var=yes" 9224 eval "ac_cv_lib_$ac_lib_var=yes"
9088 else 9225 else
9089 echo "configure: failed program was:" >&5 9226 echo "configure: failed program was:" >&5
9090 cat conftest.$ac_ext >&5 9227 cat conftest.$ac_ext >&5
9115 9252
9116 canna_includes_found=no 9253 canna_includes_found=no
9117 if test "$with_canna" != "no"; then 9254 if test "$with_canna" != "no"; then
9118 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9255 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9119 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9256 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9120 echo "configure:9121: checking for canna/jrkanji.h" >&5 9257 echo "configure:9258: checking for canna/jrkanji.h" >&5
9121 9258
9122 cat > conftest.$ac_ext <<EOF 9259 cat > conftest.$ac_ext <<EOF
9123 #line 9124 "configure" 9260 #line 9261 "configure"
9124 #include "confdefs.h" 9261 #include "confdefs.h"
9125 #include <canna/jrkanji.h> 9262 #include <canna/jrkanji.h>
9126 EOF 9263 EOF
9127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9128 { (eval echo configure:9129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9265 { (eval echo configure:9266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9130 if test -z "$ac_err"; then 9267 if test -z "$ac_err"; then
9131 rm -rf conftest* 9268 rm -rf conftest*
9132 eval "ac_cv_header_$ac_safe=yes" 9269 eval "ac_cv_header_$ac_safe=yes"
9133 else 9270 else
9150 -d "/usr/local/canna/include"; then 9287 -d "/usr/local/canna/include"; then
9151 save_c_switch_site="$c_switch_site" 9288 save_c_switch_site="$c_switch_site"
9152 c_switch_site="$c_switch_site -I/usr/local/canna/include" 9289 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9153 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9290 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9154 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9291 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9155 echo "configure:9156: checking for canna/jrkanji.h" >&5 9292 echo "configure:9293: checking for canna/jrkanji.h" >&5
9156 9293
9157 cat > conftest.$ac_ext <<EOF 9294 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure" 9295 #line 9296 "configure"
9159 #include "confdefs.h" 9296 #include "confdefs.h"
9160 #include <canna/jrkanji.h> 9297 #include <canna/jrkanji.h>
9161 EOF 9298 EOF
9162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9163 { (eval echo configure:9164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9300 { (eval echo configure:9301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9165 if test -z "$ac_err"; then 9302 if test -z "$ac_err"; then
9166 rm -rf conftest* 9303 rm -rf conftest*
9167 eval "ac_cv_header_$ac_safe=yes" 9304 eval "ac_cv_header_$ac_safe=yes"
9168 else 9305 else
9186 fi 9323 fi
9187 fi 9324 fi
9188 9325
9189 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 9326 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9190 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 9327 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9191 echo "configure:9192: checking for canna/RK.h" >&5 9328 echo "configure:9329: checking for canna/RK.h" >&5
9192 9329
9193 cat > conftest.$ac_ext <<EOF 9330 cat > conftest.$ac_ext <<EOF
9194 #line 9195 "configure" 9331 #line 9332 "configure"
9195 #include "confdefs.h" 9332 #include "confdefs.h"
9196 #include <canna/RK.h> 9333 #include <canna/RK.h>
9197 EOF 9334 EOF
9198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9199 { (eval echo configure:9200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9336 { (eval echo configure:9337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9201 if test -z "$ac_err"; then 9338 if test -z "$ac_err"; then
9202 rm -rf conftest* 9339 rm -rf conftest*
9203 eval "ac_cv_header_$ac_safe=yes" 9340 eval "ac_cv_header_$ac_safe=yes"
9204 else 9341 else
9217 with_canna=no 9354 with_canna=no
9218 fi 9355 fi
9219 } 9356 }
9220 test -z "$with_canna" && { 9357 test -z "$with_canna" && {
9221 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 9358 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9222 echo "configure:9223: checking for RkBgnBun in -lRKC" >&5 9359 echo "configure:9360: checking for RkBgnBun in -lRKC" >&5
9223 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 9360 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9224 9361
9225 xe_check_libs=" -lRKC " 9362 xe_check_libs=" -lRKC "
9226 cat > conftest.$ac_ext <<EOF 9363 cat > conftest.$ac_ext <<EOF
9227 #line 9228 "configure" 9364 #line 9365 "configure"
9228 #include "confdefs.h" 9365 #include "confdefs.h"
9229 /* Override any gcc2 internal prototype to avoid an error. */ 9366 /* Override any gcc2 internal prototype to avoid an error. */
9230 /* We use char because int might match the return type of a gcc2 9367 /* We use char because int might match the return type of a gcc2
9231 builtin and then its argument prototype would still apply. */ 9368 builtin and then its argument prototype would still apply. */
9232 char RkBgnBun(); 9369 char RkBgnBun();
9233 9370
9234 int main() { 9371 int main() {
9235 RkBgnBun() 9372 RkBgnBun()
9236 ; return 0; } 9373 ; return 0; }
9237 EOF 9374 EOF
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9239 rm -rf conftest* 9376 rm -rf conftest*
9240 eval "ac_cv_lib_$ac_lib_var=yes" 9377 eval "ac_cv_lib_$ac_lib_var=yes"
9241 else 9378 else
9242 echo "configure: failed program was:" >&5 9379 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5 9380 cat conftest.$ac_ext >&5
9256 fi 9393 fi
9257 9394
9258 } 9395 }
9259 test -z "$with_canna" && { 9396 test -z "$with_canna" && {
9260 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 9397 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9261 echo "configure:9262: checking for jrKanjiControl in -lcanna" >&5 9398 echo "configure:9399: checking for jrKanjiControl in -lcanna" >&5
9262 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 9399 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9263 9400
9264 xe_check_libs=" -lcanna " 9401 xe_check_libs=" -lcanna "
9265 cat > conftest.$ac_ext <<EOF 9402 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure" 9403 #line 9404 "configure"
9267 #include "confdefs.h" 9404 #include "confdefs.h"
9268 /* Override any gcc2 internal prototype to avoid an error. */ 9405 /* Override any gcc2 internal prototype to avoid an error. */
9269 /* We use char because int might match the return type of a gcc2 9406 /* We use char because int might match the return type of a gcc2
9270 builtin and then its argument prototype would still apply. */ 9407 builtin and then its argument prototype would still apply. */
9271 char jrKanjiControl(); 9408 char jrKanjiControl();
9272 9409
9273 int main() { 9410 int main() {
9274 jrKanjiControl() 9411 jrKanjiControl()
9275 ; return 0; } 9412 ; return 0; }
9276 EOF 9413 EOF
9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9414 if { (eval echo configure:9415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9278 rm -rf conftest* 9415 rm -rf conftest*
9279 eval "ac_cv_lib_$ac_lib_var=yes" 9416 eval "ac_cv_lib_$ac_lib_var=yes"
9280 else 9417 else
9281 echo "configure: failed program was:" >&5 9418 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5 9419 cat conftest.$ac_ext >&5
9321 9458
9322 if test "$need_motif" = "yes" ; then 9459 if test "$need_motif" = "yes" ; then
9323 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 9460 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9324 9461
9325 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 9462 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9326 echo "configure:9327: checking for layout_object_getvalue in -li18n" >&5 9463 echo "configure:9464: checking for layout_object_getvalue in -li18n" >&5
9327 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 9464 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9328 9465
9329 xe_check_libs=" -li18n " 9466 xe_check_libs=" -li18n "
9330 cat > conftest.$ac_ext <<EOF 9467 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure" 9468 #line 9469 "configure"
9332 #include "confdefs.h" 9469 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */ 9470 /* Override any gcc2 internal prototype to avoid an error. */
9334 /* We use char because int might match the return type of a gcc2 9471 /* We use char because int might match the return type of a gcc2
9335 builtin and then its argument prototype would still apply. */ 9472 builtin and then its argument prototype would still apply. */
9336 char layout_object_getvalue(); 9473 char layout_object_getvalue();
9337 9474
9338 int main() { 9475 int main() {
9339 layout_object_getvalue() 9476 layout_object_getvalue()
9340 ; return 0; } 9477 ; return 0; }
9341 EOF 9478 EOF
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9479 if { (eval echo configure:9480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9343 rm -rf conftest* 9480 rm -rf conftest*
9344 eval "ac_cv_lib_$ac_lib_var=yes" 9481 eval "ac_cv_lib_$ac_lib_var=yes"
9345 else 9482 else
9346 echo "configure: failed program was:" >&5 9483 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5 9484 cat conftest.$ac_ext >&5
9420 fi 9557 fi
9421 fi 9558 fi
9422 9559
9423 fi 9560 fi
9424 9561
9425 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask 9562 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
9426 do 9563 do
9427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9428 echo "configure:9429: checking for $ac_func" >&5 9565 echo "configure:9566: checking for $ac_func" >&5
9429 9566
9430 cat > conftest.$ac_ext <<EOF 9567 cat > conftest.$ac_ext <<EOF
9431 #line 9432 "configure" 9568 #line 9569 "configure"
9432 #include "confdefs.h" 9569 #include "confdefs.h"
9433 /* System header to define __stub macros and hopefully few prototypes, 9570 /* System header to define __stub macros and hopefully few prototypes,
9434 which can conflict with char $ac_func(); below. */ 9571 which can conflict with char $ac_func(); below. */
9435 #include <assert.h> 9572 #include <assert.h>
9436 /* Override any gcc2 internal prototype to avoid an error. */ 9573 /* Override any gcc2 internal prototype to avoid an error. */
9449 $ac_func(); 9586 $ac_func();
9450 #endif 9587 #endif
9451 9588
9452 ; return 0; } 9589 ; return 0; }
9453 EOF 9590 EOF
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9455 rm -rf conftest* 9592 rm -rf conftest*
9456 eval "ac_cv_func_$ac_func=yes" 9593 eval "ac_cv_func_$ac_func=yes"
9457 else 9594 else
9458 echo "configure: failed program was:" >&5 9595 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5 9596 cat conftest.$ac_ext >&5
9477 echo "$ac_t""no" 1>&6 9614 echo "$ac_t""no" 1>&6
9478 fi 9615 fi
9479 done 9616 done
9480 9617
9481 9618
9482 9619 extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9483 case "$opsys" in
9484 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9485 echo " xemacs will be linked with \"realpath.o\"" 9620 echo " xemacs will be linked with \"realpath.o\""
9486 fi ;; 9621 fi
9487 * ) 9622
9488 case "$canonical" in 9623 for ac_func in getloadavg
9489 *-*-sysv4.2uw2* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9490 echo " xemacs will be linked with \"realpath.o\""
9491 fi ;;
9492 * ) for ac_func in realpath
9493 do 9624 do
9494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9495 echo "configure:9496: checking for $ac_func" >&5 9626 echo "configure:9627: checking for $ac_func" >&5
9496 9627
9497 cat > conftest.$ac_ext <<EOF 9628 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure" 9629 #line 9630 "configure"
9499 #include "confdefs.h" 9630 #include "confdefs.h"
9500 /* System header to define __stub macros and hopefully few prototypes, 9631 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char $ac_func(); below. */ 9632 which can conflict with char $ac_func(); below. */
9502 #include <assert.h> 9633 #include <assert.h>
9503 /* Override any gcc2 internal prototype to avoid an error. */ 9634 /* Override any gcc2 internal prototype to avoid an error. */
9516 $ac_func(); 9647 $ac_func();
9517 #endif 9648 #endif
9518 9649
9519 ; return 0; } 9650 ; return 0; }
9520 EOF 9651 EOF
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9522 rm -rf conftest* 9653 rm -rf conftest*
9523 eval "ac_cv_func_$ac_func=yes" 9654 eval "ac_cv_func_$ac_func=yes"
9524 else 9655 else
9525 echo "configure: failed program was:" >&5 9656 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5 9657 cat conftest.$ac_ext >&5
9543 else 9674 else
9544 echo "$ac_t""no" 1>&6 9675 echo "$ac_t""no" 1>&6
9545 fi 9676 fi
9546 done 9677 done
9547 9678
9548 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then
9549 echo " xemacs will be linked with \"realpath.o\""
9550 fi ;;
9551 esac ;;
9552 esac
9553
9554 for ac_func in getloadavg
9555 do
9556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9557 echo "configure:9558: checking for $ac_func" >&5
9558
9559 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure"
9561 #include "confdefs.h"
9562 /* System header to define __stub macros and hopefully few prototypes,
9563 which can conflict with char $ac_func(); below. */
9564 #include <assert.h>
9565 /* Override any gcc2 internal prototype to avoid an error. */
9566 /* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9568 char $ac_func();
9569
9570 int main() {
9571
9572 /* The GNU C library defines this for functions which it implements
9573 to always fail with ENOSYS. Some functions are actually named
9574 something starting with __ and the normal name is an alias. */
9575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9576 choke me
9577 #else
9578 $ac_func();
9579 #endif
9580
9581 ; return 0; }
9582 EOF
9583 if { (eval echo configure:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9584 rm -rf conftest*
9585 eval "ac_cv_func_$ac_func=yes"
9586 else
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9589 rm -rf conftest*
9590 eval "ac_cv_func_$ac_func=no"
9591 fi
9592 rm -f conftest*
9593
9594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9595 echo "$ac_t""yes" 1>&6
9596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9597 { test "$extra_verbose" = "yes" && cat << EOF
9598 Defining $ac_tr_func
9599 EOF
9600 cat >> confdefs.h <<EOF
9601 #define $ac_tr_func 1
9602 EOF
9603 }
9604
9605 else
9606 echo "$ac_t""no" 1>&6
9607 fi
9608 done
9609
9610 9679
9611 if test "$ac_cv_func_getloadavg" != "yes" 9680 if test "$ac_cv_func_getloadavg" != "yes"
9612 then 9681 then
9613 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then 9682 extra_objs="$extra_objs getloadavg.o" && if test "$extra_verbose" = "yes"; then
9614 echo " xemacs will be linked with \"getloadavg.o\"" 9683 echo " xemacs will be linked with \"getloadavg.o\""
9615 fi 9684 fi
9616 9685
9617 9686
9618 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 9687 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9619 echo "configure:9620: checking for kstat_open in -lkstat" >&5 9688 echo "configure:9689: checking for kstat_open in -lkstat" >&5
9620 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 9689 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9621 9690
9622 xe_check_libs=" -lkstat " 9691 xe_check_libs=" -lkstat "
9623 cat > conftest.$ac_ext <<EOF 9692 cat > conftest.$ac_ext <<EOF
9624 #line 9625 "configure" 9693 #line 9694 "configure"
9625 #include "confdefs.h" 9694 #include "confdefs.h"
9626 /* Override any gcc2 internal prototype to avoid an error. */ 9695 /* Override any gcc2 internal prototype to avoid an error. */
9627 /* We use char because int might match the return type of a gcc2 9696 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */ 9697 builtin and then its argument prototype would still apply. */
9629 char kstat_open(); 9698 char kstat_open();
9630 9699
9631 int main() { 9700 int main() {
9632 kstat_open() 9701 kstat_open()
9633 ; return 0; } 9702 ; return 0; }
9634 EOF 9703 EOF
9635 if { (eval echo configure:9636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9704 if { (eval echo configure:9705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9636 rm -rf conftest* 9705 rm -rf conftest*
9637 eval "ac_cv_lib_$ac_lib_var=yes" 9706 eval "ac_cv_lib_$ac_lib_var=yes"
9638 else 9707 else
9639 echo "configure: failed program was:" >&5 9708 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5 9709 cat conftest.$ac_ext >&5
9664 9733
9665 9734
9666 9735
9667 9736
9668 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 9737 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9669 echo "configure:9670: checking for kvm_read in -lkvm" >&5 9738 echo "configure:9739: checking for kvm_read in -lkvm" >&5
9670 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 9739 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9671 9740
9672 xe_check_libs=" -lkvm " 9741 xe_check_libs=" -lkvm "
9673 cat > conftest.$ac_ext <<EOF 9742 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure" 9743 #line 9744 "configure"
9675 #include "confdefs.h" 9744 #include "confdefs.h"
9676 /* Override any gcc2 internal prototype to avoid an error. */ 9745 /* Override any gcc2 internal prototype to avoid an error. */
9677 /* We use char because int might match the return type of a gcc2 9746 /* We use char because int might match the return type of a gcc2
9678 builtin and then its argument prototype would still apply. */ 9747 builtin and then its argument prototype would still apply. */
9679 char kvm_read(); 9748 char kvm_read();
9680 9749
9681 int main() { 9750 int main() {
9682 kvm_read() 9751 kvm_read()
9683 ; return 0; } 9752 ; return 0; }
9684 EOF 9753 EOF
9685 if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9686 rm -rf conftest* 9755 rm -rf conftest*
9687 eval "ac_cv_lib_$ac_lib_var=yes" 9756 eval "ac_cv_lib_$ac_lib_var=yes"
9688 else 9757 else
9689 echo "configure: failed program was:" >&5 9758 echo "configure: failed program was:" >&5
9690 cat conftest.$ac_ext >&5 9759 cat conftest.$ac_ext >&5
9714 9783
9715 9784
9716 fi 9785 fi
9717 9786
9718 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 9787 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9719 echo "configure:9720: checking whether netdb declares h_errno" >&5 9788 echo "configure:9789: checking whether netdb declares h_errno" >&5
9720 cat > conftest.$ac_ext <<EOF 9789 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure" 9790 #line 9791 "configure"
9722 #include "confdefs.h" 9791 #include "confdefs.h"
9723 #include <netdb.h> 9792 #include <netdb.h>
9724 int main() { 9793 int main() {
9725 return h_errno; 9794 return h_errno;
9726 ; return 0; } 9795 ; return 0; }
9727 EOF 9796 EOF
9728 if { (eval echo configure:9729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9797 if { (eval echo configure:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9729 rm -rf conftest* 9798 rm -rf conftest*
9730 echo "$ac_t""yes" 1>&6 9799 echo "$ac_t""yes" 1>&6
9731 { test "$extra_verbose" = "yes" && cat << \EOF 9800 { test "$extra_verbose" = "yes" && cat << \EOF
9732 Defining HAVE_H_ERRNO 9801 Defining HAVE_H_ERRNO
9733 EOF 9802 EOF
9743 echo "$ac_t""no" 1>&6 9812 echo "$ac_t""no" 1>&6
9744 fi 9813 fi
9745 rm -f conftest* 9814 rm -f conftest*
9746 9815
9747 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 9816 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9748 echo "configure:9749: checking for sigsetjmp" >&5 9817 echo "configure:9818: checking for sigsetjmp" >&5
9749 cat > conftest.$ac_ext <<EOF 9818 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure" 9819 #line 9820 "configure"
9751 #include "confdefs.h" 9820 #include "confdefs.h"
9752 #include <setjmp.h> 9821 #include <setjmp.h>
9753 int main() { 9822 int main() {
9754 sigjmp_buf bar; sigsetjmp (bar, 0); 9823 sigjmp_buf bar; sigsetjmp (bar, 0);
9755 ; return 0; } 9824 ; return 0; }
9756 EOF 9825 EOF
9757 if { (eval echo configure:9758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9826 if { (eval echo configure:9827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9758 rm -rf conftest* 9827 rm -rf conftest*
9759 echo "$ac_t""yes" 1>&6 9828 echo "$ac_t""yes" 1>&6
9760 { test "$extra_verbose" = "yes" && cat << \EOF 9829 { test "$extra_verbose" = "yes" && cat << \EOF
9761 Defining HAVE_SIGSETJMP 9830 Defining HAVE_SIGSETJMP
9762 EOF 9831 EOF
9772 echo "$ac_t""no" 1>&6 9841 echo "$ac_t""no" 1>&6
9773 fi 9842 fi
9774 rm -f conftest* 9843 rm -f conftest*
9775 9844
9776 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 9845 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9777 echo "configure:9778: checking whether localtime caches TZ" >&5 9846 echo "configure:9847: checking whether localtime caches TZ" >&5
9778 9847
9779 if test "$ac_cv_func_tzset" = "yes"; then 9848 if test "$ac_cv_func_tzset" = "yes"; then
9780 cat > conftest.$ac_ext <<EOF 9849 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure" 9850 #line 9851 "configure"
9782 #include "confdefs.h" 9851 #include "confdefs.h"
9783 #include <time.h> 9852 #include <time.h>
9784 #if STDC_HEADERS 9853 #if STDC_HEADERS
9785 # include <stdlib.h> 9854 # include <stdlib.h>
9786 #endif 9855 #endif
9811 if (localtime (&now)->tm_hour != hour_unset) 9880 if (localtime (&now)->tm_hour != hour_unset)
9812 exit (1); 9881 exit (1);
9813 exit (0); 9882 exit (0);
9814 } 9883 }
9815 EOF 9884 EOF
9816 if { (eval echo configure:9817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9817 then 9886 then
9818 emacs_cv_localtime_cache=no 9887 emacs_cv_localtime_cache=no
9819 else 9888 else
9820 conftest_rc="$?" 9889 conftest_rc="$?"
9821 echo "configure: failed program was:" >&5 9890 echo "configure: failed program was:" >&5
9841 9910
9842 fi 9911 fi
9843 9912
9844 if test "$HAVE_TIMEVAL" = "yes"; then 9913 if test "$HAVE_TIMEVAL" = "yes"; then
9845 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 9914 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9846 echo "configure:9847: checking whether gettimeofday accepts one or two arguments" >&5 9915 echo "configure:9916: checking whether gettimeofday accepts one or two arguments" >&5
9847 cat > conftest.$ac_ext <<EOF 9916 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure" 9917 #line 9918 "configure"
9849 #include "confdefs.h" 9918 #include "confdefs.h"
9850 9919
9851 #ifdef TIME_WITH_SYS_TIME 9920 #ifdef TIME_WITH_SYS_TIME
9852 #include <sys/time.h> 9921 #include <sys/time.h>
9853 #include <time.h> 9922 #include <time.h>
9865 struct timezone dummy; 9934 struct timezone dummy;
9866 gettimeofday (&time, &dummy); 9935 gettimeofday (&time, &dummy);
9867 9936
9868 ; return 0; } 9937 ; return 0; }
9869 EOF 9938 EOF
9870 if { (eval echo configure:9871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9871 rm -rf conftest* 9940 rm -rf conftest*
9872 echo "$ac_t""two" 1>&6 9941 echo "$ac_t""two" 1>&6
9873 else 9942 else
9874 echo "configure: failed program was:" >&5 9943 echo "configure: failed program was:" >&5
9875 cat conftest.$ac_ext >&5 9944 cat conftest.$ac_ext >&5
9887 rm -f conftest* 9956 rm -f conftest*
9888 fi 9957 fi
9889 9958
9890 9959
9891 echo $ac_n "checking for inline""... $ac_c" 1>&6 9960 echo $ac_n "checking for inline""... $ac_c" 1>&6
9892 echo "configure:9893: checking for inline" >&5 9961 echo "configure:9962: checking for inline" >&5
9893 9962
9894 ac_cv_c_inline=no 9963 ac_cv_c_inline=no
9895 for ac_kw in inline __inline__ __inline; do 9964 for ac_kw in inline __inline__ __inline; do
9896 cat > conftest.$ac_ext <<EOF 9965 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure" 9966 #line 9967 "configure"
9898 #include "confdefs.h" 9967 #include "confdefs.h"
9899 9968
9900 int main() { 9969 int main() {
9901 } $ac_kw foo() { 9970 } $ac_kw foo() {
9902 ; return 0; } 9971 ; return 0; }
9903 EOF 9972 EOF
9904 if { (eval echo configure:9905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9973 if { (eval echo configure:9974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9905 rm -rf conftest* 9974 rm -rf conftest*
9906 ac_cv_c_inline=$ac_kw; break 9975 ac_cv_c_inline=$ac_kw; break
9907 else 9976 else
9908 echo "configure: failed program was:" >&5 9977 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5 9978 cat conftest.$ac_ext >&5
9949 10018
9950 10019
9951 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 10020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9952 # for constant arguments. Useless! 10021 # for constant arguments. Useless!
9953 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 10022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9954 echo "configure:9955: checking for working alloca.h" >&5 10023 echo "configure:10024: checking for working alloca.h" >&5
9955 10024
9956 cat > conftest.$ac_ext <<EOF 10025 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure" 10026 #line 10027 "configure"
9958 #include "confdefs.h" 10027 #include "confdefs.h"
9959 #include <alloca.h> 10028 #include <alloca.h>
9960 int main() { 10029 int main() {
9961 char *p = alloca(2 * sizeof(int)); 10030 char *p = alloca(2 * sizeof(int));
9962 ; return 0; } 10031 ; return 0; }
9963 EOF 10032 EOF
9964 if { (eval echo configure:9965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10033 if { (eval echo configure:10034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9965 rm -rf conftest* 10034 rm -rf conftest*
9966 ac_cv_header_alloca_h=yes 10035 ac_cv_header_alloca_h=yes
9967 else 10036 else
9968 echo "configure: failed program was:" >&5 10037 echo "configure: failed program was:" >&5
9969 cat conftest.$ac_ext >&5 10038 cat conftest.$ac_ext >&5
9983 } 10052 }
9984 10053
9985 fi 10054 fi
9986 10055
9987 echo $ac_n "checking for alloca""... $ac_c" 1>&6 10056 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9988 echo "configure:9989: checking for alloca" >&5 10057 echo "configure:10058: checking for alloca" >&5
9989 10058
9990 cat > conftest.$ac_ext <<EOF 10059 cat > conftest.$ac_ext <<EOF
9991 #line 9992 "configure" 10060 #line 10061 "configure"
9992 #include "confdefs.h" 10061 #include "confdefs.h"
9993 10062
9994 #ifdef __GNUC__ 10063 #ifdef __GNUC__
9995 # define alloca __builtin_alloca 10064 # define alloca __builtin_alloca
9996 #else 10065 #else
10014 10083
10015 int main() { 10084 int main() {
10016 char *p = (char *) alloca(1); 10085 char *p = (char *) alloca(1);
10017 ; return 0; } 10086 ; return 0; }
10018 EOF 10087 EOF
10019 if { (eval echo configure:10020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10088 if { (eval echo configure:10089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10020 rm -rf conftest* 10089 rm -rf conftest*
10021 ac_cv_func_alloca_works=yes 10090 ac_cv_func_alloca_works=yes
10022 else 10091 else
10023 echo "configure: failed program was:" >&5 10092 echo "configure: failed program was:" >&5
10024 cat conftest.$ac_ext >&5 10093 cat conftest.$ac_ext >&5
10053 EOF 10122 EOF
10054 } 10123 }
10055 10124
10056 10125
10057 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 10126 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10058 echo "configure:10059: checking whether alloca needs Cray hooks" >&5 10127 echo "configure:10128: checking whether alloca needs Cray hooks" >&5
10059 10128
10060 cat > conftest.$ac_ext <<EOF 10129 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure" 10130 #line 10131 "configure"
10062 #include "confdefs.h" 10131 #include "confdefs.h"
10063 #if defined(CRAY) && ! defined(CRAY2) 10132 #if defined(CRAY) && ! defined(CRAY2)
10064 webecray 10133 webecray
10065 #else 10134 #else
10066 wenotbecray 10135 wenotbecray
10080 10149
10081 echo "$ac_t""$ac_cv_os_cray" 1>&6 10150 echo "$ac_t""$ac_cv_os_cray" 1>&6
10082 if test $ac_cv_os_cray = yes; then 10151 if test $ac_cv_os_cray = yes; then
10083 for ac_func in _getb67 GETB67 getb67; do 10152 for ac_func in _getb67 GETB67 getb67; do
10084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10085 echo "configure:10086: checking for $ac_func" >&5 10154 echo "configure:10155: checking for $ac_func" >&5
10086 10155
10087 cat > conftest.$ac_ext <<EOF 10156 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure" 10157 #line 10158 "configure"
10089 #include "confdefs.h" 10158 #include "confdefs.h"
10090 /* System header to define __stub macros and hopefully few prototypes, 10159 /* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char $ac_func(); below. */ 10160 which can conflict with char $ac_func(); below. */
10092 #include <assert.h> 10161 #include <assert.h>
10093 /* Override any gcc2 internal prototype to avoid an error. */ 10162 /* Override any gcc2 internal prototype to avoid an error. */
10106 $ac_func(); 10175 $ac_func();
10107 #endif 10176 #endif
10108 10177
10109 ; return 0; } 10178 ; return 0; }
10110 EOF 10179 EOF
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10180 if { (eval echo configure:10181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10112 rm -rf conftest* 10181 rm -rf conftest*
10113 eval "ac_cv_func_$ac_func=yes" 10182 eval "ac_cv_func_$ac_func=yes"
10114 else 10183 else
10115 echo "configure: failed program was:" >&5 10184 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5 10185 cat conftest.$ac_ext >&5
10136 10205
10137 done 10206 done
10138 fi 10207 fi
10139 10208
10140 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 10209 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10141 echo "configure:10142: checking stack direction for C alloca" >&5 10210 echo "configure:10211: checking stack direction for C alloca" >&5
10142 10211
10143 cat > conftest.$ac_ext <<EOF 10212 cat > conftest.$ac_ext <<EOF
10144 #line 10145 "configure" 10213 #line 10214 "configure"
10145 #include "confdefs.h" 10214 #include "confdefs.h"
10146 find_stack_direction () 10215 find_stack_direction ()
10147 { 10216 {
10148 static char *addr = 0; 10217 static char *addr = 0;
10149 auto char dummy; 10218 auto char dummy;
10158 main () 10227 main ()
10159 { 10228 {
10160 exit (find_stack_direction() < 0); 10229 exit (find_stack_direction() < 0);
10161 } 10230 }
10162 EOF 10231 EOF
10163 if { (eval echo configure:10164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10232 if { (eval echo configure:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10164 then 10233 then
10165 ac_cv_c_stack_direction=1 10234 ac_cv_c_stack_direction=1
10166 else 10235 else
10167 conftest_rc="$?" 10236 conftest_rc="$?"
10168 echo "configure: failed program was:" >&5 10237 echo "configure: failed program was:" >&5
10187 echo " xemacs will be linked with \"$ALLOCA\"" 10256 echo " xemacs will be linked with \"$ALLOCA\""
10188 fi 10257 fi
10189 10258
10190 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 10259 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10191 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 10260 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10192 echo "configure:10193: checking for vfork.h" >&5 10261 echo "configure:10262: checking for vfork.h" >&5
10193 10262
10194 cat > conftest.$ac_ext <<EOF 10263 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure" 10264 #line 10265 "configure"
10196 #include "confdefs.h" 10265 #include "confdefs.h"
10197 #include <vfork.h> 10266 #include <vfork.h>
10198 EOF 10267 EOF
10199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10200 { (eval echo configure:10201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10269 { (eval echo configure:10270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10202 if test -z "$ac_err"; then 10271 if test -z "$ac_err"; then
10203 rm -rf conftest* 10272 rm -rf conftest*
10204 eval "ac_cv_header_$ac_safe=yes" 10273 eval "ac_cv_header_$ac_safe=yes"
10205 else 10274 else
10223 else 10292 else
10224 echo "$ac_t""no" 1>&6 10293 echo "$ac_t""no" 1>&6
10225 fi 10294 fi
10226 10295
10227 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 10296 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10228 echo "configure:10229: checking for working vfork" >&5 10297 echo "configure:10298: checking for working vfork" >&5
10229 10298
10230 cat > conftest.$ac_ext <<EOF 10299 cat > conftest.$ac_ext <<EOF
10231 #line 10232 "configure" 10300 #line 10301 "configure"
10232 #include "confdefs.h" 10301 #include "confdefs.h"
10233 /* Thanks to Paul Eggert for this test. */ 10302 /* Thanks to Paul Eggert for this test. */
10234 #include <stdio.h> 10303 #include <stdio.h>
10235 #include <sys/types.h> 10304 #include <sys/types.h>
10236 #include <sys/stat.h> 10305 #include <sys/stat.h>
10321 || fstat(fileno(stdout), &st) != 0 10390 || fstat(fileno(stdout), &st) != 0
10322 ); 10391 );
10323 } 10392 }
10324 } 10393 }
10325 EOF 10394 EOF
10326 if { (eval echo configure:10327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10395 if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10327 then 10396 then
10328 ac_cv_func_vfork_works=yes 10397 ac_cv_func_vfork_works=yes
10329 else 10398 else
10330 conftest_rc="$?" 10399 conftest_rc="$?"
10331 echo "configure: failed program was:" >&5 10400 echo "configure: failed program was:" >&5
10347 10416
10348 fi 10417 fi
10349 10418
10350 10419
10351 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 10420 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10352 echo "configure:10353: checking for working strcoll" >&5 10421 echo "configure:10422: checking for working strcoll" >&5
10353 10422
10354 cat > conftest.$ac_ext <<EOF 10423 cat > conftest.$ac_ext <<EOF
10355 #line 10356 "configure" 10424 #line 10425 "configure"
10356 #include "confdefs.h" 10425 #include "confdefs.h"
10357 #include <string.h> 10426 #include <string.h>
10358 main () 10427 main ()
10359 { 10428 {
10360 exit (strcoll ("abc", "def") >= 0 || 10429 exit (strcoll ("abc", "def") >= 0 ||
10361 strcoll ("ABC", "DEF") >= 0 || 10430 strcoll ("ABC", "DEF") >= 0 ||
10362 strcoll ("123", "456") >= 0); 10431 strcoll ("123", "456") >= 0);
10363 } 10432 }
10364 EOF 10433 EOF
10365 if { (eval echo configure:10366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10434 if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10366 then 10435 then
10367 ac_cv_func_strcoll_works=yes 10436 ac_cv_func_strcoll_works=yes
10368 else 10437 else
10369 conftest_rc="$?" 10438 conftest_rc="$?"
10370 echo "configure: failed program was:" >&5 10439 echo "configure: failed program was:" >&5
10388 10457
10389 10458
10390 for ac_func in getpgrp 10459 for ac_func in getpgrp
10391 do 10460 do
10392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10393 echo "configure:10394: checking for $ac_func" >&5 10462 echo "configure:10463: checking for $ac_func" >&5
10394 10463
10395 cat > conftest.$ac_ext <<EOF 10464 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure" 10465 #line 10466 "configure"
10397 #include "confdefs.h" 10466 #include "confdefs.h"
10398 /* System header to define __stub macros and hopefully few prototypes, 10467 /* System header to define __stub macros and hopefully few prototypes,
10399 which can conflict with char $ac_func(); below. */ 10468 which can conflict with char $ac_func(); below. */
10400 #include <assert.h> 10469 #include <assert.h>
10401 /* Override any gcc2 internal prototype to avoid an error. */ 10470 /* Override any gcc2 internal prototype to avoid an error. */
10414 $ac_func(); 10483 $ac_func();
10415 #endif 10484 #endif
10416 10485
10417 ; return 0; } 10486 ; return 0; }
10418 EOF 10487 EOF
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420 rm -rf conftest* 10489 rm -rf conftest*
10421 eval "ac_cv_func_$ac_func=yes" 10490 eval "ac_cv_func_$ac_func=yes"
10422 else 10491 else
10423 echo "configure: failed program was:" >&5 10492 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5 10493 cat conftest.$ac_ext >&5
10442 echo "$ac_t""no" 1>&6 10511 echo "$ac_t""no" 1>&6
10443 fi 10512 fi
10444 done 10513 done
10445 10514
10446 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 10515 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10447 echo "configure:10448: checking whether getpgrp takes no argument" >&5 10516 echo "configure:10517: checking whether getpgrp takes no argument" >&5
10448 10517
10449 cat > conftest.$ac_ext <<EOF 10518 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure" 10519 #line 10520 "configure"
10451 #include "confdefs.h" 10520 #include "confdefs.h"
10452 10521
10453 /* 10522 /*
10454 * If this system has a BSD-style getpgrp(), 10523 * If this system has a BSD-style getpgrp(),
10455 * which takes a pid argument, exit unsuccessfully. 10524 * which takes a pid argument, exit unsuccessfully.
10500 exit(s>>8); 10569 exit(s>>8);
10501 } 10570 }
10502 } 10571 }
10503 10572
10504 EOF 10573 EOF
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10574 if { (eval echo configure:10575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10506 then 10575 then
10507 ac_cv_func_getpgrp_void=yes 10576 ac_cv_func_getpgrp_void=yes
10508 else 10577 else
10509 conftest_rc="$?" 10578 conftest_rc="$?"
10510 echo "configure: failed program was:" >&5 10579 echo "configure: failed program was:" >&5
10527 10596
10528 fi 10597 fi
10529 10598
10530 10599
10531 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 10600 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10532 echo "configure:10533: checking for working mmap" >&5 10601 echo "configure:10602: checking for working mmap" >&5
10533 case "$opsys" in ultrix* ) have_mmap=no ;; *) 10602 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10534 cat > conftest.$ac_ext <<EOF 10603 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure" 10604 #line 10605 "configure"
10536 #include "confdefs.h" 10605 #include "confdefs.h"
10537 #include <stdio.h> 10606 #include <stdio.h>
10538 #include <unistd.h> 10607 #include <unistd.h>
10539 #include <fcntl.h> 10608 #include <fcntl.h>
10540 #include <sys/mman.h> 10609 #include <sys/mman.h>
10563 return 0; 10632 return 0;
10564 perror ("conftest: mmap failed"); 10633 perror ("conftest: mmap failed");
10565 return 1; 10634 return 1;
10566 } 10635 }
10567 EOF 10636 EOF
10568 if { (eval echo configure:10569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10637 if { (eval echo configure:10638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10569 then 10638 then
10570 have_mmap=yes 10639 have_mmap=yes
10571 else 10640 else
10572 conftest_rc="$?" 10641 conftest_rc="$?"
10573 echo "configure: failed program was:" >&5 10642 echo "configure: failed program was:" >&5
10598 } 10667 }
10599 10668
10600 10669
10601 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 10670 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10602 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 10671 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10603 echo "configure:10604: checking for termios.h" >&5 10672 echo "configure:10673: checking for termios.h" >&5
10604 10673
10605 cat > conftest.$ac_ext <<EOF 10674 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure" 10675 #line 10676 "configure"
10607 #include "confdefs.h" 10676 #include "confdefs.h"
10608 #include <termios.h> 10677 #include <termios.h>
10609 EOF 10678 EOF
10610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10611 { (eval echo configure:10612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10680 { (eval echo configure:10681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10613 if test -z "$ac_err"; then 10682 if test -z "$ac_err"; then
10614 rm -rf conftest* 10683 rm -rf conftest*
10615 eval "ac_cv_header_$ac_safe=yes" 10684 eval "ac_cv_header_$ac_safe=yes"
10616 else 10685 else
10649 10718
10650 else 10719 else
10651 echo "$ac_t""no" 1>&6 10720 echo "$ac_t""no" 1>&6
10652 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 10721 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10653 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 10722 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10654 echo "configure:10655: checking for termio.h" >&5 10723 echo "configure:10724: checking for termio.h" >&5
10655 10724
10656 cat > conftest.$ac_ext <<EOF 10725 cat > conftest.$ac_ext <<EOF
10657 #line 10658 "configure" 10726 #line 10727 "configure"
10658 #include "confdefs.h" 10727 #include "confdefs.h"
10659 #include <termio.h> 10728 #include <termio.h>
10660 EOF 10729 EOF
10661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10662 { (eval echo configure:10663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10731 { (eval echo configure:10732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10664 if test -z "$ac_err"; then 10733 if test -z "$ac_err"; then
10665 rm -rf conftest* 10734 rm -rf conftest*
10666 eval "ac_cv_header_$ac_safe=yes" 10735 eval "ac_cv_header_$ac_safe=yes"
10667 else 10736 else
10689 fi 10758 fi
10690 10759
10691 10760
10692 10761
10693 echo $ac_n "checking for socket""... $ac_c" 1>&6 10762 echo $ac_n "checking for socket""... $ac_c" 1>&6
10694 echo "configure:10695: checking for socket" >&5 10763 echo "configure:10764: checking for socket" >&5
10695 10764
10696 cat > conftest.$ac_ext <<EOF 10765 cat > conftest.$ac_ext <<EOF
10697 #line 10698 "configure" 10766 #line 10767 "configure"
10698 #include "confdefs.h" 10767 #include "confdefs.h"
10699 /* System header to define __stub macros and hopefully few prototypes, 10768 /* System header to define __stub macros and hopefully few prototypes,
10700 which can conflict with char socket(); below. */ 10769 which can conflict with char socket(); below. */
10701 #include <assert.h> 10770 #include <assert.h>
10702 /* Override any gcc2 internal prototype to avoid an error. */ 10771 /* Override any gcc2 internal prototype to avoid an error. */
10715 socket(); 10784 socket();
10716 #endif 10785 #endif
10717 10786
10718 ; return 0; } 10787 ; return 0; }
10719 EOF 10788 EOF
10720 if { (eval echo configure:10721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10789 if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10721 rm -rf conftest* 10790 rm -rf conftest*
10722 eval "ac_cv_func_socket=yes" 10791 eval "ac_cv_func_socket=yes"
10723 else 10792 else
10724 echo "configure: failed program was:" >&5 10793 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5 10794 cat conftest.$ac_ext >&5
10730 10799
10731 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 10800 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10732 echo "$ac_t""yes" 1>&6 10801 echo "$ac_t""yes" 1>&6
10733 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 10802 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10734 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 10803 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10735 echo "configure:10736: checking for netinet/in.h" >&5 10804 echo "configure:10805: checking for netinet/in.h" >&5
10736 10805
10737 cat > conftest.$ac_ext <<EOF 10806 cat > conftest.$ac_ext <<EOF
10738 #line 10739 "configure" 10807 #line 10808 "configure"
10739 #include "confdefs.h" 10808 #include "confdefs.h"
10740 #include <netinet/in.h> 10809 #include <netinet/in.h>
10741 EOF 10810 EOF
10742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10743 { (eval echo configure:10744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10812 { (eval echo configure:10813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10745 if test -z "$ac_err"; then 10814 if test -z "$ac_err"; then
10746 rm -rf conftest* 10815 rm -rf conftest*
10747 eval "ac_cv_header_$ac_safe=yes" 10816 eval "ac_cv_header_$ac_safe=yes"
10748 else 10817 else
10755 rm -f conftest* 10824 rm -f conftest*
10756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6 10826 echo "$ac_t""yes" 1>&6
10758 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 10827 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10759 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 10828 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10760 echo "configure:10761: checking for arpa/inet.h" >&5 10829 echo "configure:10830: checking for arpa/inet.h" >&5
10761 10830
10762 cat > conftest.$ac_ext <<EOF 10831 cat > conftest.$ac_ext <<EOF
10763 #line 10764 "configure" 10832 #line 10833 "configure"
10764 #include "confdefs.h" 10833 #include "confdefs.h"
10765 #include <arpa/inet.h> 10834 #include <arpa/inet.h>
10766 EOF 10835 EOF
10767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10768 { (eval echo configure:10769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10837 { (eval echo configure:10838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10770 if test -z "$ac_err"; then 10839 if test -z "$ac_err"; then
10771 rm -rf conftest* 10840 rm -rf conftest*
10772 eval "ac_cv_header_$ac_safe=yes" 10841 eval "ac_cv_header_$ac_safe=yes"
10773 else 10842 else
10788 #define HAVE_SOCKETS 1 10857 #define HAVE_SOCKETS 1
10789 EOF 10858 EOF
10790 } 10859 }
10791 10860
10792 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 10861 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10793 echo "configure:10794: checking "for sun_len member in struct sockaddr_un"" >&5 10862 echo "configure:10863: checking "for sun_len member in struct sockaddr_un"" >&5
10794 cat > conftest.$ac_ext <<EOF 10863 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure" 10864 #line 10865 "configure"
10796 #include "confdefs.h" 10865 #include "confdefs.h"
10797 10866
10798 #include <sys/types.h> 10867 #include <sys/types.h>
10799 #include <sys/socket.h> 10868 #include <sys/socket.h>
10800 #include <sys/un.h> 10869 #include <sys/un.h>
10801 10870
10802 int main() { 10871 int main() {
10803 static struct sockaddr_un x; x.sun_len = 1; 10872 static struct sockaddr_un x; x.sun_len = 1;
10804 ; return 0; } 10873 ; return 0; }
10805 EOF 10874 EOF
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10875 if { (eval echo configure:10876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10807 rm -rf conftest* 10876 rm -rf conftest*
10808 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10877 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10809 Defining HAVE_SOCKADDR_SUN_LEN 10878 Defining HAVE_SOCKADDR_SUN_LEN
10810 EOF 10879 EOF
10811 cat >> confdefs.h <<\EOF 10880 cat >> confdefs.h <<\EOF
10819 rm -rf conftest* 10888 rm -rf conftest*
10820 echo "$ac_t""no" 1>&6 10889 echo "$ac_t""no" 1>&6
10821 fi 10890 fi
10822 rm -f conftest* 10891 rm -f conftest*
10823 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 10892 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10824 echo "configure:10825: checking "for ip_mreq struct in netinet/in.h"" >&5 10893 echo "configure:10894: checking "for ip_mreq struct in netinet/in.h"" >&5
10825 cat > conftest.$ac_ext <<EOF 10894 cat > conftest.$ac_ext <<EOF
10826 #line 10827 "configure" 10895 #line 10896 "configure"
10827 #include "confdefs.h" 10896 #include "confdefs.h"
10828 10897
10829 #include <sys/types.h> 10898 #include <sys/types.h>
10830 #include <netinet/in.h> 10899 #include <netinet/in.h>
10831 10900
10832 int main() { 10901 int main() {
10833 static struct ip_mreq x; 10902 static struct ip_mreq x;
10834 ; return 0; } 10903 ; return 0; }
10835 EOF 10904 EOF
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10905 if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837 rm -rf conftest* 10906 rm -rf conftest*
10838 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10907 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10839 Defining HAVE_MULTICAST 10908 Defining HAVE_MULTICAST
10840 EOF 10909 EOF
10841 cat >> confdefs.h <<\EOF 10910 cat >> confdefs.h <<\EOF
10862 echo "$ac_t""no" 1>&6 10931 echo "$ac_t""no" 1>&6
10863 fi 10932 fi
10864 10933
10865 10934
10866 echo $ac_n "checking for msgget""... $ac_c" 1>&6 10935 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10867 echo "configure:10868: checking for msgget" >&5 10936 echo "configure:10937: checking for msgget" >&5
10868 10937
10869 cat > conftest.$ac_ext <<EOF 10938 cat > conftest.$ac_ext <<EOF
10870 #line 10871 "configure" 10939 #line 10940 "configure"
10871 #include "confdefs.h" 10940 #include "confdefs.h"
10872 /* System header to define __stub macros and hopefully few prototypes, 10941 /* System header to define __stub macros and hopefully few prototypes,
10873 which can conflict with char msgget(); below. */ 10942 which can conflict with char msgget(); below. */
10874 #include <assert.h> 10943 #include <assert.h>
10875 /* Override any gcc2 internal prototype to avoid an error. */ 10944 /* Override any gcc2 internal prototype to avoid an error. */
10888 msgget(); 10957 msgget();
10889 #endif 10958 #endif
10890 10959
10891 ; return 0; } 10960 ; return 0; }
10892 EOF 10961 EOF
10893 if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10962 if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10894 rm -rf conftest* 10963 rm -rf conftest*
10895 eval "ac_cv_func_msgget=yes" 10964 eval "ac_cv_func_msgget=yes"
10896 else 10965 else
10897 echo "configure: failed program was:" >&5 10966 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5 10967 cat conftest.$ac_ext >&5
10903 10972
10904 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10973 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10905 echo "$ac_t""yes" 1>&6 10974 echo "$ac_t""yes" 1>&6
10906 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10975 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10907 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10976 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10908 echo "configure:10909: checking for sys/ipc.h" >&5 10977 echo "configure:10978: checking for sys/ipc.h" >&5
10909 10978
10910 cat > conftest.$ac_ext <<EOF 10979 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure" 10980 #line 10981 "configure"
10912 #include "confdefs.h" 10981 #include "confdefs.h"
10913 #include <sys/ipc.h> 10982 #include <sys/ipc.h>
10914 EOF 10983 EOF
10915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10916 { (eval echo configure:10917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10985 { (eval echo configure:10986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10918 if test -z "$ac_err"; then 10987 if test -z "$ac_err"; then
10919 rm -rf conftest* 10988 rm -rf conftest*
10920 eval "ac_cv_header_$ac_safe=yes" 10989 eval "ac_cv_header_$ac_safe=yes"
10921 else 10990 else
10928 rm -f conftest* 10997 rm -f conftest*
10929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10930 echo "$ac_t""yes" 1>&6 10999 echo "$ac_t""yes" 1>&6
10931 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 11000 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10932 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 11001 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10933 echo "configure:10934: checking for sys/msg.h" >&5 11002 echo "configure:11003: checking for sys/msg.h" >&5
10934 11003
10935 cat > conftest.$ac_ext <<EOF 11004 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure" 11005 #line 11006 "configure"
10937 #include "confdefs.h" 11006 #include "confdefs.h"
10938 #include <sys/msg.h> 11007 #include <sys/msg.h>
10939 EOF 11008 EOF
10940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10941 { (eval echo configure:10942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11010 { (eval echo configure:11011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10943 if test -z "$ac_err"; then 11012 if test -z "$ac_err"; then
10944 rm -rf conftest* 11013 rm -rf conftest*
10945 eval "ac_cv_header_$ac_safe=yes" 11014 eval "ac_cv_header_$ac_safe=yes"
10946 else 11015 else
10974 fi 11043 fi
10975 11044
10976 11045
10977 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 11046 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10978 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 11047 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10979 echo "configure:10980: checking for dirent.h" >&5 11048 echo "configure:11049: checking for dirent.h" >&5
10980 11049
10981 cat > conftest.$ac_ext <<EOF 11050 cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure" 11051 #line 11052 "configure"
10983 #include "confdefs.h" 11052 #include "confdefs.h"
10984 #include <dirent.h> 11053 #include <dirent.h>
10985 EOF 11054 EOF
10986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10987 { (eval echo configure:10988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11056 { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10989 if test -z "$ac_err"; then 11058 if test -z "$ac_err"; then
10990 rm -rf conftest* 11059 rm -rf conftest*
10991 eval "ac_cv_header_$ac_safe=yes" 11060 eval "ac_cv_header_$ac_safe=yes"
10992 else 11061 else
11009 11078
11010 else 11079 else
11011 echo "$ac_t""no" 1>&6 11080 echo "$ac_t""no" 1>&6
11012 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 11081 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11013 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 11082 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11014 echo "configure:11015: checking for sys/dir.h" >&5 11083 echo "configure:11084: checking for sys/dir.h" >&5
11015 11084
11016 cat > conftest.$ac_ext <<EOF 11085 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure" 11086 #line 11087 "configure"
11018 #include "confdefs.h" 11087 #include "confdefs.h"
11019 #include <sys/dir.h> 11088 #include <sys/dir.h>
11020 EOF 11089 EOF
11021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11022 { (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11091 { (eval echo configure:11092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11024 if test -z "$ac_err"; then 11093 if test -z "$ac_err"; then
11025 rm -rf conftest* 11094 rm -rf conftest*
11026 eval "ac_cv_header_$ac_safe=yes" 11095 eval "ac_cv_header_$ac_safe=yes"
11027 else 11096 else
11050 fi 11119 fi
11051 11120
11052 11121
11053 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 11122 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11054 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 11123 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11055 echo "configure:11056: checking for nlist.h" >&5 11124 echo "configure:11125: checking for nlist.h" >&5
11056 11125
11057 cat > conftest.$ac_ext <<EOF 11126 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure" 11127 #line 11128 "configure"
11059 #include "confdefs.h" 11128 #include "confdefs.h"
11060 #include <nlist.h> 11129 #include <nlist.h>
11061 EOF 11130 EOF
11062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11063 { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11132 { (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11065 if test -z "$ac_err"; then 11134 if test -z "$ac_err"; then
11066 rm -rf conftest* 11135 rm -rf conftest*
11067 eval "ac_cv_header_$ac_safe=yes" 11136 eval "ac_cv_header_$ac_safe=yes"
11068 else 11137 else
11088 fi 11157 fi
11089 11158
11090 11159
11091 11160
11092 echo "checking "for sound support"" 1>&6 11161 echo "checking "for sound support"" 1>&6
11093 echo "configure:11094: checking "for sound support"" >&5 11162 echo "configure:11163: checking "for sound support"" >&5
11094 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 11163 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11095 11164
11096 if test "$with_native_sound" != "no"; then 11165 if test "$with_native_sound" != "no"; then
11097 if test -n "$native_sound_lib"; then 11166 if test -n "$native_sound_lib"; then
11098 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 11167 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11099 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 11168 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11100 echo "configure:11101: checking for multimedia/audio_device.h" >&5 11169 echo "configure:11170: checking for multimedia/audio_device.h" >&5
11101 11170
11102 cat > conftest.$ac_ext <<EOF 11171 cat > conftest.$ac_ext <<EOF
11103 #line 11104 "configure" 11172 #line 11173 "configure"
11104 #include "confdefs.h" 11173 #include "confdefs.h"
11105 #include <multimedia/audio_device.h> 11174 #include <multimedia/audio_device.h>
11106 EOF 11175 EOF
11107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11108 { (eval echo configure:11109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11177 { (eval echo configure:11178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11110 if test -z "$ac_err"; then 11179 if test -z "$ac_err"; then
11111 rm -rf conftest* 11180 rm -rf conftest*
11112 eval "ac_cv_header_$ac_safe=yes" 11181 eval "ac_cv_header_$ac_safe=yes"
11113 else 11182 else
11151 case "$canonical" in 11220 case "$canonical" in
11152 *-sgi-* ) 11221 *-sgi-* )
11153 if test -z "$native_sound_lib"; then 11222 if test -z "$native_sound_lib"; then
11154 11223
11155 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 11224 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11156 echo "configure:11157: checking for ALopenport in -laudio" >&5 11225 echo "configure:11226: checking for ALopenport in -laudio" >&5
11157 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 11226 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11158 11227
11159 xe_check_libs=" -laudio " 11228 xe_check_libs=" -laudio "
11160 cat > conftest.$ac_ext <<EOF 11229 cat > conftest.$ac_ext <<EOF
11161 #line 11162 "configure" 11230 #line 11231 "configure"
11162 #include "confdefs.h" 11231 #include "confdefs.h"
11163 /* Override any gcc2 internal prototype to avoid an error. */ 11232 /* Override any gcc2 internal prototype to avoid an error. */
11164 /* We use char because int might match the return type of a gcc2 11233 /* We use char because int might match the return type of a gcc2
11165 builtin and then its argument prototype would still apply. */ 11234 builtin and then its argument prototype would still apply. */
11166 char ALopenport(); 11235 char ALopenport();
11167 11236
11168 int main() { 11237 int main() {
11169 ALopenport() 11238 ALopenport()
11170 ; return 0; } 11239 ; return 0; }
11171 EOF 11240 EOF
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11241 if { (eval echo configure:11242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 rm -rf conftest* 11242 rm -rf conftest*
11174 eval "ac_cv_lib_$ac_lib_var=yes" 11243 eval "ac_cv_lib_$ac_lib_var=yes"
11175 else 11244 else
11176 echo "configure: failed program was:" >&5 11245 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5 11246 cat conftest.$ac_ext >&5
11198 fi ;; 11267 fi ;;
11199 hppa*-hp-hpux* ) 11268 hppa*-hp-hpux* )
11200 if test -z "$native_sound_lib"; then 11269 if test -z "$native_sound_lib"; then
11201 11270
11202 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 11271 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11203 echo "configure:11204: checking for AOpenAudio in -lAlib" >&5 11272 echo "configure:11273: checking for AOpenAudio in -lAlib" >&5
11204 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 11273 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11205 11274
11206 xe_check_libs=" -lAlib " 11275 xe_check_libs=" -lAlib "
11207 cat > conftest.$ac_ext <<EOF 11276 cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure" 11277 #line 11278 "configure"
11209 #include "confdefs.h" 11278 #include "confdefs.h"
11210 /* Override any gcc2 internal prototype to avoid an error. */ 11279 /* Override any gcc2 internal prototype to avoid an error. */
11211 /* We use char because int might match the return type of a gcc2 11280 /* We use char because int might match the return type of a gcc2
11212 builtin and then its argument prototype would still apply. */ 11281 builtin and then its argument prototype would still apply. */
11213 char AOpenAudio(); 11282 char AOpenAudio();
11214 11283
11215 int main() { 11284 int main() {
11216 AOpenAudio() 11285 AOpenAudio()
11217 ; return 0; } 11286 ; return 0; }
11218 EOF 11287 EOF
11219 if { (eval echo configure:11220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11288 if { (eval echo configure:11289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11220 rm -rf conftest* 11289 rm -rf conftest*
11221 eval "ac_cv_lib_$ac_lib_var=yes" 11290 eval "ac_cv_lib_$ac_lib_var=yes"
11222 else 11291 else
11223 echo "configure: failed program was:" >&5 11292 echo "configure: failed program was:" >&5
11224 cat conftest.$ac_ext >&5 11293 cat conftest.$ac_ext >&5
11252 11321
11253 if test -z "$sound_found"; then 11322 if test -z "$sound_found"; then
11254 for dir in "machine" "sys" "linux"; do 11323 for dir in "machine" "sys" "linux"; do
11255 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 11324 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11256 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 11325 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11257 echo "configure:11258: checking for ${dir}/soundcard.h" >&5 11326 echo "configure:11327: checking for ${dir}/soundcard.h" >&5
11258 11327
11259 cat > conftest.$ac_ext <<EOF 11328 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure" 11329 #line 11330 "configure"
11261 #include "confdefs.h" 11330 #include "confdefs.h"
11262 #include <${dir}/soundcard.h> 11331 #include <${dir}/soundcard.h>
11263 EOF 11332 EOF
11264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11265 { (eval echo configure:11266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11334 { (eval echo configure:11335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11267 if test -z "$ac_err"; then 11336 if test -z "$ac_err"; then
11268 rm -rf conftest* 11337 rm -rf conftest*
11269 eval "ac_cv_header_$ac_safe=yes" 11338 eval "ac_cv_header_$ac_safe=yes"
11270 else 11339 else
11314 fi 11383 fi
11315 11384
11316 if test "$with_nas_sound" != "no"; then 11385 if test "$with_nas_sound" != "no"; then
11317 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 11386 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11318 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 11387 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11319 echo "configure:11320: checking for audio/audiolib.h" >&5 11388 echo "configure:11389: checking for audio/audiolib.h" >&5
11320 11389
11321 cat > conftest.$ac_ext <<EOF 11390 cat > conftest.$ac_ext <<EOF
11322 #line 11323 "configure" 11391 #line 11392 "configure"
11323 #include "confdefs.h" 11392 #include "confdefs.h"
11324 #include <audio/audiolib.h> 11393 #include <audio/audiolib.h>
11325 EOF 11394 EOF
11326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11327 { (eval echo configure:11328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11396 { (eval echo configure:11397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11329 if test -z "$ac_err"; then 11398 if test -z "$ac_err"; then
11330 rm -rf conftest* 11399 rm -rf conftest*
11331 eval "ac_cv_header_$ac_safe=yes" 11400 eval "ac_cv_header_$ac_safe=yes"
11332 else 11401 else
11340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11341 echo "$ac_t""yes" 1>&6 11410 echo "$ac_t""yes" 1>&6
11342 11411
11343 11412
11344 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 11413 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11345 echo "configure:11346: checking for AuOpenServer in -laudio" >&5 11414 echo "configure:11415: checking for AuOpenServer in -laudio" >&5
11346 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 11415 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11347 11416
11348 xe_check_libs=" -laudio " 11417 xe_check_libs=" -laudio "
11349 cat > conftest.$ac_ext <<EOF 11418 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure" 11419 #line 11420 "configure"
11351 #include "confdefs.h" 11420 #include "confdefs.h"
11352 /* Override any gcc2 internal prototype to avoid an error. */ 11421 /* Override any gcc2 internal prototype to avoid an error. */
11353 /* We use char because int might match the return type of a gcc2 11422 /* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */ 11423 builtin and then its argument prototype would still apply. */
11355 char AuOpenServer(); 11424 char AuOpenServer();
11356 11425
11357 int main() { 11426 int main() {
11358 AuOpenServer() 11427 AuOpenServer()
11359 ; return 0; } 11428 ; return 0; }
11360 EOF 11429 EOF
11361 if { (eval echo configure:11362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11430 if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11362 rm -rf conftest* 11431 rm -rf conftest*
11363 eval "ac_cv_lib_$ac_lib_var=yes" 11432 eval "ac_cv_lib_$ac_lib_var=yes"
11364 else 11433 else
11365 echo "configure: failed program was:" >&5 11434 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5 11435 cat conftest.$ac_ext >&5
11395 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 11464 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11396 echo " xemacs will be linked with \"nas.o\"" 11465 echo " xemacs will be linked with \"nas.o\""
11397 fi 11466 fi
11398 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 11467 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11399 cat > conftest.$ac_ext <<EOF 11468 cat > conftest.$ac_ext <<EOF
11400 #line 11401 "configure" 11469 #line 11470 "configure"
11401 #include "confdefs.h" 11470 #include "confdefs.h"
11402 #include <audio/Xtutil.h> 11471 #include <audio/Xtutil.h>
11403 EOF 11472 EOF
11404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11405 egrep "AuXtErrorJump" >/dev/null 2>&1; then 11474 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11426 11495
11427 if test "$with_esd_sound" != "no"; then 11496 if test "$with_esd_sound" != "no"; then
11428 # Extract the first word of "esd-config", so it can be a program name with args. 11497 # Extract the first word of "esd-config", so it can be a program name with args.
11429 set dummy esd-config; ac_word=$2 11498 set dummy esd-config; ac_word=$2
11430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 11499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11431 echo "configure:11432: checking for $ac_word" >&5 11500 echo "configure:11501: checking for $ac_word" >&5
11432 11501
11433 if test -n "$have_esd_config"; then 11502 if test -n "$have_esd_config"; then
11434 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 11503 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11435 else 11504 else
11436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 11505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11455 if test "$have_esd_config" = "yes"; then 11524 if test "$have_esd_config" = "yes"; then
11456 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 11525 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11457 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi 11526 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
11458 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 11527 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11459 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 11528 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11460 echo "configure:11461: checking for esd_play_stream" >&5 11529 echo "configure:11530: checking for esd_play_stream" >&5
11461 11530
11462 cat > conftest.$ac_ext <<EOF 11531 cat > conftest.$ac_ext <<EOF
11463 #line 11464 "configure" 11532 #line 11533 "configure"
11464 #include "confdefs.h" 11533 #include "confdefs.h"
11465 /* System header to define __stub macros and hopefully few prototypes, 11534 /* System header to define __stub macros and hopefully few prototypes,
11466 which can conflict with char esd_play_stream(); below. */ 11535 which can conflict with char esd_play_stream(); below. */
11467 #include <assert.h> 11536 #include <assert.h>
11468 /* Override any gcc2 internal prototype to avoid an error. */ 11537 /* Override any gcc2 internal prototype to avoid an error. */
11481 esd_play_stream(); 11550 esd_play_stream();
11482 #endif 11551 #endif
11483 11552
11484 ; return 0; } 11553 ; return 0; }
11485 EOF 11554 EOF
11486 if { (eval echo configure:11487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11555 if { (eval echo configure:11556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11487 rm -rf conftest* 11556 rm -rf conftest*
11488 eval "ac_cv_func_esd_play_stream=yes" 11557 eval "ac_cv_func_esd_play_stream=yes"
11489 else 11558 else
11490 echo "configure: failed program was:" >&5 11559 echo "configure: failed program was:" >&5
11491 cat conftest.$ac_ext >&5 11560 cat conftest.$ac_ext >&5
11532 11601
11533 test -z "$with_tty" && with_tty=yes 11602 test -z "$with_tty" && with_tty=yes
11534 11603
11535 if test "$with_tty" = "yes" ; then 11604 if test "$with_tty" = "yes" ; then
11536 echo "checking for TTY-related features" 1>&6 11605 echo "checking for TTY-related features" 1>&6
11537 echo "configure:11538: checking for TTY-related features" >&5 11606 echo "configure:11607: checking for TTY-related features" >&5
11538 { test "$extra_verbose" = "yes" && cat << \EOF 11607 { test "$extra_verbose" = "yes" && cat << \EOF
11539 Defining HAVE_TTY 11608 Defining HAVE_TTY
11540 EOF 11609 EOF
11541 cat >> confdefs.h <<\EOF 11610 cat >> confdefs.h <<\EOF
11542 #define HAVE_TTY 1 11611 #define HAVE_TTY 1
11548 fi 11617 fi
11549 11618
11550 if test -z "$with_ncurses"; then 11619 if test -z "$with_ncurses"; then
11551 11620
11552 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 11621 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11553 echo "configure:11554: checking for tgetent in -lncurses" >&5 11622 echo "configure:11623: checking for tgetent in -lncurses" >&5
11554 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 11623 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11555 11624
11556 xe_check_libs=" -lncurses " 11625 xe_check_libs=" -lncurses "
11557 cat > conftest.$ac_ext <<EOF 11626 cat > conftest.$ac_ext <<EOF
11558 #line 11559 "configure" 11627 #line 11628 "configure"
11559 #include "confdefs.h" 11628 #include "confdefs.h"
11560 /* Override any gcc2 internal prototype to avoid an error. */ 11629 /* Override any gcc2 internal prototype to avoid an error. */
11561 /* We use char because int might match the return type of a gcc2 11630 /* We use char because int might match the return type of a gcc2
11562 builtin and then its argument prototype would still apply. */ 11631 builtin and then its argument prototype would still apply. */
11563 char tgetent(); 11632 char tgetent();
11564 11633
11565 int main() { 11634 int main() {
11566 tgetent() 11635 tgetent()
11567 ; return 0; } 11636 ; return 0; }
11568 EOF 11637 EOF
11569 if { (eval echo configure:11570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11570 rm -rf conftest* 11639 rm -rf conftest*
11571 eval "ac_cv_lib_$ac_lib_var=yes" 11640 eval "ac_cv_lib_$ac_lib_var=yes"
11572 else 11641 else
11573 echo "configure: failed program was:" >&5 11642 echo "configure: failed program was:" >&5
11574 cat conftest.$ac_ext >&5 11643 cat conftest.$ac_ext >&5
11597 EOF 11666 EOF
11598 } 11667 }
11599 11668
11600 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 11669 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11601 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 11670 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11602 echo "configure:11603: checking for ncurses/curses.h" >&5 11671 echo "configure:11672: checking for ncurses/curses.h" >&5
11603 11672
11604 cat > conftest.$ac_ext <<EOF 11673 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure" 11674 #line 11675 "configure"
11606 #include "confdefs.h" 11675 #include "confdefs.h"
11607 #include <ncurses/curses.h> 11676 #include <ncurses/curses.h>
11608 EOF 11677 EOF
11609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11610 { (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11679 { (eval echo configure:11680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11612 if test -z "$ac_err"; then 11681 if test -z "$ac_err"; then
11613 rm -rf conftest* 11682 rm -rf conftest*
11614 eval "ac_cv_header_$ac_safe=yes" 11683 eval "ac_cv_header_$ac_safe=yes"
11615 else 11684 else
11627 echo "$ac_t""no" 1>&6 11696 echo "$ac_t""no" 1>&6
11628 fi 11697 fi
11629 11698
11630 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 11699 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11631 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 11700 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11632 echo "configure:11633: checking for ncurses/term.h" >&5 11701 echo "configure:11702: checking for ncurses/term.h" >&5
11633 11702
11634 cat > conftest.$ac_ext <<EOF 11703 cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure" 11704 #line 11705 "configure"
11636 #include "confdefs.h" 11705 #include "confdefs.h"
11637 #include <ncurses/term.h> 11706 #include <ncurses/term.h>
11638 EOF 11707 EOF
11639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11640 { (eval echo configure:11641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11709 { (eval echo configure:11710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11642 if test -z "$ac_err"; then 11711 if test -z "$ac_err"; then
11643 rm -rf conftest* 11712 rm -rf conftest*
11644 eval "ac_cv_header_$ac_safe=yes" 11713 eval "ac_cv_header_$ac_safe=yes"
11645 else 11714 else
11665 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 11734 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11666 save_c_switch_site="$c_switch_site" 11735 save_c_switch_site="$c_switch_site"
11667 c_switch_site="$c_switch_site -I/usr/include/ncurses" 11736 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11668 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 11737 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11669 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 11738 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11670 echo "configure:11671: checking for ncurses/curses.h" >&5 11739 echo "configure:11740: checking for ncurses/curses.h" >&5
11671 11740
11672 cat > conftest.$ac_ext <<EOF 11741 cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure" 11742 #line 11743 "configure"
11674 #include "confdefs.h" 11743 #include "confdefs.h"
11675 #include <ncurses/curses.h> 11744 #include <ncurses/curses.h>
11676 EOF 11745 EOF
11677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11678 { (eval echo configure:11679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11747 { (eval echo configure:11748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11680 if test -z "$ac_err"; then 11749 if test -z "$ac_err"; then
11681 rm -rf conftest* 11750 rm -rf conftest*
11682 eval "ac_cv_header_$ac_safe=yes" 11751 eval "ac_cv_header_$ac_safe=yes"
11683 else 11752 else
11708 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 11777 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11709 else 11778 else
11710 for lib in curses termlib termcap; do 11779 for lib in curses termlib termcap; do
11711 11780
11712 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 11781 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11713 echo "configure:11714: checking for tgetent in -l$lib" >&5 11782 echo "configure:11783: checking for tgetent in -l$lib" >&5
11714 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 11783 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11715 11784
11716 xe_check_libs=" -l$lib " 11785 xe_check_libs=" -l$lib "
11717 cat > conftest.$ac_ext <<EOF 11786 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure" 11787 #line 11788 "configure"
11719 #include "confdefs.h" 11788 #include "confdefs.h"
11720 /* Override any gcc2 internal prototype to avoid an error. */ 11789 /* Override any gcc2 internal prototype to avoid an error. */
11721 /* We use char because int might match the return type of a gcc2 11790 /* We use char because int might match the return type of a gcc2
11722 builtin and then its argument prototype would still apply. */ 11791 builtin and then its argument prototype would still apply. */
11723 char tgetent(); 11792 char tgetent();
11724 11793
11725 int main() { 11794 int main() {
11726 tgetent() 11795 tgetent()
11727 ; return 0; } 11796 ; return 0; }
11728 EOF 11797 EOF
11729 if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11798 if { (eval echo configure:11799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11730 rm -rf conftest* 11799 rm -rf conftest*
11731 eval "ac_cv_lib_$ac_lib_var=yes" 11800 eval "ac_cv_lib_$ac_lib_var=yes"
11732 else 11801 else
11733 echo "configure: failed program was:" >&5 11802 echo "configure: failed program was:" >&5
11734 cat conftest.$ac_ext >&5 11803 cat conftest.$ac_ext >&5
11755 if test -n "$libs_termcap"; then 11824 if test -n "$libs_termcap"; then
11756 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 11825 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11757 else 11826 else
11758 11827
11759 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 11828 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11760 echo "configure:11761: checking for tgetent in -lcurses" >&5 11829 echo "configure:11830: checking for tgetent in -lcurses" >&5
11761 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 11830 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11762 11831
11763 xe_check_libs=" -lcurses " 11832 xe_check_libs=" -lcurses "
11764 cat > conftest.$ac_ext <<EOF 11833 cat > conftest.$ac_ext <<EOF
11765 #line 11766 "configure" 11834 #line 11835 "configure"
11766 #include "confdefs.h" 11835 #include "confdefs.h"
11767 /* Override any gcc2 internal prototype to avoid an error. */ 11836 /* Override any gcc2 internal prototype to avoid an error. */
11768 /* We use char because int might match the return type of a gcc2 11837 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */ 11838 builtin and then its argument prototype would still apply. */
11770 char tgetent(); 11839 char tgetent();
11771 11840
11772 int main() { 11841 int main() {
11773 tgetent() 11842 tgetent()
11774 ; return 0; } 11843 ; return 0; }
11775 EOF 11844 EOF
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11845 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11777 rm -rf conftest* 11846 rm -rf conftest*
11778 eval "ac_cv_lib_$ac_lib_var=yes" 11847 eval "ac_cv_lib_$ac_lib_var=yes"
11779 else 11848 else
11780 echo "configure: failed program was:" >&5 11849 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5 11850 cat conftest.$ac_ext >&5
11789 echo "$ac_t""yes" 1>&6 11858 echo "$ac_t""yes" 1>&6
11790 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 11859 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11791 else 11860 else
11792 echo "$ac_t""no" 1>&6 11861 echo "$ac_t""no" 1>&6
11793 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 11862 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11794 echo "configure:11795: checking for tgetent in -ltermcap" >&5 11863 echo "configure:11864: checking for tgetent in -ltermcap" >&5
11795 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 11864 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11796 11865
11797 xe_check_libs=" -ltermcap " 11866 xe_check_libs=" -ltermcap "
11798 cat > conftest.$ac_ext <<EOF 11867 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure" 11868 #line 11869 "configure"
11800 #include "confdefs.h" 11869 #include "confdefs.h"
11801 /* Override any gcc2 internal prototype to avoid an error. */ 11870 /* Override any gcc2 internal prototype to avoid an error. */
11802 /* We use char because int might match the return type of a gcc2 11871 /* We use char because int might match the return type of a gcc2
11803 builtin and then its argument prototype would still apply. */ 11872 builtin and then its argument prototype would still apply. */
11804 char tgetent(); 11873 char tgetent();
11805 11874
11806 int main() { 11875 int main() {
11807 tgetent() 11876 tgetent()
11808 ; return 0; } 11877 ; return 0; }
11809 EOF 11878 EOF
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11879 if { (eval echo configure:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11811 rm -rf conftest* 11880 rm -rf conftest*
11812 eval "ac_cv_lib_$ac_lib_var=yes" 11881 eval "ac_cv_lib_$ac_lib_var=yes"
11813 else 11882 else
11814 echo "configure: failed program was:" >&5 11883 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5 11884 cat conftest.$ac_ext >&5
11853 } 11922 }
11854 11923
11855 11924
11856 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 11925 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11857 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 11926 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11858 echo "configure:11859: checking for gpm.h" >&5 11927 echo "configure:11928: checking for gpm.h" >&5
11859 11928
11860 cat > conftest.$ac_ext <<EOF 11929 cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure" 11930 #line 11931 "configure"
11862 #include "confdefs.h" 11931 #include "confdefs.h"
11863 #include <gpm.h> 11932 #include <gpm.h>
11864 EOF 11933 EOF
11865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11866 { (eval echo configure:11867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11935 { (eval echo configure:11936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11868 if test -z "$ac_err"; then 11937 if test -z "$ac_err"; then
11869 rm -rf conftest* 11938 rm -rf conftest*
11870 eval "ac_cv_header_$ac_safe=yes" 11939 eval "ac_cv_header_$ac_safe=yes"
11871 else 11940 else
11884 with_gpm=no 11953 with_gpm=no
11885 fi 11954 fi
11886 } 11955 }
11887 test -z "$with_gpm" && { 11956 test -z "$with_gpm" && {
11888 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 11957 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11889 echo "configure:11890: checking for Gpm_Open in -lgpm" >&5 11958 echo "configure:11959: checking for Gpm_Open in -lgpm" >&5
11890 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 11959 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11891 11960
11892 xe_check_libs=" -lgpm " 11961 xe_check_libs=" -lgpm "
11893 cat > conftest.$ac_ext <<EOF 11962 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure" 11963 #line 11964 "configure"
11895 #include "confdefs.h" 11964 #include "confdefs.h"
11896 /* Override any gcc2 internal prototype to avoid an error. */ 11965 /* Override any gcc2 internal prototype to avoid an error. */
11897 /* We use char because int might match the return type of a gcc2 11966 /* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */ 11967 builtin and then its argument prototype would still apply. */
11899 char Gpm_Open(); 11968 char Gpm_Open();
11900 11969
11901 int main() { 11970 int main() {
11902 Gpm_Open() 11971 Gpm_Open()
11903 ; return 0; } 11972 ; return 0; }
11904 EOF 11973 EOF
11905 if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11974 if { (eval echo configure:11975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11906 rm -rf conftest* 11975 rm -rf conftest*
11907 eval "ac_cv_lib_$ac_lib_var=yes" 11976 eval "ac_cv_lib_$ac_lib_var=yes"
11908 else 11977 else
11909 echo "configure: failed program was:" >&5 11978 echo "configure: failed program was:" >&5
11910 cat conftest.$ac_ext >&5 11979 cat conftest.$ac_ext >&5
11950 fi 12019 fi
11951 12020
11952 12021
11953 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 12022 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
11954 != "no no no" && echo "checking for database support" 1>&6 12023 != "no no no" && echo "checking for database support" 1>&6
11955 echo "configure:11956: checking for database support" >&5 12024 echo "configure:12025: checking for database support" >&5
11956 12025
11957 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 12026 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
11958 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 12027 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11959 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 12028 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11960 echo "configure:11961: checking for ndbm.h" >&5 12029 echo "configure:12030: checking for ndbm.h" >&5
11961 12030
11962 cat > conftest.$ac_ext <<EOF 12031 cat > conftest.$ac_ext <<EOF
11963 #line 11964 "configure" 12032 #line 12033 "configure"
11964 #include "confdefs.h" 12033 #include "confdefs.h"
11965 #include <ndbm.h> 12034 #include <ndbm.h>
11966 EOF 12035 EOF
11967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11968 { (eval echo configure:11969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12037 { (eval echo configure:12038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11970 if test -z "$ac_err"; then 12039 if test -z "$ac_err"; then
11971 rm -rf conftest* 12040 rm -rf conftest*
11972 eval "ac_cv_header_$ac_safe=yes" 12041 eval "ac_cv_header_$ac_safe=yes"
11973 else 12042 else
11993 fi 12062 fi
11994 12063
11995 if test "$with_database_gdbm" != "no"; then 12064 if test "$with_database_gdbm" != "no"; then
11996 12065
11997 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 12066 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11998 echo "configure:11999: checking for dbm_open in -lgdbm" >&5 12067 echo "configure:12068: checking for dbm_open in -lgdbm" >&5
11999 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 12068 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12000 12069
12001 xe_check_libs=" -lgdbm " 12070 xe_check_libs=" -lgdbm "
12002 cat > conftest.$ac_ext <<EOF 12071 cat > conftest.$ac_ext <<EOF
12003 #line 12004 "configure" 12072 #line 12073 "configure"
12004 #include "confdefs.h" 12073 #include "confdefs.h"
12005 /* Override any gcc2 internal prototype to avoid an error. */ 12074 /* Override any gcc2 internal prototype to avoid an error. */
12006 /* We use char because int might match the return type of a gcc2 12075 /* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */ 12076 builtin and then its argument prototype would still apply. */
12008 char dbm_open(); 12077 char dbm_open();
12009 12078
12010 int main() { 12079 int main() {
12011 dbm_open() 12080 dbm_open()
12012 ; return 0; } 12081 ; return 0; }
12013 EOF 12082 EOF
12014 if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12083 if { (eval echo configure:12084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12015 rm -rf conftest* 12084 rm -rf conftest*
12016 eval "ac_cv_lib_$ac_lib_var=yes" 12085 eval "ac_cv_lib_$ac_lib_var=yes"
12017 else 12086 else
12018 echo "configure: failed program was:" >&5 12087 echo "configure: failed program was:" >&5
12019 cat conftest.$ac_ext >&5 12088 cat conftest.$ac_ext >&5
12037 12106
12038 fi 12107 fi
12039 12108
12040 if test "$with_database_dbm" != "no"; then 12109 if test "$with_database_dbm" != "no"; then
12041 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 12110 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12042 echo "configure:12043: checking for dbm_open" >&5 12111 echo "configure:12112: checking for dbm_open" >&5
12043 12112
12044 cat > conftest.$ac_ext <<EOF 12113 cat > conftest.$ac_ext <<EOF
12045 #line 12046 "configure" 12114 #line 12115 "configure"
12046 #include "confdefs.h" 12115 #include "confdefs.h"
12047 /* System header to define __stub macros and hopefully few prototypes, 12116 /* System header to define __stub macros and hopefully few prototypes,
12048 which can conflict with char dbm_open(); below. */ 12117 which can conflict with char dbm_open(); below. */
12049 #include <assert.h> 12118 #include <assert.h>
12050 /* Override any gcc2 internal prototype to avoid an error. */ 12119 /* Override any gcc2 internal prototype to avoid an error. */
12063 dbm_open(); 12132 dbm_open();
12064 #endif 12133 #endif
12065 12134
12066 ; return 0; } 12135 ; return 0; }
12067 EOF 12136 EOF
12068 if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12137 if { (eval echo configure:12138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12069 rm -rf conftest* 12138 rm -rf conftest*
12070 eval "ac_cv_func_dbm_open=yes" 12139 eval "ac_cv_func_dbm_open=yes"
12071 else 12140 else
12072 echo "configure: failed program was:" >&5 12141 echo "configure: failed program was:" >&5
12073 cat conftest.$ac_ext >&5 12142 cat conftest.$ac_ext >&5
12082 else 12151 else
12083 echo "$ac_t""no" 1>&6 12152 echo "$ac_t""no" 1>&6
12084 12153
12085 12154
12086 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 12155 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12087 echo "configure:12088: checking for dbm_open in -ldbm" >&5 12156 echo "configure:12157: checking for dbm_open in -ldbm" >&5
12088 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 12157 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12089 12158
12090 xe_check_libs=" -ldbm " 12159 xe_check_libs=" -ldbm "
12091 cat > conftest.$ac_ext <<EOF 12160 cat > conftest.$ac_ext <<EOF
12092 #line 12093 "configure" 12161 #line 12162 "configure"
12093 #include "confdefs.h" 12162 #include "confdefs.h"
12094 /* Override any gcc2 internal prototype to avoid an error. */ 12163 /* Override any gcc2 internal prototype to avoid an error. */
12095 /* We use char because int might match the return type of a gcc2 12164 /* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */ 12165 builtin and then its argument prototype would still apply. */
12097 char dbm_open(); 12166 char dbm_open();
12098 12167
12099 int main() { 12168 int main() {
12100 dbm_open() 12169 dbm_open()
12101 ; return 0; } 12170 ; return 0; }
12102 EOF 12171 EOF
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12172 if { (eval echo configure:12173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12104 rm -rf conftest* 12173 rm -rf conftest*
12105 eval "ac_cv_lib_$ac_lib_var=yes" 12174 eval "ac_cv_lib_$ac_lib_var=yes"
12106 else 12175 else
12107 echo "configure: failed program was:" >&5 12176 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5 12177 cat conftest.$ac_ext >&5
12139 } 12208 }
12140 12209
12141 12210
12142 if test "$with_database_berkdb" != "no"; then 12211 if test "$with_database_berkdb" != "no"; then
12143 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 12212 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12144 echo "configure:12145: checking for Berkeley db.h" >&5 12213 echo "configure:12214: checking for Berkeley db.h" >&5
12145 for path in "db/db.h" "db.h"; do 12214 for path in "db/db.h" "db.h"; do
12146 cat > conftest.$ac_ext <<EOF 12215 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure" 12216 #line 12217 "configure"
12148 #include "confdefs.h" 12217 #include "confdefs.h"
12149 #ifdef HAVE_INTTYPES_H 12218 #ifdef HAVE_INTTYPES_H
12150 #define __BIT_TYPES_DEFINED__ 12219 #define __BIT_TYPES_DEFINED__
12151 #include <inttypes.h> 12220 #include <inttypes.h>
12152 typedef uint8_t u_int8_t; 12221 typedef uint8_t u_int8_t;
12160 12229
12161 int main() { 12230 int main() {
12162 12231
12163 ; return 0; } 12232 ; return 0; }
12164 EOF 12233 EOF
12165 if { (eval echo configure:12166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12234 if { (eval echo configure:12235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12166 rm -rf conftest* 12235 rm -rf conftest*
12167 db_h_path="$path"; break 12236 db_h_path="$path"; break
12168 else 12237 else
12169 echo "configure: failed program was:" >&5 12238 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5 12239 cat conftest.$ac_ext >&5
12176 else echo "$ac_t""$db_h_path" 1>&6 12245 else echo "$ac_t""$db_h_path" 1>&6
12177 fi 12246 fi
12178 12247
12179 if test "$with_database_berkdb" != "no"; then 12248 if test "$with_database_berkdb" != "no"; then
12180 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 12249 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12181 echo "configure:12182: checking for Berkeley DB version" >&5 12250 echo "configure:12251: checking for Berkeley DB version" >&5
12182 cat > conftest.$ac_ext <<EOF 12251 cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure" 12252 #line 12253 "configure"
12184 #include "confdefs.h" 12253 #include "confdefs.h"
12185 #include <$db_h_path> 12254 #include <$db_h_path>
12186 #if DB_VERSION_MAJOR > 1 12255 #if DB_VERSION_MAJOR > 1
12187 yes 12256 yes
12188 #endif 12257 #endif
12197 echo "$ac_t""1" 1>&6; dbfunc=dbopen 12266 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12198 fi 12267 fi
12199 rm -f conftest* 12268 rm -f conftest*
12200 12269
12201 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 12270 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12202 echo "configure:12203: checking for $dbfunc" >&5 12271 echo "configure:12272: checking for $dbfunc" >&5
12203 12272
12204 cat > conftest.$ac_ext <<EOF 12273 cat > conftest.$ac_ext <<EOF
12205 #line 12206 "configure" 12274 #line 12275 "configure"
12206 #include "confdefs.h" 12275 #include "confdefs.h"
12207 /* System header to define __stub macros and hopefully few prototypes, 12276 /* System header to define __stub macros and hopefully few prototypes,
12208 which can conflict with char $dbfunc(); below. */ 12277 which can conflict with char $dbfunc(); below. */
12209 #include <assert.h> 12278 #include <assert.h>
12210 /* Override any gcc2 internal prototype to avoid an error. */ 12279 /* Override any gcc2 internal prototype to avoid an error. */
12223 $dbfunc(); 12292 $dbfunc();
12224 #endif 12293 #endif
12225 12294
12226 ; return 0; } 12295 ; return 0; }
12227 EOF 12296 EOF
12228 if { (eval echo configure:12229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12297 if { (eval echo configure:12298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12229 rm -rf conftest* 12298 rm -rf conftest*
12230 eval "ac_cv_func_$dbfunc=yes" 12299 eval "ac_cv_func_$dbfunc=yes"
12231 else 12300 else
12232 echo "configure: failed program was:" >&5 12301 echo "configure: failed program was:" >&5
12233 cat conftest.$ac_ext >&5 12302 cat conftest.$ac_ext >&5
12242 else 12311 else
12243 echo "$ac_t""no" 1>&6 12312 echo "$ac_t""no" 1>&6
12244 12313
12245 12314
12246 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 12315 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12247 echo "configure:12248: checking for $dbfunc in -ldb" >&5 12316 echo "configure:12317: checking for $dbfunc in -ldb" >&5
12248 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 12317 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12249 12318
12250 xe_check_libs=" -ldb " 12319 xe_check_libs=" -ldb "
12251 cat > conftest.$ac_ext <<EOF 12320 cat > conftest.$ac_ext <<EOF
12252 #line 12253 "configure" 12321 #line 12322 "configure"
12253 #include "confdefs.h" 12322 #include "confdefs.h"
12254 /* Override any gcc2 internal prototype to avoid an error. */ 12323 /* Override any gcc2 internal prototype to avoid an error. */
12255 /* We use char because int might match the return type of a gcc2 12324 /* We use char because int might match the return type of a gcc2
12256 builtin and then its argument prototype would still apply. */ 12325 builtin and then its argument prototype would still apply. */
12257 char $dbfunc(); 12326 char $dbfunc();
12258 12327
12259 int main() { 12328 int main() {
12260 $dbfunc() 12329 $dbfunc()
12261 ; return 0; } 12330 ; return 0; }
12262 EOF 12331 EOF
12263 if { (eval echo configure:12264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12332 if { (eval echo configure:12333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12264 rm -rf conftest* 12333 rm -rf conftest*
12265 eval "ac_cv_lib_$ac_lib_var=yes" 12334 eval "ac_cv_lib_$ac_lib_var=yes"
12266 else 12335 else
12267 echo "configure: failed program was:" >&5 12336 echo "configure: failed program was:" >&5
12268 cat conftest.$ac_ext >&5 12337 cat conftest.$ac_ext >&5
12322 fi 12391 fi
12323 12392
12324 if test "$with_socks" = "yes"; then 12393 if test "$with_socks" = "yes"; then
12325 12394
12326 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 12395 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12327 echo "configure:12328: checking for SOCKSinit in -lsocks" >&5 12396 echo "configure:12397: checking for SOCKSinit in -lsocks" >&5
12328 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 12397 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12329 12398
12330 xe_check_libs=" -lsocks " 12399 xe_check_libs=" -lsocks "
12331 cat > conftest.$ac_ext <<EOF 12400 cat > conftest.$ac_ext <<EOF
12332 #line 12333 "configure" 12401 #line 12402 "configure"
12333 #include "confdefs.h" 12402 #include "confdefs.h"
12334 /* Override any gcc2 internal prototype to avoid an error. */ 12403 /* Override any gcc2 internal prototype to avoid an error. */
12335 /* We use char because int might match the return type of a gcc2 12404 /* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */ 12405 builtin and then its argument prototype would still apply. */
12337 char SOCKSinit(); 12406 char SOCKSinit();
12338 12407
12339 int main() { 12408 int main() {
12340 SOCKSinit() 12409 SOCKSinit()
12341 ; return 0; } 12410 ; return 0; }
12342 EOF 12411 EOF
12343 if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12412 if { (eval echo configure:12413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12344 rm -rf conftest* 12413 rm -rf conftest*
12345 eval "ac_cv_lib_$ac_lib_var=yes" 12414 eval "ac_cv_lib_$ac_lib_var=yes"
12346 else 12415 else
12347 echo "configure: failed program was:" >&5 12416 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5 12417 cat conftest.$ac_ext >&5
12393 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 12462 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12394 fi 12463 fi
12395 12464
12396 if test "$with_modules" != "no"; then 12465 if test "$with_modules" != "no"; then
12397 echo "checking for module support" 1>&6 12466 echo "checking for module support" 1>&6
12398 echo "configure:12399: checking for module support" >&5 12467 echo "configure:12468: checking for module support" >&5
12399 12468
12400 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 12469 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12401 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 12470 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12402 echo "configure:12403: checking for dlfcn.h" >&5 12471 echo "configure:12472: checking for dlfcn.h" >&5
12403 12472
12404 cat > conftest.$ac_ext <<EOF 12473 cat > conftest.$ac_ext <<EOF
12405 #line 12406 "configure" 12474 #line 12475 "configure"
12406 #include "confdefs.h" 12475 #include "confdefs.h"
12407 #include <dlfcn.h> 12476 #include <dlfcn.h>
12408 EOF 12477 EOF
12409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12410 { (eval echo configure:12411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12479 { (eval echo configure:12480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12412 if test -z "$ac_err"; then 12481 if test -z "$ac_err"; then
12413 rm -rf conftest* 12482 rm -rf conftest*
12414 eval "ac_cv_header_$ac_safe=yes" 12483 eval "ac_cv_header_$ac_safe=yes"
12415 else 12484 else
12423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12424 echo "$ac_t""yes" 1>&6 12493 echo "$ac_t""yes" 1>&6
12425 12494
12426 12495
12427 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 12496 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12428 echo "configure:12429: checking for dlopen in -ldl" >&5 12497 echo "configure:12498: checking for dlopen in -ldl" >&5
12429 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 12498 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12430 12499
12431 xe_check_libs=" -ldl " 12500 xe_check_libs=" -ldl "
12432 cat > conftest.$ac_ext <<EOF 12501 cat > conftest.$ac_ext <<EOF
12433 #line 12434 "configure" 12502 #line 12503 "configure"
12434 #include "confdefs.h" 12503 #include "confdefs.h"
12435 /* Override any gcc2 internal prototype to avoid an error. */ 12504 /* Override any gcc2 internal prototype to avoid an error. */
12436 /* We use char because int might match the return type of a gcc2 12505 /* We use char because int might match the return type of a gcc2
12437 builtin and then its argument prototype would still apply. */ 12506 builtin and then its argument prototype would still apply. */
12438 char dlopen(); 12507 char dlopen();
12439 12508
12440 int main() { 12509 int main() {
12441 dlopen() 12510 dlopen()
12442 ; return 0; } 12511 ; return 0; }
12443 EOF 12512 EOF
12444 if { (eval echo configure:12445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12445 rm -rf conftest* 12514 rm -rf conftest*
12446 eval "ac_cv_lib_$ac_lib_var=yes" 12515 eval "ac_cv_lib_$ac_lib_var=yes"
12447 else 12516 else
12448 echo "configure: failed program was:" >&5 12517 echo "configure: failed program was:" >&5
12449 cat conftest.$ac_ext >&5 12518 cat conftest.$ac_ext >&5
12458 have_dl=yes libdl=dl 12527 have_dl=yes libdl=dl
12459 else 12528 else
12460 echo "$ac_t""no" 1>&6 12529 echo "$ac_t""no" 1>&6
12461 12530
12462 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 12531 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12463 echo "configure:12464: checking for dlopen in -lc" >&5 12532 echo "configure:12533: checking for dlopen in -lc" >&5
12464 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 12533 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12465 12534
12466 xe_check_libs=" -lc " 12535 xe_check_libs=" -lc "
12467 cat > conftest.$ac_ext <<EOF 12536 cat > conftest.$ac_ext <<EOF
12468 #line 12469 "configure" 12537 #line 12538 "configure"
12469 #include "confdefs.h" 12538 #include "confdefs.h"
12470 /* Override any gcc2 internal prototype to avoid an error. */ 12539 /* Override any gcc2 internal prototype to avoid an error. */
12471 /* We use char because int might match the return type of a gcc2 12540 /* We use char because int might match the return type of a gcc2
12472 builtin and then its argument prototype would still apply. */ 12541 builtin and then its argument prototype would still apply. */
12473 char dlopen(); 12542 char dlopen();
12474 12543
12475 int main() { 12544 int main() {
12476 dlopen() 12545 dlopen()
12477 ; return 0; } 12546 ; return 0; }
12478 EOF 12547 EOF
12479 if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12548 if { (eval echo configure:12549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12480 rm -rf conftest* 12549 rm -rf conftest*
12481 eval "ac_cv_lib_$ac_lib_var=yes" 12550 eval "ac_cv_lib_$ac_lib_var=yes"
12482 else 12551 else
12483 echo "configure: failed program was:" >&5 12552 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5 12553 cat conftest.$ac_ext >&5
12513 } 12582 }
12514 12583
12515 else 12584 else
12516 12585
12517 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 12586 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12518 echo "configure:12519: checking for shl_load in -ldld" >&5 12587 echo "configure:12588: checking for shl_load in -ldld" >&5
12519 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 12588 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12520 12589
12521 xe_check_libs=" -ldld " 12590 xe_check_libs=" -ldld "
12522 cat > conftest.$ac_ext <<EOF 12591 cat > conftest.$ac_ext <<EOF
12523 #line 12524 "configure" 12592 #line 12593 "configure"
12524 #include "confdefs.h" 12593 #include "confdefs.h"
12525 /* Override any gcc2 internal prototype to avoid an error. */ 12594 /* Override any gcc2 internal prototype to avoid an error. */
12526 /* We use char because int might match the return type of a gcc2 12595 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */ 12596 builtin and then its argument prototype would still apply. */
12528 char shl_load(); 12597 char shl_load();
12529 12598
12530 int main() { 12599 int main() {
12531 shl_load() 12600 shl_load()
12532 ; return 0; } 12601 ; return 0; }
12533 EOF 12602 EOF
12534 if { (eval echo configure:12535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12535 rm -rf conftest* 12604 rm -rf conftest*
12536 eval "ac_cv_lib_$ac_lib_var=yes" 12605 eval "ac_cv_lib_$ac_lib_var=yes"
12537 else 12606 else
12538 echo "configure: failed program was:" >&5 12607 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5 12608 cat conftest.$ac_ext >&5
12556 12625
12557 else 12626 else
12558 echo "$ac_t""no" 1>&6 12627 echo "$ac_t""no" 1>&6
12559 12628
12560 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 12629 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12561 echo "configure:12562: checking for dld_init in -ldld" >&5 12630 echo "configure:12631: checking for dld_init in -ldld" >&5
12562 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 12631 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12563 12632
12564 xe_check_libs=" -ldld " 12633 xe_check_libs=" -ldld "
12565 cat > conftest.$ac_ext <<EOF 12634 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure" 12635 #line 12636 "configure"
12567 #include "confdefs.h" 12636 #include "confdefs.h"
12568 /* Override any gcc2 internal prototype to avoid an error. */ 12637 /* Override any gcc2 internal prototype to avoid an error. */
12569 /* We use char because int might match the return type of a gcc2 12638 /* We use char because int might match the return type of a gcc2
12570 builtin and then its argument prototype would still apply. */ 12639 builtin and then its argument prototype would still apply. */
12571 char dld_init(); 12640 char dld_init();
12572 12641
12573 int main() { 12642 int main() {
12574 dld_init() 12643 dld_init()
12575 ; return 0; } 12644 ; return 0; }
12576 EOF 12645 EOF
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12646 if { (eval echo configure:12647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12578 rm -rf conftest* 12647 rm -rf conftest*
12579 eval "ac_cv_lib_$ac_lib_var=yes" 12648 eval "ac_cv_lib_$ac_lib_var=yes"
12580 else 12649 else
12581 echo "configure: failed program was:" >&5 12650 echo "configure: failed program was:" >&5
12582 cat conftest.$ac_ext >&5 12651 cat conftest.$ac_ext >&5
12617 ld_dynamic_link_flags= 12686 ld_dynamic_link_flags=
12618 xehost=$canonical 12687 xehost=$canonical
12619 xealias=$internal_configuration 12688 xealias=$internal_configuration
12620 12689
12621 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 12690 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12622 echo "configure:12623: checking how to build dynamic libraries for ${xehost}" >&5 12691 echo "configure:12692: checking how to build dynamic libraries for ${xehost}" >&5
12623 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 12692 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12624 case "$xehost" in 12693 case "$xehost" in
12625 *-*-linux-gnu*) ;; 12694 *-*-linux-gnu*) ;;
12626 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 12695 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12627 esac 12696 esac
12645 # Now see if the compiler is really GCC. 12714 # Now see if the compiler is really GCC.
12646 if test "$GCC" = "yes"; then 12715 if test "$GCC" = "yes"; then
12647 XEGCC=yes 12716 XEGCC=yes
12648 else 12717 else
12649 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 12718 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12650 echo "configure:12651: checking checking whether we are using GNU C" >&5 12719 echo "configure:12720: checking checking whether we are using GNU C" >&5
12651 cat > conftest.$ac_ext <<EOF 12720 cat > conftest.$ac_ext <<EOF
12652 #line 12653 "configure" 12721 #line 12722 "configure"
12653 #include "confdefs.h" 12722 #include "confdefs.h"
12654 12723
12655 #ifdef __GNUC__ 12724 #ifdef __GNUC__
12656 yes; 12725 yes;
12657 #endif 12726 #endif
12669 12738
12670 echo "$ac_t""${XEGCC}" 1>&6 12739 echo "$ac_t""${XEGCC}" 1>&6
12671 fi 12740 fi
12672 12741
12673 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 12742 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12674 echo "configure:12675: checking how to produce PIC code" >&5 12743 echo "configure:12744: checking how to produce PIC code" >&5
12675 wl= 12744 wl=
12676 12745
12677 can_build_shared=yes 12746 can_build_shared=yes
12678 if test "$XEGCC" = yes; then 12747 if test "$XEGCC" = yes; then
12679 wl='-Wl,' 12748 wl='-Wl,'
12762 if test -n "$dll_cflags"; then 12831 if test -n "$dll_cflags"; then
12763 echo "$ac_t""${dll_cflags}" 1>&6 12832 echo "$ac_t""${dll_cflags}" 1>&6
12764 12833
12765 # Check to make sure the dll_cflags actually works. 12834 # Check to make sure the dll_cflags actually works.
12766 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 12835 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12767 echo "configure:12768: checking if PIC flag ${dll_cflags} really works" >&5 12836 echo "configure:12837: checking if PIC flag ${dll_cflags} really works" >&5
12768 save_CFLAGS="$CFLAGS" 12837 save_CFLAGS="$CFLAGS"
12769 CFLAGS="$CFLAGS $dll_cflags -DPIC" 12838 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12770 cat > conftest.$ac_ext <<EOF 12839 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure" 12840 #line 12841 "configure"
12772 #include "confdefs.h" 12841 #include "confdefs.h"
12773 12842
12774 int main() { 12843 int main() {
12775 int x=0; 12844 int x=0;
12776 ; return 0; } 12845 ; return 0; }
12777 EOF 12846 EOF
12778 if { (eval echo configure:12779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12847 if { (eval echo configure:12848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12779 rm -rf conftest* 12848 rm -rf conftest*
12780 12849
12781 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 12850 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12782 # reports no error. So, we need to grep stderr for (Bundled). 12851 # reports no error. So, we need to grep stderr for (Bundled).
12783 if grep '(Bundled)' config.log >/dev/null; then 12852 if grep '(Bundled)' config.log >/dev/null; then
12804 if test "$can_build_shared" = "yes"; then 12873 if test "$can_build_shared" = "yes"; then
12805 cc_produces_so=no 12874 cc_produces_so=no
12806 xldf= 12875 xldf=
12807 xcldf= 12876 xcldf=
12808 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 12877 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12809 echo "configure:12810: checking if C compiler can produce shared libraries" >&5 12878 echo "configure:12879: checking if C compiler can produce shared libraries" >&5
12810 if test "$XEGCC" = yes; then 12879 if test "$XEGCC" = yes; then
12811 xcldf="-shared" 12880 xcldf="-shared"
12812 xldf="-shared" 12881 xldf="-shared"
12813 else # Not using GCC 12882 else # Not using GCC
12814 case "$xehost_os" in 12883 case "$xehost_os" in
12855 LDFLAGS="$xcldf $LDFLAGS" 12924 LDFLAGS="$xcldf $LDFLAGS"
12856 LIBS= 12925 LIBS=
12857 xe_libs= 12926 xe_libs=
12858 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 12927 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12859 cat > conftest.$ac_ext <<EOF 12928 cat > conftest.$ac_ext <<EOF
12860 #line 12861 "configure" 12929 #line 12930 "configure"
12861 #include "confdefs.h" 12930 #include "confdefs.h"
12862 12931
12863 int main() { 12932 int main() {
12864 int x=0; 12933 int x=0;
12865 ; return 0; } 12934 ; return 0; }
12866 EOF 12935 EOF
12867 if { (eval echo configure:12868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12868 rm -rf conftest* 12937 rm -rf conftest*
12869 cc_produces_so=yes 12938 cc_produces_so=yes
12870 else 12939 else
12871 echo "configure: failed program was:" >&5 12940 echo "configure: failed program was:" >&5
12872 cat conftest.$ac_ext >&5 12941 cat conftest.$ac_ext >&5
12887 if test -z "$LTLD"; then 12956 if test -z "$LTLD"; then
12888 ac_prog=ld 12957 ac_prog=ld
12889 if test "$XEGCC" = yes; then 12958 if test "$XEGCC" = yes; then
12890 # Check if gcc -print-prog-name=ld gives a path. 12959 # Check if gcc -print-prog-name=ld gives a path.
12891 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 12960 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12892 echo "configure:12893: checking for ld used by GCC" >&5 12961 echo "configure:12962: checking for ld used by GCC" >&5
12893 ac_prog=`($CC -print-prog-name=ld) 2>&5` 12962 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12894 case "$ac_prog" in 12963 case "$ac_prog" in
12895 # Accept absolute paths. 12964 # Accept absolute paths.
12896 /*) 12965 /*)
12897 if test -z "$LTLD"; then 12966 if test -z "$LTLD"; then
12912 with_gnu_ld=unknown 12981 with_gnu_ld=unknown
12913 ;; 12982 ;;
12914 esac 12983 esac
12915 else 12984 else
12916 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 12985 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12917 echo "configure:12918: checking for GNU ld" >&5 12986 echo "configure:12987: checking for GNU ld" >&5
12918 fi 12987 fi
12919 12988
12920 if test -z "$LTLD"; then 12989 if test -z "$LTLD"; then
12921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12922 for ac_dir in $PATH; do 12991 for ac_dir in $PATH; do
12950 13019
12951 ld_dynamic_link_flags= 13020 ld_dynamic_link_flags=
12952 13021
12953 # Check to see if it really is or isn't GNU ld. 13022 # Check to see if it really is or isn't GNU ld.
12954 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 13023 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12955 echo "configure:12956: checking if the linker is GNU ld" >&5 13024 echo "configure:13025: checking if the linker is GNU ld" >&5
12956 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 13025 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12957 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 13026 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12958 xe_gnu_ld=yes 13027 xe_gnu_ld=yes
12959 else 13028 else
12960 xe_gnu_ld=no 13029 xe_gnu_ld=no
12977 can_build_shared=yes 13046 can_build_shared=yes
12978 else 13047 else
12979 # OK - only NOW do we futz about with ld. 13048 # OK - only NOW do we futz about with ld.
12980 # See if the linker supports building shared libraries. 13049 # See if the linker supports building shared libraries.
12981 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 13050 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12982 echo "configure:12983: checking whether the linker supports shared libraries" >&5 13051 echo "configure:13052: checking whether the linker supports shared libraries" >&5
12983 dll_ld=$CC 13052 dll_ld=$CC
12984 dll_ldflags=$LDFLAGS 13053 dll_ldflags=$LDFLAGS
12985 ld_shlibs=yes 13054 ld_shlibs=yes
12986 can_build_shared=yes 13055 can_build_shared=yes
12987 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 13056 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13192 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 13261 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13193 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 13262 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13194 for ac_func in dlerror _dlerror 13263 for ac_func in dlerror _dlerror
13195 do 13264 do
13196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13197 echo "configure:13198: checking for $ac_func" >&5 13266 echo "configure:13267: checking for $ac_func" >&5
13198 13267
13199 cat > conftest.$ac_ext <<EOF 13268 cat > conftest.$ac_ext <<EOF
13200 #line 13201 "configure" 13269 #line 13270 "configure"
13201 #include "confdefs.h" 13270 #include "confdefs.h"
13202 /* System header to define __stub macros and hopefully few prototypes, 13271 /* System header to define __stub macros and hopefully few prototypes,
13203 which can conflict with char $ac_func(); below. */ 13272 which can conflict with char $ac_func(); below. */
13204 #include <assert.h> 13273 #include <assert.h>
13205 /* Override any gcc2 internal prototype to avoid an error. */ 13274 /* Override any gcc2 internal prototype to avoid an error. */
13218 $ac_func(); 13287 $ac_func();
13219 #endif 13288 #endif
13220 13289
13221 ; return 0; } 13290 ; return 0; }
13222 EOF 13291 EOF
13223 if { (eval echo configure:13224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13292 if { (eval echo configure:13293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13224 rm -rf conftest* 13293 rm -rf conftest*
13225 eval "ac_cv_func_$ac_func=yes" 13294 eval "ac_cv_func_$ac_func=yes"
13226 else 13295 else
13227 echo "configure: failed program was:" >&5 13296 echo "configure: failed program was:" >&5
13228 cat conftest.$ac_ext >&5 13297 cat conftest.$ac_ext >&5
13257 with_modules=no 13326 with_modules=no
13258 fi 13327 fi
13259 fi 13328 fi
13260 13329
13261 cat > conftest.$ac_ext <<EOF 13330 cat > conftest.$ac_ext <<EOF
13262 #line 13263 "configure" 13331 #line 13332 "configure"
13263 #include "confdefs.h" 13332 #include "confdefs.h"
13264 int main(int c,char *v[]){return 0;} 13333 int main(int c,char *v[]){return 0;}
13265 EOF 13334 EOF
13266 if { (eval echo configure:13267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13335 if { (eval echo configure:13336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13267 then 13336 then
13268 : 13337 :
13269 else 13338 else
13270 conftest_rc="$?" 13339 conftest_rc="$?"
13271 echo "configure: failed program was:" >&5 13340 echo "configure: failed program was:" >&5