comparison configure @ 400:a86b2b5e0111 r21-2-30

Import from CVS: tag r21-2-30
author cvs
date Mon, 13 Aug 2007 11:14:34 +0200
parents 74fd4e045ea6
children 2f8bb876ab1d
comparison
equal deleted inserted replaced
399:376370fb5946 400:a86b2b5e0111
12 ### Don't edit this script! 12 ### Don't edit this script!
13 ### This script was automatically generated by the `autoconf' program 13 ### This script was automatically generated by the `autoconf' program
14 ### from the file `./configure.in'. 14 ### from the file `./configure.in'.
15 ### To rebuild it, execute the command 15 ### To rebuild it, execute the command
16 ### autoconf 16 ### autoconf
17 ### in the this directory. You must have autoconf version 2.12 or later. 17 ### in the this directory. You must have autoconf version 2.13 or later.
18 18
19 ### This file is part of XEmacs. 19 ### This file is part of XEmacs.
20 20
21 ### XEmacs is free software; you can redistribute it and/or modify it 21 ### XEmacs is free software; you can redistribute it and/or modify it
22 ### under the terms of the GNU General Public License as published by 22 ### under the terms of the GNU General Public License as published by
1108 hppa-*-* ) machine=hp800 ;; 1108 hppa-*-* ) machine=hp800 ;;
1109 m88k-dg-* ) machine=aviion ;; 1109 m88k-dg-* ) machine=aviion ;;
1110 m68*-sony-* ) machine=news ;; 1110 m68*-sony-* ) machine=news ;;
1111 mips-sony-* ) machine=news-risc ;; 1111 mips-sony-* ) machine=news-risc ;;
1112 clipper-* ) machine=clipper ;; 1112 clipper-* ) machine=clipper ;;
1113 arm-* ) machine=arm ;; 1113 arm* ) machine=arm ;;
1114 armv34lb-* ) machine=arm ;;
1115 ns32k-* ) machine=ns32000 ;; 1114 ns32k-* ) machine=ns32000 ;;
1116 esac 1115 esac
1117 1116
1118 case "$canonical" in 1117 case "$canonical" in
1119 *-*-linux* ) opsys=linux ;; 1118 *-*-linux* ) opsys=linux ;;
1574 xe_save_CFLAGS="$CFLAGS" 1573 xe_save_CFLAGS="$CFLAGS"
1575 1574
1576 # Extract the first word of "gcc", so it can be a program name with args. 1575 # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2 1576 set dummy gcc; ac_word=$2
1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_word" >&5 1578 echo "configure:1579: checking for $ac_word" >&5
1580 1579
1581 if test -n "$CC"; then 1580 if test -n "$CC"; then
1582 ac_cv_prog_CC="$CC" # Let the user override the test. 1581 ac_cv_prog_CC="$CC" # Let the user override the test.
1583 else 1582 else
1584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 1600
1602 if test -z "$CC"; then 1601 if test -z "$CC"; then
1603 # Extract the first word of "cc", so it can be a program name with args. 1602 # Extract the first word of "cc", so it can be a program name with args.
1604 set dummy cc; ac_word=$2 1603 set dummy cc; ac_word=$2
1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_word" >&5 1605 echo "configure:1606: checking for $ac_word" >&5
1607 1606
1608 if test -n "$CC"; then 1607 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test. 1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else 1609 else
1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1649 case "`uname -s`" in 1648 case "`uname -s`" in
1650 *win32* | *WIN32*) 1649 *win32* | *WIN32*)
1651 # Extract the first word of "cl", so it can be a program name with args. 1650 # Extract the first word of "cl", so it can be a program name with args.
1652 set dummy cl; ac_word=$2 1651 set dummy cl; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5 1653 echo "configure:1654: checking for $ac_word" >&5
1655 1654
1656 if test -n "$CC"; then 1655 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test. 1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1658 else 1657 else
1659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1678 fi 1677 fi
1679 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1678 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1680 fi 1679 fi
1681 1680
1682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1681 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1683 echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1682 echo "configure:1683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1684 1683
1685 ac_ext=c 1684 ac_ext=c
1686 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1685 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1687 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1686 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1688 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1687 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1691 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1690 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1692 cross_compiling=no 1691 cross_compiling=no
1693 1692
1694 cat > conftest.$ac_ext << EOF 1693 cat > conftest.$ac_ext << EOF
1695 1694
1696 #line 1697 "configure" 1695 #line 1696 "configure"
1697 #include "confdefs.h" 1696 #include "confdefs.h"
1698 1697
1699 main(){return(0);} 1698 main(){return(0);}
1700 EOF 1699 EOF
1701 if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702 ac_cv_prog_cc_works=yes 1701 ac_cv_prog_cc_works=yes
1703 # If we can't run a trivial program, we are probably using a cross compiler. 1702 # If we can't run a trivial program, we are probably using a cross compiler.
1704 if (./conftest; exit) 2>/dev/null; then 1703 if (./conftest; exit) 2>/dev/null; then
1705 ac_cv_prog_cc_cross=no 1704 ac_cv_prog_cc_cross=no
1706 else 1705 else
1724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1723 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1725 if test $ac_cv_prog_cc_works = no; then 1724 if test $ac_cv_prog_cc_works = no; then
1726 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1725 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1727 fi 1726 fi
1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1727 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1728 echo "configure:1729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1729 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1731 cross_compiling=$ac_cv_prog_cc_cross 1730 cross_compiling=$ac_cv_prog_cc_cross
1732 1731
1733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1732 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1734 echo "configure:1735: checking whether we are using GNU C" >&5 1733 echo "configure:1734: checking whether we are using GNU C" >&5
1735 1734
1736 cat > conftest.c <<EOF 1735 cat > conftest.c <<EOF
1737 #ifdef __GNUC__ 1736 #ifdef __GNUC__
1738 yes; 1737 yes;
1739 #endif 1738 #endif
1740 EOF 1739 EOF
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 1740 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1742 ac_cv_prog_gcc=yes 1741 ac_cv_prog_gcc=yes
1743 else 1742 else
1744 ac_cv_prog_gcc=no 1743 ac_cv_prog_gcc=no
1745 fi 1744 fi
1746 1745
1754 1753
1755 ac_test_CFLAGS="${CFLAGS+set}" 1754 ac_test_CFLAGS="${CFLAGS+set}"
1756 ac_save_CFLAGS="$CFLAGS" 1755 ac_save_CFLAGS="$CFLAGS"
1757 CFLAGS= 1756 CFLAGS=
1758 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1757 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1759 echo "configure:1760: checking whether ${CC-cc} accepts -g" >&5 1758 echo "configure:1759: checking whether ${CC-cc} accepts -g" >&5
1760 1759
1761 echo 'void f(){}' > conftest.c 1760 echo 'void f(){}' > conftest.c
1762 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1761 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1763 ac_cv_prog_cc_g=yes 1762 ac_cv_prog_cc_g=yes
1764 else 1763 else
1787 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1786 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1788 CC=${NON_GNU_CC-cc} 1787 CC=${NON_GNU_CC-cc}
1789 # Extract the first word of "gcc", so it can be a program name with args. 1788 # Extract the first word of "gcc", so it can be a program name with args.
1790 set dummy gcc; ac_word=$2 1789 set dummy gcc; ac_word=$2
1791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1792 echo "configure:1793: checking for $ac_word" >&5 1791 echo "configure:1792: checking for $ac_word" >&5
1793 1792
1794 if test -n "$CC"; then 1793 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test. 1794 ac_cv_prog_CC="$CC" # Let the user override the test.
1796 else 1795 else
1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1814 1813
1815 if test -z "$CC"; then 1814 if test -z "$CC"; then
1816 # Extract the first word of "cc", so it can be a program name with args. 1815 # Extract the first word of "cc", so it can be a program name with args.
1817 set dummy cc; ac_word=$2 1816 set dummy cc; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5 1818 echo "configure:1819: checking for $ac_word" >&5
1820 1819
1821 if test -n "$CC"; then 1820 if test -n "$CC"; then
1822 ac_cv_prog_CC="$CC" # Let the user override the test. 1821 ac_cv_prog_CC="$CC" # Let the user override the test.
1823 else 1822 else
1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1862 case "`uname -s`" in 1861 case "`uname -s`" in
1863 *win32* | *WIN32*) 1862 *win32* | *WIN32*)
1864 # Extract the first word of "cl", so it can be a program name with args. 1863 # Extract the first word of "cl", so it can be a program name with args.
1865 set dummy cl; ac_word=$2 1864 set dummy cl; ac_word=$2
1866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $ac_word" >&5 1866 echo "configure:1867: checking for $ac_word" >&5
1868 1867
1869 if test -n "$CC"; then 1868 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test. 1869 ac_cv_prog_CC="$CC" # Let the user override the test.
1871 else 1870 else
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1891 fi 1890 fi
1892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1891 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1893 fi 1892 fi
1894 1893
1895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1894 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1896 echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1895 echo "configure:1896: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1897 1896
1898 ac_ext=c 1897 ac_ext=c
1899 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1898 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1900 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1899 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1901 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1900 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1904 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1903 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1905 cross_compiling=no 1904 cross_compiling=no
1906 1905
1907 cat > conftest.$ac_ext << EOF 1906 cat > conftest.$ac_ext << EOF
1908 1907
1909 #line 1910 "configure" 1908 #line 1909 "configure"
1910 #include "confdefs.h" 1909 #include "confdefs.h"
1911 1910
1912 main(){return(0);} 1911 main(){return(0);}
1913 EOF 1912 EOF
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1913 if { (eval echo configure:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1915 ac_cv_prog_cc_works=yes 1914 ac_cv_prog_cc_works=yes
1916 # If we can't run a trivial program, we are probably using a cross compiler. 1915 # If we can't run a trivial program, we are probably using a cross compiler.
1917 if (./conftest; exit) 2>/dev/null; then 1916 if (./conftest; exit) 2>/dev/null; then
1918 ac_cv_prog_cc_cross=no 1917 ac_cv_prog_cc_cross=no
1919 else 1918 else
1937 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1938 if test $ac_cv_prog_cc_works = no; then 1937 if test $ac_cv_prog_cc_works = no; then
1939 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1938 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1940 fi 1939 fi
1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1941 echo "configure:1942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1943 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1944 cross_compiling=$ac_cv_prog_cc_cross 1943 cross_compiling=$ac_cv_prog_cc_cross
1945 1944
1946 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether we are using GNU C" >&5 1946 echo "configure:1947: checking whether we are using GNU C" >&5
1948 1947
1949 cat > conftest.c <<EOF 1948 cat > conftest.c <<EOF
1950 #ifdef __GNUC__ 1949 #ifdef __GNUC__
1951 yes; 1950 yes;
1952 #endif 1951 #endif
1953 EOF 1952 EOF
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 1953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1955 ac_cv_prog_gcc=yes 1954 ac_cv_prog_gcc=yes
1956 else 1955 else
1957 ac_cv_prog_gcc=no 1956 ac_cv_prog_gcc=no
1958 fi 1957 fi
1959 1958
1967 1966
1968 ac_test_CFLAGS="${CFLAGS+set}" 1967 ac_test_CFLAGS="${CFLAGS+set}"
1969 ac_save_CFLAGS="$CFLAGS" 1968 ac_save_CFLAGS="$CFLAGS"
1970 CFLAGS= 1969 CFLAGS=
1971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether ${CC-cc} accepts -g" >&5 1971 echo "configure:1972: checking whether ${CC-cc} accepts -g" >&5
1973 1972
1974 echo 'void f(){}' > conftest.c 1973 echo 'void f(){}' > conftest.c
1975 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1974 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1976 ac_cv_prog_cc_g=yes 1975 ac_cv_prog_cc_g=yes
1977 else 1976 else
2000 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1999 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2001 CC=gcc 2000 CC=gcc
2002 # Extract the first word of "gcc", so it can be a program name with args. 2001 # Extract the first word of "gcc", so it can be a program name with args.
2003 set dummy gcc; ac_word=$2 2002 set dummy gcc; ac_word=$2
2004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2005 echo "configure:2006: checking for $ac_word" >&5 2004 echo "configure:2005: checking for $ac_word" >&5
2006 2005
2007 if test -n "$CC"; then 2006 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test. 2007 ac_cv_prog_CC="$CC" # Let the user override the test.
2009 else 2008 else
2010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2027 2026
2028 if test -z "$CC"; then 2027 if test -z "$CC"; then
2029 # Extract the first word of "cc", so it can be a program name with args. 2028 # Extract the first word of "cc", so it can be a program name with args.
2030 set dummy cc; ac_word=$2 2029 set dummy cc; ac_word=$2
2031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2032 echo "configure:2033: checking for $ac_word" >&5 2031 echo "configure:2032: checking for $ac_word" >&5
2033 2032
2034 if test -n "$CC"; then 2033 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test. 2034 ac_cv_prog_CC="$CC" # Let the user override the test.
2036 else 2035 else
2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2075 case "`uname -s`" in 2074 case "`uname -s`" in
2076 *win32* | *WIN32*) 2075 *win32* | *WIN32*)
2077 # Extract the first word of "cl", so it can be a program name with args. 2076 # Extract the first word of "cl", so it can be a program name with args.
2078 set dummy cl; ac_word=$2 2077 set dummy cl; ac_word=$2
2079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2080 echo "configure:2081: checking for $ac_word" >&5 2079 echo "configure:2080: checking for $ac_word" >&5
2081 2080
2082 if test -n "$CC"; then 2081 if test -n "$CC"; then
2083 ac_cv_prog_CC="$CC" # Let the user override the test. 2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 else 2083 else
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2104 fi 2103 fi
2105 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2104 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2106 fi 2105 fi
2107 2106
2108 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2107 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2109 echo "configure:2110: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2108 echo "configure:2109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2110 2109
2111 ac_ext=c 2110 ac_ext=c
2112 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2111 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2113 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2112 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2114 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2113 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2117 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2116 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2118 cross_compiling=no 2117 cross_compiling=no
2119 2118
2120 cat > conftest.$ac_ext << EOF 2119 cat > conftest.$ac_ext << EOF
2121 2120
2122 #line 2123 "configure" 2121 #line 2122 "configure"
2123 #include "confdefs.h" 2122 #include "confdefs.h"
2124 2123
2125 main(){return(0);} 2124 main(){return(0);}
2126 EOF 2125 EOF
2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2126 if { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2128 ac_cv_prog_cc_works=yes 2127 ac_cv_prog_cc_works=yes
2129 # If we can't run a trivial program, we are probably using a cross compiler. 2128 # If we can't run a trivial program, we are probably using a cross compiler.
2130 if (./conftest; exit) 2>/dev/null; then 2129 if (./conftest; exit) 2>/dev/null; then
2131 ac_cv_prog_cc_cross=no 2130 ac_cv_prog_cc_cross=no
2132 else 2131 else
2150 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2149 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2151 if test $ac_cv_prog_cc_works = no; then 2150 if test $ac_cv_prog_cc_works = no; then
2152 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2151 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2153 fi 2152 fi
2154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2154 echo "configure:2155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2156 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2155 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2157 cross_compiling=$ac_cv_prog_cc_cross 2156 cross_compiling=$ac_cv_prog_cc_cross
2158 2157
2159 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2158 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2160 echo "configure:2161: checking whether we are using GNU C" >&5 2159 echo "configure:2160: checking whether we are using GNU C" >&5
2161 2160
2162 cat > conftest.c <<EOF 2161 cat > conftest.c <<EOF
2163 #ifdef __GNUC__ 2162 #ifdef __GNUC__
2164 yes; 2163 yes;
2165 #endif 2164 #endif
2166 EOF 2165 EOF
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 2166 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2168 ac_cv_prog_gcc=yes 2167 ac_cv_prog_gcc=yes
2169 else 2168 else
2170 ac_cv_prog_gcc=no 2169 ac_cv_prog_gcc=no
2171 fi 2170 fi
2172 2171
2180 2179
2181 ac_test_CFLAGS="${CFLAGS+set}" 2180 ac_test_CFLAGS="${CFLAGS+set}"
2182 ac_save_CFLAGS="$CFLAGS" 2181 ac_save_CFLAGS="$CFLAGS"
2183 CFLAGS= 2182 CFLAGS=
2184 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2183 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2185 echo "configure:2186: checking whether ${CC-cc} accepts -g" >&5 2184 echo "configure:2185: checking whether ${CC-cc} accepts -g" >&5
2186 2185
2187 echo 'void f(){}' > conftest.c 2186 echo 'void f(){}' > conftest.c
2188 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2187 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2189 ac_cv_prog_cc_g=yes 2188 ac_cv_prog_cc_g=yes
2190 else 2189 else
2217 test -n "$CPP" -a -d "$CPP" && CPP= 2216 test -n "$CPP" -a -d "$CPP" && CPP=
2218 2217
2219 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2218 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2220 2219
2221 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2220 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2222 echo "configure:2223: checking how to run the C preprocessor" >&5 2221 echo "configure:2222: checking how to run the C preprocessor" >&5
2223 # On Suns, sometimes $CPP names a directory. 2222 # On Suns, sometimes $CPP names a directory.
2224 if test -n "$CPP" && test -d "$CPP"; then 2223 if test -n "$CPP" && test -d "$CPP"; then
2225 CPP= 2224 CPP=
2226 fi 2225 fi
2227 if test -z "$CPP"; then 2226 if test -z "$CPP"; then
2230 # substituted into the Makefile and "${CC-cc}" will confuse make. 2229 # substituted into the Makefile and "${CC-cc}" will confuse make.
2231 CPP="${CC-cc} -E" 2230 CPP="${CC-cc} -E"
2232 # On the NeXT, cc -E runs the code through the compiler's parser, 2231 # On the NeXT, cc -E runs the code through the compiler's parser,
2233 # not just through cpp. 2232 # not just through cpp.
2234 cat > conftest.$ac_ext <<EOF 2233 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure" 2234 #line 2235 "configure"
2236 #include "confdefs.h" 2235 #include "confdefs.h"
2237 #include <assert.h> 2236 #include <assert.h>
2238 Syntax Error 2237 Syntax Error
2239 EOF 2238 EOF
2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2240 { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2243 if test -z "$ac_err"; then 2242 if test -z "$ac_err"; then
2244 : 2243 :
2245 else 2244 else
2246 echo "$ac_err" >&5 2245 echo "$ac_err" >&5
2247 echo "configure: failed program was:" >&5 2246 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5 2247 cat conftest.$ac_ext >&5
2249 rm -rf conftest* 2248 rm -rf conftest*
2250 CPP="${CC-cc} -E -traditional-cpp" 2249 CPP="${CC-cc} -E -traditional-cpp"
2251 cat > conftest.$ac_ext <<EOF 2250 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure" 2251 #line 2252 "configure"
2253 #include "confdefs.h" 2252 #include "confdefs.h"
2254 #include <assert.h> 2253 #include <assert.h>
2255 Syntax Error 2254 Syntax Error
2256 EOF 2255 EOF
2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2257 { (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2260 if test -z "$ac_err"; then 2259 if test -z "$ac_err"; then
2261 : 2260 :
2262 else 2261 else
2263 echo "$ac_err" >&5 2262 echo "$ac_err" >&5
2264 echo "configure: failed program was:" >&5 2263 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5 2264 cat conftest.$ac_ext >&5
2266 rm -rf conftest* 2265 rm -rf conftest*
2267 CPP="${CC-cc} -nologo -E" 2266 CPP="${CC-cc} -nologo -E"
2268 cat > conftest.$ac_ext <<EOF 2267 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure" 2268 #line 2269 "configure"
2270 #include "confdefs.h" 2269 #include "confdefs.h"
2271 #include <assert.h> 2270 #include <assert.h>
2272 Syntax Error 2271 Syntax Error
2273 EOF 2272 EOF
2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2277 if test -z "$ac_err"; then 2276 if test -z "$ac_err"; then
2278 : 2277 :
2279 else 2278 else
2280 echo "$ac_err" >&5 2279 echo "$ac_err" >&5
2297 2296
2298 2297
2299 2298
2300 2299
2301 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2300 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2302 echo "configure:2303: checking for AIX" >&5 2301 echo "configure:2302: checking for AIX" >&5
2303 cat > conftest.$ac_ext <<EOF 2302 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure" 2303 #line 2304 "configure"
2305 #include "confdefs.h" 2304 #include "confdefs.h"
2306 #ifdef _AIX 2305 #ifdef _AIX
2307 yes 2306 yes
2308 #endif 2307 #endif
2309 2308
2325 fi 2324 fi
2326 rm -f conftest* 2325 rm -f conftest*
2327 2326
2328 2327
2329 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2328 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2330 echo "configure:2331: checking for GNU libc" >&5 2329 echo "configure:2330: checking for GNU libc" >&5
2331 cat > conftest.$ac_ext <<EOF 2330 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure" 2331 #line 2332 "configure"
2333 #include "confdefs.h" 2332 #include "confdefs.h"
2334 #include <features.h> 2333 #include <features.h>
2335 int main() { 2334 int main() {
2336 2335
2337 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2336 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2339 ******* ======= ******** &&&&&&&& 2338 ******* ======= ******** &&&&&&&&
2340 #endif 2339 #endif
2341 2340
2342 ; return 0; } 2341 ; return 0; }
2343 EOF 2342 EOF
2344 if { (eval echo configure:2345: \"$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
2345 rm -rf conftest* 2344 rm -rf conftest*
2346 have_glibc=yes 2345 have_glibc=yes
2347 else 2346 else
2348 echo "configure: failed program was:" >&5 2347 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5 2348 cat conftest.$ac_ext >&5
2416 2415
2417 ;; 2416 ;;
2418 esac 2417 esac
2419 2418
2420 cat > conftest.$ac_ext <<EOF 2419 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure" 2420 #line 2421 "configure"
2422 #include "confdefs.h" 2421 #include "confdefs.h"
2423 int main () { 2422 int main () {
2424 #if defined __SUNPRO_C 2423 #if defined __SUNPRO_C
2425 return 11; 2424 return 11;
2426 #elif defined __DECC 2425 #elif defined __DECC
2428 #else 2427 #else
2429 return 0; 2428 return 0;
2430 #endif 2429 #endif
2431 } 2430 }
2432 EOF 2431 EOF
2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2432 if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2434 then 2433 then
2435 : 2434 :
2436 else 2435 else
2437 conftest_rc="$?" 2436 conftest_rc="$?"
2438 echo "configure: failed program was:" >&5 2437 echo "configure: failed program was:" >&5
2650 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000" 2649 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000"
2651 else 2650 else
2652 CFLAGS="-O" ; fi 2651 CFLAGS="-O" ; fi
2653 fi 2652 fi
2654 2653
2654 if test "$GCC" = "yes"; then
2655 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2656 echo "configure:2657: checking for buggy gcc versions" >&5
2657 GCC_VERSION=`$CC --version`
2658 case `uname -s`:`uname -m`:$GCC_VERSION in
2659 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2660 case "$CFLAGS" in
2661 *-O2*|*-O3*)
2662 case "$CFLAGS" in
2663 *-fno-schedule-insns*) ;;
2664 *)
2665 echo "$ac_t""Yes" 1>&6
2666 echo "configure: warning: Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures" 1>&2
2667 echo "configure: warning: without also using -fno-schedule-insns." 1>&2
2668 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2669 ;;
2670 esac
2671 ;;
2672 esac
2673 ;;
2674 Linux:alpha:egcs-2.91.*)
2675 echo "$ac_t""Yes" 1>&6
2676 echo "configure: warning: There have been reports of egcs-1.1 not compiling XEmacs correctly on" 1>&2
2677 echo "configure: warning: Alpha Linux. There have also been reports that egcs-1.0.3a is O.K." 1>&2
2678 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2679 ;;
2680 *:i*86*:2.7.2*)
2681 case "$GCC_VERSION" in
2682 2.7.2)
2683 case "$CFLAGS" in
2684 *-O2*|*-O3*)
2685 case "$CFLAGS" in
2686 *-fno-strength-reduce*) ;;
2687 *)
2688 echo "$ac_t""Yes" 1>&6
2689 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2690 echo "configure: warning: -fno-strength-reduce." 1>&2
2691 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2692 ;;
2693 esac
2694 ;;
2695 esac
2696 ;;
2697 esac
2698 case "$CFLAGS" in
2699 *-fno-caller-saves*) ;;
2700 *)
2701 echo "$ac_t""Yes" 1>&6
2702 echo "configure: warning: Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using" 1>&2
2703 echo "configure: warning: -fno-caller-saves." 1>&2
2704 { echo "configure: error: Aborting due to known problem" 1>&2; exit 1; }
2705 ;;
2706 esac
2707 ;;
2708 esac
2709 fi
2710 echo "$ac_t""No" 1>&6
2711
2655 2712
2656 if test "$GCC" = "yes"; then 2713 if test "$GCC" = "yes"; then
2657 set x $ld_switch_system; shift; ld_switch_system="" 2714 set x $ld_switch_system; shift; ld_switch_system=""
2658 while test -n "$1"; do 2715 while test -n "$1"; do
2659 case $1 in 2716 case $1 in
2714 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2771 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2715 echo " xemacs will be linked with \"$unexec\"" 2772 echo " xemacs will be linked with \"$unexec\""
2716 fi 2773 fi
2717 2774
2718 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2775 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2719 echo "configure:2720: checking for dynodump" >&5 2776 echo "configure:2777: checking for dynodump" >&5
2720 if test "$unexec" != "unexsol2.o"; then 2777 if test "$unexec" != "unexsol2.o"; then
2721 echo "$ac_t""no" 1>&6 2778 echo "$ac_t""no" 1>&6
2722 else 2779 else
2723 echo "$ac_t""yes" 1>&6 2780 echo "$ac_t""yes" 1>&6
2724 { test "$extra_verbose" = "yes" && cat << \EOF 2781 { test "$extra_verbose" = "yes" && cat << \EOF
2752 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2809 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2753 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2810 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2754 done 2811 done
2755 2812
2756 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2813 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2757 echo "configure:2758: checking for terminateAndUnload in -lC" >&5 2814 echo "configure:2815: checking for terminateAndUnload in -lC" >&5
2758 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2815 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2759 2816
2760 xe_check_libs=" -lC " 2817 xe_check_libs=" -lC "
2761 cat > conftest.$ac_ext <<EOF 2818 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure" 2819 #line 2820 "configure"
2763 #include "confdefs.h" 2820 #include "confdefs.h"
2764 /* Override any gcc2 internal prototype to avoid an error. */ 2821 /* Override any gcc2 internal prototype to avoid an error. */
2765 /* We use char because int might match the return type of a gcc2 2822 /* We use char because int might match the return type of a gcc2
2766 builtin and then its argument prototype would still apply. */ 2823 builtin and then its argument prototype would still apply. */
2767 char terminateAndUnload(); 2824 char terminateAndUnload();
2768 2825
2769 int main() { 2826 int main() {
2770 terminateAndUnload() 2827 terminateAndUnload()
2771 ; return 0; } 2828 ; return 0; }
2772 EOF 2829 EOF
2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2830 if { (eval echo configure:2831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2774 rm -rf conftest* 2831 rm -rf conftest*
2775 eval "ac_cv_lib_$ac_lib_var=yes" 2832 eval "ac_cv_lib_$ac_lib_var=yes"
2776 else 2833 else
2777 echo "configure: failed program was:" >&5 2834 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5 2835 cat conftest.$ac_ext >&5
2876 esac 2933 esac
2877 fi 2934 fi
2878 2935
2879 if test "$add_runtime_path" = "yes"; then 2936 if test "$add_runtime_path" = "yes"; then
2880 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2937 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2881 echo "configure:2882: checking "for runtime libraries flag"" >&5 2938 echo "configure:2939: checking "for runtime libraries flag"" >&5
2882 case "$opsys" in 2939 case "$opsys" in
2883 sol2 ) dash_r="-R" ;; 2940 sol2 ) dash_r="-R" ;;
2884 decosf* | linux* | irix*) dash_r="-rpath " ;; 2941 decosf* | linux* | irix*) dash_r="-rpath " ;;
2885 *) 2942 *)
2886 dash_r="" 2943 dash_r=""
2898 esac 2955 esac
2899 shift 2956 shift
2900 done 2957 done
2901 fi 2958 fi
2902 cat > conftest.$ac_ext <<EOF 2959 cat > conftest.$ac_ext <<EOF
2903 #line 2904 "configure" 2960 #line 2961 "configure"
2904 #include "confdefs.h" 2961 #include "confdefs.h"
2905 2962
2906 int main() { 2963 int main() {
2907 2964
2908 ; return 0; } 2965 ; return 0; }
2909 EOF 2966 EOF
2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2911 rm -rf conftest* 2968 rm -rf conftest*
2912 dash_r="$try_dash_r" 2969 dash_r="$try_dash_r"
2913 else 2970 else
2914 echo "configure: failed program was:" >&5 2971 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5 2972 cat conftest.$ac_ext >&5
3007 else 3064 else
3008 doug_lea_malloc=no 3065 doug_lea_malloc=no
3009 fi 3066 fi
3010 after_morecore_hook_exists=yes 3067 after_morecore_hook_exists=yes
3011 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3068 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3012 echo "configure:3013: checking for malloc_get_state" >&5 3069 echo "configure:3070: checking for malloc_get_state" >&5
3013 3070
3014 cat > conftest.$ac_ext <<EOF 3071 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure" 3072 #line 3073 "configure"
3016 #include "confdefs.h" 3073 #include "confdefs.h"
3017 /* System header to define __stub macros and hopefully few prototypes, 3074 /* System header to define __stub macros and hopefully few prototypes,
3018 which can conflict with char malloc_get_state(); below. */ 3075 which can conflict with char malloc_get_state(); below. */
3019 #include <assert.h> 3076 #include <assert.h>
3020 /* Override any gcc2 internal prototype to avoid an error. */ 3077 /* Override any gcc2 internal prototype to avoid an error. */
3033 malloc_get_state(); 3090 malloc_get_state();
3034 #endif 3091 #endif
3035 3092
3036 ; return 0; } 3093 ; return 0; }
3037 EOF 3094 EOF
3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3095 if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3039 rm -rf conftest* 3096 rm -rf conftest*
3040 eval "ac_cv_func_malloc_get_state=yes" 3097 eval "ac_cv_func_malloc_get_state=yes"
3041 else 3098 else
3042 echo "configure: failed program was:" >&5 3099 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5 3100 cat conftest.$ac_ext >&5
3053 echo "$ac_t""no" 1>&6 3110 echo "$ac_t""no" 1>&6
3054 doug_lea_malloc=no 3111 doug_lea_malloc=no
3055 fi 3112 fi
3056 3113
3057 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3114 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3058 echo "configure:3059: checking for malloc_set_state" >&5 3115 echo "configure:3116: checking for malloc_set_state" >&5
3059 3116
3060 cat > conftest.$ac_ext <<EOF 3117 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure" 3118 #line 3119 "configure"
3062 #include "confdefs.h" 3119 #include "confdefs.h"
3063 /* System header to define __stub macros and hopefully few prototypes, 3120 /* System header to define __stub macros and hopefully few prototypes,
3064 which can conflict with char malloc_set_state(); below. */ 3121 which can conflict with char malloc_set_state(); below. */
3065 #include <assert.h> 3122 #include <assert.h>
3066 /* Override any gcc2 internal prototype to avoid an error. */ 3123 /* Override any gcc2 internal prototype to avoid an error. */
3079 malloc_set_state(); 3136 malloc_set_state();
3080 #endif 3137 #endif
3081 3138
3082 ; return 0; } 3139 ; return 0; }
3083 EOF 3140 EOF
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3141 if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3085 rm -rf conftest* 3142 rm -rf conftest*
3086 eval "ac_cv_func_malloc_set_state=yes" 3143 eval "ac_cv_func_malloc_set_state=yes"
3087 else 3144 else
3088 echo "configure: failed program was:" >&5 3145 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5 3146 cat conftest.$ac_ext >&5
3099 echo "$ac_t""no" 1>&6 3156 echo "$ac_t""no" 1>&6
3100 doug_lea_malloc=no 3157 doug_lea_malloc=no
3101 fi 3158 fi
3102 3159
3103 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3160 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3104 echo "configure:3105: checking whether __after_morecore_hook exists" >&5 3161 echo "configure:3162: checking whether __after_morecore_hook exists" >&5
3105 cat > conftest.$ac_ext <<EOF 3162 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure" 3163 #line 3164 "configure"
3107 #include "confdefs.h" 3164 #include "confdefs.h"
3108 extern void (* __after_morecore_hook)(); 3165 extern void (* __after_morecore_hook)();
3109 int main() { 3166 int main() {
3110 __after_morecore_hook = 0 3167 __after_morecore_hook = 0
3111 ; return 0; } 3168 ; return 0; }
3112 EOF 3169 EOF
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3114 rm -rf conftest* 3171 rm -rf conftest*
3115 echo "$ac_t""yes" 1>&6 3172 echo "$ac_t""yes" 1>&6
3116 else 3173 else
3117 echo "configure: failed program was:" >&5 3174 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5 3175 cat conftest.$ac_ext >&5
3167 3224
3168 3225
3169 # Extract the first word of "ranlib", so it can be a program name with args. 3226 # Extract the first word of "ranlib", so it can be a program name with args.
3170 set dummy ranlib; ac_word=$2 3227 set dummy ranlib; ac_word=$2
3171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_word" >&5 3229 echo "configure:3230: checking for $ac_word" >&5
3173 3230
3174 if test -n "$RANLIB"; then 3231 if test -n "$RANLIB"; then
3175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3176 else 3233 else
3177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3222 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3223 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3224 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3225 # ./install, which can be erroneously created by make from ./install.sh. 3282 # ./install, which can be erroneously created by make from ./install.sh.
3226 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3283 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3227 echo "configure:3228: checking for a BSD compatible install" >&5 3284 echo "configure:3285: checking for a BSD compatible install" >&5
3228 if test -z "$INSTALL"; then 3285 if test -z "$INSTALL"; then
3229 3286
3230 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3287 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3231 for ac_dir in $PATH; do 3288 for ac_dir in $PATH; do
3232 # Account for people who put trailing slashes in PATH elements. 3289 # Account for people who put trailing slashes in PATH elements.
3276 for ac_prog in 'bison -y' byacc 3333 for ac_prog in 'bison -y' byacc
3277 do 3334 do
3278 # Extract the first word of "$ac_prog", so it can be a program name with args. 3335 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279 set dummy $ac_prog; ac_word=$2 3336 set dummy $ac_prog; ac_word=$2
3280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3281 echo "configure:3282: checking for $ac_word" >&5 3338 echo "configure:3339: checking for $ac_word" >&5
3282 3339
3283 if test -n "$YACC"; then 3340 if test -n "$YACC"; then
3284 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3341 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3285 else 3342 else
3286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3304 test -n "$YACC" && break 3361 test -n "$YACC" && break
3305 done 3362 done
3306 test -n "$YACC" || YACC="yacc" 3363 test -n "$YACC" || YACC="yacc"
3307 3364
3308 3365
3309 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 3366 for ac_hdr in a.out.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/stropts.h sys/time.h sys/timeb.h sys/un.h kstat.h ulimit.h unistd.h utime.h
3310 do 3367 do
3311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_hdr" >&5 3370 echo "configure:3371: checking for $ac_hdr" >&5
3314 3371
3315 cat > conftest.$ac_ext <<EOF 3372 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure" 3373 #line 3374 "configure"
3317 #include "confdefs.h" 3374 #include "confdefs.h"
3318 #include <$ac_hdr> 3375 #include <$ac_hdr>
3319 EOF 3376 EOF
3320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3321 { (eval echo configure:3322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3378 { (eval echo configure:3379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3323 if test -z "$ac_err"; then 3380 if test -z "$ac_err"; then
3324 rm -rf conftest* 3381 rm -rf conftest*
3325 eval "ac_cv_header_$ac_safe=yes" 3382 eval "ac_cv_header_$ac_safe=yes"
3326 else 3383 else
3345 else 3402 else
3346 echo "$ac_t""no" 1>&6 3403 echo "$ac_t""no" 1>&6
3347 fi 3404 fi
3348 done 3405 done
3349 3406
3350 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3351 do
3352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3354 echo "configure:3355: checking for $ac_hdr" >&5
3355
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 #include <$ac_hdr>
3360 EOF
3361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3362 { (eval echo configure:3363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3364 if test -z "$ac_err"; then
3365 rm -rf conftest*
3366 eval "ac_cv_header_$ac_safe=yes"
3367 else
3368 echo "$ac_err" >&5
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3371 rm -rf conftest*
3372 eval "ac_cv_header_$ac_safe=no"
3373 fi
3374 rm -f conftest*
3375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3376 echo "$ac_t""yes" 1>&6
3377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3378 { test "$extra_verbose" = "yes" && cat << EOF
3379 Defining $ac_tr_hdr
3380 EOF
3381 cat >> confdefs.h <<EOF
3382 #define $ac_tr_hdr 1
3383 EOF
3384 }
3385
3386 else
3387 echo "$ac_t""no" 1>&6
3388 fi
3389 done
3390
3391 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3392 do
3393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_hdr" >&5
3396
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <$ac_hdr>
3401 EOF
3402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3403 { (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405 if test -z "$ac_err"; then
3406 rm -rf conftest*
3407 eval "ac_cv_header_$ac_safe=yes"
3408 else
3409 echo "$ac_err" >&5
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 eval "ac_cv_header_$ac_safe=no"
3414 fi
3415 rm -f conftest*
3416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3417 echo "$ac_t""yes" 1>&6
3418 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3419 { test "$extra_verbose" = "yes" && cat << EOF
3420 Defining $ac_tr_hdr
3421 EOF
3422 cat >> confdefs.h <<EOF
3423 #define $ac_tr_hdr 1
3424 EOF
3425 }
3426
3427 else
3428 echo "$ac_t""no" 1>&6
3429 fi
3430 done
3431
3432 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3407 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3433 echo "configure:3434: checking for sys/wait.h that is POSIX.1 compatible" >&5 3408 echo "configure:3409: checking for sys/wait.h that is POSIX.1 compatible" >&5
3434 3409
3435 cat > conftest.$ac_ext <<EOF 3410 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure" 3411 #line 3412 "configure"
3437 #include "confdefs.h" 3412 #include "confdefs.h"
3438 #include <sys/types.h> 3413 #include <sys/types.h>
3439 #include <sys/wait.h> 3414 #include <sys/wait.h>
3440 #ifndef WEXITSTATUS 3415 #ifndef WEXITSTATUS
3441 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3416 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3447 int s; 3422 int s;
3448 wait (&s); 3423 wait (&s);
3449 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3424 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3450 ; return 0; } 3425 ; return 0; }
3451 EOF 3426 EOF
3452 if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3427 if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453 rm -rf conftest* 3428 rm -rf conftest*
3454 ac_cv_header_sys_wait_h=yes 3429 ac_cv_header_sys_wait_h=yes
3455 else 3430 else
3456 echo "configure: failed program was:" >&5 3431 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5 3432 cat conftest.$ac_ext >&5
3471 } 3446 }
3472 3447
3473 fi 3448 fi
3474 3449
3475 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3450 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3476 echo "configure:3477: checking for ANSI C header files" >&5 3451 echo "configure:3452: checking for ANSI C header files" >&5
3477 3452
3478 cat > conftest.$ac_ext <<EOF 3453 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure" 3454 #line 3455 "configure"
3480 #include "confdefs.h" 3455 #include "confdefs.h"
3481 #include <stdlib.h> 3456 #include <stdlib.h>
3482 #include <stdarg.h> 3457 #include <stdarg.h>
3483 #include <string.h> 3458 #include <string.h>
3484 #include <float.h> 3459 #include <float.h>
3485 EOF 3460 EOF
3486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3487 { (eval echo configure:3488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3462 { (eval echo configure:3463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3489 if test -z "$ac_err"; then 3464 if test -z "$ac_err"; then
3490 rm -rf conftest* 3465 rm -rf conftest*
3491 ac_cv_header_stdc=yes 3466 ac_cv_header_stdc=yes
3492 else 3467 else
3499 rm -f conftest* 3474 rm -f conftest*
3500 3475
3501 if test $ac_cv_header_stdc = yes; then 3476 if test $ac_cv_header_stdc = yes; then
3502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3503 cat > conftest.$ac_ext <<EOF 3478 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure" 3479 #line 3480 "configure"
3505 #include "confdefs.h" 3480 #include "confdefs.h"
3506 #include <string.h> 3481 #include <string.h>
3507 EOF 3482 EOF
3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509 egrep "memchr" >/dev/null 2>&1; then 3484 egrep "memchr" >/dev/null 2>&1; then
3517 fi 3492 fi
3518 3493
3519 if test $ac_cv_header_stdc = yes; then 3494 if test $ac_cv_header_stdc = yes; then
3520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3521 cat > conftest.$ac_ext <<EOF 3496 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure" 3497 #line 3498 "configure"
3523 #include "confdefs.h" 3498 #include "confdefs.h"
3524 #include <stdlib.h> 3499 #include <stdlib.h>
3525 EOF 3500 EOF
3526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 egrep "free" >/dev/null 2>&1; then 3502 egrep "free" >/dev/null 2>&1; then
3535 fi 3510 fi
3536 3511
3537 if test $ac_cv_header_stdc = yes; then 3512 if test $ac_cv_header_stdc = yes; then
3538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3539 cat > conftest.$ac_ext <<EOF 3514 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure" 3515 #line 3516 "configure"
3541 #include "confdefs.h" 3516 #include "confdefs.h"
3542 #include <ctype.h> 3517 #include <ctype.h>
3543 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3518 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3544 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3519 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3546 int main () { int i; for (i = 0; i < 256; i++) 3521 int main () { int i; for (i = 0; i < 256; i++)
3547 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3522 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3548 exit (0); } 3523 exit (0); }
3549 3524
3550 EOF 3525 EOF
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3526 if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3552 then 3527 then
3553 : 3528 :
3554 else 3529 else
3555 conftest_rc="$?" 3530 conftest_rc="$?"
3556 echo "configure: failed program was:" >&5 3531 echo "configure: failed program was:" >&5
3572 } 3547 }
3573 3548
3574 fi 3549 fi
3575 3550
3576 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3551 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3577 echo "configure:3578: checking whether time.h and sys/time.h may both be included" >&5 3552 echo "configure:3553: checking whether time.h and sys/time.h may both be included" >&5
3578 3553
3579 cat > conftest.$ac_ext <<EOF 3554 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure" 3555 #line 3556 "configure"
3581 #include "confdefs.h" 3556 #include "confdefs.h"
3582 #include <sys/types.h> 3557 #include <sys/types.h>
3583 #include <sys/time.h> 3558 #include <sys/time.h>
3584 #include <time.h> 3559 #include <time.h>
3585 int main() { 3560 int main() {
3586 struct tm *tp; 3561 struct tm *tp;
3587 ; return 0; } 3562 ; return 0; }
3588 EOF 3563 EOF
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3564 if { (eval echo configure:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3590 rm -rf conftest* 3565 rm -rf conftest*
3591 ac_cv_header_time=yes 3566 ac_cv_header_time=yes
3592 else 3567 else
3593 echo "configure: failed program was:" >&5 3568 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5 3569 cat conftest.$ac_ext >&5
3608 } 3583 }
3609 3584
3610 fi 3585 fi
3611 3586
3612 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3587 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3613 echo "configure:3614: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3588 echo "configure:3589: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3614 3589
3615 cat > conftest.$ac_ext <<EOF 3590 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure" 3591 #line 3592 "configure"
3617 #include "confdefs.h" 3592 #include "confdefs.h"
3618 #include <sys/types.h> 3593 #include <sys/types.h>
3619 #include <signal.h> 3594 #include <signal.h>
3620 /* NetBSD declares sys_siglist in unistd.h. */ 3595 /* NetBSD declares sys_siglist in unistd.h. */
3621 #ifdef HAVE_UNISTD_H 3596 #ifdef HAVE_UNISTD_H
3623 #endif 3598 #endif
3624 int main() { 3599 int main() {
3625 char *msg = *(sys_siglist + 1); 3600 char *msg = *(sys_siglist + 1);
3626 ; return 0; } 3601 ; return 0; }
3627 EOF 3602 EOF
3628 if { (eval echo configure:3629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3603 if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 rm -rf conftest* 3604 rm -rf conftest*
3630 ac_cv_decl_sys_siglist=yes 3605 ac_cv_decl_sys_siglist=yes
3631 else 3606 else
3632 echo "configure: failed program was:" >&5 3607 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5 3608 cat conftest.$ac_ext >&5
3648 3623
3649 fi 3624 fi
3650 3625
3651 3626
3652 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3627 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3653 echo "configure:3654: checking for struct utimbuf" >&5 3628 echo "configure:3629: checking for struct utimbuf" >&5
3654 cat > conftest.$ac_ext <<EOF 3629 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure" 3630 #line 3631 "configure"
3656 #include "confdefs.h" 3631 #include "confdefs.h"
3657 #ifdef TIME_WITH_SYS_TIME 3632 #ifdef TIME_WITH_SYS_TIME
3658 #include <sys/time.h> 3633 #include <sys/time.h>
3659 #include <time.h> 3634 #include <time.h>
3660 #else 3635 #else
3669 #endif 3644 #endif
3670 int main() { 3645 int main() {
3671 static struct utimbuf x; x.actime = x.modtime; 3646 static struct utimbuf x; x.actime = x.modtime;
3672 ; return 0; } 3647 ; return 0; }
3673 EOF 3648 EOF
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3649 if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3675 rm -rf conftest* 3650 rm -rf conftest*
3676 echo "$ac_t""yes" 1>&6 3651 echo "$ac_t""yes" 1>&6
3677 { test "$extra_verbose" = "yes" && cat << \EOF 3652 { test "$extra_verbose" = "yes" && cat << \EOF
3678 Defining HAVE_STRUCT_UTIMBUF 3653 Defining HAVE_STRUCT_UTIMBUF
3679 EOF 3654 EOF
3689 echo "$ac_t""no" 1>&6 3664 echo "$ac_t""no" 1>&6
3690 fi 3665 fi
3691 rm -f conftest* 3666 rm -f conftest*
3692 3667
3693 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3668 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3694 echo "configure:3695: checking return type of signal handlers" >&5 3669 echo "configure:3670: checking return type of signal handlers" >&5
3695 3670
3696 cat > conftest.$ac_ext <<EOF 3671 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure" 3672 #line 3673 "configure"
3698 #include "confdefs.h" 3673 #include "confdefs.h"
3699 #include <sys/types.h> 3674 #include <sys/types.h>
3700 #include <signal.h> 3675 #include <signal.h>
3701 #ifdef signal 3676 #ifdef signal
3702 #undef signal 3677 #undef signal
3709 3684
3710 int main() { 3685 int main() {
3711 int i; 3686 int i;
3712 ; return 0; } 3687 ; return 0; }
3713 EOF 3688 EOF
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3715 rm -rf conftest* 3690 rm -rf conftest*
3716 ac_cv_type_signal=void 3691 ac_cv_type_signal=void
3717 else 3692 else
3718 echo "configure: failed program was:" >&5 3693 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5 3694 cat conftest.$ac_ext >&5
3731 EOF 3706 EOF
3732 } 3707 }
3733 3708
3734 3709
3735 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3710 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3736 echo "configure:3737: checking for size_t" >&5 3711 echo "configure:3712: checking for size_t" >&5
3737 3712
3738 cat > conftest.$ac_ext <<EOF 3713 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure" 3714 #line 3715 "configure"
3740 #include "confdefs.h" 3715 #include "confdefs.h"
3741 #include <sys/types.h> 3716 #include <sys/types.h>
3742 #if STDC_HEADERS 3717 #if STDC_HEADERS
3743 #include <stdlib.h> 3718 #include <stdlib.h>
3744 #include <stddef.h> 3719 #include <stddef.h>
3765 } 3740 }
3766 3741
3767 fi 3742 fi
3768 3743
3769 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3744 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3770 echo "configure:3771: checking for pid_t" >&5 3745 echo "configure:3746: checking for pid_t" >&5
3771 3746
3772 cat > conftest.$ac_ext <<EOF 3747 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure" 3748 #line 3749 "configure"
3774 #include "confdefs.h" 3749 #include "confdefs.h"
3775 #include <sys/types.h> 3750 #include <sys/types.h>
3776 #if STDC_HEADERS 3751 #if STDC_HEADERS
3777 #include <stdlib.h> 3752 #include <stdlib.h>
3778 #include <stddef.h> 3753 #include <stddef.h>
3799 } 3774 }
3800 3775
3801 fi 3776 fi
3802 3777
3803 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3778 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3804 echo "configure:3805: checking for uid_t in sys/types.h" >&5 3779 echo "configure:3780: checking for uid_t in sys/types.h" >&5
3805 3780
3806 cat > conftest.$ac_ext <<EOF 3781 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure" 3782 #line 3783 "configure"
3808 #include "confdefs.h" 3783 #include "confdefs.h"
3809 #include <sys/types.h> 3784 #include <sys/types.h>
3810 EOF 3785 EOF
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812 egrep "uid_t" >/dev/null 2>&1; then 3787 egrep "uid_t" >/dev/null 2>&1; then
3838 } 3813 }
3839 3814
3840 fi 3815 fi
3841 3816
3842 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3817 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3843 echo "configure:3844: checking for mode_t" >&5 3818 echo "configure:3819: checking for mode_t" >&5
3844 3819
3845 cat > conftest.$ac_ext <<EOF 3820 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure" 3821 #line 3822 "configure"
3847 #include "confdefs.h" 3822 #include "confdefs.h"
3848 #include <sys/types.h> 3823 #include <sys/types.h>
3849 #if STDC_HEADERS 3824 #if STDC_HEADERS
3850 #include <stdlib.h> 3825 #include <stdlib.h>
3851 #include <stddef.h> 3826 #include <stddef.h>
3872 } 3847 }
3873 3848
3874 fi 3849 fi
3875 3850
3876 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3851 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3877 echo "configure:3878: checking for off_t" >&5 3852 echo "configure:3853: checking for off_t" >&5
3878 3853
3879 cat > conftest.$ac_ext <<EOF 3854 cat > conftest.$ac_ext <<EOF
3880 #line 3881 "configure" 3855 #line 3856 "configure"
3881 #include "confdefs.h" 3856 #include "confdefs.h"
3882 #include <sys/types.h> 3857 #include <sys/types.h>
3883 #if STDC_HEADERS 3858 #if STDC_HEADERS
3884 #include <stdlib.h> 3859 #include <stdlib.h>
3885 #include <stddef.h> 3860 #include <stddef.h>
3906 } 3881 }
3907 3882
3908 fi 3883 fi
3909 3884
3910 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 3885 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3911 echo "configure:3912: checking for ssize_t" >&5 3886 echo "configure:3887: checking for ssize_t" >&5
3912 3887
3913 cat > conftest.$ac_ext <<EOF 3888 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure" 3889 #line 3890 "configure"
3915 #include "confdefs.h" 3890 #include "confdefs.h"
3916 #include <sys/types.h> 3891 #include <sys/types.h>
3917 #if STDC_HEADERS 3892 #if STDC_HEADERS
3918 #include <stdlib.h> 3893 #include <stdlib.h>
3919 #include <stddef.h> 3894 #include <stddef.h>
3941 3916
3942 fi 3917 fi
3943 3918
3944 3919
3945 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3920 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3946 echo "configure:3947: checking for struct timeval" >&5 3921 echo "configure:3922: checking for struct timeval" >&5
3947 cat > conftest.$ac_ext <<EOF 3922 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure" 3923 #line 3924 "configure"
3949 #include "confdefs.h" 3924 #include "confdefs.h"
3950 #ifdef TIME_WITH_SYS_TIME 3925 #ifdef TIME_WITH_SYS_TIME
3951 #include <sys/time.h> 3926 #include <sys/time.h>
3952 #include <time.h> 3927 #include <time.h>
3953 #else 3928 #else
3959 #endif 3934 #endif
3960 int main() { 3935 int main() {
3961 static struct timeval x; x.tv_sec = x.tv_usec; 3936 static struct timeval x; x.tv_sec = x.tv_usec;
3962 ; return 0; } 3937 ; return 0; }
3963 EOF 3938 EOF
3964 if { (eval echo configure:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3939 if { (eval echo configure:3940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3965 rm -rf conftest* 3940 rm -rf conftest*
3966 echo "$ac_t""yes" 1>&6 3941 echo "$ac_t""yes" 1>&6
3967 HAVE_TIMEVAL=yes 3942 HAVE_TIMEVAL=yes
3968 { test "$extra_verbose" = "yes" && cat << \EOF 3943 { test "$extra_verbose" = "yes" && cat << \EOF
3969 Defining HAVE_TIMEVAL 3944 Defining HAVE_TIMEVAL
3981 HAVE_TIMEVAL=no 3956 HAVE_TIMEVAL=no
3982 fi 3957 fi
3983 rm -f conftest* 3958 rm -f conftest*
3984 3959
3985 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3960 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3986 echo "configure:3987: checking whether struct tm is in sys/time.h or time.h" >&5 3961 echo "configure:3962: checking whether struct tm is in sys/time.h or time.h" >&5
3987 3962
3988 cat > conftest.$ac_ext <<EOF 3963 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure" 3964 #line 3965 "configure"
3990 #include "confdefs.h" 3965 #include "confdefs.h"
3991 #include <sys/types.h> 3966 #include <sys/types.h>
3992 #include <time.h> 3967 #include <time.h>
3993 int main() { 3968 int main() {
3994 struct tm *tp; tp->tm_sec; 3969 struct tm *tp; tp->tm_sec;
3995 ; return 0; } 3970 ; return 0; }
3996 EOF 3971 EOF
3997 if { (eval echo configure:3998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3972 if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3998 rm -rf conftest* 3973 rm -rf conftest*
3999 ac_cv_struct_tm=time.h 3974 ac_cv_struct_tm=time.h
4000 else 3975 else
4001 echo "configure: failed program was:" >&5 3976 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5 3977 cat conftest.$ac_ext >&5
4016 } 3991 }
4017 3992
4018 fi 3993 fi
4019 3994
4020 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3995 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4021 echo "configure:4022: checking for tm_zone in struct tm" >&5 3996 echo "configure:3997: checking for tm_zone in struct tm" >&5
4022 3997
4023 cat > conftest.$ac_ext <<EOF 3998 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure" 3999 #line 4000 "configure"
4025 #include "confdefs.h" 4000 #include "confdefs.h"
4026 #include <sys/types.h> 4001 #include <sys/types.h>
4027 #include <$ac_cv_struct_tm> 4002 #include <$ac_cv_struct_tm>
4028 int main() { 4003 int main() {
4029 struct tm tm; tm.tm_zone; 4004 struct tm tm; tm.tm_zone;
4030 ; return 0; } 4005 ; return 0; }
4031 EOF 4006 EOF
4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4007 if { (eval echo configure:4008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4033 rm -rf conftest* 4008 rm -rf conftest*
4034 ac_cv_struct_tm_zone=yes 4009 ac_cv_struct_tm_zone=yes
4035 else 4010 else
4036 echo "configure: failed program was:" >&5 4011 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5 4012 cat conftest.$ac_ext >&5
4050 EOF 4025 EOF
4051 } 4026 }
4052 4027
4053 else 4028 else
4054 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4029 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4055 echo "configure:4056: checking for tzname" >&5 4030 echo "configure:4031: checking for tzname" >&5
4056 4031
4057 cat > conftest.$ac_ext <<EOF 4032 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure" 4033 #line 4034 "configure"
4059 #include "confdefs.h" 4034 #include "confdefs.h"
4060 #include <time.h> 4035 #include <time.h>
4061 #ifndef tzname /* For SGI. */ 4036 #ifndef tzname /* For SGI. */
4062 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4037 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4063 #endif 4038 #endif
4064 int main() { 4039 int main() {
4065 atoi(*tzname); 4040 atoi(*tzname);
4066 ; return 0; } 4041 ; return 0; }
4067 EOF 4042 EOF
4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4043 if { (eval echo configure:4044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4069 rm -rf conftest* 4044 rm -rf conftest*
4070 ac_cv_var_tzname=yes 4045 ac_cv_var_tzname=yes
4071 else 4046 else
4072 echo "configure: failed program was:" >&5 4047 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5 4048 cat conftest.$ac_ext >&5
4089 fi 4064 fi
4090 fi 4065 fi
4091 4066
4092 4067
4093 echo $ac_n "checking for working const""... $ac_c" 1>&6 4068 echo $ac_n "checking for working const""... $ac_c" 1>&6
4094 echo "configure:4095: checking for working const" >&5 4069 echo "configure:4070: checking for working const" >&5
4095 4070
4096 cat > conftest.$ac_ext <<EOF 4071 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure" 4072 #line 4073 "configure"
4098 #include "confdefs.h" 4073 #include "confdefs.h"
4099 4074
4100 int main() { 4075 int main() {
4101 4076
4102 /* Ultrix mips cc rejects this. */ 4077 /* Ultrix mips cc rejects this. */
4141 const int foo = 10; 4116 const int foo = 10;
4142 } 4117 }
4143 4118
4144 ; return 0; } 4119 ; return 0; }
4145 EOF 4120 EOF
4146 if { (eval echo configure:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4147 rm -rf conftest* 4122 rm -rf conftest*
4148 ac_cv_c_const=yes 4123 ac_cv_c_const=yes
4149 else 4124 else
4150 echo "configure: failed program was:" >&5 4125 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5 4126 cat conftest.$ac_ext >&5
4166 4141
4167 fi 4142 fi
4168 4143
4169 4144
4170 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4145 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4171 echo "configure:4172: checking whether ${MAKE-make} sets \${MAKE}" >&5 4146 echo "configure:4147: checking whether ${MAKE-make} sets \${MAKE}" >&5
4172 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4147 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4173 4148
4174 cat > conftestmake <<\EOF 4149 cat > conftestmake <<\EOF
4175 all: 4150 all:
4176 @echo 'ac_maketemp="${MAKE}"' 4151 @echo 'ac_maketemp="${MAKE}"'
4191 SET_MAKE="MAKE=${MAKE-make}" 4166 SET_MAKE="MAKE=${MAKE-make}"
4192 fi 4167 fi
4193 4168
4194 4169
4195 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4170 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4196 echo "configure:4197: checking whether byte ordering is bigendian" >&5 4171 echo "configure:4172: checking whether byte ordering is bigendian" >&5
4197 4172
4198 ac_cv_c_bigendian=unknown 4173 ac_cv_c_bigendian=unknown
4199 # See if sys/param.h defines the BYTE_ORDER macro. 4174 # See if sys/param.h defines the BYTE_ORDER macro.
4200 cat > conftest.$ac_ext <<EOF 4175 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure" 4176 #line 4177 "configure"
4202 #include "confdefs.h" 4177 #include "confdefs.h"
4203 #include <sys/types.h> 4178 #include <sys/types.h>
4204 #include <sys/param.h> 4179 #include <sys/param.h>
4205 int main() { 4180 int main() {
4206 4181
4207 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4182 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4208 bogus endian macros 4183 bogus endian macros
4209 #endif 4184 #endif
4210 ; return 0; } 4185 ; return 0; }
4211 EOF 4186 EOF
4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4187 if { (eval echo configure:4188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4213 rm -rf conftest* 4188 rm -rf conftest*
4214 # It does; now see whether it defined to BIG_ENDIAN or not. 4189 # It does; now see whether it defined to BIG_ENDIAN or not.
4215 cat > conftest.$ac_ext <<EOF 4190 cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure" 4191 #line 4192 "configure"
4217 #include "confdefs.h" 4192 #include "confdefs.h"
4218 #include <sys/types.h> 4193 #include <sys/types.h>
4219 #include <sys/param.h> 4194 #include <sys/param.h>
4220 int main() { 4195 int main() {
4221 4196
4222 #if BYTE_ORDER != BIG_ENDIAN 4197 #if BYTE_ORDER != BIG_ENDIAN
4223 not big endian 4198 not big endian
4224 #endif 4199 #endif
4225 ; return 0; } 4200 ; return 0; }
4226 EOF 4201 EOF
4227 if { (eval echo configure:4228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4202 if { (eval echo configure:4203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4228 rm -rf conftest* 4203 rm -rf conftest*
4229 ac_cv_c_bigendian=yes 4204 ac_cv_c_bigendian=yes
4230 else 4205 else
4231 echo "configure: failed program was:" >&5 4206 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5 4207 cat conftest.$ac_ext >&5
4239 cat conftest.$ac_ext >&5 4214 cat conftest.$ac_ext >&5
4240 fi 4215 fi
4241 rm -f conftest* 4216 rm -f conftest*
4242 if test $ac_cv_c_bigendian = unknown; then 4217 if test $ac_cv_c_bigendian = unknown; then
4243 cat > conftest.$ac_ext <<EOF 4218 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure" 4219 #line 4220 "configure"
4245 #include "confdefs.h" 4220 #include "confdefs.h"
4246 main () { 4221 main () {
4247 /* Are we little or big endian? From Harbison&Steele. */ 4222 /* Are we little or big endian? From Harbison&Steele. */
4248 union 4223 union
4249 { 4224 {
4252 } u; 4227 } u;
4253 u.l = 1; 4228 u.l = 1;
4254 exit (u.c[sizeof (long) - 1] == 1); 4229 exit (u.c[sizeof (long) - 1] == 1);
4255 } 4230 }
4256 EOF 4231 EOF
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4258 then 4233 then
4259 ac_cv_c_bigendian=no 4234 ac_cv_c_bigendian=no
4260 else 4235 else
4261 conftest_rc="$?" 4236 conftest_rc="$?"
4262 echo "configure: failed program was:" >&5 4237 echo "configure: failed program was:" >&5
4279 4254
4280 fi 4255 fi
4281 4256
4282 4257
4283 echo $ac_n "checking size of short""... $ac_c" 1>&6 4258 echo $ac_n "checking size of short""... $ac_c" 1>&6
4284 echo "configure:4285: checking size of short" >&5 4259 echo "configure:4260: checking size of short" >&5
4285 4260
4286 cat > conftest.$ac_ext <<EOF 4261 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure" 4262 #line 4263 "configure"
4288 #include "confdefs.h" 4263 #include "confdefs.h"
4289 #include <stdio.h> 4264 #include <stdio.h>
4290 main() 4265 main()
4291 { 4266 {
4292 FILE *f=fopen("conftestval", "w"); 4267 FILE *f=fopen("conftestval", "w");
4293 if (!f) exit(1); 4268 if (!f) exit(1);
4294 fprintf(f, "%d\n", sizeof(short)); 4269 fprintf(f, "%d\n", sizeof(short));
4295 exit(0); 4270 exit(0);
4296 } 4271 }
4297 EOF 4272 EOF
4298 if { (eval echo configure:4299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4299 then 4274 then
4300 ac_cv_sizeof_short=`cat conftestval` 4275 ac_cv_sizeof_short=`cat conftestval`
4301 else 4276 else
4302 conftest_rc="$?" 4277 conftest_rc="$?"
4303 echo "configure: failed program was:" >&5 4278 echo "configure: failed program was:" >&5
4321 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4296 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4322 echo "*** PANIC *** Please examine config.log for compilation errors." 4297 echo "*** PANIC *** Please examine config.log for compilation errors."
4323 exit 1 4298 exit 1
4324 fi 4299 fi
4325 echo $ac_n "checking size of int""... $ac_c" 1>&6 4300 echo $ac_n "checking size of int""... $ac_c" 1>&6
4326 echo "configure:4327: checking size of int" >&5 4301 echo "configure:4302: checking size of int" >&5
4327 4302
4328 cat > conftest.$ac_ext <<EOF 4303 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure" 4304 #line 4305 "configure"
4330 #include "confdefs.h" 4305 #include "confdefs.h"
4331 #include <stdio.h> 4306 #include <stdio.h>
4332 main() 4307 main()
4333 { 4308 {
4334 FILE *f=fopen("conftestval", "w"); 4309 FILE *f=fopen("conftestval", "w");
4335 if (!f) exit(1); 4310 if (!f) exit(1);
4336 fprintf(f, "%d\n", sizeof(int)); 4311 fprintf(f, "%d\n", sizeof(int));
4337 exit(0); 4312 exit(0);
4338 } 4313 }
4339 EOF 4314 EOF
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4315 if { (eval echo configure:4316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4341 then 4316 then
4342 ac_cv_sizeof_int=`cat conftestval` 4317 ac_cv_sizeof_int=`cat conftestval`
4343 else 4318 else
4344 conftest_rc="$?" 4319 conftest_rc="$?"
4345 echo "configure: failed program was:" >&5 4320 echo "configure: failed program was:" >&5
4357 EOF 4332 EOF
4358 } 4333 }
4359 4334
4360 4335
4361 echo $ac_n "checking size of long""... $ac_c" 1>&6 4336 echo $ac_n "checking size of long""... $ac_c" 1>&6
4362 echo "configure:4363: checking size of long" >&5 4337 echo "configure:4338: checking size of long" >&5
4363 4338
4364 cat > conftest.$ac_ext <<EOF 4339 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure" 4340 #line 4341 "configure"
4366 #include "confdefs.h" 4341 #include "confdefs.h"
4367 #include <stdio.h> 4342 #include <stdio.h>
4368 main() 4343 main()
4369 { 4344 {
4370 FILE *f=fopen("conftestval", "w"); 4345 FILE *f=fopen("conftestval", "w");
4371 if (!f) exit(1); 4346 if (!f) exit(1);
4372 fprintf(f, "%d\n", sizeof(long)); 4347 fprintf(f, "%d\n", sizeof(long));
4373 exit(0); 4348 exit(0);
4374 } 4349 }
4375 EOF 4350 EOF
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4351 if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4377 then 4352 then
4378 ac_cv_sizeof_long=`cat conftestval` 4353 ac_cv_sizeof_long=`cat conftestval`
4379 else 4354 else
4380 conftest_rc="$?" 4355 conftest_rc="$?"
4381 echo "configure: failed program was:" >&5 4356 echo "configure: failed program was:" >&5
4393 EOF 4368 EOF
4394 } 4369 }
4395 4370
4396 4371
4397 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4372 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4398 echo "configure:4399: checking size of long long" >&5 4373 echo "configure:4374: checking size of long long" >&5
4399 4374
4400 cat > conftest.$ac_ext <<EOF 4375 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure" 4376 #line 4377 "configure"
4402 #include "confdefs.h" 4377 #include "confdefs.h"
4403 #include <stdio.h> 4378 #include <stdio.h>
4404 main() 4379 main()
4405 { 4380 {
4406 FILE *f=fopen("conftestval", "w"); 4381 FILE *f=fopen("conftestval", "w");
4407 if (!f) exit(1); 4382 if (!f) exit(1);
4408 fprintf(f, "%d\n", sizeof(long long)); 4383 fprintf(f, "%d\n", sizeof(long long));
4409 exit(0); 4384 exit(0);
4410 } 4385 }
4411 EOF 4386 EOF
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4413 then 4388 then
4414 ac_cv_sizeof_long_long=`cat conftestval` 4389 ac_cv_sizeof_long_long=`cat conftestval`
4415 else 4390 else
4416 conftest_rc="$?" 4391 conftest_rc="$?"
4417 echo "configure: failed program was:" >&5 4392 echo "configure: failed program was:" >&5
4429 EOF 4404 EOF
4430 } 4405 }
4431 4406
4432 4407
4433 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4408 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4434 echo "configure:4435: checking size of void *" >&5 4409 echo "configure:4410: checking size of void *" >&5
4435 4410
4436 cat > conftest.$ac_ext <<EOF 4411 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure" 4412 #line 4413 "configure"
4438 #include "confdefs.h" 4413 #include "confdefs.h"
4439 #include <stdio.h> 4414 #include <stdio.h>
4440 main() 4415 main()
4441 { 4416 {
4442 FILE *f=fopen("conftestval", "w"); 4417 FILE *f=fopen("conftestval", "w");
4443 if (!f) exit(1); 4418 if (!f) exit(1);
4444 fprintf(f, "%d\n", sizeof(void *)); 4419 fprintf(f, "%d\n", sizeof(void *));
4445 exit(0); 4420 exit(0);
4446 } 4421 }
4447 EOF 4422 EOF
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4423 if { (eval echo configure:4424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4449 then 4424 then
4450 ac_cv_sizeof_void_p=`cat conftestval` 4425 ac_cv_sizeof_void_p=`cat conftestval`
4451 else 4426 else
4452 conftest_rc="$?" 4427 conftest_rc="$?"
4453 echo "configure: failed program was:" >&5 4428 echo "configure: failed program was:" >&5
4466 } 4441 }
4467 4442
4468 4443
4469 4444
4470 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4445 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4471 echo "configure:4472: checking for long file names" >&5 4446 echo "configure:4447: checking for long file names" >&5
4472 4447
4473 ac_cv_sys_long_file_names=yes 4448 ac_cv_sys_long_file_names=yes
4474 # Test for long file names in all the places we know might matter: 4449 # Test for long file names in all the places we know might matter:
4475 # . the current directory, where building will happen 4450 # . the current directory, where building will happen
4476 # $prefix/lib where we will be installing things 4451 # $prefix/lib where we will be installing things
4512 4487
4513 fi 4488 fi
4514 4489
4515 4490
4516 echo $ac_n "checking for sin""... $ac_c" 1>&6 4491 echo $ac_n "checking for sin""... $ac_c" 1>&6
4517 echo "configure:4518: checking for sin" >&5 4492 echo "configure:4493: checking for sin" >&5
4518 4493
4519 cat > conftest.$ac_ext <<EOF 4494 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure" 4495 #line 4496 "configure"
4521 #include "confdefs.h" 4496 #include "confdefs.h"
4522 /* System header to define __stub macros and hopefully few prototypes, 4497 /* System header to define __stub macros and hopefully few prototypes,
4523 which can conflict with char sin(); below. */ 4498 which can conflict with char sin(); below. */
4524 #include <assert.h> 4499 #include <assert.h>
4525 /* Override any gcc2 internal prototype to avoid an error. */ 4500 /* Override any gcc2 internal prototype to avoid an error. */
4538 sin(); 4513 sin();
4539 #endif 4514 #endif
4540 4515
4541 ; return 0; } 4516 ; return 0; }
4542 EOF 4517 EOF
4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4518 if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 rm -rf conftest* 4519 rm -rf conftest*
4545 eval "ac_cv_func_sin=yes" 4520 eval "ac_cv_func_sin=yes"
4546 else 4521 else
4547 echo "configure: failed program was:" >&5 4522 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5 4523 cat conftest.$ac_ext >&5
4556 : 4531 :
4557 else 4532 else
4558 echo "$ac_t""no" 1>&6 4533 echo "$ac_t""no" 1>&6
4559 4534
4560 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4535 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4561 echo "configure:4562: checking for sin in -lm" >&5 4536 echo "configure:4537: checking for sin in -lm" >&5
4562 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4537 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4563 4538
4564 xe_check_libs=" -lm " 4539 xe_check_libs=" -lm "
4565 cat > conftest.$ac_ext <<EOF 4540 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure" 4541 #line 4542 "configure"
4567 #include "confdefs.h" 4542 #include "confdefs.h"
4568 /* Override any gcc2 internal prototype to avoid an error. */ 4543 /* Override any gcc2 internal prototype to avoid an error. */
4569 /* We use char because int might match the return type of a gcc2 4544 /* We use char because int might match the return type of a gcc2
4570 builtin and then its argument prototype would still apply. */ 4545 builtin and then its argument prototype would still apply. */
4571 char sin(); 4546 char sin();
4572 4547
4573 int main() { 4548 int main() {
4574 sin() 4549 sin()
4575 ; return 0; } 4550 ; return 0; }
4576 EOF 4551 EOF
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4578 rm -rf conftest* 4553 rm -rf conftest*
4579 eval "ac_cv_lib_$ac_lib_var=yes" 4554 eval "ac_cv_lib_$ac_lib_var=yes"
4580 else 4555 else
4581 echo "configure: failed program was:" >&5 4556 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5 4557 cat conftest.$ac_ext >&5
4616 EOF 4591 EOF
4617 } 4592 }
4618 4593
4619 4594
4620 cat > conftest.$ac_ext <<EOF 4595 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure" 4596 #line 4597 "configure"
4622 #include "confdefs.h" 4597 #include "confdefs.h"
4623 #include <math.h> 4598 #include <math.h>
4624 int main() { 4599 int main() {
4625 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4600 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4626 ; return 0; } 4601 ; return 0; }
4627 EOF 4602 EOF
4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4629 rm -rf conftest* 4604 rm -rf conftest*
4630 { test "$extra_verbose" = "yes" && cat << \EOF 4605 { test "$extra_verbose" = "yes" && cat << \EOF
4631 Defining HAVE_INVERSE_HYPERBOLIC 4606 Defining HAVE_INVERSE_HYPERBOLIC
4632 EOF 4607 EOF
4633 cat >> confdefs.h <<\EOF 4608 cat >> confdefs.h <<\EOF
4640 cat conftest.$ac_ext >&5 4615 cat conftest.$ac_ext >&5
4641 fi 4616 fi
4642 rm -f conftest* 4617 rm -f conftest*
4643 4618
4644 echo "checking type of mail spool file locking" 1>&6 4619 echo "checking type of mail spool file locking" 1>&6
4645 echo "configure:4646: checking type of mail spool file locking" >&5 4620 echo "configure:4621: checking type of mail spool file locking" >&5
4646 for ac_func in lockf flock 4621 for ac_func in lockf flock
4647 do 4622 do
4648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_func" >&5 4624 echo "configure:4625: checking for $ac_func" >&5
4650 4625
4651 cat > conftest.$ac_ext <<EOF 4626 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure" 4627 #line 4628 "configure"
4653 #include "confdefs.h" 4628 #include "confdefs.h"
4654 /* System header to define __stub macros and hopefully few prototypes, 4629 /* System header to define __stub macros and hopefully few prototypes,
4655 which can conflict with char $ac_func(); below. */ 4630 which can conflict with char $ac_func(); below. */
4656 #include <assert.h> 4631 #include <assert.h>
4657 /* Override any gcc2 internal prototype to avoid an error. */ 4632 /* Override any gcc2 internal prototype to avoid an error. */
4670 $ac_func(); 4645 $ac_func();
4671 #endif 4646 #endif
4672 4647
4673 ; return 0; } 4648 ; return 0; }
4674 EOF 4649 EOF
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4650 if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4676 rm -rf conftest* 4651 rm -rf conftest*
4677 eval "ac_cv_func_$ac_func=yes" 4652 eval "ac_cv_func_$ac_func=yes"
4678 else 4653 else
4679 echo "configure: failed program was:" >&5 4654 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5 4655 cat conftest.$ac_ext >&5
4743 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 4718 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4744 4719
4745 case "$opsys" in decosf*) 4720 case "$opsys" in decosf*)
4746 4721
4747 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4722 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4748 echo "configure:4749: checking for cma_open in -lpthreads" >&5 4723 echo "configure:4724: checking for cma_open in -lpthreads" >&5
4749 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4724 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4750 4725
4751 xe_check_libs=" -lpthreads " 4726 xe_check_libs=" -lpthreads "
4752 cat > conftest.$ac_ext <<EOF 4727 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure" 4728 #line 4729 "configure"
4754 #include "confdefs.h" 4729 #include "confdefs.h"
4755 /* Override any gcc2 internal prototype to avoid an error. */ 4730 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2 4731 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */ 4732 builtin and then its argument prototype would still apply. */
4758 char cma_open(); 4733 char cma_open();
4759 4734
4760 int main() { 4735 int main() {
4761 cma_open() 4736 cma_open()
4762 ; return 0; } 4737 ; return 0; }
4763 EOF 4738 EOF
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4739 if { (eval echo configure:4740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4765 rm -rf conftest* 4740 rm -rf conftest*
4766 eval "ac_cv_lib_$ac_lib_var=yes" 4741 eval "ac_cv_lib_$ac_lib_var=yes"
4767 else 4742 else
4768 echo "configure: failed program was:" >&5 4743 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5 4744 cat conftest.$ac_ext >&5
4795 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4770 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4796 c_switch_site="$c_switch_site -threads" ;; 4771 c_switch_site="$c_switch_site -threads" ;;
4797 esac 4772 esac
4798 4773
4799 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4774 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4800 echo "configure:4801: checking whether the -xildoff compiler flag is required" >&5 4775 echo "configure:4776: checking whether the -xildoff compiler flag is required" >&5
4801 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4776 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4802 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4777 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4803 then echo "$ac_t""no" 1>&6; 4778 then echo "$ac_t""no" 1>&6;
4804 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 4779 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
4805 fi 4780 fi
4806 else echo "$ac_t""no" 1>&6 4781 else echo "$ac_t""no" 1>&6
4807 fi 4782 fi
4808 4783
4809 if test "$opsys" = "sol2" -a "$os_release" -ge 56; then 4784 if test "$opsys" = "sol2"; then
4810 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4785 if test "$os_release" -ge 56; then
4811 echo "configure:4812: checking for \"-z ignore\" linker flag" >&5 4786 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4812 case "`ld -h 2>&1`" in 4787 echo "configure:4788: checking for \"-z ignore\" linker flag" >&5
4813 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4788 case "`ld -h 2>&1`" in
4814 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4789 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4815 *) echo "$ac_t""no" 1>&6 ;; 4790 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4816 esac 4791 *) echo "$ac_t""no" 1>&6 ;;
4792 esac
4793 fi
4817 fi 4794 fi
4818 4795
4819 4796
4820 echo "checking "for specified window system"" 1>&6 4797 echo "checking "for specified window system"" 1>&6
4821 echo "configure:4822: checking "for specified window system"" >&5 4798 echo "configure:4799: checking "for specified window system"" >&5
4822 4799
4823 if test "$with_x11" != "no"; then 4800 if test "$with_x11" != "no"; then
4824 test "$x_includes $x_libraries" != "NONE NONE" && \ 4801 test "$x_includes $x_libraries" != "NONE NONE" && \
4825 window_system=x11 with_x11=yes 4802 window_system=x11 with_x11=yes
4826 4803
4849 # If we find X, set shell vars x_includes and x_libraries to the 4826 # If we find X, set shell vars x_includes and x_libraries to the
4850 # paths, otherwise set no_x=yes. 4827 # paths, otherwise set no_x=yes.
4851 # Uses ac_ vars as temps to allow command line to override cache and checks. 4828 # Uses ac_ vars as temps to allow command line to override cache and checks.
4852 # --without-x overrides everything else, but does not touch the cache. 4829 # --without-x overrides everything else, but does not touch the cache.
4853 echo $ac_n "checking for X""... $ac_c" 1>&6 4830 echo $ac_n "checking for X""... $ac_c" 1>&6
4854 echo "configure:4855: checking for X" >&5 4831 echo "configure:4832: checking for X" >&5
4855 4832
4856 # Check whether --with-x or --without-x was given. 4833 # Check whether --with-x or --without-x was given.
4857 if test "${with_x+set}" = set; then 4834 if test "${with_x+set}" = set; then
4858 withval="$with_x" 4835 withval="$with_x"
4859 : 4836 :
4909 # Guess where to find include files, by looking for this one X11 .h file. 4886 # Guess where to find include files, by looking for this one X11 .h file.
4910 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4887 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4911 4888
4912 # First, try using that file with no special directory specified. 4889 # First, try using that file with no special directory specified.
4913 cat > conftest.$ac_ext <<EOF 4890 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure" 4891 #line 4892 "configure"
4915 #include "confdefs.h" 4892 #include "confdefs.h"
4916 #include <$x_direct_test_include> 4893 #include <$x_direct_test_include>
4917 EOF 4894 EOF
4918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4919 { (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4896 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4921 if test -z "$ac_err"; then 4898 if test -z "$ac_err"; then
4922 rm -rf conftest* 4899 rm -rf conftest*
4923 # We can compile using X headers with no special include directory. 4900 # We can compile using X headers with no special include directory.
4924 ac_x_includes= 4901 ac_x_includes=
4983 # See if we find them without any special options. 4960 # See if we find them without any special options.
4984 # Don't add to $LIBS permanently. 4961 # Don't add to $LIBS permanently.
4985 ac_save_LIBS="$LIBS" 4962 ac_save_LIBS="$LIBS"
4986 LIBS="-l$x_direct_test_library $LIBS" 4963 LIBS="-l$x_direct_test_library $LIBS"
4987 cat > conftest.$ac_ext <<EOF 4964 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure" 4965 #line 4966 "configure"
4989 #include "confdefs.h" 4966 #include "confdefs.h"
4990 4967
4991 int main() { 4968 int main() {
4992 ${x_direct_test_function}() 4969 ${x_direct_test_function}()
4993 ; return 0; } 4970 ; return 0; }
4994 EOF 4971 EOF
4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4972 if { (eval echo configure:4973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4996 rm -rf conftest* 4973 rm -rf conftest*
4997 LIBS="$ac_save_LIBS" 4974 LIBS="$ac_save_LIBS"
4998 # We can link X programs with no special library path. 4975 # We can link X programs with no special library path.
4999 ac_x_libraries= 4976 ac_x_libraries=
5000 else 4977 else
5099 # For Solaris; some versions of Sun CC require a space after -R and 5076 # For Solaris; some versions of Sun CC require a space after -R and
5100 # others require no space. Words are not sufficient . . . . 5077 # others require no space. Words are not sufficient . . . .
5101 case "`(uname -sr) 2>/dev/null`" in 5078 case "`(uname -sr) 2>/dev/null`" in
5102 "SunOS 5"*) 5079 "SunOS 5"*)
5103 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5080 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5104 echo "configure:5105: checking whether -R must be followed by a space" >&5 5081 echo "configure:5082: checking whether -R must be followed by a space" >&5
5105 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5082 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5106 cat > conftest.$ac_ext <<EOF 5083 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure" 5084 #line 5085 "configure"
5108 #include "confdefs.h" 5085 #include "confdefs.h"
5109 5086
5110 int main() { 5087 int main() {
5111 5088
5112 ; return 0; } 5089 ; return 0; }
5113 EOF 5090 EOF
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5115 rm -rf conftest* 5092 rm -rf conftest*
5116 ac_R_nospace=yes 5093 ac_R_nospace=yes
5117 else 5094 else
5118 echo "configure: failed program was:" >&5 5095 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5 5096 cat conftest.$ac_ext >&5
5125 echo "$ac_t""no" 1>&6 5102 echo "$ac_t""no" 1>&6
5126 X_LIBS="$X_LIBS -R$x_libraries" 5103 X_LIBS="$X_LIBS -R$x_libraries"
5127 else 5104 else
5128 LIBS="$ac_xsave_LIBS -R $x_libraries" 5105 LIBS="$ac_xsave_LIBS -R $x_libraries"
5129 cat > conftest.$ac_ext <<EOF 5106 cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure" 5107 #line 5108 "configure"
5131 #include "confdefs.h" 5108 #include "confdefs.h"
5132 5109
5133 int main() { 5110 int main() {
5134 5111
5135 ; return 0; } 5112 ; return 0; }
5136 EOF 5113 EOF
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5138 rm -rf conftest* 5115 rm -rf conftest*
5139 ac_R_space=yes 5116 ac_R_space=yes
5140 else 5117 else
5141 echo "configure: failed program was:" >&5 5118 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5 5119 cat conftest.$ac_ext >&5
5168 if test "$with_dnet" = "no" ; then 5145 if test "$with_dnet" = "no" ; then
5169 ac_cv_lib_dnet_dnet_ntoa=no 5146 ac_cv_lib_dnet_dnet_ntoa=no
5170 else 5147 else
5171 5148
5172 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5149 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5173 echo "configure:5174: checking for dnet_ntoa in -ldnet" >&5 5150 echo "configure:5151: checking for dnet_ntoa in -ldnet" >&5
5174 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5151 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5175 5152
5176 xe_check_libs=" -ldnet " 5153 xe_check_libs=" -ldnet "
5177 cat > conftest.$ac_ext <<EOF 5154 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure" 5155 #line 5156 "configure"
5179 #include "confdefs.h" 5156 #include "confdefs.h"
5180 /* Override any gcc2 internal prototype to avoid an error. */ 5157 /* Override any gcc2 internal prototype to avoid an error. */
5181 /* We use char because int might match the return type of a gcc2 5158 /* We use char because int might match the return type of a gcc2
5182 builtin and then its argument prototype would still apply. */ 5159 builtin and then its argument prototype would still apply. */
5183 char dnet_ntoa(); 5160 char dnet_ntoa();
5184 5161
5185 int main() { 5162 int main() {
5186 dnet_ntoa() 5163 dnet_ntoa()
5187 ; return 0; } 5164 ; return 0; }
5188 EOF 5165 EOF
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5166 if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 rm -rf conftest* 5167 rm -rf conftest*
5191 eval "ac_cv_lib_$ac_lib_var=yes" 5168 eval "ac_cv_lib_$ac_lib_var=yes"
5192 else 5169 else
5193 echo "configure: failed program was:" >&5 5170 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5 5171 cat conftest.$ac_ext >&5
5208 fi 5185 fi
5209 5186
5210 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5187 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5211 5188
5212 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5189 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5213 echo "configure:5214: checking for dnet_ntoa in -ldnet_stub" >&5 5190 echo "configure:5191: checking for dnet_ntoa in -ldnet_stub" >&5
5214 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5191 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5215 5192
5216 xe_check_libs=" -ldnet_stub " 5193 xe_check_libs=" -ldnet_stub "
5217 cat > conftest.$ac_ext <<EOF 5194 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure" 5195 #line 5196 "configure"
5219 #include "confdefs.h" 5196 #include "confdefs.h"
5220 /* Override any gcc2 internal prototype to avoid an error. */ 5197 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2 5198 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */ 5199 builtin and then its argument prototype would still apply. */
5223 char dnet_ntoa(); 5200 char dnet_ntoa();
5224 5201
5225 int main() { 5202 int main() {
5226 dnet_ntoa() 5203 dnet_ntoa()
5227 ; return 0; } 5204 ; return 0; }
5228 EOF 5205 EOF
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5206 if { (eval echo configure:5207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230 rm -rf conftest* 5207 rm -rf conftest*
5231 eval "ac_cv_lib_$ac_lib_var=yes" 5208 eval "ac_cv_lib_$ac_lib_var=yes"
5232 else 5209 else
5233 echo "configure: failed program was:" >&5 5210 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5 5211 cat conftest.$ac_ext >&5
5253 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5230 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5254 # needs -lnsl. 5231 # needs -lnsl.
5255 # The nsl library prevents programs from opening the X display 5232 # The nsl library prevents programs from opening the X display
5256 # on Irix 5.2, according to dickey@clark.net. 5233 # on Irix 5.2, according to dickey@clark.net.
5257 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5234 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5258 echo "configure:5259: checking for gethostbyname" >&5 5235 echo "configure:5236: checking for gethostbyname" >&5
5259 5236
5260 cat > conftest.$ac_ext <<EOF 5237 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure" 5238 #line 5239 "configure"
5262 #include "confdefs.h" 5239 #include "confdefs.h"
5263 /* System header to define __stub macros and hopefully few prototypes, 5240 /* System header to define __stub macros and hopefully few prototypes,
5264 which can conflict with char gethostbyname(); below. */ 5241 which can conflict with char gethostbyname(); below. */
5265 #include <assert.h> 5242 #include <assert.h>
5266 /* Override any gcc2 internal prototype to avoid an error. */ 5243 /* Override any gcc2 internal prototype to avoid an error. */
5279 gethostbyname(); 5256 gethostbyname();
5280 #endif 5257 #endif
5281 5258
5282 ; return 0; } 5259 ; return 0; }
5283 EOF 5260 EOF
5284 if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5285 rm -rf conftest* 5262 rm -rf conftest*
5286 eval "ac_cv_func_gethostbyname=yes" 5263 eval "ac_cv_func_gethostbyname=yes"
5287 else 5264 else
5288 echo "configure: failed program was:" >&5 5265 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5 5266 cat conftest.$ac_ext >&5
5300 fi 5277 fi
5301 5278
5302 if test $ac_cv_func_gethostbyname = no; then 5279 if test $ac_cv_func_gethostbyname = no; then
5303 5280
5304 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5281 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5305 echo "configure:5306: checking for gethostbyname in -lnsl" >&5 5282 echo "configure:5283: checking for gethostbyname in -lnsl" >&5
5306 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5283 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5307 5284
5308 xe_check_libs=" -lnsl " 5285 xe_check_libs=" -lnsl "
5309 cat > conftest.$ac_ext <<EOF 5286 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure" 5287 #line 5288 "configure"
5311 #include "confdefs.h" 5288 #include "confdefs.h"
5312 /* Override any gcc2 internal prototype to avoid an error. */ 5289 /* Override any gcc2 internal prototype to avoid an error. */
5313 /* We use char because int might match the return type of a gcc2 5290 /* We use char because int might match the return type of a gcc2
5314 builtin and then its argument prototype would still apply. */ 5291 builtin and then its argument prototype would still apply. */
5315 char gethostbyname(); 5292 char gethostbyname();
5316 5293
5317 int main() { 5294 int main() {
5318 gethostbyname() 5295 gethostbyname()
5319 ; return 0; } 5296 ; return 0; }
5320 EOF 5297 EOF
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5322 rm -rf conftest* 5299 rm -rf conftest*
5323 eval "ac_cv_lib_$ac_lib_var=yes" 5300 eval "ac_cv_lib_$ac_lib_var=yes"
5324 else 5301 else
5325 echo "configure: failed program was:" >&5 5302 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5 5303 cat conftest.$ac_ext >&5
5346 # on later versions), says simon@lia.di.epfl.ch: it contains 5323 # on later versions), says simon@lia.di.epfl.ch: it contains
5347 # gethostby* variants that don't use the nameserver (or something). 5324 # gethostby* variants that don't use the nameserver (or something).
5348 # -lsocket must be given before -lnsl if both are needed. 5325 # -lsocket must be given before -lnsl if both are needed.
5349 # We assume that if connect needs -lnsl, so does gethostbyname. 5326 # We assume that if connect needs -lnsl, so does gethostbyname.
5350 echo $ac_n "checking for connect""... $ac_c" 1>&6 5327 echo $ac_n "checking for connect""... $ac_c" 1>&6
5351 echo "configure:5352: checking for connect" >&5 5328 echo "configure:5329: checking for connect" >&5
5352 5329
5353 cat > conftest.$ac_ext <<EOF 5330 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure" 5331 #line 5332 "configure"
5355 #include "confdefs.h" 5332 #include "confdefs.h"
5356 /* System header to define __stub macros and hopefully few prototypes, 5333 /* System header to define __stub macros and hopefully few prototypes,
5357 which can conflict with char connect(); below. */ 5334 which can conflict with char connect(); below. */
5358 #include <assert.h> 5335 #include <assert.h>
5359 /* Override any gcc2 internal prototype to avoid an error. */ 5336 /* Override any gcc2 internal prototype to avoid an error. */
5372 connect(); 5349 connect();
5373 #endif 5350 #endif
5374 5351
5375 ; return 0; } 5352 ; return 0; }
5376 EOF 5353 EOF
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 rm -rf conftest* 5355 rm -rf conftest*
5379 eval "ac_cv_func_connect=yes" 5356 eval "ac_cv_func_connect=yes"
5380 else 5357 else
5381 echo "configure: failed program was:" >&5 5358 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5 5359 cat conftest.$ac_ext >&5
5395 if test $ac_cv_func_connect = no; then 5372 if test $ac_cv_func_connect = no; then
5396 5373
5397 xe_msg_checking="for connect in -lsocket" 5374 xe_msg_checking="for connect in -lsocket"
5398 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5375 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5399 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5376 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5400 echo "configure:5401: checking "$xe_msg_checking"" >&5 5377 echo "configure:5378: checking "$xe_msg_checking"" >&5
5401 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5378 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5402 5379
5403 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5380 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5404 cat > conftest.$ac_ext <<EOF 5381 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure" 5382 #line 5383 "configure"
5406 #include "confdefs.h" 5383 #include "confdefs.h"
5407 /* Override any gcc2 internal prototype to avoid an error. */ 5384 /* Override any gcc2 internal prototype to avoid an error. */
5408 /* We use char because int might match the return type of a gcc2 5385 /* We use char because int might match the return type of a gcc2
5409 builtin and then its argument prototype would still apply. */ 5386 builtin and then its argument prototype would still apply. */
5410 char connect(); 5387 char connect();
5411 5388
5412 int main() { 5389 int main() {
5413 connect() 5390 connect()
5414 ; return 0; } 5391 ; return 0; }
5415 EOF 5392 EOF
5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5393 if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417 rm -rf conftest* 5394 rm -rf conftest*
5418 eval "ac_cv_lib_$ac_lib_var=yes" 5395 eval "ac_cv_lib_$ac_lib_var=yes"
5419 else 5396 else
5420 echo "configure: failed program was:" >&5 5397 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5 5398 cat conftest.$ac_ext >&5
5435 5412
5436 fi 5413 fi
5437 5414
5438 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5415 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5439 echo $ac_n "checking for remove""... $ac_c" 1>&6 5416 echo $ac_n "checking for remove""... $ac_c" 1>&6
5440 echo "configure:5441: checking for remove" >&5 5417 echo "configure:5418: checking for remove" >&5
5441 5418
5442 cat > conftest.$ac_ext <<EOF 5419 cat > conftest.$ac_ext <<EOF
5443 #line 5444 "configure" 5420 #line 5421 "configure"
5444 #include "confdefs.h" 5421 #include "confdefs.h"
5445 /* System header to define __stub macros and hopefully few prototypes, 5422 /* System header to define __stub macros and hopefully few prototypes,
5446 which can conflict with char remove(); below. */ 5423 which can conflict with char remove(); below. */
5447 #include <assert.h> 5424 #include <assert.h>
5448 /* Override any gcc2 internal prototype to avoid an error. */ 5425 /* Override any gcc2 internal prototype to avoid an error. */
5461 remove(); 5438 remove();
5462 #endif 5439 #endif
5463 5440
5464 ; return 0; } 5441 ; return 0; }
5465 EOF 5442 EOF
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5467 rm -rf conftest* 5444 rm -rf conftest*
5468 eval "ac_cv_func_remove=yes" 5445 eval "ac_cv_func_remove=yes"
5469 else 5446 else
5470 echo "configure: failed program was:" >&5 5447 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5 5448 cat conftest.$ac_ext >&5
5482 fi 5459 fi
5483 5460
5484 if test $ac_cv_func_remove = no; then 5461 if test $ac_cv_func_remove = no; then
5485 5462
5486 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5463 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5487 echo "configure:5488: checking for remove in -lposix" >&5 5464 echo "configure:5465: checking for remove in -lposix" >&5
5488 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5465 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5489 5466
5490 xe_check_libs=" -lposix " 5467 xe_check_libs=" -lposix "
5491 cat > conftest.$ac_ext <<EOF 5468 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure" 5469 #line 5470 "configure"
5493 #include "confdefs.h" 5470 #include "confdefs.h"
5494 /* Override any gcc2 internal prototype to avoid an error. */ 5471 /* Override any gcc2 internal prototype to avoid an error. */
5495 /* We use char because int might match the return type of a gcc2 5472 /* We use char because int might match the return type of a gcc2
5496 builtin and then its argument prototype would still apply. */ 5473 builtin and then its argument prototype would still apply. */
5497 char remove(); 5474 char remove();
5498 5475
5499 int main() { 5476 int main() {
5500 remove() 5477 remove()
5501 ; return 0; } 5478 ; return 0; }
5502 EOF 5479 EOF
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5480 if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5504 rm -rf conftest* 5481 rm -rf conftest*
5505 eval "ac_cv_lib_$ac_lib_var=yes" 5482 eval "ac_cv_lib_$ac_lib_var=yes"
5506 else 5483 else
5507 echo "configure: failed program was:" >&5 5484 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5 5485 cat conftest.$ac_ext >&5
5522 5499
5523 fi 5500 fi
5524 5501
5525 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5502 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5526 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5503 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5527 echo "configure:5528: checking for shmat" >&5 5504 echo "configure:5505: checking for shmat" >&5
5528 5505
5529 cat > conftest.$ac_ext <<EOF 5506 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure" 5507 #line 5508 "configure"
5531 #include "confdefs.h" 5508 #include "confdefs.h"
5532 /* System header to define __stub macros and hopefully few prototypes, 5509 /* System header to define __stub macros and hopefully few prototypes,
5533 which can conflict with char shmat(); below. */ 5510 which can conflict with char shmat(); below. */
5534 #include <assert.h> 5511 #include <assert.h>
5535 /* Override any gcc2 internal prototype to avoid an error. */ 5512 /* Override any gcc2 internal prototype to avoid an error. */
5548 shmat(); 5525 shmat();
5549 #endif 5526 #endif
5550 5527
5551 ; return 0; } 5528 ; return 0; }
5552 EOF 5529 EOF
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5554 rm -rf conftest* 5531 rm -rf conftest*
5555 eval "ac_cv_func_shmat=yes" 5532 eval "ac_cv_func_shmat=yes"
5556 else 5533 else
5557 echo "configure: failed program was:" >&5 5534 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5 5535 cat conftest.$ac_ext >&5
5569 fi 5546 fi
5570 5547
5571 if test $ac_cv_func_shmat = no; then 5548 if test $ac_cv_func_shmat = no; then
5572 5549
5573 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5550 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5574 echo "configure:5575: checking for shmat in -lipc" >&5 5551 echo "configure:5552: checking for shmat in -lipc" >&5
5575 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5552 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5576 5553
5577 xe_check_libs=" -lipc " 5554 xe_check_libs=" -lipc "
5578 cat > conftest.$ac_ext <<EOF 5555 cat > conftest.$ac_ext <<EOF
5579 #line 5580 "configure" 5556 #line 5557 "configure"
5580 #include "confdefs.h" 5557 #include "confdefs.h"
5581 /* Override any gcc2 internal prototype to avoid an error. */ 5558 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2 5559 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */ 5560 builtin and then its argument prototype would still apply. */
5584 char shmat(); 5561 char shmat();
5585 5562
5586 int main() { 5563 int main() {
5587 shmat() 5564 shmat()
5588 ; return 0; } 5565 ; return 0; }
5589 EOF 5566 EOF
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5567 if { (eval echo configure:5568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5591 rm -rf conftest* 5568 rm -rf conftest*
5592 eval "ac_cv_lib_$ac_lib_var=yes" 5569 eval "ac_cv_lib_$ac_lib_var=yes"
5593 else 5570 else
5594 echo "configure: failed program was:" >&5 5571 echo "configure: failed program was:" >&5
5595 cat conftest.$ac_ext >&5 5572 cat conftest.$ac_ext >&5
5621 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5598 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5622 5599
5623 xe_msg_checking="for IceConnectionNumber in -lICE" 5600 xe_msg_checking="for IceConnectionNumber in -lICE"
5624 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5601 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5625 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5602 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5626 echo "configure:5627: checking "$xe_msg_checking"" >&5 5603 echo "configure:5604: checking "$xe_msg_checking"" >&5
5627 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5604 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5628 5605
5629 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5606 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5630 cat > conftest.$ac_ext <<EOF 5607 cat > conftest.$ac_ext <<EOF
5631 #line 5632 "configure" 5608 #line 5609 "configure"
5632 #include "confdefs.h" 5609 #include "confdefs.h"
5633 /* Override any gcc2 internal prototype to avoid an error. */ 5610 /* Override any gcc2 internal prototype to avoid an error. */
5634 /* We use char because int might match the return type of a gcc2 5611 /* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */ 5612 builtin and then its argument prototype would still apply. */
5636 char IceConnectionNumber(); 5613 char IceConnectionNumber();
5637 5614
5638 int main() { 5615 int main() {
5639 IceConnectionNumber() 5616 IceConnectionNumber()
5640 ; return 0; } 5617 ; return 0; }
5641 EOF 5618 EOF
5642 if { (eval echo configure:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5643 rm -rf conftest* 5620 rm -rf conftest*
5644 eval "ac_cv_lib_$ac_lib_var=yes" 5621 eval "ac_cv_lib_$ac_lib_var=yes"
5645 else 5622 else
5646 echo "configure: failed program was:" >&5 5623 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5 5624 cat conftest.$ac_ext >&5
5806 EOF 5783 EOF
5807 } 5784 }
5808 5785
5809 5786
5810 echo "checking for X defines extracted by xmkmf" 1>&6 5787 echo "checking for X defines extracted by xmkmf" 1>&6
5811 echo "configure:5812: checking for X defines extracted by xmkmf" >&5 5788 echo "configure:5789: checking for X defines extracted by xmkmf" >&5
5812 rm -fr conftestdir 5789 rm -fr conftestdir
5813 if mkdir conftestdir; then 5790 if mkdir conftestdir; then
5814 cd conftestdir 5791 cd conftestdir
5815 cat > Imakefile <<'EOF' 5792 cat > Imakefile <<'EOF'
5816 xetest: 5793 xetest:
5838 done 5815 done
5839 fi 5816 fi
5840 5817
5841 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5818 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5842 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5819 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5843 echo "configure:5844: checking for X11/Intrinsic.h" >&5 5820 echo "configure:5821: checking for X11/Intrinsic.h" >&5
5844 5821
5845 cat > conftest.$ac_ext <<EOF 5822 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure" 5823 #line 5824 "configure"
5847 #include "confdefs.h" 5824 #include "confdefs.h"
5848 #include <X11/Intrinsic.h> 5825 #include <X11/Intrinsic.h>
5849 EOF 5826 EOF
5850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5851 { (eval echo configure:5852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5828 { (eval echo configure:5829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5853 if test -z "$ac_err"; then 5830 if test -z "$ac_err"; then
5854 rm -rf conftest* 5831 rm -rf conftest*
5855 eval "ac_cv_header_$ac_safe=yes" 5832 eval "ac_cv_header_$ac_safe=yes"
5856 else 5833 else
5870 fi 5847 fi
5871 5848
5872 5849
5873 5850
5874 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5851 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5875 echo "configure:5876: checking for XOpenDisplay in -lX11" >&5 5852 echo "configure:5853: checking for XOpenDisplay in -lX11" >&5
5876 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5853 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5877 5854
5878 xe_check_libs=" -lX11 " 5855 xe_check_libs=" -lX11 "
5879 cat > conftest.$ac_ext <<EOF 5856 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure" 5857 #line 5858 "configure"
5881 #include "confdefs.h" 5858 #include "confdefs.h"
5882 /* Override any gcc2 internal prototype to avoid an error. */ 5859 /* Override any gcc2 internal prototype to avoid an error. */
5883 /* We use char because int might match the return type of a gcc2 5860 /* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */ 5861 builtin and then its argument prototype would still apply. */
5885 char XOpenDisplay(); 5862 char XOpenDisplay();
5886 5863
5887 int main() { 5864 int main() {
5888 XOpenDisplay() 5865 XOpenDisplay()
5889 ; return 0; } 5866 ; return 0; }
5890 EOF 5867 EOF
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 rm -rf conftest* 5869 rm -rf conftest*
5893 eval "ac_cv_lib_$ac_lib_var=yes" 5870 eval "ac_cv_lib_$ac_lib_var=yes"
5894 else 5871 else
5895 echo "configure: failed program was:" >&5 5872 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5 5873 cat conftest.$ac_ext >&5
5911 if test "$have_lib_x11" != "yes"; then 5888 if test "$have_lib_x11" != "yes"; then
5912 5889
5913 xe_msg_checking="for XGetFontProperty in -lX11" 5890 xe_msg_checking="for XGetFontProperty in -lX11"
5914 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5891 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5915 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5892 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5916 echo "configure:5917: checking "$xe_msg_checking"" >&5 5893 echo "configure:5894: checking "$xe_msg_checking"" >&5
5917 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5894 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5918 5895
5919 xe_check_libs=" -lX11 -b i486-linuxaout" 5896 xe_check_libs=" -lX11 -b i486-linuxaout"
5920 cat > conftest.$ac_ext <<EOF 5897 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure" 5898 #line 5899 "configure"
5922 #include "confdefs.h" 5899 #include "confdefs.h"
5923 /* Override any gcc2 internal prototype to avoid an error. */ 5900 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2 5901 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */ 5902 builtin and then its argument prototype would still apply. */
5926 char XGetFontProperty(); 5903 char XGetFontProperty();
5927 5904
5928 int main() { 5905 int main() {
5929 XGetFontProperty() 5906 XGetFontProperty()
5930 ; return 0; } 5907 ; return 0; }
5931 EOF 5908 EOF
5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5933 rm -rf conftest* 5910 rm -rf conftest*
5934 eval "ac_cv_lib_$ac_lib_var=yes" 5911 eval "ac_cv_lib_$ac_lib_var=yes"
5935 else 5912 else
5936 echo "configure: failed program was:" >&5 5913 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5 5914 cat conftest.$ac_ext >&5
5954 libs_x="-lX11" 5931 libs_x="-lX11"
5955 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5932 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5956 5933
5957 5934
5958 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5935 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5959 echo "configure:5960: checking for XShapeSelectInput in -lXext" >&5 5936 echo "configure:5937: checking for XShapeSelectInput in -lXext" >&5
5960 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5937 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5961 5938
5962 xe_check_libs=" -lXext " 5939 xe_check_libs=" -lXext "
5963 cat > conftest.$ac_ext <<EOF 5940 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure" 5941 #line 5942 "configure"
5965 #include "confdefs.h" 5942 #include "confdefs.h"
5966 /* Override any gcc2 internal prototype to avoid an error. */ 5943 /* Override any gcc2 internal prototype to avoid an error. */
5967 /* We use char because int might match the return type of a gcc2 5944 /* We use char because int might match the return type of a gcc2
5968 builtin and then its argument prototype would still apply. */ 5945 builtin and then its argument prototype would still apply. */
5969 char XShapeSelectInput(); 5946 char XShapeSelectInput();
5970 5947
5971 int main() { 5948 int main() {
5972 XShapeSelectInput() 5949 XShapeSelectInput()
5973 ; return 0; } 5950 ; return 0; }
5974 EOF 5951 EOF
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5976 rm -rf conftest* 5953 rm -rf conftest*
5977 eval "ac_cv_lib_$ac_lib_var=yes" 5954 eval "ac_cv_lib_$ac_lib_var=yes"
5978 else 5955 else
5979 echo "configure: failed program was:" >&5 5956 echo "configure: failed program was:" >&5
5980 cat conftest.$ac_ext >&5 5957 cat conftest.$ac_ext >&5
5993 5970
5994 5971
5995 5972
5996 5973
5997 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5974 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5998 echo "configure:5999: checking for XtOpenDisplay in -lXt" >&5 5975 echo "configure:5976: checking for XtOpenDisplay in -lXt" >&5
5999 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5976 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6000 5977
6001 xe_check_libs=" -lXt " 5978 xe_check_libs=" -lXt "
6002 cat > conftest.$ac_ext <<EOF 5979 cat > conftest.$ac_ext <<EOF
6003 #line 6004 "configure" 5980 #line 5981 "configure"
6004 #include "confdefs.h" 5981 #include "confdefs.h"
6005 /* Override any gcc2 internal prototype to avoid an error. */ 5982 /* Override any gcc2 internal prototype to avoid an error. */
6006 /* We use char because int might match the return type of a gcc2 5983 /* We use char because int might match the return type of a gcc2
6007 builtin and then its argument prototype would still apply. */ 5984 builtin and then its argument prototype would still apply. */
6008 char XtOpenDisplay(); 5985 char XtOpenDisplay();
6009 5986
6010 int main() { 5987 int main() {
6011 XtOpenDisplay() 5988 XtOpenDisplay()
6012 ; return 0; } 5989 ; return 0; }
6013 EOF 5990 EOF
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6015 rm -rf conftest* 5992 rm -rf conftest*
6016 eval "ac_cv_lib_$ac_lib_var=yes" 5993 eval "ac_cv_lib_$ac_lib_var=yes"
6017 else 5994 else
6018 echo "configure: failed program was:" >&5 5995 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5 5996 cat conftest.$ac_ext >&5
6032 fi 6009 fi
6033 6010
6034 6011
6035 6012
6036 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6013 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6037 echo "configure:6038: checking the version of X11 being used" >&5 6014 echo "configure:6015: checking the version of X11 being used" >&5
6038 cat > conftest.$ac_ext <<EOF 6015 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure" 6016 #line 6017 "configure"
6040 #include "confdefs.h" 6017 #include "confdefs.h"
6041 #include <X11/Intrinsic.h> 6018 #include <X11/Intrinsic.h>
6042 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6019 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6043 EOF 6020 EOF
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6021 if { (eval echo configure:6022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6045 then 6022 then
6046 ./conftest foobar; x11_release=$? 6023 ./conftest foobar; x11_release=$?
6047 else 6024 else
6048 conftest_rc="$?" 6025 conftest_rc="$?"
6049 echo "configure: failed program was:" >&5 6026 echo "configure: failed program was:" >&5
6063 6040
6064 6041
6065 for ac_func in XConvertCase 6042 for ac_func in XConvertCase
6066 do 6043 do
6067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6068 echo "configure:6069: checking for $ac_func" >&5 6045 echo "configure:6046: checking for $ac_func" >&5
6069 6046
6070 cat > conftest.$ac_ext <<EOF 6047 cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure" 6048 #line 6049 "configure"
6072 #include "confdefs.h" 6049 #include "confdefs.h"
6073 /* System header to define __stub macros and hopefully few prototypes, 6050 /* System header to define __stub macros and hopefully few prototypes,
6074 which can conflict with char $ac_func(); below. */ 6051 which can conflict with char $ac_func(); below. */
6075 #include <assert.h> 6052 #include <assert.h>
6076 /* Override any gcc2 internal prototype to avoid an error. */ 6053 /* Override any gcc2 internal prototype to avoid an error. */
6089 $ac_func(); 6066 $ac_func();
6090 #endif 6067 #endif
6091 6068
6092 ; return 0; } 6069 ; return 0; }
6093 EOF 6070 EOF
6094 if { (eval echo configure:6095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 rm -rf conftest* 6072 rm -rf conftest*
6096 eval "ac_cv_func_$ac_func=yes" 6073 eval "ac_cv_func_$ac_func=yes"
6097 else 6074 else
6098 echo "configure: failed program was:" >&5 6075 echo "configure: failed program was:" >&5
6099 cat conftest.$ac_ext >&5 6076 cat conftest.$ac_ext >&5
6121 6098
6122 for ac_hdr in X11/Xlocale.h 6099 for ac_hdr in X11/Xlocale.h
6123 do 6100 do
6124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6126 echo "configure:6127: checking for $ac_hdr" >&5 6103 echo "configure:6104: checking for $ac_hdr" >&5
6127 6104
6128 cat > conftest.$ac_ext <<EOF 6105 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure" 6106 #line 6107 "configure"
6130 #include "confdefs.h" 6107 #include "confdefs.h"
6131 #include <$ac_hdr> 6108 #include <$ac_hdr>
6132 EOF 6109 EOF
6133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6134 { (eval echo configure:6135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6111 { (eval echo configure:6112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6136 if test -z "$ac_err"; then 6113 if test -z "$ac_err"; then
6137 rm -rf conftest* 6114 rm -rf conftest*
6138 eval "ac_cv_header_$ac_safe=yes" 6115 eval "ac_cv_header_$ac_safe=yes"
6139 else 6116 else
6160 fi 6137 fi
6161 done 6138 done
6162 6139
6163 6140
6164 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 6141 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
6165 echo "configure:6166: checking for XFree86" >&5 6142 echo "configure:6143: checking for XFree86" >&5
6166 if test -d "/usr/X386/include" -o \ 6143 if test -d "/usr/X386/include" -o \
6167 -f "/etc/XF86Config" -o \ 6144 -f "/etc/XF86Config" -o \
6168 -f "/etc/X11/XF86Config" -o \ 6145 -f "/etc/X11/XF86Config" -o \
6169 -f "/usr/X11R6/lib/X11/XF86Config"; then 6146 -f "/usr/X11R6/lib/X11/XF86Config"; then
6170 echo "$ac_t""yes" 1>&6 6147 echo "$ac_t""yes" 1>&6
6180 echo "$ac_t""no" 1>&6 6157 echo "$ac_t""no" 1>&6
6181 fi 6158 fi
6182 6159
6183 test -z "$with_xmu" && { 6160 test -z "$with_xmu" && {
6184 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6161 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6185 echo "configure:6186: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6162 echo "configure:6163: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6186 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6163 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6187 6164
6188 xe_check_libs=" -lXmu " 6165 xe_check_libs=" -lXmu "
6189 cat > conftest.$ac_ext <<EOF 6166 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure" 6167 #line 6168 "configure"
6191 #include "confdefs.h" 6168 #include "confdefs.h"
6192 /* Override any gcc2 internal prototype to avoid an error. */ 6169 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2 6170 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */ 6171 builtin and then its argument prototype would still apply. */
6195 char XmuReadBitmapDataFromFile(); 6172 char XmuReadBitmapDataFromFile();
6196 6173
6197 int main() { 6174 int main() {
6198 XmuReadBitmapDataFromFile() 6175 XmuReadBitmapDataFromFile()
6199 ; return 0; } 6176 ; return 0; }
6200 EOF 6177 EOF
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6178 if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202 rm -rf conftest* 6179 rm -rf conftest*
6203 eval "ac_cv_lib_$ac_lib_var=yes" 6180 eval "ac_cv_lib_$ac_lib_var=yes"
6204 else 6181 else
6205 echo "configure: failed program was:" >&5 6182 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5 6183 cat conftest.$ac_ext >&5
6235 6212
6236 fi 6213 fi
6237 6214
6238 6215
6239 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 6216 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6240 echo "configure:6241: checking for main in -lXbsd" >&5 6217 echo "configure:6218: checking for main in -lXbsd" >&5
6241 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 6218 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6242 6219
6243 xe_check_libs=" -lXbsd " 6220 xe_check_libs=" -lXbsd "
6244 cat > conftest.$ac_ext <<EOF 6221 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure" 6222 #line 6223 "configure"
6246 #include "confdefs.h" 6223 #include "confdefs.h"
6247 6224
6248 int main() { 6225 int main() {
6249 main() 6226 main()
6250 ; return 0; } 6227 ; return 0; }
6251 EOF 6228 EOF
6252 if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6253 rm -rf conftest* 6230 rm -rf conftest*
6254 eval "ac_cv_lib_$ac_lib_var=yes" 6231 eval "ac_cv_lib_$ac_lib_var=yes"
6255 else 6232 else
6256 echo "configure: failed program was:" >&5 6233 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5 6234 cat conftest.$ac_ext >&5
6284 fi 6261 fi
6285 6262
6286 fi 6263 fi
6287 if test "$with_msw" != "no"; then 6264 if test "$with_msw" != "no"; then
6288 echo "checking for MS-Windows" 1>&6 6265 echo "checking for MS-Windows" 1>&6
6289 echo "configure:6290: checking for MS-Windows" >&5 6266 echo "configure:6267: checking for MS-Windows" >&5
6290 6267
6291 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6268 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6292 echo "configure:6293: checking for main in -lgdi32" >&5 6269 echo "configure:6270: checking for main in -lgdi32" >&5
6293 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6270 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6294 6271
6295 xe_check_libs=" -lgdi32 " 6272 xe_check_libs=" -lgdi32 "
6296 cat > conftest.$ac_ext <<EOF 6273 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure" 6274 #line 6275 "configure"
6298 #include "confdefs.h" 6275 #include "confdefs.h"
6299 6276
6300 int main() { 6277 int main() {
6301 main() 6278 main()
6302 ; return 0; } 6279 ; return 0; }
6303 EOF 6280 EOF
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6281 if { (eval echo configure:6282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 rm -rf conftest* 6282 rm -rf conftest*
6306 eval "ac_cv_lib_$ac_lib_var=yes" 6283 eval "ac_cv_lib_$ac_lib_var=yes"
6307 else 6284 else
6308 echo "configure: failed program was:" >&5 6285 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5 6286 cat conftest.$ac_ext >&5
6365 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6342 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6366 echo " xemacs will be linked with \"dialog-msw.o\"" 6343 echo " xemacs will be linked with \"dialog-msw.o\""
6367 fi 6344 fi
6368 fi 6345 fi
6369 cat > conftest.$ac_ext <<EOF 6346 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure" 6347 #line 6348 "configure"
6371 #include "confdefs.h" 6348 #include "confdefs.h"
6372 #include <fcntl.h> 6349 #include <fcntl.h>
6373 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6350 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6374 EOF 6351 EOF
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6376 then 6353 then
6377 { test "$extra_verbose" = "yes" && cat << \EOF 6354 { test "$extra_verbose" = "yes" && cat << \EOF
6378 Defining HAVE_MSG_SELECT 6355 Defining HAVE_MSG_SELECT
6379 EOF 6356 EOF
6380 cat >> confdefs.h <<\EOF 6357 cat >> confdefs.h <<\EOF
6445 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6422 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6446 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6423 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6447 esac 6424 esac
6448 6425
6449 echo "checking for WM_COMMAND option" 1>&6 6426 echo "checking for WM_COMMAND option" 1>&6
6450 echo "configure:6451: checking for WM_COMMAND option" >&5; 6427 echo "configure:6428: checking for WM_COMMAND option" >&5;
6451 if test "$with_wmcommand" != "no"; then 6428 if test "$with_wmcommand" != "no"; then
6452 { test "$extra_verbose" = "yes" && cat << \EOF 6429 { test "$extra_verbose" = "yes" && cat << \EOF
6453 Defining HAVE_WMCOMMAND 6430 Defining HAVE_WMCOMMAND
6454 EOF 6431 EOF
6455 cat >> confdefs.h <<\EOF 6432 cat >> confdefs.h <<\EOF
6460 fi 6437 fi
6461 6438
6462 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6439 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6463 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6440 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6464 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6441 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6465 echo "configure:6466: checking for X11/Xauth.h" >&5 6442 echo "configure:6443: checking for X11/Xauth.h" >&5
6466 6443
6467 cat > conftest.$ac_ext <<EOF 6444 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure" 6445 #line 6446 "configure"
6469 #include "confdefs.h" 6446 #include "confdefs.h"
6470 #include <X11/Xauth.h> 6447 #include <X11/Xauth.h>
6471 EOF 6448 EOF
6472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6473 { (eval echo configure:6474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6450 { (eval echo configure:6451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6475 if test -z "$ac_err"; then 6452 if test -z "$ac_err"; then
6476 rm -rf conftest* 6453 rm -rf conftest*
6477 eval "ac_cv_header_$ac_safe=yes" 6454 eval "ac_cv_header_$ac_safe=yes"
6478 else 6455 else
6491 with_xauth=no 6468 with_xauth=no
6492 fi 6469 fi
6493 } 6470 }
6494 test -z "$with_xauth" && { 6471 test -z "$with_xauth" && {
6495 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6472 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6496 echo "configure:6497: checking for XauGetAuthByAddr in -lXau" >&5 6473 echo "configure:6474: checking for XauGetAuthByAddr in -lXau" >&5
6497 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6474 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6498 6475
6499 xe_check_libs=" -lXau " 6476 xe_check_libs=" -lXau "
6500 cat > conftest.$ac_ext <<EOF 6477 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure" 6478 #line 6479 "configure"
6502 #include "confdefs.h" 6479 #include "confdefs.h"
6503 /* Override any gcc2 internal prototype to avoid an error. */ 6480 /* Override any gcc2 internal prototype to avoid an error. */
6504 /* We use char because int might match the return type of a gcc2 6481 /* We use char because int might match the return type of a gcc2
6505 builtin and then its argument prototype would still apply. */ 6482 builtin and then its argument prototype would still apply. */
6506 char XauGetAuthByAddr(); 6483 char XauGetAuthByAddr();
6507 6484
6508 int main() { 6485 int main() {
6509 XauGetAuthByAddr() 6486 XauGetAuthByAddr()
6510 ; return 0; } 6487 ; return 0; }
6511 EOF 6488 EOF
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6489 if { (eval echo configure:6490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6513 rm -rf conftest* 6490 rm -rf conftest*
6514 eval "ac_cv_lib_$ac_lib_var=yes" 6491 eval "ac_cv_lib_$ac_lib_var=yes"
6515 else 6492 else
6516 echo "configure: failed program was:" >&5 6493 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5 6494 cat conftest.$ac_ext >&5
6552 6529
6553 if test "$with_tooltalk" != "no" ; then 6530 if test "$with_tooltalk" != "no" ; then
6554 for dir in "" "Tt/" "desktop/" ; do 6531 for dir in "" "Tt/" "desktop/" ; do
6555 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6532 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6556 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6533 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6557 echo "configure:6558: checking for ${dir}tt_c.h" >&5 6534 echo "configure:6535: checking for ${dir}tt_c.h" >&5
6558 6535
6559 cat > conftest.$ac_ext <<EOF 6536 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure" 6537 #line 6538 "configure"
6561 #include "confdefs.h" 6538 #include "confdefs.h"
6562 #include <${dir}tt_c.h> 6539 #include <${dir}tt_c.h>
6563 EOF 6540 EOF
6564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6565 { (eval echo configure:6566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6542 { (eval echo configure:6543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6567 if test -z "$ac_err"; then 6544 if test -z "$ac_err"; then
6568 rm -rf conftest* 6545 rm -rf conftest*
6569 eval "ac_cv_header_$ac_safe=yes" 6546 eval "ac_cv_header_$ac_safe=yes"
6570 else 6547 else
6596 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6573 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6597 6574
6598 xe_msg_checking="for tt_message_create in -ltt" 6575 xe_msg_checking="for tt_message_create in -ltt"
6599 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6576 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6600 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6577 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6601 echo "configure:6602: checking "$xe_msg_checking"" >&5 6578 echo "configure:6579: checking "$xe_msg_checking"" >&5
6602 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6579 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6603 6580
6604 xe_check_libs=" -ltt $extra_libs" 6581 xe_check_libs=" -ltt $extra_libs"
6605 cat > conftest.$ac_ext <<EOF 6582 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure" 6583 #line 6584 "configure"
6607 #include "confdefs.h" 6584 #include "confdefs.h"
6608 /* Override any gcc2 internal prototype to avoid an error. */ 6585 /* Override any gcc2 internal prototype to avoid an error. */
6609 /* We use char because int might match the return type of a gcc2 6586 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */ 6587 builtin and then its argument prototype would still apply. */
6611 char tt_message_create(); 6588 char tt_message_create();
6612 6589
6613 int main() { 6590 int main() {
6614 tt_message_create() 6591 tt_message_create()
6615 ; return 0; } 6592 ; return 0; }
6616 EOF 6593 EOF
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6594 if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 rm -rf conftest* 6595 rm -rf conftest*
6619 eval "ac_cv_lib_$ac_lib_var=yes" 6596 eval "ac_cv_lib_$ac_lib_var=yes"
6620 else 6597 else
6621 echo "configure: failed program was:" >&5 6598 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5 6599 cat conftest.$ac_ext >&5
6669 fi 6646 fi
6670 fi 6647 fi
6671 6648
6672 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6649 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6673 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6650 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6674 echo "configure:6675: checking for Dt/Dt.h" >&5 6651 echo "configure:6652: checking for Dt/Dt.h" >&5
6675 6652
6676 cat > conftest.$ac_ext <<EOF 6653 cat > conftest.$ac_ext <<EOF
6677 #line 6678 "configure" 6654 #line 6655 "configure"
6678 #include "confdefs.h" 6655 #include "confdefs.h"
6679 #include <Dt/Dt.h> 6656 #include <Dt/Dt.h>
6680 EOF 6657 EOF
6681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6682 { (eval echo configure:6683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6659 { (eval echo configure:6660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6684 if test -z "$ac_err"; then 6661 if test -z "$ac_err"; then
6685 rm -rf conftest* 6662 rm -rf conftest*
6686 eval "ac_cv_header_$ac_safe=yes" 6663 eval "ac_cv_header_$ac_safe=yes"
6687 else 6664 else
6700 with_cde=no 6677 with_cde=no
6701 fi 6678 fi
6702 } 6679 }
6703 test -z "$with_cde" && { 6680 test -z "$with_cde" && {
6704 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6681 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6705 echo "configure:6706: checking for DtDndDragStart in -lDtSvc" >&5 6682 echo "configure:6683: checking for DtDndDragStart in -lDtSvc" >&5
6706 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6683 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6707 6684
6708 xe_check_libs=" -lDtSvc " 6685 xe_check_libs=" -lDtSvc "
6709 cat > conftest.$ac_ext <<EOF 6686 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure" 6687 #line 6688 "configure"
6711 #include "confdefs.h" 6688 #include "confdefs.h"
6712 /* Override any gcc2 internal prototype to avoid an error. */ 6689 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2 6690 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */ 6691 builtin and then its argument prototype would still apply. */
6715 char DtDndDragStart(); 6692 char DtDndDragStart();
6716 6693
6717 int main() { 6694 int main() {
6718 DtDndDragStart() 6695 DtDndDragStart()
6719 ; return 0; } 6696 ; return 0; }
6720 EOF 6697 EOF
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6722 rm -rf conftest* 6699 rm -rf conftest*
6723 eval "ac_cv_lib_$ac_lib_var=yes" 6700 eval "ac_cv_lib_$ac_lib_var=yes"
6724 else 6701 else
6725 echo "configure: failed program was:" >&5 6702 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5 6703 cat conftest.$ac_ext >&5
6785 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6762 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6786 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6763 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6787 fi 6764 fi
6788 6765
6789 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6766 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6790 echo "configure:6791: checking if drag and drop API is needed" >&5 6767 echo "configure:6768: checking if drag and drop API is needed" >&5
6791 if test "$with_dragndrop" != "no" ; then 6768 if test "$with_dragndrop" != "no" ; then
6792 if test -n "$dragndrop_proto" ; then 6769 if test -n "$dragndrop_proto" ; then
6793 with_dragndrop=yes 6770 with_dragndrop=yes
6794 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6771 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6795 { test "$extra_verbose" = "yes" && cat << \EOF 6772 { test "$extra_verbose" = "yes" && cat << \EOF
6806 echo "$ac_t""no" 1>&6 6783 echo "$ac_t""no" 1>&6
6807 fi 6784 fi
6808 fi 6785 fi
6809 6786
6810 echo "checking for LDAP" 1>&6 6787 echo "checking for LDAP" 1>&6
6811 echo "configure:6812: checking for LDAP" >&5 6788 echo "configure:6789: checking for LDAP" >&5
6812 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6789 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6813 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6790 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6814 echo "configure:6815: checking for ldap.h" >&5 6791 echo "configure:6792: checking for ldap.h" >&5
6815 6792
6816 cat > conftest.$ac_ext <<EOF 6793 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure" 6794 #line 6795 "configure"
6818 #include "confdefs.h" 6795 #include "confdefs.h"
6819 #include <ldap.h> 6796 #include <ldap.h>
6820 EOF 6797 EOF
6821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6822 { (eval echo configure:6823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6799 { (eval echo configure:6800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6824 if test -z "$ac_err"; then 6801 if test -z "$ac_err"; then
6825 rm -rf conftest* 6802 rm -rf conftest*
6826 eval "ac_cv_header_$ac_safe=yes" 6803 eval "ac_cv_header_$ac_safe=yes"
6827 else 6804 else
6840 with_ldap=no 6817 with_ldap=no
6841 fi 6818 fi
6842 } 6819 }
6843 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6820 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6844 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6821 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6845 echo "configure:6846: checking for lber.h" >&5 6822 echo "configure:6823: checking for lber.h" >&5
6846 6823
6847 cat > conftest.$ac_ext <<EOF 6824 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure" 6825 #line 6826 "configure"
6849 #include "confdefs.h" 6826 #include "confdefs.h"
6850 #include <lber.h> 6827 #include <lber.h>
6851 EOF 6828 EOF
6852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853 { (eval echo configure:6854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6830 { (eval echo configure:6831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6855 if test -z "$ac_err"; then 6832 if test -z "$ac_err"; then
6856 rm -rf conftest* 6833 rm -rf conftest*
6857 eval "ac_cv_header_$ac_safe=yes" 6834 eval "ac_cv_header_$ac_safe=yes"
6858 else 6835 else
6872 fi 6849 fi
6873 } 6850 }
6874 if test "$with_ldap" != "no"; then 6851 if test "$with_ldap" != "no"; then
6875 6852
6876 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 6853 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6877 echo "configure:6878: checking for ldap_search in -lldap" >&5 6854 echo "configure:6855: checking for ldap_search in -lldap" >&5
6878 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 6855 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6879 6856
6880 xe_check_libs=" -lldap " 6857 xe_check_libs=" -lldap "
6881 cat > conftest.$ac_ext <<EOF 6858 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure" 6859 #line 6860 "configure"
6883 #include "confdefs.h" 6860 #include "confdefs.h"
6884 /* Override any gcc2 internal prototype to avoid an error. */ 6861 /* Override any gcc2 internal prototype to avoid an error. */
6885 /* We use char because int might match the return type of a gcc2 6862 /* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */ 6863 builtin and then its argument prototype would still apply. */
6887 char ldap_search(); 6864 char ldap_search();
6888 6865
6889 int main() { 6866 int main() {
6890 ldap_search() 6867 ldap_search()
6891 ; return 0; } 6868 ; return 0; }
6892 EOF 6869 EOF
6893 if { (eval echo configure:6894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6870 if { (eval echo configure:6871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6894 rm -rf conftest* 6871 rm -rf conftest*
6895 eval "ac_cv_lib_$ac_lib_var=yes" 6872 eval "ac_cv_lib_$ac_lib_var=yes"
6896 else 6873 else
6897 echo "configure: failed program was:" >&5 6874 echo "configure: failed program was:" >&5
6898 cat conftest.$ac_ext >&5 6875 cat conftest.$ac_ext >&5
6913 6890
6914 test "$with_ldap_nolber" = "no" && { 6891 test "$with_ldap_nolber" = "no" && {
6915 xe_msg_checking="for ldap_open in -lldap" 6892 xe_msg_checking="for ldap_open in -lldap"
6916 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6893 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6917 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6894 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6918 echo "configure:6919: checking "$xe_msg_checking"" >&5 6895 echo "configure:6896: checking "$xe_msg_checking"" >&5
6919 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6896 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6920 6897
6921 xe_check_libs=" -lldap -llber" 6898 xe_check_libs=" -lldap -llber"
6922 cat > conftest.$ac_ext <<EOF 6899 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure" 6900 #line 6901 "configure"
6924 #include "confdefs.h" 6901 #include "confdefs.h"
6925 /* Override any gcc2 internal prototype to avoid an error. */ 6902 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2 6903 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */ 6904 builtin and then its argument prototype would still apply. */
6928 char ldap_open(); 6905 char ldap_open();
6929 6906
6930 int main() { 6907 int main() {
6931 ldap_open() 6908 ldap_open()
6932 ; return 0; } 6909 ; return 0; }
6933 EOF 6910 EOF
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6935 rm -rf conftest* 6912 rm -rf conftest*
6936 eval "ac_cv_lib_$ac_lib_var=yes" 6913 eval "ac_cv_lib_$ac_lib_var=yes"
6937 else 6914 else
6938 echo "configure: failed program was:" >&5 6915 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5 6916 cat conftest.$ac_ext >&5
6954 } 6931 }
6955 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 6932 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6956 xe_msg_checking="for ldap_open in -lldap" 6933 xe_msg_checking="for ldap_open in -lldap"
6957 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 6934 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6958 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6935 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6959 echo "configure:6960: checking "$xe_msg_checking"" >&5 6936 echo "configure:6937: checking "$xe_msg_checking"" >&5
6960 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6937 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6961 6938
6962 xe_check_libs=" -lldap -llber -lkrb" 6939 xe_check_libs=" -lldap -llber -lkrb"
6963 cat > conftest.$ac_ext <<EOF 6940 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure" 6941 #line 6942 "configure"
6965 #include "confdefs.h" 6942 #include "confdefs.h"
6966 /* Override any gcc2 internal prototype to avoid an error. */ 6943 /* Override any gcc2 internal prototype to avoid an error. */
6967 /* We use char because int might match the return type of a gcc2 6944 /* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */ 6945 builtin and then its argument prototype would still apply. */
6969 char ldap_open(); 6946 char ldap_open();
6970 6947
6971 int main() { 6948 int main() {
6972 ldap_open() 6949 ldap_open()
6973 ; return 0; } 6950 ; return 0; }
6974 EOF 6951 EOF
6975 if { (eval echo configure:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6976 rm -rf conftest* 6953 rm -rf conftest*
6977 eval "ac_cv_lib_$ac_lib_var=yes" 6954 eval "ac_cv_lib_$ac_lib_var=yes"
6978 else 6955 else
6979 echo "configure: failed program was:" >&5 6956 echo "configure: failed program was:" >&5
6980 cat conftest.$ac_ext >&5 6957 cat conftest.$ac_ext >&5
6995 } 6972 }
6996 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 6973 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6997 xe_msg_checking="for ldap_open in -lldap" 6974 xe_msg_checking="for ldap_open in -lldap"
6998 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 6975 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6999 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6976 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7000 echo "configure:7001: checking "$xe_msg_checking"" >&5 6977 echo "configure:6978: checking "$xe_msg_checking"" >&5
7001 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6978 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7002 6979
7003 xe_check_libs=" -lldap -llber -lkrb -ldes" 6980 xe_check_libs=" -lldap -llber -lkrb -ldes"
7004 cat > conftest.$ac_ext <<EOF 6981 cat > conftest.$ac_ext <<EOF
7005 #line 7006 "configure" 6982 #line 6983 "configure"
7006 #include "confdefs.h" 6983 #include "confdefs.h"
7007 /* Override any gcc2 internal prototype to avoid an error. */ 6984 /* Override any gcc2 internal prototype to avoid an error. */
7008 /* We use char because int might match the return type of a gcc2 6985 /* We use char because int might match the return type of a gcc2
7009 builtin and then its argument prototype would still apply. */ 6986 builtin and then its argument prototype would still apply. */
7010 char ldap_open(); 6987 char ldap_open();
7011 6988
7012 int main() { 6989 int main() {
7013 ldap_open() 6990 ldap_open()
7014 ; return 0; } 6991 ; return 0; }
7015 EOF 6992 EOF
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6993 if { (eval echo configure:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7017 rm -rf conftest* 6994 rm -rf conftest*
7018 eval "ac_cv_lib_$ac_lib_var=yes" 6995 eval "ac_cv_lib_$ac_lib_var=yes"
7019 else 6996 else
7020 echo "configure: failed program was:" >&5 6997 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5 6998 cat conftest.$ac_ext >&5
7062 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 7039 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7063 fi 7040 fi
7064 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 7041 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7065 do 7042 do
7066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7067 echo "configure:7068: checking for $ac_func" >&5 7044 echo "configure:7045: checking for $ac_func" >&5
7068 7045
7069 cat > conftest.$ac_ext <<EOF 7046 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure" 7047 #line 7048 "configure"
7071 #include "confdefs.h" 7048 #include "confdefs.h"
7072 /* System header to define __stub macros and hopefully few prototypes, 7049 /* System header to define __stub macros and hopefully few prototypes,
7073 which can conflict with char $ac_func(); below. */ 7050 which can conflict with char $ac_func(); below. */
7074 #include <assert.h> 7051 #include <assert.h>
7075 /* Override any gcc2 internal prototype to avoid an error. */ 7052 /* Override any gcc2 internal prototype to avoid an error. */
7088 $ac_func(); 7065 $ac_func();
7089 #endif 7066 #endif
7090 7067
7091 ; return 0; } 7068 ; return 0; }
7092 EOF 7069 EOF
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7070 if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 rm -rf conftest* 7071 rm -rf conftest*
7095 eval "ac_cv_func_$ac_func=yes" 7072 eval "ac_cv_func_$ac_func=yes"
7096 else 7073 else
7097 echo "configure: failed program was:" >&5 7074 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5 7075 cat conftest.$ac_ext >&5
7120 fi 7097 fi
7121 7098
7122 7099
7123 if test "$window_system" != "none"; then 7100 if test "$window_system" != "none"; then
7124 echo "checking for graphics libraries" 1>&6 7101 echo "checking for graphics libraries" 1>&6
7125 echo "configure:7126: checking for graphics libraries" >&5 7102 echo "configure:7103: checking for graphics libraries" >&5
7126 7103
7127 xpm_problem="" 7104 xpm_problem=""
7128 if test -z "$with_xpm"; then 7105 if test -z "$with_xpm"; then
7129 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 7106 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7130 echo "configure:7131: checking for Xpm - no older than 3.4f" >&5 7107 echo "configure:7108: checking for Xpm - no older than 3.4f" >&5
7131 xe_check_libs=-lXpm 7108 xe_check_libs=-lXpm
7132 cat > conftest.$ac_ext <<EOF 7109 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure" 7110 #line 7111 "configure"
7134 #include "confdefs.h" 7111 #include "confdefs.h"
7135 #define XPM_NUMBERS 7112 #define XPM_NUMBERS
7136 #include <X11/xpm.h> 7113 #include <X11/xpm.h>
7137 int main(int c, char **v) { 7114 int main(int c, char **v) {
7138 return c == 1 ? 0 : 7115 return c == 1 ? 0 :
7139 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 7116 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7140 XpmIncludeVersion < 30406 ? 2 : 0 ;} 7117 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7141 EOF 7118 EOF
7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7119 if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7143 then 7120 then
7144 ./conftest dummy_arg; xpm_status=$?; 7121 ./conftest dummy_arg; xpm_status=$?;
7145 if test "$xpm_status" = "0"; then 7122 if test "$xpm_status" = "0"; then
7146 with_xpm=yes; 7123 with_xpm=yes;
7147 else 7124 else
7179 EOF 7156 EOF
7180 } 7157 }
7181 7158
7182 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 7159 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7183 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 7160 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7184 echo "configure:7185: checking for \"FOR_MSW\" xpm" >&5 7161 echo "configure:7162: checking for \"FOR_MSW\" xpm" >&5
7185 xe_check_libs=-lXpm 7162 xe_check_libs=-lXpm
7186 cat > conftest.$ac_ext <<EOF 7163 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure" 7164 #line 7165 "configure"
7188 #include "confdefs.h" 7165 #include "confdefs.h"
7189 7166
7190 int main() { 7167 int main() {
7191 XpmCreatePixmapFromData() 7168 XpmCreatePixmapFromData()
7192 ; return 0; } 7169 ; return 0; }
7193 EOF 7170 EOF
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7195 rm -rf conftest* 7172 rm -rf conftest*
7196 xpm_for_msw=no 7173 xpm_for_msw=no
7197 else 7174 else
7198 echo "configure: failed program was:" >&5 7175 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5 7176 cat conftest.$ac_ext >&5
7215 fi 7192 fi
7216 fi 7193 fi
7217 7194
7218 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7195 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7219 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7196 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7220 echo "configure:7221: checking for compface.h" >&5 7197 echo "configure:7198: checking for compface.h" >&5
7221 7198
7222 cat > conftest.$ac_ext <<EOF 7199 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure" 7200 #line 7201 "configure"
7224 #include "confdefs.h" 7201 #include "confdefs.h"
7225 #include <compface.h> 7202 #include <compface.h>
7226 EOF 7203 EOF
7227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7228 { (eval echo configure:7229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7205 { (eval echo configure:7206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7230 if test -z "$ac_err"; then 7207 if test -z "$ac_err"; then
7231 rm -rf conftest* 7208 rm -rf conftest*
7232 eval "ac_cv_header_$ac_safe=yes" 7209 eval "ac_cv_header_$ac_safe=yes"
7233 else 7210 else
7246 with_xface=no 7223 with_xface=no
7247 fi 7224 fi
7248 } 7225 }
7249 test -z "$with_xface" && { 7226 test -z "$with_xface" && {
7250 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7227 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7251 echo "configure:7252: checking for UnGenFace in -lcompface" >&5 7228 echo "configure:7229: checking for UnGenFace in -lcompface" >&5
7252 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7229 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7253 7230
7254 xe_check_libs=" -lcompface " 7231 xe_check_libs=" -lcompface "
7255 cat > conftest.$ac_ext <<EOF 7232 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure" 7233 #line 7234 "configure"
7257 #include "confdefs.h" 7234 #include "confdefs.h"
7258 /* Override any gcc2 internal prototype to avoid an error. */ 7235 /* Override any gcc2 internal prototype to avoid an error. */
7259 /* We use char because int might match the return type of a gcc2 7236 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */ 7237 builtin and then its argument prototype would still apply. */
7261 char UnGenFace(); 7238 char UnGenFace();
7262 7239
7263 int main() { 7240 int main() {
7264 UnGenFace() 7241 UnGenFace()
7265 ; return 0; } 7242 ; return 0; }
7266 EOF 7243 EOF
7267 if { (eval echo configure:7268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7244 if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7268 rm -rf conftest* 7245 rm -rf conftest*
7269 eval "ac_cv_lib_$ac_lib_var=yes" 7246 eval "ac_cv_lib_$ac_lib_var=yes"
7270 else 7247 else
7271 echo "configure: failed program was:" >&5 7248 echo "configure: failed program was:" >&5
7272 cat conftest.$ac_ext >&5 7249 cat conftest.$ac_ext >&5
7314 fi 7291 fi
7315 7292
7316 if test "$with_png $with_tiff" != "no no"; then 7293 if test "$with_png $with_tiff" != "no no"; then
7317 7294
7318 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 7295 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7319 echo "configure:7320: checking for inflate in -lc" >&5 7296 echo "configure:7297: checking for inflate in -lc" >&5
7320 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 7297 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7321 7298
7322 xe_check_libs=" -lc " 7299 xe_check_libs=" -lc "
7323 cat > conftest.$ac_ext <<EOF 7300 cat > conftest.$ac_ext <<EOF
7324 #line 7325 "configure" 7301 #line 7302 "configure"
7325 #include "confdefs.h" 7302 #include "confdefs.h"
7326 /* Override any gcc2 internal prototype to avoid an error. */ 7303 /* Override any gcc2 internal prototype to avoid an error. */
7327 /* We use char because int might match the return type of a gcc2 7304 /* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */ 7305 builtin and then its argument prototype would still apply. */
7329 char inflate(); 7306 char inflate();
7330 7307
7331 int main() { 7308 int main() {
7332 inflate() 7309 inflate()
7333 ; return 0; } 7310 ; return 0; }
7334 EOF 7311 EOF
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7336 rm -rf conftest* 7313 rm -rf conftest*
7337 eval "ac_cv_lib_$ac_lib_var=yes" 7314 eval "ac_cv_lib_$ac_lib_var=yes"
7338 else 7315 else
7339 echo "configure: failed program was:" >&5 7316 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5 7317 cat conftest.$ac_ext >&5
7349 : 7326 :
7350 else 7327 else
7351 echo "$ac_t""no" 1>&6 7328 echo "$ac_t""no" 1>&6
7352 7329
7353 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 7330 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7354 echo "configure:7355: checking for inflate in -lz" >&5 7331 echo "configure:7332: checking for inflate in -lz" >&5
7355 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 7332 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7356 7333
7357 xe_check_libs=" -lz " 7334 xe_check_libs=" -lz "
7358 cat > conftest.$ac_ext <<EOF 7335 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure" 7336 #line 7337 "configure"
7360 #include "confdefs.h" 7337 #include "confdefs.h"
7361 /* Override any gcc2 internal prototype to avoid an error. */ 7338 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2 7339 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */ 7340 builtin and then its argument prototype would still apply. */
7364 char inflate(); 7341 char inflate();
7365 7342
7366 int main() { 7343 int main() {
7367 inflate() 7344 inflate()
7368 ; return 0; } 7345 ; return 0; }
7369 EOF 7346 EOF
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7347 if { (eval echo configure:7348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7371 rm -rf conftest* 7348 rm -rf conftest*
7372 eval "ac_cv_lib_$ac_lib_var=yes" 7349 eval "ac_cv_lib_$ac_lib_var=yes"
7373 else 7350 else
7374 echo "configure: failed program was:" >&5 7351 echo "configure: failed program was:" >&5
7375 cat conftest.$ac_ext >&5 7352 cat conftest.$ac_ext >&5
7384 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 7361 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7385 else 7362 else
7386 echo "$ac_t""no" 1>&6 7363 echo "$ac_t""no" 1>&6
7387 7364
7388 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 7365 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7389 echo "configure:7390: checking for inflate in -lgz" >&5 7366 echo "configure:7367: checking for inflate in -lgz" >&5
7390 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 7367 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7391 7368
7392 xe_check_libs=" -lgz " 7369 xe_check_libs=" -lgz "
7393 cat > conftest.$ac_ext <<EOF 7370 cat > conftest.$ac_ext <<EOF
7394 #line 7395 "configure" 7371 #line 7372 "configure"
7395 #include "confdefs.h" 7372 #include "confdefs.h"
7396 /* Override any gcc2 internal prototype to avoid an error. */ 7373 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2 7374 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */ 7375 builtin and then its argument prototype would still apply. */
7399 char inflate(); 7376 char inflate();
7400 7377
7401 int main() { 7378 int main() {
7402 inflate() 7379 inflate()
7403 ; return 0; } 7380 ; return 0; }
7404 EOF 7381 EOF
7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7382 if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7406 rm -rf conftest* 7383 rm -rf conftest*
7407 eval "ac_cv_lib_$ac_lib_var=yes" 7384 eval "ac_cv_lib_$ac_lib_var=yes"
7408 else 7385 else
7409 echo "configure: failed program was:" >&5 7386 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5 7387 cat conftest.$ac_ext >&5
7430 7407
7431 fi 7408 fi
7432 7409
7433 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 7410 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7434 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 7411 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7435 echo "configure:7436: checking for jpeglib.h" >&5 7412 echo "configure:7413: checking for jpeglib.h" >&5
7436 7413
7437 cat > conftest.$ac_ext <<EOF 7414 cat > conftest.$ac_ext <<EOF
7438 #line 7439 "configure" 7415 #line 7416 "configure"
7439 #include "confdefs.h" 7416 #include "confdefs.h"
7440 #include <jpeglib.h> 7417 #include <jpeglib.h>
7441 EOF 7418 EOF
7442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7443 { (eval echo configure:7444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7420 { (eval echo configure:7421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7445 if test -z "$ac_err"; then 7422 if test -z "$ac_err"; then
7446 rm -rf conftest* 7423 rm -rf conftest*
7447 eval "ac_cv_header_$ac_safe=yes" 7424 eval "ac_cv_header_$ac_safe=yes"
7448 else 7425 else
7461 with_jpeg=no 7438 with_jpeg=no
7462 fi 7439 fi
7463 } 7440 }
7464 test -z "$with_jpeg" && { 7441 test -z "$with_jpeg" && {
7465 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 7442 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7466 echo "configure:7467: checking for jpeg_destroy_decompress in -ljpeg" >&5 7443 echo "configure:7444: checking for jpeg_destroy_decompress in -ljpeg" >&5
7467 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 7444 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7468 7445
7469 xe_check_libs=" -ljpeg " 7446 xe_check_libs=" -ljpeg "
7470 cat > conftest.$ac_ext <<EOF 7447 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure" 7448 #line 7449 "configure"
7472 #include "confdefs.h" 7449 #include "confdefs.h"
7473 /* Override any gcc2 internal prototype to avoid an error. */ 7450 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2 7451 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */ 7452 builtin and then its argument prototype would still apply. */
7476 char jpeg_destroy_decompress(); 7453 char jpeg_destroy_decompress();
7477 7454
7478 int main() { 7455 int main() {
7479 jpeg_destroy_decompress() 7456 jpeg_destroy_decompress()
7480 ; return 0; } 7457 ; return 0; }
7481 EOF 7458 EOF
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7483 rm -rf conftest* 7460 rm -rf conftest*
7484 eval "ac_cv_lib_$ac_lib_var=yes" 7461 eval "ac_cv_lib_$ac_lib_var=yes"
7485 else 7462 else
7486 echo "configure: failed program was:" >&5 7463 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5 7464 cat conftest.$ac_ext >&5
7513 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7490 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7514 fi 7491 fi
7515 7492
7516 png_problem="" 7493 png_problem=""
7517 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7494 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7518 echo "configure:7519: checking for pow" >&5 7495 echo "configure:7496: checking for pow" >&5
7519 7496
7520 cat > conftest.$ac_ext <<EOF 7497 cat > conftest.$ac_ext <<EOF
7521 #line 7522 "configure" 7498 #line 7499 "configure"
7522 #include "confdefs.h" 7499 #include "confdefs.h"
7523 /* System header to define __stub macros and hopefully few prototypes, 7500 /* System header to define __stub macros and hopefully few prototypes,
7524 which can conflict with char pow(); below. */ 7501 which can conflict with char pow(); below. */
7525 #include <assert.h> 7502 #include <assert.h>
7526 /* Override any gcc2 internal prototype to avoid an error. */ 7503 /* Override any gcc2 internal prototype to avoid an error. */
7539 pow(); 7516 pow();
7540 #endif 7517 #endif
7541 7518
7542 ; return 0; } 7519 ; return 0; }
7543 EOF 7520 EOF
7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7521 if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7545 rm -rf conftest* 7522 rm -rf conftest*
7546 eval "ac_cv_func_pow=yes" 7523 eval "ac_cv_func_pow=yes"
7547 else 7524 else
7548 echo "configure: failed program was:" >&5 7525 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5 7526 cat conftest.$ac_ext >&5
7560 with_png=no 7537 with_png=no
7561 fi 7538 fi
7562 } 7539 }
7563 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7540 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7564 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7541 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7565 echo "configure:7566: checking for png.h" >&5 7542 echo "configure:7543: checking for png.h" >&5
7566 7543
7567 cat > conftest.$ac_ext <<EOF 7544 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure" 7545 #line 7546 "configure"
7569 #include "confdefs.h" 7546 #include "confdefs.h"
7570 #include <png.h> 7547 #include <png.h>
7571 EOF 7548 EOF
7572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7573 { (eval echo configure:7574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7550 { (eval echo configure:7551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7575 if test -z "$ac_err"; then 7552 if test -z "$ac_err"; then
7576 rm -rf conftest* 7553 rm -rf conftest*
7577 eval "ac_cv_header_$ac_safe=yes" 7554 eval "ac_cv_header_$ac_safe=yes"
7578 else 7555 else
7591 with_png=no 7568 with_png=no
7592 fi 7569 fi
7593 } 7570 }
7594 test -z "$with_png" && { 7571 test -z "$with_png" && {
7595 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7572 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7596 echo "configure:7597: checking for png_read_image in -lpng" >&5 7573 echo "configure:7574: checking for png_read_image in -lpng" >&5
7597 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7574 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7598 7575
7599 xe_check_libs=" -lpng " 7576 xe_check_libs=" -lpng "
7600 cat > conftest.$ac_ext <<EOF 7577 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure" 7578 #line 7579 "configure"
7602 #include "confdefs.h" 7579 #include "confdefs.h"
7603 /* Override any gcc2 internal prototype to avoid an error. */ 7580 /* Override any gcc2 internal prototype to avoid an error. */
7604 /* We use char because int might match the return type of a gcc2 7581 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */ 7582 builtin and then its argument prototype would still apply. */
7606 char png_read_image(); 7583 char png_read_image();
7607 7584
7608 int main() { 7585 int main() {
7609 png_read_image() 7586 png_read_image()
7610 ; return 0; } 7587 ; return 0; }
7611 EOF 7588 EOF
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7613 rm -rf conftest* 7590 rm -rf conftest*
7614 eval "ac_cv_lib_$ac_lib_var=yes" 7591 eval "ac_cv_lib_$ac_lib_var=yes"
7615 else 7592 else
7616 echo "configure: failed program was:" >&5 7593 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5 7594 cat conftest.$ac_ext >&5
7630 fi 7607 fi
7631 7608
7632 } 7609 }
7633 if test -z "$with_png"; then 7610 if test -z "$with_png"; then
7634 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7611 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7635 echo "configure:7636: checking for workable png version information" >&5 7612 echo "configure:7613: checking for workable png version information" >&5
7636 xe_check_libs="-lpng -lz" 7613 xe_check_libs="-lpng -lz"
7637 cat > conftest.$ac_ext <<EOF 7614 cat > conftest.$ac_ext <<EOF
7638 #line 7639 "configure" 7615 #line 7616 "configure"
7639 #include "confdefs.h" 7616 #include "confdefs.h"
7640 #include <png.h> 7617 #include <png.h>
7641 int main(int c, char **v) { 7618 int main(int c, char **v) {
7642 if (c == 1) return 0; 7619 if (c == 1) return 0;
7643 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7620 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7644 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7621 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7645 EOF 7622 EOF
7646 if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7623 if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7647 then 7624 then
7648 ./conftest dummy_arg; png_status=$?; 7625 ./conftest dummy_arg; png_status=$?;
7649 if test "$png_status" = "0"; then 7626 if test "$png_status" = "0"; then
7650 with_png=yes; 7627 with_png=yes;
7651 else 7628 else
7684 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7661 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7685 fi 7662 fi
7686 7663
7687 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7664 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7688 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7665 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7689 echo "configure:7690: checking for tiffio.h" >&5 7666 echo "configure:7667: checking for tiffio.h" >&5
7690 7667
7691 cat > conftest.$ac_ext <<EOF 7668 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure" 7669 #line 7670 "configure"
7693 #include "confdefs.h" 7670 #include "confdefs.h"
7694 #include <tiffio.h> 7671 #include <tiffio.h>
7695 EOF 7672 EOF
7696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7697 { (eval echo configure:7698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7674 { (eval echo configure:7675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7699 if test -z "$ac_err"; then 7676 if test -z "$ac_err"; then
7700 rm -rf conftest* 7677 rm -rf conftest*
7701 eval "ac_cv_header_$ac_safe=yes" 7678 eval "ac_cv_header_$ac_safe=yes"
7702 else 7679 else
7715 with_tiff=no 7692 with_tiff=no
7716 fi 7693 fi
7717 } 7694 }
7718 test -z "$with_tiff" && { 7695 test -z "$with_tiff" && {
7719 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7696 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7720 echo "configure:7721: checking for TIFFClientOpen in -ltiff" >&5 7697 echo "configure:7698: checking for TIFFClientOpen in -ltiff" >&5
7721 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7698 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7722 7699
7723 xe_check_libs=" -ltiff " 7700 xe_check_libs=" -ltiff "
7724 cat > conftest.$ac_ext <<EOF 7701 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure" 7702 #line 7703 "configure"
7726 #include "confdefs.h" 7703 #include "confdefs.h"
7727 /* Override any gcc2 internal prototype to avoid an error. */ 7704 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2 7705 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */ 7706 builtin and then its argument prototype would still apply. */
7730 char TIFFClientOpen(); 7707 char TIFFClientOpen();
7731 7708
7732 int main() { 7709 int main() {
7733 TIFFClientOpen() 7710 TIFFClientOpen()
7734 ; return 0; } 7711 ; return 0; }
7735 EOF 7712 EOF
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7713 if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7737 rm -rf conftest* 7714 rm -rf conftest*
7738 eval "ac_cv_lib_$ac_lib_var=yes" 7715 eval "ac_cv_lib_$ac_lib_var=yes"
7739 else 7716 else
7740 echo "configure: failed program was:" >&5 7717 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5 7718 cat conftest.$ac_ext >&5
7770 7747
7771 7748
7772 if test "$with_x11" = "yes"; then 7749 if test "$with_x11" = "yes"; then
7773 7750
7774 echo "checking for X11 graphics libraries" 1>&6 7751 echo "checking for X11 graphics libraries" 1>&6
7775 echo "configure:7776: checking for X11 graphics libraries" >&5 7752 echo "configure:7753: checking for X11 graphics libraries" >&5
7776 7753
7777 echo "checking for the Athena widgets" 1>&6 7754 echo "checking for the Athena widgets" 1>&6
7778 echo "configure:7779: checking for the Athena widgets" >&5 7755 echo "configure:7756: checking for the Athena widgets" >&5
7779 7756
7780 case "$with_athena" in 7757 case "$with_athena" in
7781 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 7758 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
7782 "3d") athena_variant=Xaw3d athena_3d=yes ;; 7759 "3d") athena_variant=Xaw3d athena_3d=yes ;;
7783 "next") athena_variant=neXtaw athena_3d=yes ;; 7760 "next") athena_variant=neXtaw athena_3d=yes ;;
7787 esac 7764 esac
7788 7765
7789 if test "$athena_3d" = "no"; then 7766 if test "$athena_3d" = "no"; then
7790 7767
7791 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 7768 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
7792 echo "configure:7793: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 7769 echo "configure:7770: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
7793 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7770 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7794 7771
7795 xe_check_libs=" -l$athena_variant " 7772 xe_check_libs=" -l$athena_variant "
7796 cat > conftest.$ac_ext <<EOF 7773 cat > conftest.$ac_ext <<EOF
7797 #line 7798 "configure" 7774 #line 7775 "configure"
7798 #include "confdefs.h" 7775 #include "confdefs.h"
7799 /* Override any gcc2 internal prototype to avoid an error. */ 7776 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2 7777 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */ 7778 builtin and then its argument prototype would still apply. */
7802 char XawScrollbarSetThumb(); 7779 char XawScrollbarSetThumb();
7803 7780
7804 int main() { 7781 int main() {
7805 XawScrollbarSetThumb() 7782 XawScrollbarSetThumb()
7806 ; return 0; } 7783 ; return 0; }
7807 EOF 7784 EOF
7808 if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7809 rm -rf conftest* 7786 rm -rf conftest*
7810 eval "ac_cv_lib_$ac_lib_var=yes" 7787 eval "ac_cv_lib_$ac_lib_var=yes"
7811 else 7788 else
7812 echo "configure: failed program was:" >&5 7789 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5 7790 cat conftest.$ac_ext >&5
7819 7796
7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 7797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7821 echo "$ac_t""yes" 1>&6 7798 echo "$ac_t""yes" 1>&6
7822 7799
7823 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 7800 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7824 echo "configure:7825: checking for threeDClassRec in -l$athena_variant" >&5 7801 echo "configure:7802: checking for threeDClassRec in -l$athena_variant" >&5
7825 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 7802 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7826 7803
7827 xe_check_libs=" -l$athena_variant " 7804 xe_check_libs=" -l$athena_variant "
7828 cat > conftest.$ac_ext <<EOF 7805 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure" 7806 #line 7807 "configure"
7830 #include "confdefs.h" 7807 #include "confdefs.h"
7831 /* Override any gcc2 internal prototype to avoid an error. */ 7808 /* Override any gcc2 internal prototype to avoid an error. */
7832 /* We use char because int might match the return type of a gcc2 7809 /* We use char because int might match the return type of a gcc2
7833 builtin and then its argument prototype would still apply. */ 7810 builtin and then its argument prototype would still apply. */
7834 char threeDClassRec(); 7811 char threeDClassRec();
7835 7812
7836 int main() { 7813 int main() {
7837 threeDClassRec() 7814 threeDClassRec()
7838 ; return 0; } 7815 ; return 0; }
7839 EOF 7816 EOF
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7817 if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7841 rm -rf conftest* 7818 rm -rf conftest*
7842 eval "ac_cv_lib_$ac_lib_var=yes" 7819 eval "ac_cv_lib_$ac_lib_var=yes"
7843 else 7820 else
7844 echo "configure: failed program was:" >&5 7821 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5 7822 cat conftest.$ac_ext >&5
7866 7843
7867 7844
7868 else 7845 else
7869 7846
7870 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 7847 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
7871 echo "configure:7872: checking for threeDClassRec in -l$athena_variant" >&5 7848 echo "configure:7849: checking for threeDClassRec in -l$athena_variant" >&5
7872 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 7849 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
7873 7850
7874 xe_check_libs=" -l$athena_variant " 7851 xe_check_libs=" -l$athena_variant "
7875 cat > conftest.$ac_ext <<EOF 7852 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure" 7853 #line 7854 "configure"
7877 #include "confdefs.h" 7854 #include "confdefs.h"
7878 /* Override any gcc2 internal prototype to avoid an error. */ 7855 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2 7856 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */ 7857 builtin and then its argument prototype would still apply. */
7881 char threeDClassRec(); 7858 char threeDClassRec();
7882 7859
7883 int main() { 7860 int main() {
7884 threeDClassRec() 7861 threeDClassRec()
7885 ; return 0; } 7862 ; return 0; }
7886 EOF 7863 EOF
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7864 if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 rm -rf conftest* 7865 rm -rf conftest*
7889 eval "ac_cv_lib_$ac_lib_var=yes" 7866 eval "ac_cv_lib_$ac_lib_var=yes"
7890 else 7867 else
7891 echo "configure: failed program was:" >&5 7868 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5 7869 cat conftest.$ac_ext >&5
7900 echo "$ac_t""yes" 1>&6 7877 echo "$ac_t""yes" 1>&6
7901 athena_lib=$athena_variant 7878 athena_lib=$athena_variant
7902 else 7879 else
7903 echo "$ac_t""no" 1>&6 7880 echo "$ac_t""no" 1>&6
7904 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 7881 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
7905 echo "configure:7906: checking for threeDClassRec in -lXaw" >&5 7882 echo "configure:7883: checking for threeDClassRec in -lXaw" >&5
7906 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 7883 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
7907 7884
7908 xe_check_libs=" -lXaw " 7885 xe_check_libs=" -lXaw "
7909 cat > conftest.$ac_ext <<EOF 7886 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure" 7887 #line 7888 "configure"
7911 #include "confdefs.h" 7888 #include "confdefs.h"
7912 /* Override any gcc2 internal prototype to avoid an error. */ 7889 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2 7890 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */ 7891 builtin and then its argument prototype would still apply. */
7915 char threeDClassRec(); 7892 char threeDClassRec();
7916 7893
7917 int main() { 7894 int main() {
7918 threeDClassRec() 7895 threeDClassRec()
7919 ; return 0; } 7896 ; return 0; }
7920 EOF 7897 EOF
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7898 if { (eval echo configure:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7922 rm -rf conftest* 7899 rm -rf conftest*
7923 eval "ac_cv_lib_$ac_lib_var=yes" 7900 eval "ac_cv_lib_$ac_lib_var=yes"
7924 else 7901 else
7925 echo "configure: failed program was:" >&5 7902 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5 7903 cat conftest.$ac_ext >&5
7947 fi 7924 fi
7948 7925
7949 if test "$athena_3d" = "no"; then 7926 if test "$athena_3d" = "no"; then
7950 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 7927 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
7951 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 7928 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
7952 echo "configure:7953: checking for X11/Xaw/ThreeD.h" >&5 7929 echo "configure:7930: checking for X11/Xaw/ThreeD.h" >&5
7953 7930
7954 cat > conftest.$ac_ext <<EOF 7931 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure" 7932 #line 7933 "configure"
7956 #include "confdefs.h" 7933 #include "confdefs.h"
7957 #include <X11/Xaw/ThreeD.h> 7934 #include <X11/Xaw/ThreeD.h>
7958 EOF 7935 EOF
7959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7936 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; } 7937 { (eval echo configure:7938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7962 if test -z "$ac_err"; then 7939 if test -z "$ac_err"; then
7963 rm -rf conftest* 7940 rm -rf conftest*
7964 eval "ac_cv_header_$ac_safe=yes" 7941 eval "ac_cv_header_$ac_safe=yes"
7965 else 7942 else
7975 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2 7952 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
7976 else 7953 else
7977 echo "$ac_t""no" 1>&6 7954 echo "$ac_t""no" 1>&6
7978 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 7955 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
7979 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 7956 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
7980 echo "configure:7981: checking for X11/Xaw/XawInit.h" >&5 7957 echo "configure:7958: checking for X11/Xaw/XawInit.h" >&5
7981 7958
7982 cat > conftest.$ac_ext <<EOF 7959 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure" 7960 #line 7961 "configure"
7984 #include "confdefs.h" 7961 #include "confdefs.h"
7985 #include <X11/Xaw/XawInit.h> 7962 #include <X11/Xaw/XawInit.h>
7986 EOF 7963 EOF
7987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7988 { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7965 { (eval echo configure:7966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7990 if test -z "$ac_err"; then 7967 if test -z "$ac_err"; then
7991 rm -rf conftest* 7968 rm -rf conftest*
7992 eval "ac_cv_header_$ac_safe=yes" 7969 eval "ac_cv_header_$ac_safe=yes"
7993 else 7970 else
8009 fi 7986 fi
8010 7987
8011 else 7988 else
8012 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 7989 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8013 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 7990 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8014 echo "configure:8015: checking for X11/$athena_variant/XawInit.h" >&5 7991 echo "configure:7992: checking for X11/$athena_variant/XawInit.h" >&5
8015 7992
8016 cat > conftest.$ac_ext <<EOF 7993 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure" 7994 #line 7995 "configure"
8018 #include "confdefs.h" 7995 #include "confdefs.h"
8019 #include <X11/$athena_variant/XawInit.h> 7996 #include <X11/$athena_variant/XawInit.h>
8020 EOF 7997 EOF
8021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8022 { (eval echo configure:8023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7999 { (eval echo configure:8000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8024 if test -z "$ac_err"; then 8001 if test -z "$ac_err"; then
8025 rm -rf conftest* 8002 rm -rf conftest*
8026 eval "ac_cv_header_$ac_safe=yes" 8003 eval "ac_cv_header_$ac_safe=yes"
8027 else 8004 else
8034 rm -f conftest* 8011 rm -f conftest*
8035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8036 echo "$ac_t""yes" 1>&6 8013 echo "$ac_t""yes" 1>&6
8037 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 8014 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8038 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 8015 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8039 echo "configure:8040: checking for X11/$athena_variant/ThreeD.h" >&5 8016 echo "configure:8017: checking for X11/$athena_variant/ThreeD.h" >&5
8040 8017
8041 cat > conftest.$ac_ext <<EOF 8018 cat > conftest.$ac_ext <<EOF
8042 #line 8043 "configure" 8019 #line 8020 "configure"
8043 #include "confdefs.h" 8020 #include "confdefs.h"
8044 #include <X11/$athena_variant/ThreeD.h> 8021 #include <X11/$athena_variant/ThreeD.h>
8045 EOF 8022 EOF
8046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8047 { (eval echo configure:8048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8024 { (eval echo configure:8025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8049 if test -z "$ac_err"; then 8026 if test -z "$ac_err"; then
8050 rm -rf conftest* 8027 rm -rf conftest*
8051 eval "ac_cv_header_$ac_safe=yes" 8028 eval "ac_cv_header_$ac_safe=yes"
8052 else 8029 else
8070 8047
8071 8048
8072 if test -z "$athena_h_path"; then 8049 if test -z "$athena_h_path"; then
8073 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8050 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8074 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 8051 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8075 echo "configure:8076: checking for $athena_variant/XawInit.h" >&5 8052 echo "configure:8053: checking for $athena_variant/XawInit.h" >&5
8076 8053
8077 cat > conftest.$ac_ext <<EOF 8054 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure" 8055 #line 8056 "configure"
8079 #include "confdefs.h" 8056 #include "confdefs.h"
8080 #include <$athena_variant/XawInit.h> 8057 #include <$athena_variant/XawInit.h>
8081 EOF 8058 EOF
8082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8083 { (eval echo configure:8084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8060 { (eval echo configure:8061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8085 if test -z "$ac_err"; then 8062 if test -z "$ac_err"; then
8086 rm -rf conftest* 8063 rm -rf conftest*
8087 eval "ac_cv_header_$ac_safe=yes" 8064 eval "ac_cv_header_$ac_safe=yes"
8088 else 8065 else
8095 rm -f conftest* 8072 rm -f conftest*
8096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6 8074 echo "$ac_t""yes" 1>&6
8098 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 8075 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8099 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 8076 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8100 echo "configure:8101: checking for $athena_variant/ThreeD.h" >&5 8077 echo "configure:8078: checking for $athena_variant/ThreeD.h" >&5
8101 8078
8102 cat > conftest.$ac_ext <<EOF 8079 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure" 8080 #line 8081 "configure"
8104 #include "confdefs.h" 8081 #include "confdefs.h"
8105 #include <$athena_variant/ThreeD.h> 8082 #include <$athena_variant/ThreeD.h>
8106 EOF 8083 EOF
8107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8108 { (eval echo configure:8109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8085 { (eval echo configure:8086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8110 if test -z "$ac_err"; then 8087 if test -z "$ac_err"; then
8111 rm -rf conftest* 8088 rm -rf conftest*
8112 eval "ac_cv_header_$ac_safe=yes" 8089 eval "ac_cv_header_$ac_safe=yes"
8113 else 8090 else
8132 fi 8109 fi
8133 8110
8134 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 8111 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8135 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 8112 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8136 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 8113 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8137 echo "configure:8138: checking for X11/Xaw3d/XawInit.h" >&5 8114 echo "configure:8115: checking for X11/Xaw3d/XawInit.h" >&5
8138 8115
8139 cat > conftest.$ac_ext <<EOF 8116 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure" 8117 #line 8118 "configure"
8141 #include "confdefs.h" 8118 #include "confdefs.h"
8142 #include <X11/Xaw3d/XawInit.h> 8119 #include <X11/Xaw3d/XawInit.h>
8143 EOF 8120 EOF
8144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8145 { (eval echo configure:8146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8122 { (eval echo configure:8123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8147 if test -z "$ac_err"; then 8124 if test -z "$ac_err"; then
8148 rm -rf conftest* 8125 rm -rf conftest*
8149 eval "ac_cv_header_$ac_safe=yes" 8126 eval "ac_cv_header_$ac_safe=yes"
8150 else 8127 else
8157 rm -f conftest* 8134 rm -f conftest*
8158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8159 echo "$ac_t""yes" 1>&6 8136 echo "$ac_t""yes" 1>&6
8160 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 8137 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8161 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 8138 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8162 echo "configure:8163: checking for X11/Xaw3d/ThreeD.h" >&5 8139 echo "configure:8140: checking for X11/Xaw3d/ThreeD.h" >&5
8163 8140
8164 cat > conftest.$ac_ext <<EOF 8141 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure" 8142 #line 8143 "configure"
8166 #include "confdefs.h" 8143 #include "confdefs.h"
8167 #include <X11/Xaw3d/ThreeD.h> 8144 #include <X11/Xaw3d/ThreeD.h>
8168 EOF 8145 EOF
8169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8170 { (eval echo configure:8171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8147 { (eval echo configure:8148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8172 if test -z "$ac_err"; then 8149 if test -z "$ac_err"; then
8173 rm -rf conftest* 8150 rm -rf conftest*
8174 eval "ac_cv_header_$ac_safe=yes" 8151 eval "ac_cv_header_$ac_safe=yes"
8175 else 8152 else
8197 fi 8174 fi
8198 8175
8199 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 8176 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8200 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 8177 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8201 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 8178 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8202 echo "configure:8203: checking for Xaw3d/XawInit.h" >&5 8179 echo "configure:8180: checking for Xaw3d/XawInit.h" >&5
8203 8180
8204 cat > conftest.$ac_ext <<EOF 8181 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure" 8182 #line 8183 "configure"
8206 #include "confdefs.h" 8183 #include "confdefs.h"
8207 #include <Xaw3d/XawInit.h> 8184 #include <Xaw3d/XawInit.h>
8208 EOF 8185 EOF
8209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8210 { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8187 { (eval echo configure:8188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8212 if test -z "$ac_err"; then 8189 if test -z "$ac_err"; then
8213 rm -rf conftest* 8190 rm -rf conftest*
8214 eval "ac_cv_header_$ac_safe=yes" 8191 eval "ac_cv_header_$ac_safe=yes"
8215 else 8192 else
8222 rm -f conftest* 8199 rm -f conftest*
8223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8224 echo "$ac_t""yes" 1>&6 8201 echo "$ac_t""yes" 1>&6
8225 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 8202 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8226 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 8203 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8227 echo "configure:8228: checking for Xaw3d/ThreeD.h" >&5 8204 echo "configure:8205: checking for Xaw3d/ThreeD.h" >&5
8228 8205
8229 cat > conftest.$ac_ext <<EOF 8206 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure" 8207 #line 8208 "configure"
8231 #include "confdefs.h" 8208 #include "confdefs.h"
8232 #include <Xaw3d/ThreeD.h> 8209 #include <Xaw3d/ThreeD.h>
8233 EOF 8210 EOF
8234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8235 { (eval echo configure:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8212 { (eval echo configure:8213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237 if test -z "$ac_err"; then 8214 if test -z "$ac_err"; then
8238 rm -rf conftest* 8215 rm -rf conftest*
8239 eval "ac_cv_header_$ac_safe=yes" 8216 eval "ac_cv_header_$ac_safe=yes"
8240 else 8217 else
8262 fi 8239 fi
8263 8240
8264 if test -z "$athena_h_path"; then 8241 if test -z "$athena_h_path"; then
8265 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8242 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8266 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8243 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8267 echo "configure:8268: checking for X11/Xaw/ThreeD.h" >&5 8244 echo "configure:8245: checking for X11/Xaw/ThreeD.h" >&5
8268 8245
8269 cat > conftest.$ac_ext <<EOF 8246 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure" 8247 #line 8248 "configure"
8271 #include "confdefs.h" 8248 #include "confdefs.h"
8272 #include <X11/Xaw/ThreeD.h> 8249 #include <X11/Xaw/ThreeD.h>
8273 EOF 8250 EOF
8274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8275 { (eval echo configure:8276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8252 { (eval echo configure:8253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8277 if test -z "$ac_err"; then 8254 if test -z "$ac_err"; then
8278 rm -rf conftest* 8255 rm -rf conftest*
8279 eval "ac_cv_header_$ac_safe=yes" 8256 eval "ac_cv_header_$ac_safe=yes"
8280 else 8257 else
8305 have_xaw=no 8282 have_xaw=no
8306 fi 8283 fi
8307 8284
8308 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 8285 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8309 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 8286 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8310 echo "configure:8311: checking for Xm/Xm.h" >&5 8287 echo "configure:8288: checking for Xm/Xm.h" >&5
8311 8288
8312 cat > conftest.$ac_ext <<EOF 8289 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure" 8290 #line 8291 "configure"
8314 #include "confdefs.h" 8291 #include "confdefs.h"
8315 #include <Xm/Xm.h> 8292 #include <Xm/Xm.h>
8316 EOF 8293 EOF
8317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8318 { (eval echo configure:8319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8295 { (eval echo configure:8296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8320 if test -z "$ac_err"; then 8297 if test -z "$ac_err"; then
8321 rm -rf conftest* 8298 rm -rf conftest*
8322 eval "ac_cv_header_$ac_safe=yes" 8299 eval "ac_cv_header_$ac_safe=yes"
8323 else 8300 else
8330 rm -f conftest* 8307 rm -f conftest*
8331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8332 echo "$ac_t""yes" 1>&6 8309 echo "$ac_t""yes" 1>&6
8333 8310
8334 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 8311 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8335 echo "configure:8336: checking for XmStringFree in -lXm" >&5 8312 echo "configure:8313: checking for XmStringFree in -lXm" >&5
8336 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 8313 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8337 8314
8338 xe_check_libs=" -lXm " 8315 xe_check_libs=" -lXm "
8339 cat > conftest.$ac_ext <<EOF 8316 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure" 8317 #line 8318 "configure"
8341 #include "confdefs.h" 8318 #include "confdefs.h"
8342 /* Override any gcc2 internal prototype to avoid an error. */ 8319 /* Override any gcc2 internal prototype to avoid an error. */
8343 /* We use char because int might match the return type of a gcc2 8320 /* We use char because int might match the return type of a gcc2
8344 builtin and then its argument prototype would still apply. */ 8321 builtin and then its argument prototype would still apply. */
8345 char XmStringFree(); 8322 char XmStringFree();
8346 8323
8347 int main() { 8324 int main() {
8348 XmStringFree() 8325 XmStringFree()
8349 ; return 0; } 8326 ; return 0; }
8350 EOF 8327 EOF
8351 if { (eval echo configure:8352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8352 rm -rf conftest* 8329 rm -rf conftest*
8353 eval "ac_cv_lib_$ac_lib_var=yes" 8330 eval "ac_cv_lib_$ac_lib_var=yes"
8354 else 8331 else
8355 echo "configure: failed program was:" >&5 8332 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5 8333 cat conftest.$ac_ext >&5
8375 fi 8352 fi
8376 8353
8377 8354
8378 if test "$have_motif" = "yes"; then 8355 if test "$have_motif" = "yes"; then
8379 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 8356 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8380 echo "configure:8381: checking for Lesstif" >&5 8357 echo "configure:8358: checking for Lesstif" >&5
8381 cat > conftest.$ac_ext <<EOF 8358 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure" 8359 #line 8360 "configure"
8383 #include "confdefs.h" 8360 #include "confdefs.h"
8384 #include <Xm/Xm.h> 8361 #include <Xm/Xm.h>
8385 #ifdef LESSTIF_VERSION 8362 #ifdef LESSTIF_VERSION
8386 yes 8363 yes
8387 #endif 8364 #endif
8710 fi 8687 fi
8711 fi 8688 fi
8712 8689
8713 if test "$with_mule" = "yes" ; then 8690 if test "$with_mule" = "yes" ; then
8714 echo "checking for Mule-related features" 1>&6 8691 echo "checking for Mule-related features" 1>&6
8715 echo "configure:8716: checking for Mule-related features" >&5 8692 echo "configure:8693: checking for Mule-related features" >&5
8716 { test "$extra_verbose" = "yes" && cat << \EOF 8693 { test "$extra_verbose" = "yes" && cat << \EOF
8717 Defining MULE 8694 Defining MULE
8718 EOF 8695 EOF
8719 cat >> confdefs.h <<\EOF 8696 cat >> confdefs.h <<\EOF
8720 #define MULE 1 8697 #define MULE 1
8735 8712
8736 for ac_hdr in libintl.h 8713 for ac_hdr in libintl.h
8737 do 8714 do
8738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 8715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 8716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8740 echo "configure:8741: checking for $ac_hdr" >&5 8717 echo "configure:8718: checking for $ac_hdr" >&5
8741 8718
8742 cat > conftest.$ac_ext <<EOF 8719 cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure" 8720 #line 8721 "configure"
8744 #include "confdefs.h" 8721 #include "confdefs.h"
8745 #include <$ac_hdr> 8722 #include <$ac_hdr>
8746 EOF 8723 EOF
8747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8748 { (eval echo configure:8749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8725 { (eval echo configure:8726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8750 if test -z "$ac_err"; then 8727 if test -z "$ac_err"; then
8751 rm -rf conftest* 8728 rm -rf conftest*
8752 eval "ac_cv_header_$ac_safe=yes" 8729 eval "ac_cv_header_$ac_safe=yes"
8753 else 8730 else
8774 fi 8751 fi
8775 done 8752 done
8776 8753
8777 8754
8778 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 8755 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
8779 echo "configure:8780: checking for strerror in -lintl" >&5 8756 echo "configure:8757: checking for strerror in -lintl" >&5
8780 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 8757 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
8781 8758
8782 xe_check_libs=" -lintl " 8759 xe_check_libs=" -lintl "
8783 cat > conftest.$ac_ext <<EOF 8760 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure" 8761 #line 8762 "configure"
8785 #include "confdefs.h" 8762 #include "confdefs.h"
8786 /* Override any gcc2 internal prototype to avoid an error. */ 8763 /* Override any gcc2 internal prototype to avoid an error. */
8787 /* We use char because int might match the return type of a gcc2 8764 /* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */ 8765 builtin and then its argument prototype would still apply. */
8789 char strerror(); 8766 char strerror();
8790 8767
8791 int main() { 8768 int main() {
8792 strerror() 8769 strerror()
8793 ; return 0; } 8770 ; return 0; }
8794 EOF 8771 EOF
8795 if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8772 if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8796 rm -rf conftest* 8773 rm -rf conftest*
8797 eval "ac_cv_lib_$ac_lib_var=yes" 8774 eval "ac_cv_lib_$ac_lib_var=yes"
8798 else 8775 else
8799 echo "configure: failed program was:" >&5 8776 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5 8777 cat conftest.$ac_ext >&5
8823 fi 8800 fi
8824 8801
8825 8802
8826 8803
8827 echo "checking for Mule input methods" 1>&6 8804 echo "checking for Mule input methods" 1>&6
8828 echo "configure:8829: checking for Mule input methods" >&5 8805 echo "configure:8806: checking for Mule input methods" >&5
8829 case "$with_xim" in "" | "yes" ) 8806 case "$with_xim" in "" | "yes" )
8830 echo "checking for XIM" 1>&6 8807 echo "checking for XIM" 1>&6
8831 echo "configure:8832: checking for XIM" >&5 8808 echo "configure:8809: checking for XIM" >&5
8832 8809
8833 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 8810 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
8834 echo "configure:8835: checking for XOpenIM in -lX11" >&5 8811 echo "configure:8812: checking for XOpenIM in -lX11" >&5
8835 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 8812 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
8836 8813
8837 xe_check_libs=" -lX11 " 8814 xe_check_libs=" -lX11 "
8838 cat > conftest.$ac_ext <<EOF 8815 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure" 8816 #line 8817 "configure"
8840 #include "confdefs.h" 8817 #include "confdefs.h"
8841 /* Override any gcc2 internal prototype to avoid an error. */ 8818 /* Override any gcc2 internal prototype to avoid an error. */
8842 /* We use char because int might match the return type of a gcc2 8819 /* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */ 8820 builtin and then its argument prototype would still apply. */
8844 char XOpenIM(); 8821 char XOpenIM();
8845 8822
8846 int main() { 8823 int main() {
8847 XOpenIM() 8824 XOpenIM()
8848 ; return 0; } 8825 ; return 0; }
8849 EOF 8826 EOF
8850 if { (eval echo configure:8851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8851 rm -rf conftest* 8828 rm -rf conftest*
8852 eval "ac_cv_lib_$ac_lib_var=yes" 8829 eval "ac_cv_lib_$ac_lib_var=yes"
8853 else 8830 else
8854 echo "configure: failed program was:" >&5 8831 echo "configure: failed program was:" >&5
8855 cat conftest.$ac_ext >&5 8832 cat conftest.$ac_ext >&5
8869 8846
8870 8847
8871 if test "$have_motif $have_lesstif" = "yes no"; then 8848 if test "$have_motif $have_lesstif" = "yes no"; then
8872 8849
8873 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 8850 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
8874 echo "configure:8875: checking for XmImMbLookupString in -lXm" >&5 8851 echo "configure:8852: checking for XmImMbLookupString in -lXm" >&5
8875 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 8852 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
8876 8853
8877 xe_check_libs=" -lXm " 8854 xe_check_libs=" -lXm "
8878 cat > conftest.$ac_ext <<EOF 8855 cat > conftest.$ac_ext <<EOF
8879 #line 8880 "configure" 8856 #line 8857 "configure"
8880 #include "confdefs.h" 8857 #include "confdefs.h"
8881 /* Override any gcc2 internal prototype to avoid an error. */ 8858 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2 8859 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */ 8860 builtin and then its argument prototype would still apply. */
8884 char XmImMbLookupString(); 8861 char XmImMbLookupString();
8885 8862
8886 int main() { 8863 int main() {
8887 XmImMbLookupString() 8864 XmImMbLookupString()
8888 ; return 0; } 8865 ; return 0; }
8889 EOF 8866 EOF
8890 if { (eval echo configure:8891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8867 if { (eval echo configure:8868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8891 rm -rf conftest* 8868 rm -rf conftest*
8892 eval "ac_cv_lib_$ac_lib_var=yes" 8869 eval "ac_cv_lib_$ac_lib_var=yes"
8893 else 8870 else
8894 echo "configure: failed program was:" >&5 8871 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5 8872 cat conftest.$ac_ext >&5
8950 fi 8927 fi
8951 fi 8928 fi
8952 8929
8953 if test "$with_xfs" = "yes" ; then 8930 if test "$with_xfs" = "yes" ; then
8954 echo "checking for XFontSet" 1>&6 8931 echo "checking for XFontSet" 1>&6
8955 echo "configure:8956: checking for XFontSet" >&5 8932 echo "configure:8933: checking for XFontSet" >&5
8956 8933
8957 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 8934 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8958 echo "configure:8959: checking for XmbDrawString in -lX11" >&5 8935 echo "configure:8936: checking for XmbDrawString in -lX11" >&5
8959 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 8936 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8960 8937
8961 xe_check_libs=" -lX11 " 8938 xe_check_libs=" -lX11 "
8962 cat > conftest.$ac_ext <<EOF 8939 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure" 8940 #line 8941 "configure"
8964 #include "confdefs.h" 8941 #include "confdefs.h"
8965 /* Override any gcc2 internal prototype to avoid an error. */ 8942 /* Override any gcc2 internal prototype to avoid an error. */
8966 /* We use char because int might match the return type of a gcc2 8943 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */ 8944 builtin and then its argument prototype would still apply. */
8968 char XmbDrawString(); 8945 char XmbDrawString();
8969 8946
8970 int main() { 8947 int main() {
8971 XmbDrawString() 8948 XmbDrawString()
8972 ; return 0; } 8949 ; return 0; }
8973 EOF 8950 EOF
8974 if { (eval echo configure:8975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8975 rm -rf conftest* 8952 rm -rf conftest*
8976 eval "ac_cv_lib_$ac_lib_var=yes" 8953 eval "ac_cv_lib_$ac_lib_var=yes"
8977 else 8954 else
8978 echo "configure: failed program was:" >&5 8955 echo "configure: failed program was:" >&5
8979 cat conftest.$ac_ext >&5 8956 cat conftest.$ac_ext >&5
9009 fi 8986 fi
9010 fi 8987 fi
9011 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 8988 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9012 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 8989 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9013 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 8990 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9014 echo "configure:9015: checking for wnn/jllib.h" >&5 8991 echo "configure:8992: checking for wnn/jllib.h" >&5
9015 8992
9016 cat > conftest.$ac_ext <<EOF 8993 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure" 8994 #line 8995 "configure"
9018 #include "confdefs.h" 8995 #include "confdefs.h"
9019 #include <wnn/jllib.h> 8996 #include <wnn/jllib.h>
9020 EOF 8997 EOF
9021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9022 { (eval echo configure:9023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8999 { (eval echo configure:9000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9024 if test -z "$ac_err"; then 9001 if test -z "$ac_err"; then
9025 rm -rf conftest* 9002 rm -rf conftest*
9026 eval "ac_cv_header_$ac_safe=yes" 9003 eval "ac_cv_header_$ac_safe=yes"
9027 else 9004 else
9042 } 9019 }
9043 if test "$with_wnn" != "no"; then 9020 if test "$with_wnn" != "no"; then
9044 for ac_func in crypt 9021 for ac_func in crypt
9045 do 9022 do
9046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9047 echo "configure:9048: checking for $ac_func" >&5 9024 echo "configure:9025: checking for $ac_func" >&5
9048 9025
9049 cat > conftest.$ac_ext <<EOF 9026 cat > conftest.$ac_ext <<EOF
9050 #line 9051 "configure" 9027 #line 9028 "configure"
9051 #include "confdefs.h" 9028 #include "confdefs.h"
9052 /* System header to define __stub macros and hopefully few prototypes, 9029 /* System header to define __stub macros and hopefully few prototypes,
9053 which can conflict with char $ac_func(); below. */ 9030 which can conflict with char $ac_func(); below. */
9054 #include <assert.h> 9031 #include <assert.h>
9055 /* Override any gcc2 internal prototype to avoid an error. */ 9032 /* Override any gcc2 internal prototype to avoid an error. */
9068 $ac_func(); 9045 $ac_func();
9069 #endif 9046 #endif
9070 9047
9071 ; return 0; } 9048 ; return 0; }
9072 EOF 9049 EOF
9073 if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9050 if { (eval echo configure:9051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9074 rm -rf conftest* 9051 rm -rf conftest*
9075 eval "ac_cv_func_$ac_func=yes" 9052 eval "ac_cv_func_$ac_func=yes"
9076 else 9053 else
9077 echo "configure: failed program was:" >&5 9054 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5 9055 cat conftest.$ac_ext >&5
9097 fi 9074 fi
9098 done 9075 done
9099 9076
9100 test "$ac_cv_func_crypt" != "yes" && { 9077 test "$ac_cv_func_crypt" != "yes" && {
9101 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 9078 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9102 echo "configure:9103: checking for crypt in -lcrypt" >&5 9079 echo "configure:9080: checking for crypt in -lcrypt" >&5
9103 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 9080 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9104 9081
9105 xe_check_libs=" -lcrypt " 9082 xe_check_libs=" -lcrypt "
9106 cat > conftest.$ac_ext <<EOF 9083 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure" 9084 #line 9085 "configure"
9108 #include "confdefs.h" 9085 #include "confdefs.h"
9109 /* Override any gcc2 internal prototype to avoid an error. */ 9086 /* Override any gcc2 internal prototype to avoid an error. */
9110 /* We use char because int might match the return type of a gcc2 9087 /* We use char because int might match the return type of a gcc2
9111 builtin and then its argument prototype would still apply. */ 9088 builtin and then its argument prototype would still apply. */
9112 char crypt(); 9089 char crypt();
9113 9090
9114 int main() { 9091 int main() {
9115 crypt() 9092 crypt()
9116 ; return 0; } 9093 ; return 0; }
9117 EOF 9094 EOF
9118 if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119 rm -rf conftest* 9096 rm -rf conftest*
9120 eval "ac_cv_lib_$ac_lib_var=yes" 9097 eval "ac_cv_lib_$ac_lib_var=yes"
9121 else 9098 else
9122 echo "configure: failed program was:" >&5 9099 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5 9100 cat conftest.$ac_ext >&5
9148 } 9125 }
9149 fi 9126 fi
9150 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 9127 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9151 9128
9152 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 9129 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9153 echo "configure:9154: checking for jl_dic_list_e in -lwnn" >&5 9130 echo "configure:9131: checking for jl_dic_list_e in -lwnn" >&5
9154 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9131 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9155 9132
9156 xe_check_libs=" -lwnn " 9133 xe_check_libs=" -lwnn "
9157 cat > conftest.$ac_ext <<EOF 9134 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure" 9135 #line 9136 "configure"
9159 #include "confdefs.h" 9136 #include "confdefs.h"
9160 /* Override any gcc2 internal prototype to avoid an error. */ 9137 /* Override any gcc2 internal prototype to avoid an error. */
9161 /* We use char because int might match the return type of a gcc2 9138 /* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */ 9139 builtin and then its argument prototype would still apply. */
9163 char jl_dic_list_e(); 9140 char jl_dic_list_e();
9164 9141
9165 int main() { 9142 int main() {
9166 jl_dic_list_e() 9143 jl_dic_list_e()
9167 ; return 0; } 9144 ; return 0; }
9168 EOF 9145 EOF
9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9146 if { (eval echo configure:9147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9170 rm -rf conftest* 9147 rm -rf conftest*
9171 eval "ac_cv_lib_$ac_lib_var=yes" 9148 eval "ac_cv_lib_$ac_lib_var=yes"
9172 else 9149 else
9173 echo "configure: failed program was:" >&5 9150 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5 9151 cat conftest.$ac_ext >&5
9182 echo "$ac_t""yes" 1>&6 9159 echo "$ac_t""yes" 1>&6
9183 libwnn=wnn 9160 libwnn=wnn
9184 else 9161 else
9185 echo "$ac_t""no" 1>&6 9162 echo "$ac_t""no" 1>&6
9186 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 9163 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9187 echo "configure:9188: checking for jl_dic_list_e in -lwnn4" >&5 9164 echo "configure:9165: checking for jl_dic_list_e in -lwnn4" >&5
9188 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9165 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9189 9166
9190 xe_check_libs=" -lwnn4 " 9167 xe_check_libs=" -lwnn4 "
9191 cat > conftest.$ac_ext <<EOF 9168 cat > conftest.$ac_ext <<EOF
9192 #line 9193 "configure" 9169 #line 9170 "configure"
9193 #include "confdefs.h" 9170 #include "confdefs.h"
9194 /* Override any gcc2 internal prototype to avoid an error. */ 9171 /* Override any gcc2 internal prototype to avoid an error. */
9195 /* We use char because int might match the return type of a gcc2 9172 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */ 9173 builtin and then its argument prototype would still apply. */
9197 char jl_dic_list_e(); 9174 char jl_dic_list_e();
9198 9175
9199 int main() { 9176 int main() {
9200 jl_dic_list_e() 9177 jl_dic_list_e()
9201 ; return 0; } 9178 ; return 0; }
9202 EOF 9179 EOF
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9180 if { (eval echo configure:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9204 rm -rf conftest* 9181 rm -rf conftest*
9205 eval "ac_cv_lib_$ac_lib_var=yes" 9182 eval "ac_cv_lib_$ac_lib_var=yes"
9206 else 9183 else
9207 echo "configure: failed program was:" >&5 9184 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5 9185 cat conftest.$ac_ext >&5
9216 echo "$ac_t""yes" 1>&6 9193 echo "$ac_t""yes" 1>&6
9217 libwnn=wnn4 9194 libwnn=wnn4
9218 else 9195 else
9219 echo "$ac_t""no" 1>&6 9196 echo "$ac_t""no" 1>&6
9220 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 9197 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9221 echo "configure:9222: checking for jl_dic_list_e in -lwnn6" >&5 9198 echo "configure:9199: checking for jl_dic_list_e in -lwnn6" >&5
9222 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9199 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9223 9200
9224 xe_check_libs=" -lwnn6 " 9201 xe_check_libs=" -lwnn6 "
9225 cat > conftest.$ac_ext <<EOF 9202 cat > conftest.$ac_ext <<EOF
9226 #line 9227 "configure" 9203 #line 9204 "configure"
9227 #include "confdefs.h" 9204 #include "confdefs.h"
9228 /* Override any gcc2 internal prototype to avoid an error. */ 9205 /* Override any gcc2 internal prototype to avoid an error. */
9229 /* We use char because int might match the return type of a gcc2 9206 /* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */ 9207 builtin and then its argument prototype would still apply. */
9231 char jl_dic_list_e(); 9208 char jl_dic_list_e();
9232 9209
9233 int main() { 9210 int main() {
9234 jl_dic_list_e() 9211 jl_dic_list_e()
9235 ; return 0; } 9212 ; return 0; }
9236 EOF 9213 EOF
9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9214 if { (eval echo configure:9215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9238 rm -rf conftest* 9215 rm -rf conftest*
9239 eval "ac_cv_lib_$ac_lib_var=yes" 9216 eval "ac_cv_lib_$ac_lib_var=yes"
9240 else 9217 else
9241 echo "configure: failed program was:" >&5 9218 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5 9219 cat conftest.$ac_ext >&5
9250 echo "$ac_t""yes" 1>&6 9227 echo "$ac_t""yes" 1>&6
9251 libwnn=wnn6 9228 libwnn=wnn6
9252 else 9229 else
9253 echo "$ac_t""no" 1>&6 9230 echo "$ac_t""no" 1>&6
9254 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 9231 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9255 echo "configure:9256: checking for dic_list_e in -lwnn6_fromsrc" >&5 9232 echo "configure:9233: checking for dic_list_e in -lwnn6_fromsrc" >&5
9256 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 9233 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9257 9234
9258 xe_check_libs=" -lwnn6_fromsrc " 9235 xe_check_libs=" -lwnn6_fromsrc "
9259 cat > conftest.$ac_ext <<EOF 9236 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure" 9237 #line 9238 "configure"
9261 #include "confdefs.h" 9238 #include "confdefs.h"
9262 /* Override any gcc2 internal prototype to avoid an error. */ 9239 /* Override any gcc2 internal prototype to avoid an error. */
9263 /* We use char because int might match the return type of a gcc2 9240 /* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */ 9241 builtin and then its argument prototype would still apply. */
9265 char dic_list_e(); 9242 char dic_list_e();
9266 9243
9267 int main() { 9244 int main() {
9268 dic_list_e() 9245 dic_list_e()
9269 ; return 0; } 9246 ; return 0; }
9270 EOF 9247 EOF
9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9248 if { (eval echo configure:9249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9272 rm -rf conftest* 9249 rm -rf conftest*
9273 eval "ac_cv_lib_$ac_lib_var=yes" 9250 eval "ac_cv_lib_$ac_lib_var=yes"
9274 else 9251 else
9275 echo "configure: failed program was:" >&5 9252 echo "configure: failed program was:" >&5
9276 cat conftest.$ac_ext >&5 9253 cat conftest.$ac_ext >&5
9314 echo " xemacs will be linked with \"mule-wnnfns.o\"" 9291 echo " xemacs will be linked with \"mule-wnnfns.o\""
9315 fi 9292 fi
9316 if test "$with_wnn6" != "no"; then 9293 if test "$with_wnn6" != "no"; then
9317 9294
9318 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 9295 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9319 echo "configure:9320: checking for jl_fi_dic_list in -l$libwnn" >&5 9296 echo "configure:9297: checking for jl_fi_dic_list in -l$libwnn" >&5
9320 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 9297 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9321 9298
9322 xe_check_libs=" -l$libwnn " 9299 xe_check_libs=" -l$libwnn "
9323 cat > conftest.$ac_ext <<EOF 9300 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure" 9301 #line 9302 "configure"
9325 #include "confdefs.h" 9302 #include "confdefs.h"
9326 /* Override any gcc2 internal prototype to avoid an error. */ 9303 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2 9304 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */ 9305 builtin and then its argument prototype would still apply. */
9329 char jl_fi_dic_list(); 9306 char jl_fi_dic_list();
9330 9307
9331 int main() { 9308 int main() {
9332 jl_fi_dic_list() 9309 jl_fi_dic_list()
9333 ; return 0; } 9310 ; return 0; }
9334 EOF 9311 EOF
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9312 if { (eval echo configure:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 rm -rf conftest* 9313 rm -rf conftest*
9337 eval "ac_cv_lib_$ac_lib_var=yes" 9314 eval "ac_cv_lib_$ac_lib_var=yes"
9338 else 9315 else
9339 echo "configure: failed program was:" >&5 9316 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5 9317 cat conftest.$ac_ext >&5
9365 9342
9366 canna_includes_found=no 9343 canna_includes_found=no
9367 if test "$with_canna" != "no"; then 9344 if test "$with_canna" != "no"; then
9368 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9345 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9369 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9346 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9370 echo "configure:9371: checking for canna/jrkanji.h" >&5 9347 echo "configure:9348: checking for canna/jrkanji.h" >&5
9371 9348
9372 cat > conftest.$ac_ext <<EOF 9349 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure" 9350 #line 9351 "configure"
9374 #include "confdefs.h" 9351 #include "confdefs.h"
9375 #include <canna/jrkanji.h> 9352 #include <canna/jrkanji.h>
9376 EOF 9353 EOF
9377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9378 { (eval echo configure:9379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9355 { (eval echo configure:9356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9380 if test -z "$ac_err"; then 9357 if test -z "$ac_err"; then
9381 rm -rf conftest* 9358 rm -rf conftest*
9382 eval "ac_cv_header_$ac_safe=yes" 9359 eval "ac_cv_header_$ac_safe=yes"
9383 else 9360 else
9400 -d "/usr/local/canna/include"; then 9377 -d "/usr/local/canna/include"; then
9401 save_c_switch_site="$c_switch_site" 9378 save_c_switch_site="$c_switch_site"
9402 c_switch_site="$c_switch_site -I/usr/local/canna/include" 9379 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9403 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9380 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9404 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9381 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9405 echo "configure:9406: checking for canna/jrkanji.h" >&5 9382 echo "configure:9383: checking for canna/jrkanji.h" >&5
9406 9383
9407 cat > conftest.$ac_ext <<EOF 9384 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure" 9385 #line 9386 "configure"
9409 #include "confdefs.h" 9386 #include "confdefs.h"
9410 #include <canna/jrkanji.h> 9387 #include <canna/jrkanji.h>
9411 EOF 9388 EOF
9412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9413 { (eval echo configure:9414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9390 { (eval echo configure:9391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9415 if test -z "$ac_err"; then 9392 if test -z "$ac_err"; then
9416 rm -rf conftest* 9393 rm -rf conftest*
9417 eval "ac_cv_header_$ac_safe=yes" 9394 eval "ac_cv_header_$ac_safe=yes"
9418 else 9395 else
9436 fi 9413 fi
9437 fi 9414 fi
9438 9415
9439 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 9416 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9440 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 9417 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9441 echo "configure:9442: checking for canna/RK.h" >&5 9418 echo "configure:9419: checking for canna/RK.h" >&5
9442 9419
9443 cat > conftest.$ac_ext <<EOF 9420 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure" 9421 #line 9422 "configure"
9445 #include "confdefs.h" 9422 #include "confdefs.h"
9446 #include <canna/RK.h> 9423 #include <canna/RK.h>
9447 EOF 9424 EOF
9448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9449 { (eval echo configure:9450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9426 { (eval echo configure:9427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9451 if test -z "$ac_err"; then 9428 if test -z "$ac_err"; then
9452 rm -rf conftest* 9429 rm -rf conftest*
9453 eval "ac_cv_header_$ac_safe=yes" 9430 eval "ac_cv_header_$ac_safe=yes"
9454 else 9431 else
9467 with_canna=no 9444 with_canna=no
9468 fi 9445 fi
9469 } 9446 }
9470 test -z "$with_canna" && { 9447 test -z "$with_canna" && {
9471 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 9448 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9472 echo "configure:9473: checking for RkBgnBun in -lRKC" >&5 9449 echo "configure:9450: checking for RkBgnBun in -lRKC" >&5
9473 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 9450 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9474 9451
9475 xe_check_libs=" -lRKC " 9452 xe_check_libs=" -lRKC "
9476 cat > conftest.$ac_ext <<EOF 9453 cat > conftest.$ac_ext <<EOF
9477 #line 9478 "configure" 9454 #line 9455 "configure"
9478 #include "confdefs.h" 9455 #include "confdefs.h"
9479 /* Override any gcc2 internal prototype to avoid an error. */ 9456 /* Override any gcc2 internal prototype to avoid an error. */
9480 /* We use char because int might match the return type of a gcc2 9457 /* We use char because int might match the return type of a gcc2
9481 builtin and then its argument prototype would still apply. */ 9458 builtin and then its argument prototype would still apply. */
9482 char RkBgnBun(); 9459 char RkBgnBun();
9483 9460
9484 int main() { 9461 int main() {
9485 RkBgnBun() 9462 RkBgnBun()
9486 ; return 0; } 9463 ; return 0; }
9487 EOF 9464 EOF
9488 if { (eval echo configure:9489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9465 if { (eval echo configure:9466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9489 rm -rf conftest* 9466 rm -rf conftest*
9490 eval "ac_cv_lib_$ac_lib_var=yes" 9467 eval "ac_cv_lib_$ac_lib_var=yes"
9491 else 9468 else
9492 echo "configure: failed program was:" >&5 9469 echo "configure: failed program was:" >&5
9493 cat conftest.$ac_ext >&5 9470 cat conftest.$ac_ext >&5
9506 fi 9483 fi
9507 9484
9508 } 9485 }
9509 test -z "$with_canna" && { 9486 test -z "$with_canna" && {
9510 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 9487 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9511 echo "configure:9512: checking for jrKanjiControl in -lcanna" >&5 9488 echo "configure:9489: checking for jrKanjiControl in -lcanna" >&5
9512 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 9489 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9513 9490
9514 xe_check_libs=" -lcanna " 9491 xe_check_libs=" -lcanna "
9515 cat > conftest.$ac_ext <<EOF 9492 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure" 9493 #line 9494 "configure"
9517 #include "confdefs.h" 9494 #include "confdefs.h"
9518 /* Override any gcc2 internal prototype to avoid an error. */ 9495 /* Override any gcc2 internal prototype to avoid an error. */
9519 /* We use char because int might match the return type of a gcc2 9496 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */ 9497 builtin and then its argument prototype would still apply. */
9521 char jrKanjiControl(); 9498 char jrKanjiControl();
9522 9499
9523 int main() { 9500 int main() {
9524 jrKanjiControl() 9501 jrKanjiControl()
9525 ; return 0; } 9502 ; return 0; }
9526 EOF 9503 EOF
9527 if { (eval echo configure:9528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9528 rm -rf conftest* 9505 rm -rf conftest*
9529 eval "ac_cv_lib_$ac_lib_var=yes" 9506 eval "ac_cv_lib_$ac_lib_var=yes"
9530 else 9507 else
9531 echo "configure: failed program was:" >&5 9508 echo "configure: failed program was:" >&5
9532 cat conftest.$ac_ext >&5 9509 cat conftest.$ac_ext >&5
9571 9548
9572 if test "$need_motif" = "yes" ; then 9549 if test "$need_motif" = "yes" ; then
9573 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 9550 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
9574 9551
9575 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 9552 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
9576 echo "configure:9577: checking for layout_object_getvalue in -li18n" >&5 9553 echo "configure:9554: checking for layout_object_getvalue in -li18n" >&5
9577 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 9554 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
9578 9555
9579 xe_check_libs=" -li18n " 9556 xe_check_libs=" -li18n "
9580 cat > conftest.$ac_ext <<EOF 9557 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure" 9558 #line 9559 "configure"
9582 #include "confdefs.h" 9559 #include "confdefs.h"
9583 /* Override any gcc2 internal prototype to avoid an error. */ 9560 /* Override any gcc2 internal prototype to avoid an error. */
9584 /* We use char because int might match the return type of a gcc2 9561 /* We use char because int might match the return type of a gcc2
9585 builtin and then its argument prototype would still apply. */ 9562 builtin and then its argument prototype would still apply. */
9586 char layout_object_getvalue(); 9563 char layout_object_getvalue();
9587 9564
9588 int main() { 9565 int main() {
9589 layout_object_getvalue() 9566 layout_object_getvalue()
9590 ; return 0; } 9567 ; return 0; }
9591 EOF 9568 EOF
9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9593 rm -rf conftest* 9570 rm -rf conftest*
9594 eval "ac_cv_lib_$ac_lib_var=yes" 9571 eval "ac_cv_lib_$ac_lib_var=yes"
9595 else 9572 else
9596 echo "configure: failed program was:" >&5 9573 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5 9574 cat conftest.$ac_ext >&5
9673 fi 9650 fi
9674 9651
9675 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 9652 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
9676 do 9653 do
9677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9678 echo "configure:9679: checking for $ac_func" >&5 9655 echo "configure:9656: checking for $ac_func" >&5
9679 9656
9680 cat > conftest.$ac_ext <<EOF 9657 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure" 9658 #line 9659 "configure"
9682 #include "confdefs.h" 9659 #include "confdefs.h"
9683 /* System header to define __stub macros and hopefully few prototypes, 9660 /* System header to define __stub macros and hopefully few prototypes,
9684 which can conflict with char $ac_func(); below. */ 9661 which can conflict with char $ac_func(); below. */
9685 #include <assert.h> 9662 #include <assert.h>
9686 /* Override any gcc2 internal prototype to avoid an error. */ 9663 /* Override any gcc2 internal prototype to avoid an error. */
9699 $ac_func(); 9676 $ac_func();
9700 #endif 9677 #endif
9701 9678
9702 ; return 0; } 9679 ; return 0; }
9703 EOF 9680 EOF
9704 if { (eval echo configure:9705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9681 if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9705 rm -rf conftest* 9682 rm -rf conftest*
9706 eval "ac_cv_func_$ac_func=yes" 9683 eval "ac_cv_func_$ac_func=yes"
9707 else 9684 else
9708 echo "configure: failed program was:" >&5 9685 echo "configure: failed program was:" >&5
9709 cat conftest.$ac_ext >&5 9686 cat conftest.$ac_ext >&5
9734 fi 9711 fi
9735 9712
9736 for ac_func in getloadavg 9713 for ac_func in getloadavg
9737 do 9714 do
9738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9739 echo "configure:9740: checking for $ac_func" >&5 9716 echo "configure:9717: checking for $ac_func" >&5
9740 9717
9741 cat > conftest.$ac_ext <<EOF 9718 cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure" 9719 #line 9720 "configure"
9743 #include "confdefs.h" 9720 #include "confdefs.h"
9744 /* System header to define __stub macros and hopefully few prototypes, 9721 /* System header to define __stub macros and hopefully few prototypes,
9745 which can conflict with char $ac_func(); below. */ 9722 which can conflict with char $ac_func(); below. */
9746 #include <assert.h> 9723 #include <assert.h>
9747 /* Override any gcc2 internal prototype to avoid an error. */ 9724 /* Override any gcc2 internal prototype to avoid an error. */
9760 $ac_func(); 9737 $ac_func();
9761 #endif 9738 #endif
9762 9739
9763 ; return 0; } 9740 ; return 0; }
9764 EOF 9741 EOF
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9742 if { (eval echo configure:9743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9766 rm -rf conftest* 9743 rm -rf conftest*
9767 eval "ac_cv_func_$ac_func=yes" 9744 eval "ac_cv_func_$ac_func=yes"
9768 else 9745 else
9769 echo "configure: failed program was:" >&5 9746 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5 9747 cat conftest.$ac_ext >&5
9796 echo " xemacs will be linked with \"getloadavg.o\"" 9773 echo " xemacs will be linked with \"getloadavg.o\""
9797 fi 9774 fi
9798 9775
9799 9776
9800 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 9777 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
9801 echo "configure:9802: checking for kstat_open in -lkstat" >&5 9778 echo "configure:9779: checking for kstat_open in -lkstat" >&5
9802 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 9779 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
9803 9780
9804 xe_check_libs=" -lkstat " 9781 xe_check_libs=" -lkstat "
9805 cat > conftest.$ac_ext <<EOF 9782 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure" 9783 #line 9784 "configure"
9807 #include "confdefs.h" 9784 #include "confdefs.h"
9808 /* Override any gcc2 internal prototype to avoid an error. */ 9785 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2 9786 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */ 9787 builtin and then its argument prototype would still apply. */
9811 char kstat_open(); 9788 char kstat_open();
9812 9789
9813 int main() { 9790 int main() {
9814 kstat_open() 9791 kstat_open()
9815 ; return 0; } 9792 ; return 0; }
9816 EOF 9793 EOF
9817 if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9794 if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9818 rm -rf conftest* 9795 rm -rf conftest*
9819 eval "ac_cv_lib_$ac_lib_var=yes" 9796 eval "ac_cv_lib_$ac_lib_var=yes"
9820 else 9797 else
9821 echo "configure: failed program was:" >&5 9798 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5 9799 cat conftest.$ac_ext >&5
9846 9823
9847 9824
9848 9825
9849 9826
9850 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 9827 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9851 echo "configure:9852: checking for kvm_read in -lkvm" >&5 9828 echo "configure:9829: checking for kvm_read in -lkvm" >&5
9852 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 9829 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9853 9830
9854 xe_check_libs=" -lkvm " 9831 xe_check_libs=" -lkvm "
9855 cat > conftest.$ac_ext <<EOF 9832 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure" 9833 #line 9834 "configure"
9857 #include "confdefs.h" 9834 #include "confdefs.h"
9858 /* Override any gcc2 internal prototype to avoid an error. */ 9835 /* Override any gcc2 internal prototype to avoid an error. */
9859 /* We use char because int might match the return type of a gcc2 9836 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */ 9837 builtin and then its argument prototype would still apply. */
9861 char kvm_read(); 9838 char kvm_read();
9862 9839
9863 int main() { 9840 int main() {
9864 kvm_read() 9841 kvm_read()
9865 ; return 0; } 9842 ; return 0; }
9866 EOF 9843 EOF
9867 if { (eval echo configure:9868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9844 if { (eval echo configure:9845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9868 rm -rf conftest* 9845 rm -rf conftest*
9869 eval "ac_cv_lib_$ac_lib_var=yes" 9846 eval "ac_cv_lib_$ac_lib_var=yes"
9870 else 9847 else
9871 echo "configure: failed program was:" >&5 9848 echo "configure: failed program was:" >&5
9872 cat conftest.$ac_ext >&5 9849 cat conftest.$ac_ext >&5
9896 9873
9897 9874
9898 fi 9875 fi
9899 9876
9900 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 9877 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9901 echo "configure:9902: checking whether netdb declares h_errno" >&5 9878 echo "configure:9879: checking whether netdb declares h_errno" >&5
9902 cat > conftest.$ac_ext <<EOF 9879 cat > conftest.$ac_ext <<EOF
9903 #line 9904 "configure" 9880 #line 9881 "configure"
9904 #include "confdefs.h" 9881 #include "confdefs.h"
9905 #include <netdb.h> 9882 #include <netdb.h>
9906 int main() { 9883 int main() {
9907 return h_errno; 9884 return h_errno;
9908 ; return 0; } 9885 ; return 0; }
9909 EOF 9886 EOF
9910 if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9887 if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9911 rm -rf conftest* 9888 rm -rf conftest*
9912 echo "$ac_t""yes" 1>&6 9889 echo "$ac_t""yes" 1>&6
9913 { test "$extra_verbose" = "yes" && cat << \EOF 9890 { test "$extra_verbose" = "yes" && cat << \EOF
9914 Defining HAVE_H_ERRNO 9891 Defining HAVE_H_ERRNO
9915 EOF 9892 EOF
9925 echo "$ac_t""no" 1>&6 9902 echo "$ac_t""no" 1>&6
9926 fi 9903 fi
9927 rm -f conftest* 9904 rm -f conftest*
9928 9905
9929 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 9906 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9930 echo "configure:9931: checking for sigsetjmp" >&5 9907 echo "configure:9908: checking for sigsetjmp" >&5
9931 cat > conftest.$ac_ext <<EOF 9908 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure" 9909 #line 9910 "configure"
9933 #include "confdefs.h" 9910 #include "confdefs.h"
9934 #include <setjmp.h> 9911 #include <setjmp.h>
9935 int main() { 9912 int main() {
9936 sigjmp_buf bar; sigsetjmp (bar, 0); 9913 sigjmp_buf bar; sigsetjmp (bar, 0);
9937 ; return 0; } 9914 ; return 0; }
9938 EOF 9915 EOF
9939 if { (eval echo configure:9940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9916 if { (eval echo configure:9917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9940 rm -rf conftest* 9917 rm -rf conftest*
9941 echo "$ac_t""yes" 1>&6 9918 echo "$ac_t""yes" 1>&6
9942 { test "$extra_verbose" = "yes" && cat << \EOF 9919 { test "$extra_verbose" = "yes" && cat << \EOF
9943 Defining HAVE_SIGSETJMP 9920 Defining HAVE_SIGSETJMP
9944 EOF 9921 EOF
9954 echo "$ac_t""no" 1>&6 9931 echo "$ac_t""no" 1>&6
9955 fi 9932 fi
9956 rm -f conftest* 9933 rm -f conftest*
9957 9934
9958 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 9935 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9959 echo "configure:9960: checking whether localtime caches TZ" >&5 9936 echo "configure:9937: checking whether localtime caches TZ" >&5
9960 9937
9961 if test "$ac_cv_func_tzset" = "yes"; then 9938 if test "$ac_cv_func_tzset" = "yes"; then
9962 cat > conftest.$ac_ext <<EOF 9939 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure" 9940 #line 9941 "configure"
9964 #include "confdefs.h" 9941 #include "confdefs.h"
9965 #include <time.h> 9942 #include <time.h>
9966 #if STDC_HEADERS 9943 #if STDC_HEADERS
9967 # include <stdlib.h> 9944 # include <stdlib.h>
9968 #endif 9945 #endif
9993 if (localtime (&now)->tm_hour != hour_unset) 9970 if (localtime (&now)->tm_hour != hour_unset)
9994 exit (1); 9971 exit (1);
9995 exit (0); 9972 exit (0);
9996 } 9973 }
9997 EOF 9974 EOF
9998 if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9975 if { (eval echo configure:9976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9999 then 9976 then
10000 emacs_cv_localtime_cache=no 9977 emacs_cv_localtime_cache=no
10001 else 9978 else
10002 conftest_rc="$?" 9979 conftest_rc="$?"
10003 echo "configure: failed program was:" >&5 9980 echo "configure: failed program was:" >&5
10023 10000
10024 fi 10001 fi
10025 10002
10026 if test "$HAVE_TIMEVAL" = "yes"; then 10003 if test "$HAVE_TIMEVAL" = "yes"; then
10027 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 10004 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10028 echo "configure:10029: checking whether gettimeofday accepts one or two arguments" >&5 10005 echo "configure:10006: checking whether gettimeofday accepts one or two arguments" >&5
10029 cat > conftest.$ac_ext <<EOF 10006 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure" 10007 #line 10008 "configure"
10031 #include "confdefs.h" 10008 #include "confdefs.h"
10032 10009
10033 #ifdef TIME_WITH_SYS_TIME 10010 #ifdef TIME_WITH_SYS_TIME
10034 #include <sys/time.h> 10011 #include <sys/time.h>
10035 #include <time.h> 10012 #include <time.h>
10046 struct timeval time; 10023 struct timeval time;
10047 gettimeofday (&time, 0); 10024 gettimeofday (&time, 0);
10048 10025
10049 ; return 0; } 10026 ; return 0; }
10050 EOF 10027 EOF
10051 if { (eval echo configure:10052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10028 if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10052 rm -rf conftest* 10029 rm -rf conftest*
10053 echo "$ac_t""two" 1>&6 10030 echo "$ac_t""two" 1>&6
10054 else 10031 else
10055 echo "configure: failed program was:" >&5 10032 echo "configure: failed program was:" >&5
10056 cat conftest.$ac_ext >&5 10033 cat conftest.$ac_ext >&5
10068 rm -f conftest* 10045 rm -f conftest*
10069 fi 10046 fi
10070 10047
10071 10048
10072 echo $ac_n "checking for inline""... $ac_c" 1>&6 10049 echo $ac_n "checking for inline""... $ac_c" 1>&6
10073 echo "configure:10074: checking for inline" >&5 10050 echo "configure:10051: checking for inline" >&5
10074 10051
10075 ac_cv_c_inline=no 10052 ac_cv_c_inline=no
10076 for ac_kw in inline __inline__ __inline; do 10053 for ac_kw in inline __inline__ __inline; do
10077 cat > conftest.$ac_ext <<EOF 10054 cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure" 10055 #line 10056 "configure"
10079 #include "confdefs.h" 10056 #include "confdefs.h"
10080 10057
10081 int main() { 10058 int main() {
10082 } $ac_kw foo() { 10059 } $ac_kw foo() {
10083 ; return 0; } 10060 ; return 0; }
10084 EOF 10061 EOF
10085 if { (eval echo configure:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10062 if { (eval echo configure:10063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10086 rm -rf conftest* 10063 rm -rf conftest*
10087 ac_cv_c_inline=$ac_kw; break 10064 ac_cv_c_inline=$ac_kw; break
10088 else 10065 else
10089 echo "configure: failed program was:" >&5 10066 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5 10067 cat conftest.$ac_ext >&5
10130 10107
10131 10108
10132 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 10109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10133 # for constant arguments. Useless! 10110 # for constant arguments. Useless!
10134 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 10111 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
10135 echo "configure:10136: checking for working alloca.h" >&5 10112 echo "configure:10113: checking for working alloca.h" >&5
10136 10113
10137 cat > conftest.$ac_ext <<EOF 10114 cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure" 10115 #line 10116 "configure"
10139 #include "confdefs.h" 10116 #include "confdefs.h"
10140 #include <alloca.h> 10117 #include <alloca.h>
10141 int main() { 10118 int main() {
10142 char *p = alloca(2 * sizeof(int)); 10119 char *p = alloca(2 * sizeof(int));
10143 ; return 0; } 10120 ; return 0; }
10144 EOF 10121 EOF
10145 if { (eval echo configure:10146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10122 if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10146 rm -rf conftest* 10123 rm -rf conftest*
10147 ac_cv_header_alloca_h=yes 10124 ac_cv_header_alloca_h=yes
10148 else 10125 else
10149 echo "configure: failed program was:" >&5 10126 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5 10127 cat conftest.$ac_ext >&5
10164 } 10141 }
10165 10142
10166 fi 10143 fi
10167 10144
10168 echo $ac_n "checking for alloca""... $ac_c" 1>&6 10145 echo $ac_n "checking for alloca""... $ac_c" 1>&6
10169 echo "configure:10170: checking for alloca" >&5 10146 echo "configure:10147: checking for alloca" >&5
10170 10147
10171 cat > conftest.$ac_ext <<EOF 10148 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure" 10149 #line 10150 "configure"
10173 #include "confdefs.h" 10150 #include "confdefs.h"
10174 10151
10175 #ifdef __GNUC__ 10152 #ifdef __GNUC__
10176 # define alloca __builtin_alloca 10153 # define alloca __builtin_alloca
10177 #else 10154 #else
10195 10172
10196 int main() { 10173 int main() {
10197 char *p = (char *) alloca(1); 10174 char *p = (char *) alloca(1);
10198 ; return 0; } 10175 ; return 0; }
10199 EOF 10176 EOF
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10177 if { (eval echo configure:10178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201 rm -rf conftest* 10178 rm -rf conftest*
10202 ac_cv_func_alloca_works=yes 10179 ac_cv_func_alloca_works=yes
10203 else 10180 else
10204 echo "configure: failed program was:" >&5 10181 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5 10182 cat conftest.$ac_ext >&5
10234 EOF 10211 EOF
10235 } 10212 }
10236 10213
10237 10214
10238 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 10215 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
10239 echo "configure:10240: checking whether alloca needs Cray hooks" >&5 10216 echo "configure:10217: checking whether alloca needs Cray hooks" >&5
10240 10217
10241 cat > conftest.$ac_ext <<EOF 10218 cat > conftest.$ac_ext <<EOF
10242 #line 10243 "configure" 10219 #line 10220 "configure"
10243 #include "confdefs.h" 10220 #include "confdefs.h"
10244 #if defined(CRAY) && ! defined(CRAY2) 10221 #if defined(CRAY) && ! defined(CRAY2)
10245 webecray 10222 webecray
10246 #else 10223 #else
10247 wenotbecray 10224 wenotbecray
10261 10238
10262 echo "$ac_t""$ac_cv_os_cray" 1>&6 10239 echo "$ac_t""$ac_cv_os_cray" 1>&6
10263 if test $ac_cv_os_cray = yes; then 10240 if test $ac_cv_os_cray = yes; then
10264 for ac_func in _getb67 GETB67 getb67; do 10241 for ac_func in _getb67 GETB67 getb67; do
10265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10266 echo "configure:10267: checking for $ac_func" >&5 10243 echo "configure:10244: checking for $ac_func" >&5
10267 10244
10268 cat > conftest.$ac_ext <<EOF 10245 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure" 10246 #line 10247 "configure"
10270 #include "confdefs.h" 10247 #include "confdefs.h"
10271 /* System header to define __stub macros and hopefully few prototypes, 10248 /* System header to define __stub macros and hopefully few prototypes,
10272 which can conflict with char $ac_func(); below. */ 10249 which can conflict with char $ac_func(); below. */
10273 #include <assert.h> 10250 #include <assert.h>
10274 /* Override any gcc2 internal prototype to avoid an error. */ 10251 /* Override any gcc2 internal prototype to avoid an error. */
10287 $ac_func(); 10264 $ac_func();
10288 #endif 10265 #endif
10289 10266
10290 ; return 0; } 10267 ; return 0; }
10291 EOF 10268 EOF
10292 if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10269 if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10293 rm -rf conftest* 10270 rm -rf conftest*
10294 eval "ac_cv_func_$ac_func=yes" 10271 eval "ac_cv_func_$ac_func=yes"
10295 else 10272 else
10296 echo "configure: failed program was:" >&5 10273 echo "configure: failed program was:" >&5
10297 cat conftest.$ac_ext >&5 10274 cat conftest.$ac_ext >&5
10317 10294
10318 done 10295 done
10319 fi 10296 fi
10320 10297
10321 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 10298 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
10322 echo "configure:10323: checking stack direction for C alloca" >&5 10299 echo "configure:10300: checking stack direction for C alloca" >&5
10323 10300
10324 cat > conftest.$ac_ext <<EOF 10301 cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure" 10302 #line 10303 "configure"
10326 #include "confdefs.h" 10303 #include "confdefs.h"
10327 find_stack_direction () 10304 find_stack_direction ()
10328 { 10305 {
10329 static char *addr = 0; 10306 static char *addr = 0;
10330 auto char dummy; 10307 auto char dummy;
10339 main () 10316 main ()
10340 { 10317 {
10341 exit (find_stack_direction() < 0); 10318 exit (find_stack_direction() < 0);
10342 } 10319 }
10343 EOF 10320 EOF
10344 if { (eval echo configure:10345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10321 if { (eval echo configure:10322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10345 then 10322 then
10346 ac_cv_c_stack_direction=1 10323 ac_cv_c_stack_direction=1
10347 else 10324 else
10348 conftest_rc="$?" 10325 conftest_rc="$?"
10349 echo "configure: failed program was:" >&5 10326 echo "configure: failed program was:" >&5
10368 echo " xemacs will be linked with \"$ALLOCA\"" 10345 echo " xemacs will be linked with \"$ALLOCA\""
10369 fi 10346 fi
10370 10347
10371 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 10348 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
10372 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 10349 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
10373 echo "configure:10374: checking for vfork.h" >&5 10350 echo "configure:10351: checking for vfork.h" >&5
10374 10351
10375 cat > conftest.$ac_ext <<EOF 10352 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure" 10353 #line 10354 "configure"
10377 #include "confdefs.h" 10354 #include "confdefs.h"
10378 #include <vfork.h> 10355 #include <vfork.h>
10379 EOF 10356 EOF
10380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10381 { (eval echo configure:10382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10358 { (eval echo configure:10359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10383 if test -z "$ac_err"; then 10360 if test -z "$ac_err"; then
10384 rm -rf conftest* 10361 rm -rf conftest*
10385 eval "ac_cv_header_$ac_safe=yes" 10362 eval "ac_cv_header_$ac_safe=yes"
10386 else 10363 else
10404 else 10381 else
10405 echo "$ac_t""no" 1>&6 10382 echo "$ac_t""no" 1>&6
10406 fi 10383 fi
10407 10384
10408 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 10385 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
10409 echo "configure:10410: checking for working vfork" >&5 10386 echo "configure:10387: checking for working vfork" >&5
10410 10387
10411 cat > conftest.$ac_ext <<EOF 10388 cat > conftest.$ac_ext <<EOF
10412 #line 10413 "configure" 10389 #line 10390 "configure"
10413 #include "confdefs.h" 10390 #include "confdefs.h"
10414 /* Thanks to Paul Eggert for this test. */ 10391 /* Thanks to Paul Eggert for this test. */
10415 #include <stdio.h> 10392 #include <stdio.h>
10416 #include <sys/types.h> 10393 #include <sys/types.h>
10417 #include <sys/stat.h> 10394 #include <sys/stat.h>
10502 || fstat(fileno(stdout), &st) != 0 10479 || fstat(fileno(stdout), &st) != 0
10503 ); 10480 );
10504 } 10481 }
10505 } 10482 }
10506 EOF 10483 EOF
10507 if { (eval echo configure:10508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10484 if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10508 then 10485 then
10509 ac_cv_func_vfork_works=yes 10486 ac_cv_func_vfork_works=yes
10510 else 10487 else
10511 conftest_rc="$?" 10488 conftest_rc="$?"
10512 echo "configure: failed program was:" >&5 10489 echo "configure: failed program was:" >&5
10528 10505
10529 fi 10506 fi
10530 10507
10531 10508
10532 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 10509 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
10533 echo "configure:10534: checking for working strcoll" >&5 10510 echo "configure:10511: checking for working strcoll" >&5
10534 10511
10535 cat > conftest.$ac_ext <<EOF 10512 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure" 10513 #line 10514 "configure"
10537 #include "confdefs.h" 10514 #include "confdefs.h"
10538 #include <string.h> 10515 #include <string.h>
10539 main () 10516 main ()
10540 { 10517 {
10541 exit (strcoll ("abc", "def") >= 0 || 10518 exit (strcoll ("abc", "def") >= 0 ||
10542 strcoll ("ABC", "DEF") >= 0 || 10519 strcoll ("ABC", "DEF") >= 0 ||
10543 strcoll ("123", "456") >= 0); 10520 strcoll ("123", "456") >= 0);
10544 } 10521 }
10545 EOF 10522 EOF
10546 if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10547 then 10524 then
10548 ac_cv_func_strcoll_works=yes 10525 ac_cv_func_strcoll_works=yes
10549 else 10526 else
10550 conftest_rc="$?" 10527 conftest_rc="$?"
10551 echo "configure: failed program was:" >&5 10528 echo "configure: failed program was:" >&5
10569 10546
10570 10547
10571 for ac_func in getpgrp 10548 for ac_func in getpgrp
10572 do 10549 do
10573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10574 echo "configure:10575: checking for $ac_func" >&5 10551 echo "configure:10552: checking for $ac_func" >&5
10575 10552
10576 cat > conftest.$ac_ext <<EOF 10553 cat > conftest.$ac_ext <<EOF
10577 #line 10578 "configure" 10554 #line 10555 "configure"
10578 #include "confdefs.h" 10555 #include "confdefs.h"
10579 /* System header to define __stub macros and hopefully few prototypes, 10556 /* System header to define __stub macros and hopefully few prototypes,
10580 which can conflict with char $ac_func(); below. */ 10557 which can conflict with char $ac_func(); below. */
10581 #include <assert.h> 10558 #include <assert.h>
10582 /* Override any gcc2 internal prototype to avoid an error. */ 10559 /* Override any gcc2 internal prototype to avoid an error. */
10595 $ac_func(); 10572 $ac_func();
10596 #endif 10573 #endif
10597 10574
10598 ; return 0; } 10575 ; return 0; }
10599 EOF 10576 EOF
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10577 if { (eval echo configure:10578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10601 rm -rf conftest* 10578 rm -rf conftest*
10602 eval "ac_cv_func_$ac_func=yes" 10579 eval "ac_cv_func_$ac_func=yes"
10603 else 10580 else
10604 echo "configure: failed program was:" >&5 10581 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5 10582 cat conftest.$ac_ext >&5
10623 echo "$ac_t""no" 1>&6 10600 echo "$ac_t""no" 1>&6
10624 fi 10601 fi
10625 done 10602 done
10626 10603
10627 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 10604 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
10628 echo "configure:10629: checking whether getpgrp takes no argument" >&5 10605 echo "configure:10606: checking whether getpgrp takes no argument" >&5
10629 10606
10630 cat > conftest.$ac_ext <<EOF 10607 cat > conftest.$ac_ext <<EOF
10631 #line 10632 "configure" 10608 #line 10609 "configure"
10632 #include "confdefs.h" 10609 #include "confdefs.h"
10633 10610
10634 /* 10611 /*
10635 * If this system has a BSD-style getpgrp(), 10612 * If this system has a BSD-style getpgrp(),
10636 * which takes a pid argument, exit unsuccessfully. 10613 * which takes a pid argument, exit unsuccessfully.
10681 exit(s>>8); 10658 exit(s>>8);
10682 } 10659 }
10683 } 10660 }
10684 10661
10685 EOF 10662 EOF
10686 if { (eval echo configure:10687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10663 if { (eval echo configure:10664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10687 then 10664 then
10688 ac_cv_func_getpgrp_void=yes 10665 ac_cv_func_getpgrp_void=yes
10689 else 10666 else
10690 conftest_rc="$?" 10667 conftest_rc="$?"
10691 echo "configure: failed program was:" >&5 10668 echo "configure: failed program was:" >&5
10708 10685
10709 fi 10686 fi
10710 10687
10711 10688
10712 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 10689 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10713 echo "configure:10714: checking for working mmap" >&5 10690 echo "configure:10691: checking for working mmap" >&5
10714 case "$opsys" in ultrix* ) have_mmap=no ;; *) 10691 case "$opsys" in ultrix* ) have_mmap=no ;; *)
10715 cat > conftest.$ac_ext <<EOF 10692 cat > conftest.$ac_ext <<EOF
10716 #line 10717 "configure" 10693 #line 10694 "configure"
10717 #include "confdefs.h" 10694 #include "confdefs.h"
10718 #include <stdio.h> 10695 #include <stdio.h>
10719 #include <unistd.h> 10696 #include <unistd.h>
10720 #include <fcntl.h> 10697 #include <fcntl.h>
10721 #include <sys/mman.h> 10698 #include <sys/mman.h>
10744 return 0; 10721 return 0;
10745 perror ("conftest: mmap failed"); 10722 perror ("conftest: mmap failed");
10746 return 1; 10723 return 1;
10747 } 10724 }
10748 EOF 10725 EOF
10749 if { (eval echo configure:10750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10750 then 10727 then
10751 have_mmap=yes 10728 have_mmap=yes
10752 else 10729 else
10753 conftest_rc="$?" 10730 conftest_rc="$?"
10754 echo "configure: failed program was:" >&5 10731 echo "configure: failed program was:" >&5
10770 10747
10771 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 10748 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10772 if test "$rel_alloc $have_mmap" = "default yes"; then 10749 if test "$rel_alloc $have_mmap" = "default yes"; then
10773 if test "$doug_lea_malloc" = "yes"; then 10750 if test "$doug_lea_malloc" = "yes"; then
10774 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 10751 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
10775 echo "configure:10776: checking for M_MMAP_THRESHOLD" >&5 10752 echo "configure:10753: checking for M_MMAP_THRESHOLD" >&5
10776 cat > conftest.$ac_ext <<EOF 10753 cat > conftest.$ac_ext <<EOF
10777 #line 10778 "configure" 10754 #line 10755 "configure"
10778 #include "confdefs.h" 10755 #include "confdefs.h"
10779 #include <malloc.h> 10756 #include <malloc.h>
10780 int main() { 10757 int main() {
10781 10758
10782 #ifndef M_MMAP_THRESHOLD 10759 #ifndef M_MMAP_THRESHOLD
10784 !@+$%^&*_)(_ - unlikely to compile... 10761 !@+$%^&*_)(_ - unlikely to compile...
10785 #endif 10762 #endif
10786 10763
10787 ; return 0; } 10764 ; return 0; }
10788 EOF 10765 EOF
10789 if { (eval echo configure:10790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10766 if { (eval echo configure:10767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10790 rm -rf conftest* 10767 rm -rf conftest*
10791 rel_alloc=no; echo "$ac_t""yes" 1>&6; 10768 rel_alloc=no; echo "$ac_t""yes" 1>&6;
10792 else 10769 else
10793 echo "configure: failed program was:" >&5 10770 echo "configure: failed program was:" >&5
10794 cat conftest.$ac_ext >&5 10771 cat conftest.$ac_ext >&5
10809 } 10786 }
10810 10787
10811 10788
10812 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 10789 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10813 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 10790 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10814 echo "configure:10815: checking for termios.h" >&5 10791 echo "configure:10792: checking for termios.h" >&5
10815 10792
10816 cat > conftest.$ac_ext <<EOF 10793 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure" 10794 #line 10795 "configure"
10818 #include "confdefs.h" 10795 #include "confdefs.h"
10819 #include <termios.h> 10796 #include <termios.h>
10820 EOF 10797 EOF
10821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10822 { (eval echo configure:10823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10799 { (eval echo configure:10800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10824 if test -z "$ac_err"; then 10801 if test -z "$ac_err"; then
10825 rm -rf conftest* 10802 rm -rf conftest*
10826 eval "ac_cv_header_$ac_safe=yes" 10803 eval "ac_cv_header_$ac_safe=yes"
10827 else 10804 else
10860 10837
10861 else 10838 else
10862 echo "$ac_t""no" 1>&6 10839 echo "$ac_t""no" 1>&6
10863 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 10840 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10864 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 10841 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10865 echo "configure:10866: checking for termio.h" >&5 10842 echo "configure:10843: checking for termio.h" >&5
10866 10843
10867 cat > conftest.$ac_ext <<EOF 10844 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure" 10845 #line 10846 "configure"
10869 #include "confdefs.h" 10846 #include "confdefs.h"
10870 #include <termio.h> 10847 #include <termio.h>
10871 EOF 10848 EOF
10872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10873 { (eval echo configure:10874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10850 { (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10875 if test -z "$ac_err"; then 10852 if test -z "$ac_err"; then
10876 rm -rf conftest* 10853 rm -rf conftest*
10877 eval "ac_cv_header_$ac_safe=yes" 10854 eval "ac_cv_header_$ac_safe=yes"
10878 else 10855 else
10900 fi 10877 fi
10901 10878
10902 10879
10903 10880
10904 echo $ac_n "checking for socket""... $ac_c" 1>&6 10881 echo $ac_n "checking for socket""... $ac_c" 1>&6
10905 echo "configure:10906: checking for socket" >&5 10882 echo "configure:10883: checking for socket" >&5
10906 10883
10907 cat > conftest.$ac_ext <<EOF 10884 cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure" 10885 #line 10886 "configure"
10909 #include "confdefs.h" 10886 #include "confdefs.h"
10910 /* System header to define __stub macros and hopefully few prototypes, 10887 /* System header to define __stub macros and hopefully few prototypes,
10911 which can conflict with char socket(); below. */ 10888 which can conflict with char socket(); below. */
10912 #include <assert.h> 10889 #include <assert.h>
10913 /* Override any gcc2 internal prototype to avoid an error. */ 10890 /* Override any gcc2 internal prototype to avoid an error. */
10926 socket(); 10903 socket();
10927 #endif 10904 #endif
10928 10905
10929 ; return 0; } 10906 ; return 0; }
10930 EOF 10907 EOF
10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10908 if { (eval echo configure:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10932 rm -rf conftest* 10909 rm -rf conftest*
10933 eval "ac_cv_func_socket=yes" 10910 eval "ac_cv_func_socket=yes"
10934 else 10911 else
10935 echo "configure: failed program was:" >&5 10912 echo "configure: failed program was:" >&5
10936 cat conftest.$ac_ext >&5 10913 cat conftest.$ac_ext >&5
10941 10918
10942 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 10919 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10943 echo "$ac_t""yes" 1>&6 10920 echo "$ac_t""yes" 1>&6
10944 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 10921 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10945 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 10922 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10946 echo "configure:10947: checking for netinet/in.h" >&5 10923 echo "configure:10924: checking for netinet/in.h" >&5
10947 10924
10948 cat > conftest.$ac_ext <<EOF 10925 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure" 10926 #line 10927 "configure"
10950 #include "confdefs.h" 10927 #include "confdefs.h"
10951 #include <netinet/in.h> 10928 #include <netinet/in.h>
10952 EOF 10929 EOF
10953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10954 { (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10931 { (eval echo configure:10932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10956 if test -z "$ac_err"; then 10933 if test -z "$ac_err"; then
10957 rm -rf conftest* 10934 rm -rf conftest*
10958 eval "ac_cv_header_$ac_safe=yes" 10935 eval "ac_cv_header_$ac_safe=yes"
10959 else 10936 else
10966 rm -f conftest* 10943 rm -f conftest*
10967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10968 echo "$ac_t""yes" 1>&6 10945 echo "$ac_t""yes" 1>&6
10969 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 10946 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10970 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 10947 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10971 echo "configure:10972: checking for arpa/inet.h" >&5 10948 echo "configure:10949: checking for arpa/inet.h" >&5
10972 10949
10973 cat > conftest.$ac_ext <<EOF 10950 cat > conftest.$ac_ext <<EOF
10974 #line 10975 "configure" 10951 #line 10952 "configure"
10975 #include "confdefs.h" 10952 #include "confdefs.h"
10976 #include <arpa/inet.h> 10953 #include <arpa/inet.h>
10977 EOF 10954 EOF
10978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10979 { (eval echo configure:10980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10956 { (eval echo configure:10957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10981 if test -z "$ac_err"; then 10958 if test -z "$ac_err"; then
10982 rm -rf conftest* 10959 rm -rf conftest*
10983 eval "ac_cv_header_$ac_safe=yes" 10960 eval "ac_cv_header_$ac_safe=yes"
10984 else 10961 else
10999 #define HAVE_SOCKETS 1 10976 #define HAVE_SOCKETS 1
11000 EOF 10977 EOF
11001 } 10978 }
11002 10979
11003 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 10980 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11004 echo "configure:11005: checking "for sun_len member in struct sockaddr_un"" >&5 10981 echo "configure:10982: checking "for sun_len member in struct sockaddr_un"" >&5
11005 cat > conftest.$ac_ext <<EOF 10982 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure" 10983 #line 10984 "configure"
11007 #include "confdefs.h" 10984 #include "confdefs.h"
11008 10985
11009 #include <sys/types.h> 10986 #include <sys/types.h>
11010 #include <sys/socket.h> 10987 #include <sys/socket.h>
11011 #include <sys/un.h> 10988 #include <sys/un.h>
11012 10989
11013 int main() { 10990 int main() {
11014 static struct sockaddr_un x; x.sun_len = 1; 10991 static struct sockaddr_un x; x.sun_len = 1;
11015 ; return 0; } 10992 ; return 0; }
11016 EOF 10993 EOF
11017 if { (eval echo configure:11018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10994 if { (eval echo configure:10995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11018 rm -rf conftest* 10995 rm -rf conftest*
11019 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10996 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11020 Defining HAVE_SOCKADDR_SUN_LEN 10997 Defining HAVE_SOCKADDR_SUN_LEN
11021 EOF 10998 EOF
11022 cat >> confdefs.h <<\EOF 10999 cat >> confdefs.h <<\EOF
11030 rm -rf conftest* 11007 rm -rf conftest*
11031 echo "$ac_t""no" 1>&6 11008 echo "$ac_t""no" 1>&6
11032 fi 11009 fi
11033 rm -f conftest* 11010 rm -f conftest*
11034 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 11011 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11035 echo "configure:11036: checking "for ip_mreq struct in netinet/in.h"" >&5 11012 echo "configure:11013: checking "for ip_mreq struct in netinet/in.h"" >&5
11036 cat > conftest.$ac_ext <<EOF 11013 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure" 11014 #line 11015 "configure"
11038 #include "confdefs.h" 11015 #include "confdefs.h"
11039 11016
11040 #include <sys/types.h> 11017 #include <sys/types.h>
11041 #include <netinet/in.h> 11018 #include <netinet/in.h>
11042 11019
11043 int main() { 11020 int main() {
11044 static struct ip_mreq x; 11021 static struct ip_mreq x;
11045 ; return 0; } 11022 ; return 0; }
11046 EOF 11023 EOF
11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11024 if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11048 rm -rf conftest* 11025 rm -rf conftest*
11049 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 11026 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11050 Defining HAVE_MULTICAST 11027 Defining HAVE_MULTICAST
11051 EOF 11028 EOF
11052 cat >> confdefs.h <<\EOF 11029 cat >> confdefs.h <<\EOF
11073 echo "$ac_t""no" 1>&6 11050 echo "$ac_t""no" 1>&6
11074 fi 11051 fi
11075 11052
11076 11053
11077 echo $ac_n "checking for msgget""... $ac_c" 1>&6 11054 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11078 echo "configure:11079: checking for msgget" >&5 11055 echo "configure:11056: checking for msgget" >&5
11079 11056
11080 cat > conftest.$ac_ext <<EOF 11057 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure" 11058 #line 11059 "configure"
11082 #include "confdefs.h" 11059 #include "confdefs.h"
11083 /* System header to define __stub macros and hopefully few prototypes, 11060 /* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char msgget(); below. */ 11061 which can conflict with char msgget(); below. */
11085 #include <assert.h> 11062 #include <assert.h>
11086 /* Override any gcc2 internal prototype to avoid an error. */ 11063 /* Override any gcc2 internal prototype to avoid an error. */
11099 msgget(); 11076 msgget();
11100 #endif 11077 #endif
11101 11078
11102 ; return 0; } 11079 ; return 0; }
11103 EOF 11080 EOF
11104 if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11081 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11105 rm -rf conftest* 11082 rm -rf conftest*
11106 eval "ac_cv_func_msgget=yes" 11083 eval "ac_cv_func_msgget=yes"
11107 else 11084 else
11108 echo "configure: failed program was:" >&5 11085 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5 11086 cat conftest.$ac_ext >&5
11114 11091
11115 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 11092 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6 11093 echo "$ac_t""yes" 1>&6
11117 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 11094 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
11118 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 11095 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
11119 echo "configure:11120: checking for sys/ipc.h" >&5 11096 echo "configure:11097: checking for sys/ipc.h" >&5
11120 11097
11121 cat > conftest.$ac_ext <<EOF 11098 cat > conftest.$ac_ext <<EOF
11122 #line 11123 "configure" 11099 #line 11100 "configure"
11123 #include "confdefs.h" 11100 #include "confdefs.h"
11124 #include <sys/ipc.h> 11101 #include <sys/ipc.h>
11125 EOF 11102 EOF
11126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11127 { (eval echo configure:11128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11104 { (eval echo configure:11105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11129 if test -z "$ac_err"; then 11106 if test -z "$ac_err"; then
11130 rm -rf conftest* 11107 rm -rf conftest*
11131 eval "ac_cv_header_$ac_safe=yes" 11108 eval "ac_cv_header_$ac_safe=yes"
11132 else 11109 else
11139 rm -f conftest* 11116 rm -f conftest*
11140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6 11118 echo "$ac_t""yes" 1>&6
11142 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 11119 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
11143 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 11120 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
11144 echo "configure:11145: checking for sys/msg.h" >&5 11121 echo "configure:11122: checking for sys/msg.h" >&5
11145 11122
11146 cat > conftest.$ac_ext <<EOF 11123 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure" 11124 #line 11125 "configure"
11148 #include "confdefs.h" 11125 #include "confdefs.h"
11149 #include <sys/msg.h> 11126 #include <sys/msg.h>
11150 EOF 11127 EOF
11151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11152 { (eval echo configure:11153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11154 if test -z "$ac_err"; then 11131 if test -z "$ac_err"; then
11155 rm -rf conftest* 11132 rm -rf conftest*
11156 eval "ac_cv_header_$ac_safe=yes" 11133 eval "ac_cv_header_$ac_safe=yes"
11157 else 11134 else
11185 fi 11162 fi
11186 11163
11187 11164
11188 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 11165 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
11189 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 11166 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
11190 echo "configure:11191: checking for dirent.h" >&5 11167 echo "configure:11168: checking for dirent.h" >&5
11191 11168
11192 cat > conftest.$ac_ext <<EOF 11169 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure" 11170 #line 11171 "configure"
11194 #include "confdefs.h" 11171 #include "confdefs.h"
11195 #include <dirent.h> 11172 #include <dirent.h>
11196 EOF 11173 EOF
11197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11198 { (eval echo configure:11199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11175 { (eval echo configure:11176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11200 if test -z "$ac_err"; then 11177 if test -z "$ac_err"; then
11201 rm -rf conftest* 11178 rm -rf conftest*
11202 eval "ac_cv_header_$ac_safe=yes" 11179 eval "ac_cv_header_$ac_safe=yes"
11203 else 11180 else
11220 11197
11221 else 11198 else
11222 echo "$ac_t""no" 1>&6 11199 echo "$ac_t""no" 1>&6
11223 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 11200 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
11224 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 11201 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
11225 echo "configure:11226: checking for sys/dir.h" >&5 11202 echo "configure:11203: checking for sys/dir.h" >&5
11226 11203
11227 cat > conftest.$ac_ext <<EOF 11204 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure" 11205 #line 11206 "configure"
11229 #include "confdefs.h" 11206 #include "confdefs.h"
11230 #include <sys/dir.h> 11207 #include <sys/dir.h>
11231 EOF 11208 EOF
11232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11233 { (eval echo configure:11234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11210 { (eval echo configure:11211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11235 if test -z "$ac_err"; then 11212 if test -z "$ac_err"; then
11236 rm -rf conftest* 11213 rm -rf conftest*
11237 eval "ac_cv_header_$ac_safe=yes" 11214 eval "ac_cv_header_$ac_safe=yes"
11238 else 11215 else
11261 fi 11238 fi
11262 11239
11263 11240
11264 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 11241 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
11265 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 11242 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
11266 echo "configure:11267: checking for nlist.h" >&5 11243 echo "configure:11244: checking for nlist.h" >&5
11267 11244
11268 cat > conftest.$ac_ext <<EOF 11245 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure" 11246 #line 11247 "configure"
11270 #include "confdefs.h" 11247 #include "confdefs.h"
11271 #include <nlist.h> 11248 #include <nlist.h>
11272 EOF 11249 EOF
11273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11274 { (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11251 { (eval echo configure:11252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11276 if test -z "$ac_err"; then 11253 if test -z "$ac_err"; then
11277 rm -rf conftest* 11254 rm -rf conftest*
11278 eval "ac_cv_header_$ac_safe=yes" 11255 eval "ac_cv_header_$ac_safe=yes"
11279 else 11256 else
11299 fi 11276 fi
11300 11277
11301 11278
11302 11279
11303 echo "checking "for sound support"" 1>&6 11280 echo "checking "for sound support"" 1>&6
11304 echo "configure:11305: checking "for sound support"" >&5 11281 echo "configure:11282: checking "for sound support"" >&5
11305 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 11282 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
11306 11283
11307 if test "$with_native_sound" != "no"; then 11284 if test "$with_native_sound" != "no"; then
11308 if test -n "$native_sound_lib"; then 11285 if test -n "$native_sound_lib"; then
11309 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 11286 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
11310 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 11287 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
11311 echo "configure:11312: checking for multimedia/audio_device.h" >&5 11288 echo "configure:11289: checking for multimedia/audio_device.h" >&5
11312 11289
11313 cat > conftest.$ac_ext <<EOF 11290 cat > conftest.$ac_ext <<EOF
11314 #line 11315 "configure" 11291 #line 11292 "configure"
11315 #include "confdefs.h" 11292 #include "confdefs.h"
11316 #include <multimedia/audio_device.h> 11293 #include <multimedia/audio_device.h>
11317 EOF 11294 EOF
11318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11319 { (eval echo configure:11320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11296 { (eval echo configure:11297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11321 if test -z "$ac_err"; then 11298 if test -z "$ac_err"; then
11322 rm -rf conftest* 11299 rm -rf conftest*
11323 eval "ac_cv_header_$ac_safe=yes" 11300 eval "ac_cv_header_$ac_safe=yes"
11324 else 11301 else
11362 case "$canonical" in 11339 case "$canonical" in
11363 *-sgi-* ) 11340 *-sgi-* )
11364 if test -z "$native_sound_lib"; then 11341 if test -z "$native_sound_lib"; then
11365 11342
11366 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 11343 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
11367 echo "configure:11368: checking for ALopenport in -laudio" >&5 11344 echo "configure:11345: checking for ALopenport in -laudio" >&5
11368 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 11345 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
11369 11346
11370 xe_check_libs=" -laudio " 11347 xe_check_libs=" -laudio "
11371 cat > conftest.$ac_ext <<EOF 11348 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure" 11349 #line 11350 "configure"
11373 #include "confdefs.h" 11350 #include "confdefs.h"
11374 /* Override any gcc2 internal prototype to avoid an error. */ 11351 /* Override any gcc2 internal prototype to avoid an error. */
11375 /* We use char because int might match the return type of a gcc2 11352 /* We use char because int might match the return type of a gcc2
11376 builtin and then its argument prototype would still apply. */ 11353 builtin and then its argument prototype would still apply. */
11377 char ALopenport(); 11354 char ALopenport();
11378 11355
11379 int main() { 11356 int main() {
11380 ALopenport() 11357 ALopenport()
11381 ; return 0; } 11358 ; return 0; }
11382 EOF 11359 EOF
11383 if { (eval echo configure:11384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11360 if { (eval echo configure:11361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11384 rm -rf conftest* 11361 rm -rf conftest*
11385 eval "ac_cv_lib_$ac_lib_var=yes" 11362 eval "ac_cv_lib_$ac_lib_var=yes"
11386 else 11363 else
11387 echo "configure: failed program was:" >&5 11364 echo "configure: failed program was:" >&5
11388 cat conftest.$ac_ext >&5 11365 cat conftest.$ac_ext >&5
11409 fi ;; 11386 fi ;;
11410 hppa*-hp-hpux* ) 11387 hppa*-hp-hpux* )
11411 if test -z "$native_sound_lib"; then 11388 if test -z "$native_sound_lib"; then
11412 11389
11413 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 11390 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
11414 echo "configure:11415: checking for AOpenAudio in -lAlib" >&5 11391 echo "configure:11392: checking for AOpenAudio in -lAlib" >&5
11415 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 11392 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
11416 11393
11417 xe_check_libs=" -lAlib " 11394 xe_check_libs=" -lAlib "
11418 cat > conftest.$ac_ext <<EOF 11395 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure" 11396 #line 11397 "configure"
11420 #include "confdefs.h" 11397 #include "confdefs.h"
11421 /* Override any gcc2 internal prototype to avoid an error. */ 11398 /* Override any gcc2 internal prototype to avoid an error. */
11422 /* We use char because int might match the return type of a gcc2 11399 /* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */ 11400 builtin and then its argument prototype would still apply. */
11424 char AOpenAudio(); 11401 char AOpenAudio();
11425 11402
11426 int main() { 11403 int main() {
11427 AOpenAudio() 11404 AOpenAudio()
11428 ; return 0; } 11405 ; return 0; }
11429 EOF 11406 EOF
11430 if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11407 if { (eval echo configure:11408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11431 rm -rf conftest* 11408 rm -rf conftest*
11432 eval "ac_cv_lib_$ac_lib_var=yes" 11409 eval "ac_cv_lib_$ac_lib_var=yes"
11433 else 11410 else
11434 echo "configure: failed program was:" >&5 11411 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5 11412 cat conftest.$ac_ext >&5
11463 11440
11464 if test -z "$sound_found"; then 11441 if test -z "$sound_found"; then
11465 for dir in "machine" "sys" "linux"; do 11442 for dir in "machine" "sys" "linux"; do
11466 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 11443 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
11467 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 11444 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
11468 echo "configure:11469: checking for ${dir}/soundcard.h" >&5 11445 echo "configure:11446: checking for ${dir}/soundcard.h" >&5
11469 11446
11470 cat > conftest.$ac_ext <<EOF 11447 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure" 11448 #line 11449 "configure"
11472 #include "confdefs.h" 11449 #include "confdefs.h"
11473 #include <${dir}/soundcard.h> 11450 #include <${dir}/soundcard.h>
11474 EOF 11451 EOF
11475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11476 { (eval echo configure:11477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11453 { (eval echo configure:11454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11478 if test -z "$ac_err"; then 11455 if test -z "$ac_err"; then
11479 rm -rf conftest* 11456 rm -rf conftest*
11480 eval "ac_cv_header_$ac_safe=yes" 11457 eval "ac_cv_header_$ac_safe=yes"
11481 else 11458 else
11525 fi 11502 fi
11526 11503
11527 if test "$with_nas_sound" != "no"; then 11504 if test "$with_nas_sound" != "no"; then
11528 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 11505 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
11529 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 11506 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
11530 echo "configure:11531: checking for audio/audiolib.h" >&5 11507 echo "configure:11508: checking for audio/audiolib.h" >&5
11531 11508
11532 cat > conftest.$ac_ext <<EOF 11509 cat > conftest.$ac_ext <<EOF
11533 #line 11534 "configure" 11510 #line 11511 "configure"
11534 #include "confdefs.h" 11511 #include "confdefs.h"
11535 #include <audio/audiolib.h> 11512 #include <audio/audiolib.h>
11536 EOF 11513 EOF
11537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11538 { (eval echo configure:11539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11515 { (eval echo configure:11516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11540 if test -z "$ac_err"; then 11517 if test -z "$ac_err"; then
11541 rm -rf conftest* 11518 rm -rf conftest*
11542 eval "ac_cv_header_$ac_safe=yes" 11519 eval "ac_cv_header_$ac_safe=yes"
11543 else 11520 else
11551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11552 echo "$ac_t""yes" 1>&6 11529 echo "$ac_t""yes" 1>&6
11553 11530
11554 11531
11555 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 11532 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
11556 echo "configure:11557: checking for AuOpenServer in -laudio" >&5 11533 echo "configure:11534: checking for AuOpenServer in -laudio" >&5
11557 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 11534 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
11558 11535
11559 xe_check_libs=" -laudio " 11536 xe_check_libs=" -laudio "
11560 cat > conftest.$ac_ext <<EOF 11537 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure" 11538 #line 11539 "configure"
11562 #include "confdefs.h" 11539 #include "confdefs.h"
11563 /* Override any gcc2 internal prototype to avoid an error. */ 11540 /* Override any gcc2 internal prototype to avoid an error. */
11564 /* We use char because int might match the return type of a gcc2 11541 /* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */ 11542 builtin and then its argument prototype would still apply. */
11566 char AuOpenServer(); 11543 char AuOpenServer();
11567 11544
11568 int main() { 11545 int main() {
11569 AuOpenServer() 11546 AuOpenServer()
11570 ; return 0; } 11547 ; return 0; }
11571 EOF 11548 EOF
11572 if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11549 if { (eval echo configure:11550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11573 rm -rf conftest* 11550 rm -rf conftest*
11574 eval "ac_cv_lib_$ac_lib_var=yes" 11551 eval "ac_cv_lib_$ac_lib_var=yes"
11575 else 11552 else
11576 echo "configure: failed program was:" >&5 11553 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5 11554 cat conftest.$ac_ext >&5
11606 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 11583 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
11607 echo " xemacs will be linked with \"nas.o\"" 11584 echo " xemacs will be linked with \"nas.o\""
11608 fi 11585 fi
11609 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 11586 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
11610 cat > conftest.$ac_ext <<EOF 11587 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure" 11588 #line 11589 "configure"
11612 #include "confdefs.h" 11589 #include "confdefs.h"
11613 #include <audio/Xtutil.h> 11590 #include <audio/Xtutil.h>
11614 EOF 11591 EOF
11615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11616 egrep "AuXtErrorJump" >/dev/null 2>&1; then 11593 egrep "AuXtErrorJump" >/dev/null 2>&1; then
11637 11614
11638 if test "$with_esd_sound" != "no"; then 11615 if test "$with_esd_sound" != "no"; then
11639 # Extract the first word of "esd-config", so it can be a program name with args. 11616 # Extract the first word of "esd-config", so it can be a program name with args.
11640 set dummy esd-config; ac_word=$2 11617 set dummy esd-config; ac_word=$2
11641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 11618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11642 echo "configure:11643: checking for $ac_word" >&5 11619 echo "configure:11620: checking for $ac_word" >&5
11643 11620
11644 if test -n "$have_esd_config"; then 11621 if test -n "$have_esd_config"; then
11645 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 11622 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
11646 else 11623 else
11647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 11624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11666 if test "$have_esd_config" = "yes"; then 11643 if test "$have_esd_config" = "yes"; then
11667 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 11644 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
11668 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 11645 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
11669 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 11646 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
11670 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 11647 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
11671 echo "configure:11672: checking for esd_play_stream" >&5 11648 echo "configure:11649: checking for esd_play_stream" >&5
11672 11649
11673 cat > conftest.$ac_ext <<EOF 11650 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure" 11651 #line 11652 "configure"
11675 #include "confdefs.h" 11652 #include "confdefs.h"
11676 /* System header to define __stub macros and hopefully few prototypes, 11653 /* System header to define __stub macros and hopefully few prototypes,
11677 which can conflict with char esd_play_stream(); below. */ 11654 which can conflict with char esd_play_stream(); below. */
11678 #include <assert.h> 11655 #include <assert.h>
11679 /* Override any gcc2 internal prototype to avoid an error. */ 11656 /* Override any gcc2 internal prototype to avoid an error. */
11692 esd_play_stream(); 11669 esd_play_stream();
11693 #endif 11670 #endif
11694 11671
11695 ; return 0; } 11672 ; return 0; }
11696 EOF 11673 EOF
11697 if { (eval echo configure:11698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11674 if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11698 rm -rf conftest* 11675 rm -rf conftest*
11699 eval "ac_cv_func_esd_play_stream=yes" 11676 eval "ac_cv_func_esd_play_stream=yes"
11700 else 11677 else
11701 echo "configure: failed program was:" >&5 11678 echo "configure: failed program was:" >&5
11702 cat conftest.$ac_ext >&5 11679 cat conftest.$ac_ext >&5
11743 11720
11744 test -z "$with_tty" && with_tty=yes 11721 test -z "$with_tty" && with_tty=yes
11745 11722
11746 if test "$with_tty" = "yes" ; then 11723 if test "$with_tty" = "yes" ; then
11747 echo "checking for TTY-related features" 1>&6 11724 echo "checking for TTY-related features" 1>&6
11748 echo "configure:11749: checking for TTY-related features" >&5 11725 echo "configure:11726: checking for TTY-related features" >&5
11749 { test "$extra_verbose" = "yes" && cat << \EOF 11726 { test "$extra_verbose" = "yes" && cat << \EOF
11750 Defining HAVE_TTY 11727 Defining HAVE_TTY
11751 EOF 11728 EOF
11752 cat >> confdefs.h <<\EOF 11729 cat >> confdefs.h <<\EOF
11753 #define HAVE_TTY 1 11730 #define HAVE_TTY 1
11759 fi 11736 fi
11760 11737
11761 if test -z "$with_ncurses"; then 11738 if test -z "$with_ncurses"; then
11762 11739
11763 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 11740 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
11764 echo "configure:11765: checking for tgetent in -lncurses" >&5 11741 echo "configure:11742: checking for tgetent in -lncurses" >&5
11765 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 11742 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
11766 11743
11767 xe_check_libs=" -lncurses " 11744 xe_check_libs=" -lncurses "
11768 cat > conftest.$ac_ext <<EOF 11745 cat > conftest.$ac_ext <<EOF
11769 #line 11770 "configure" 11746 #line 11747 "configure"
11770 #include "confdefs.h" 11747 #include "confdefs.h"
11771 /* Override any gcc2 internal prototype to avoid an error. */ 11748 /* Override any gcc2 internal prototype to avoid an error. */
11772 /* We use char because int might match the return type of a gcc2 11749 /* We use char because int might match the return type of a gcc2
11773 builtin and then its argument prototype would still apply. */ 11750 builtin and then its argument prototype would still apply. */
11774 char tgetent(); 11751 char tgetent();
11775 11752
11776 int main() { 11753 int main() {
11777 tgetent() 11754 tgetent()
11778 ; return 0; } 11755 ; return 0; }
11779 EOF 11756 EOF
11780 if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11757 if { (eval echo configure:11758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11781 rm -rf conftest* 11758 rm -rf conftest*
11782 eval "ac_cv_lib_$ac_lib_var=yes" 11759 eval "ac_cv_lib_$ac_lib_var=yes"
11783 else 11760 else
11784 echo "configure: failed program was:" >&5 11761 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5 11762 cat conftest.$ac_ext >&5
11808 EOF 11785 EOF
11809 } 11786 }
11810 11787
11811 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 11788 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11812 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 11789 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11813 echo "configure:11814: checking for ncurses/curses.h" >&5 11790 echo "configure:11791: checking for ncurses/curses.h" >&5
11814 11791
11815 cat > conftest.$ac_ext <<EOF 11792 cat > conftest.$ac_ext <<EOF
11816 #line 11817 "configure" 11793 #line 11794 "configure"
11817 #include "confdefs.h" 11794 #include "confdefs.h"
11818 #include <ncurses/curses.h> 11795 #include <ncurses/curses.h>
11819 EOF 11796 EOF
11820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11821 { (eval echo configure:11822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11798 { (eval echo configure:11799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11823 if test -z "$ac_err"; then 11800 if test -z "$ac_err"; then
11824 rm -rf conftest* 11801 rm -rf conftest*
11825 eval "ac_cv_header_$ac_safe=yes" 11802 eval "ac_cv_header_$ac_safe=yes"
11826 else 11803 else
11838 echo "$ac_t""no" 1>&6 11815 echo "$ac_t""no" 1>&6
11839 fi 11816 fi
11840 11817
11841 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 11818 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11842 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 11819 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11843 echo "configure:11844: checking for ncurses/term.h" >&5 11820 echo "configure:11821: checking for ncurses/term.h" >&5
11844 11821
11845 cat > conftest.$ac_ext <<EOF 11822 cat > conftest.$ac_ext <<EOF
11846 #line 11847 "configure" 11823 #line 11824 "configure"
11847 #include "confdefs.h" 11824 #include "confdefs.h"
11848 #include <ncurses/term.h> 11825 #include <ncurses/term.h>
11849 EOF 11826 EOF
11850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11851 { (eval echo configure:11852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11828 { (eval echo configure:11829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11853 if test -z "$ac_err"; then 11830 if test -z "$ac_err"; then
11854 rm -rf conftest* 11831 rm -rf conftest*
11855 eval "ac_cv_header_$ac_safe=yes" 11832 eval "ac_cv_header_$ac_safe=yes"
11856 else 11833 else
11876 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 11853 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11877 save_c_switch_site="$c_switch_site" 11854 save_c_switch_site="$c_switch_site"
11878 c_switch_site="$c_switch_site -I/usr/include/ncurses" 11855 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11879 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 11856 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11880 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 11857 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11881 echo "configure:11882: checking for ncurses/curses.h" >&5 11858 echo "configure:11859: checking for ncurses/curses.h" >&5
11882 11859
11883 cat > conftest.$ac_ext <<EOF 11860 cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure" 11861 #line 11862 "configure"
11885 #include "confdefs.h" 11862 #include "confdefs.h"
11886 #include <ncurses/curses.h> 11863 #include <ncurses/curses.h>
11887 EOF 11864 EOF
11888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11889 { (eval echo configure:11890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11866 { (eval echo configure:11867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11891 if test -z "$ac_err"; then 11868 if test -z "$ac_err"; then
11892 rm -rf conftest* 11869 rm -rf conftest*
11893 eval "ac_cv_header_$ac_safe=yes" 11870 eval "ac_cv_header_$ac_safe=yes"
11894 else 11871 else
11919 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 11896 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11920 else 11897 else
11921 for lib in curses termlib termcap; do 11898 for lib in curses termlib termcap; do
11922 11899
11923 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 11900 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11924 echo "configure:11925: checking for tgetent in -l$lib" >&5 11901 echo "configure:11902: checking for tgetent in -l$lib" >&5
11925 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 11902 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11926 11903
11927 xe_check_libs=" -l$lib " 11904 xe_check_libs=" -l$lib "
11928 cat > conftest.$ac_ext <<EOF 11905 cat > conftest.$ac_ext <<EOF
11929 #line 11930 "configure" 11906 #line 11907 "configure"
11930 #include "confdefs.h" 11907 #include "confdefs.h"
11931 /* Override any gcc2 internal prototype to avoid an error. */ 11908 /* Override any gcc2 internal prototype to avoid an error. */
11932 /* We use char because int might match the return type of a gcc2 11909 /* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */ 11910 builtin and then its argument prototype would still apply. */
11934 char tgetent(); 11911 char tgetent();
11935 11912
11936 int main() { 11913 int main() {
11937 tgetent() 11914 tgetent()
11938 ; return 0; } 11915 ; return 0; }
11939 EOF 11916 EOF
11940 if { (eval echo configure:11941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11917 if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11941 rm -rf conftest* 11918 rm -rf conftest*
11942 eval "ac_cv_lib_$ac_lib_var=yes" 11919 eval "ac_cv_lib_$ac_lib_var=yes"
11943 else 11920 else
11944 echo "configure: failed program was:" >&5 11921 echo "configure: failed program was:" >&5
11945 cat conftest.$ac_ext >&5 11922 cat conftest.$ac_ext >&5
11966 if test -n "$libs_termcap"; then 11943 if test -n "$libs_termcap"; then
11967 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 11944 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11968 else 11945 else
11969 11946
11970 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 11947 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11971 echo "configure:11972: checking for tgetent in -lcurses" >&5 11948 echo "configure:11949: checking for tgetent in -lcurses" >&5
11972 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 11949 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11973 11950
11974 xe_check_libs=" -lcurses " 11951 xe_check_libs=" -lcurses "
11975 cat > conftest.$ac_ext <<EOF 11952 cat > conftest.$ac_ext <<EOF
11976 #line 11977 "configure" 11953 #line 11954 "configure"
11977 #include "confdefs.h" 11954 #include "confdefs.h"
11978 /* Override any gcc2 internal prototype to avoid an error. */ 11955 /* Override any gcc2 internal prototype to avoid an error. */
11979 /* We use char because int might match the return type of a gcc2 11956 /* We use char because int might match the return type of a gcc2
11980 builtin and then its argument prototype would still apply. */ 11957 builtin and then its argument prototype would still apply. */
11981 char tgetent(); 11958 char tgetent();
11982 11959
11983 int main() { 11960 int main() {
11984 tgetent() 11961 tgetent()
11985 ; return 0; } 11962 ; return 0; }
11986 EOF 11963 EOF
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11964 if { (eval echo configure:11965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11988 rm -rf conftest* 11965 rm -rf conftest*
11989 eval "ac_cv_lib_$ac_lib_var=yes" 11966 eval "ac_cv_lib_$ac_lib_var=yes"
11990 else 11967 else
11991 echo "configure: failed program was:" >&5 11968 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5 11969 cat conftest.$ac_ext >&5
12000 echo "$ac_t""yes" 1>&6 11977 echo "$ac_t""yes" 1>&6
12001 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 11978 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12002 else 11979 else
12003 echo "$ac_t""no" 1>&6 11980 echo "$ac_t""no" 1>&6
12004 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 11981 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12005 echo "configure:12006: checking for tgetent in -ltermcap" >&5 11982 echo "configure:11983: checking for tgetent in -ltermcap" >&5
12006 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 11983 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12007 11984
12008 xe_check_libs=" -ltermcap " 11985 xe_check_libs=" -ltermcap "
12009 cat > conftest.$ac_ext <<EOF 11986 cat > conftest.$ac_ext <<EOF
12010 #line 12011 "configure" 11987 #line 11988 "configure"
12011 #include "confdefs.h" 11988 #include "confdefs.h"
12012 /* Override any gcc2 internal prototype to avoid an error. */ 11989 /* Override any gcc2 internal prototype to avoid an error. */
12013 /* We use char because int might match the return type of a gcc2 11990 /* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */ 11991 builtin and then its argument prototype would still apply. */
12015 char tgetent(); 11992 char tgetent();
12016 11993
12017 int main() { 11994 int main() {
12018 tgetent() 11995 tgetent()
12019 ; return 0; } 11996 ; return 0; }
12020 EOF 11997 EOF
12021 if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11998 if { (eval echo configure:11999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12022 rm -rf conftest* 11999 rm -rf conftest*
12023 eval "ac_cv_lib_$ac_lib_var=yes" 12000 eval "ac_cv_lib_$ac_lib_var=yes"
12024 else 12001 else
12025 echo "configure: failed program was:" >&5 12002 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5 12003 cat conftest.$ac_ext >&5
12064 } 12041 }
12065 12042
12066 12043
12067 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 12044 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12068 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 12045 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12069 echo "configure:12070: checking for gpm.h" >&5 12046 echo "configure:12047: checking for gpm.h" >&5
12070 12047
12071 cat > conftest.$ac_ext <<EOF 12048 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure" 12049 #line 12050 "configure"
12073 #include "confdefs.h" 12050 #include "confdefs.h"
12074 #include <gpm.h> 12051 #include <gpm.h>
12075 EOF 12052 EOF
12076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12077 { (eval echo configure:12078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12054 { (eval echo configure:12055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12079 if test -z "$ac_err"; then 12056 if test -z "$ac_err"; then
12080 rm -rf conftest* 12057 rm -rf conftest*
12081 eval "ac_cv_header_$ac_safe=yes" 12058 eval "ac_cv_header_$ac_safe=yes"
12082 else 12059 else
12095 with_gpm=no 12072 with_gpm=no
12096 fi 12073 fi
12097 } 12074 }
12098 test -z "$with_gpm" && { 12075 test -z "$with_gpm" && {
12099 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 12076 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12100 echo "configure:12101: checking for Gpm_Open in -lgpm" >&5 12077 echo "configure:12078: checking for Gpm_Open in -lgpm" >&5
12101 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 12078 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12102 12079
12103 xe_check_libs=" -lgpm " 12080 xe_check_libs=" -lgpm "
12104 cat > conftest.$ac_ext <<EOF 12081 cat > conftest.$ac_ext <<EOF
12105 #line 12106 "configure" 12082 #line 12083 "configure"
12106 #include "confdefs.h" 12083 #include "confdefs.h"
12107 /* Override any gcc2 internal prototype to avoid an error. */ 12084 /* Override any gcc2 internal prototype to avoid an error. */
12108 /* We use char because int might match the return type of a gcc2 12085 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */ 12086 builtin and then its argument prototype would still apply. */
12110 char Gpm_Open(); 12087 char Gpm_Open();
12111 12088
12112 int main() { 12089 int main() {
12113 Gpm_Open() 12090 Gpm_Open()
12114 ; return 0; } 12091 ; return 0; }
12115 EOF 12092 EOF
12116 if { (eval echo configure:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12093 if { (eval echo configure:12094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12117 rm -rf conftest* 12094 rm -rf conftest*
12118 eval "ac_cv_lib_$ac_lib_var=yes" 12095 eval "ac_cv_lib_$ac_lib_var=yes"
12119 else 12096 else
12120 echo "configure: failed program was:" >&5 12097 echo "configure: failed program was:" >&5
12121 cat conftest.$ac_ext >&5 12098 cat conftest.$ac_ext >&5
12161 fi 12138 fi
12162 12139
12163 12140
12164 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 12141 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
12165 != "no no no" && echo "checking for database support" 1>&6 12142 != "no no no" && echo "checking for database support" 1>&6
12166 echo "configure:12167: checking for database support" >&5 12143 echo "configure:12144: checking for database support" >&5
12167 12144
12168 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 12145 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
12169 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 12146 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
12170 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 12147 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
12171 echo "configure:12172: checking for ndbm.h" >&5 12148 echo "configure:12149: checking for ndbm.h" >&5
12172 12149
12173 cat > conftest.$ac_ext <<EOF 12150 cat > conftest.$ac_ext <<EOF
12174 #line 12175 "configure" 12151 #line 12152 "configure"
12175 #include "confdefs.h" 12152 #include "confdefs.h"
12176 #include <ndbm.h> 12153 #include <ndbm.h>
12177 EOF 12154 EOF
12178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12179 { (eval echo configure:12180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12156 { (eval echo configure:12157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12181 if test -z "$ac_err"; then 12158 if test -z "$ac_err"; then
12182 rm -rf conftest* 12159 rm -rf conftest*
12183 eval "ac_cv_header_$ac_safe=yes" 12160 eval "ac_cv_header_$ac_safe=yes"
12184 else 12161 else
12204 fi 12181 fi
12205 12182
12206 if test "$with_database_gdbm" != "no"; then 12183 if test "$with_database_gdbm" != "no"; then
12207 12184
12208 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 12185 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
12209 echo "configure:12210: checking for dbm_open in -lgdbm" >&5 12186 echo "configure:12187: checking for dbm_open in -lgdbm" >&5
12210 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 12187 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
12211 12188
12212 xe_check_libs=" -lgdbm " 12189 xe_check_libs=" -lgdbm "
12213 cat > conftest.$ac_ext <<EOF 12190 cat > conftest.$ac_ext <<EOF
12214 #line 12215 "configure" 12191 #line 12192 "configure"
12215 #include "confdefs.h" 12192 #include "confdefs.h"
12216 /* Override any gcc2 internal prototype to avoid an error. */ 12193 /* Override any gcc2 internal prototype to avoid an error. */
12217 /* We use char because int might match the return type of a gcc2 12194 /* We use char because int might match the return type of a gcc2
12218 builtin and then its argument prototype would still apply. */ 12195 builtin and then its argument prototype would still apply. */
12219 char dbm_open(); 12196 char dbm_open();
12220 12197
12221 int main() { 12198 int main() {
12222 dbm_open() 12199 dbm_open()
12223 ; return 0; } 12200 ; return 0; }
12224 EOF 12201 EOF
12225 if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12202 if { (eval echo configure:12203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12226 rm -rf conftest* 12203 rm -rf conftest*
12227 eval "ac_cv_lib_$ac_lib_var=yes" 12204 eval "ac_cv_lib_$ac_lib_var=yes"
12228 else 12205 else
12229 echo "configure: failed program was:" >&5 12206 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5 12207 cat conftest.$ac_ext >&5
12248 12225
12249 fi 12226 fi
12250 12227
12251 if test "$with_database_dbm" != "no"; then 12228 if test "$with_database_dbm" != "no"; then
12252 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 12229 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12253 echo "configure:12254: checking for dbm_open" >&5 12230 echo "configure:12231: checking for dbm_open" >&5
12254 12231
12255 cat > conftest.$ac_ext <<EOF 12232 cat > conftest.$ac_ext <<EOF
12256 #line 12257 "configure" 12233 #line 12234 "configure"
12257 #include "confdefs.h" 12234 #include "confdefs.h"
12258 /* System header to define __stub macros and hopefully few prototypes, 12235 /* System header to define __stub macros and hopefully few prototypes,
12259 which can conflict with char dbm_open(); below. */ 12236 which can conflict with char dbm_open(); below. */
12260 #include <assert.h> 12237 #include <assert.h>
12261 /* Override any gcc2 internal prototype to avoid an error. */ 12238 /* Override any gcc2 internal prototype to avoid an error. */
12274 dbm_open(); 12251 dbm_open();
12275 #endif 12252 #endif
12276 12253
12277 ; return 0; } 12254 ; return 0; }
12278 EOF 12255 EOF
12279 if { (eval echo configure:12280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12256 if { (eval echo configure:12257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12280 rm -rf conftest* 12257 rm -rf conftest*
12281 eval "ac_cv_func_dbm_open=yes" 12258 eval "ac_cv_func_dbm_open=yes"
12282 else 12259 else
12283 echo "configure: failed program was:" >&5 12260 echo "configure: failed program was:" >&5
12284 cat conftest.$ac_ext >&5 12261 cat conftest.$ac_ext >&5
12293 else 12270 else
12294 echo "$ac_t""no" 1>&6 12271 echo "$ac_t""no" 1>&6
12295 12272
12296 12273
12297 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 12274 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12298 echo "configure:12299: checking for dbm_open in -ldbm" >&5 12275 echo "configure:12276: checking for dbm_open in -ldbm" >&5
12299 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 12276 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
12300 12277
12301 xe_check_libs=" -ldbm " 12278 xe_check_libs=" -ldbm "
12302 cat > conftest.$ac_ext <<EOF 12279 cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure" 12280 #line 12281 "configure"
12304 #include "confdefs.h" 12281 #include "confdefs.h"
12305 /* Override any gcc2 internal prototype to avoid an error. */ 12282 /* Override any gcc2 internal prototype to avoid an error. */
12306 /* We use char because int might match the return type of a gcc2 12283 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */ 12284 builtin and then its argument prototype would still apply. */
12308 char dbm_open(); 12285 char dbm_open();
12309 12286
12310 int main() { 12287 int main() {
12311 dbm_open() 12288 dbm_open()
12312 ; return 0; } 12289 ; return 0; }
12313 EOF 12290 EOF
12314 if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12291 if { (eval echo configure:12292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12315 rm -rf conftest* 12292 rm -rf conftest*
12316 eval "ac_cv_lib_$ac_lib_var=yes" 12293 eval "ac_cv_lib_$ac_lib_var=yes"
12317 else 12294 else
12318 echo "configure: failed program was:" >&5 12295 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5 12296 cat conftest.$ac_ext >&5
12350 } 12327 }
12351 12328
12352 12329
12353 if test "$with_database_berkdb" != "no"; then 12330 if test "$with_database_berkdb" != "no"; then
12354 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 12331 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
12355 echo "configure:12356: checking for Berkeley db.h" >&5 12332 echo "configure:12333: checking for Berkeley db.h" >&5
12356 for path in "db/db.h" "db.h"; do 12333 for path in "db/db.h" "db.h"; do
12357 cat > conftest.$ac_ext <<EOF 12334 cat > conftest.$ac_ext <<EOF
12358 #line 12359 "configure" 12335 #line 12336 "configure"
12359 #include "confdefs.h" 12336 #include "confdefs.h"
12360 12337
12361 #include <stdlib.h> 12338 #include <stdlib.h>
12362 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 12339 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
12363 #ifdef HAVE_INTTYPES_H 12340 #ifdef HAVE_INTTYPES_H
12375 12352
12376 int main() { 12353 int main() {
12377 12354
12378 ; return 0; } 12355 ; return 0; }
12379 EOF 12356 EOF
12380 if { (eval echo configure:12381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12357 if { (eval echo configure:12358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12381 rm -rf conftest* 12358 rm -rf conftest*
12382 db_h_path="$path"; break 12359 db_h_path="$path"; break
12383 else 12360 else
12384 echo "configure: failed program was:" >&5 12361 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5 12362 cat conftest.$ac_ext >&5
12391 else echo "$ac_t""$db_h_path" 1>&6 12368 else echo "$ac_t""$db_h_path" 1>&6
12392 fi 12369 fi
12393 12370
12394 if test "$with_database_berkdb" != "no"; then 12371 if test "$with_database_berkdb" != "no"; then
12395 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 12372 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
12396 echo "configure:12397: checking for Berkeley DB version" >&5 12373 echo "configure:12374: checking for Berkeley DB version" >&5
12397 cat > conftest.$ac_ext <<EOF 12374 cat > conftest.$ac_ext <<EOF
12398 #line 12399 "configure" 12375 #line 12376 "configure"
12399 #include "confdefs.h" 12376 #include "confdefs.h"
12400 #include <$db_h_path> 12377 #include <$db_h_path>
12401 #if DB_VERSION_MAJOR > 1 12378 #if DB_VERSION_MAJOR > 1
12402 yes 12379 yes
12403 #endif 12380 #endif
12412 echo "$ac_t""1" 1>&6; dbfunc=dbopen 12389 echo "$ac_t""1" 1>&6; dbfunc=dbopen
12413 fi 12390 fi
12414 rm -f conftest* 12391 rm -f conftest*
12415 12392
12416 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 12393 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
12417 echo "configure:12418: checking for $dbfunc" >&5 12394 echo "configure:12395: checking for $dbfunc" >&5
12418 12395
12419 cat > conftest.$ac_ext <<EOF 12396 cat > conftest.$ac_ext <<EOF
12420 #line 12421 "configure" 12397 #line 12398 "configure"
12421 #include "confdefs.h" 12398 #include "confdefs.h"
12422 /* System header to define __stub macros and hopefully few prototypes, 12399 /* System header to define __stub macros and hopefully few prototypes,
12423 which can conflict with char $dbfunc(); below. */ 12400 which can conflict with char $dbfunc(); below. */
12424 #include <assert.h> 12401 #include <assert.h>
12425 /* Override any gcc2 internal prototype to avoid an error. */ 12402 /* Override any gcc2 internal prototype to avoid an error. */
12438 $dbfunc(); 12415 $dbfunc();
12439 #endif 12416 #endif
12440 12417
12441 ; return 0; } 12418 ; return 0; }
12442 EOF 12419 EOF
12443 if { (eval echo configure:12444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12420 if { (eval echo configure:12421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12444 rm -rf conftest* 12421 rm -rf conftest*
12445 eval "ac_cv_func_$dbfunc=yes" 12422 eval "ac_cv_func_$dbfunc=yes"
12446 else 12423 else
12447 echo "configure: failed program was:" >&5 12424 echo "configure: failed program was:" >&5
12448 cat conftest.$ac_ext >&5 12425 cat conftest.$ac_ext >&5
12457 else 12434 else
12458 echo "$ac_t""no" 1>&6 12435 echo "$ac_t""no" 1>&6
12459 12436
12460 12437
12461 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 12438 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
12462 echo "configure:12463: checking for $dbfunc in -ldb" >&5 12439 echo "configure:12440: checking for $dbfunc in -ldb" >&5
12463 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 12440 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
12464 12441
12465 xe_check_libs=" -ldb " 12442 xe_check_libs=" -ldb "
12466 cat > conftest.$ac_ext <<EOF 12443 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure" 12444 #line 12445 "configure"
12468 #include "confdefs.h" 12445 #include "confdefs.h"
12469 /* Override any gcc2 internal prototype to avoid an error. */ 12446 /* Override any gcc2 internal prototype to avoid an error. */
12470 /* We use char because int might match the return type of a gcc2 12447 /* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */ 12448 builtin and then its argument prototype would still apply. */
12472 char $dbfunc(); 12449 char $dbfunc();
12473 12450
12474 int main() { 12451 int main() {
12475 $dbfunc() 12452 $dbfunc()
12476 ; return 0; } 12453 ; return 0; }
12477 EOF 12454 EOF
12478 if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12455 if { (eval echo configure:12456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12479 rm -rf conftest* 12456 rm -rf conftest*
12480 eval "ac_cv_lib_$ac_lib_var=yes" 12457 eval "ac_cv_lib_$ac_lib_var=yes"
12481 else 12458 else
12482 echo "configure: failed program was:" >&5 12459 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5 12460 cat conftest.$ac_ext >&5
12537 fi 12514 fi
12538 12515
12539 if test "$with_socks" = "yes"; then 12516 if test "$with_socks" = "yes"; then
12540 12517
12541 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 12518 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
12542 echo "configure:12543: checking for SOCKSinit in -lsocks" >&5 12519 echo "configure:12520: checking for SOCKSinit in -lsocks" >&5
12543 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 12520 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
12544 12521
12545 xe_check_libs=" -lsocks " 12522 xe_check_libs=" -lsocks "
12546 cat > conftest.$ac_ext <<EOF 12523 cat > conftest.$ac_ext <<EOF
12547 #line 12548 "configure" 12524 #line 12525 "configure"
12548 #include "confdefs.h" 12525 #include "confdefs.h"
12549 /* Override any gcc2 internal prototype to avoid an error. */ 12526 /* Override any gcc2 internal prototype to avoid an error. */
12550 /* We use char because int might match the return type of a gcc2 12527 /* We use char because int might match the return type of a gcc2
12551 builtin and then its argument prototype would still apply. */ 12528 builtin and then its argument prototype would still apply. */
12552 char SOCKSinit(); 12529 char SOCKSinit();
12553 12530
12554 int main() { 12531 int main() {
12555 SOCKSinit() 12532 SOCKSinit()
12556 ; return 0; } 12533 ; return 0; }
12557 EOF 12534 EOF
12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12535 if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12559 rm -rf conftest* 12536 rm -rf conftest*
12560 eval "ac_cv_lib_$ac_lib_var=yes" 12537 eval "ac_cv_lib_$ac_lib_var=yes"
12561 else 12538 else
12562 echo "configure: failed program was:" >&5 12539 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5 12540 cat conftest.$ac_ext >&5
12608 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 12585 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
12609 fi 12586 fi
12610 12587
12611 if test "$with_modules" != "no"; then 12588 if test "$with_modules" != "no"; then
12612 echo "checking for module support" 1>&6 12589 echo "checking for module support" 1>&6
12613 echo "configure:12614: checking for module support" >&5 12590 echo "configure:12591: checking for module support" >&5
12614 12591
12615 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 12592 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
12616 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 12593 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
12617 echo "configure:12618: checking for dlfcn.h" >&5 12594 echo "configure:12595: checking for dlfcn.h" >&5
12618 12595
12619 cat > conftest.$ac_ext <<EOF 12596 cat > conftest.$ac_ext <<EOF
12620 #line 12621 "configure" 12597 #line 12598 "configure"
12621 #include "confdefs.h" 12598 #include "confdefs.h"
12622 #include <dlfcn.h> 12599 #include <dlfcn.h>
12623 EOF 12600 EOF
12624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12625 { (eval echo configure:12626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12602 { (eval echo configure:12603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12627 if test -z "$ac_err"; then 12604 if test -z "$ac_err"; then
12628 rm -rf conftest* 12605 rm -rf conftest*
12629 eval "ac_cv_header_$ac_safe=yes" 12606 eval "ac_cv_header_$ac_safe=yes"
12630 else 12607 else
12638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12639 echo "$ac_t""yes" 1>&6 12616 echo "$ac_t""yes" 1>&6
12640 12617
12641 12618
12642 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 12619 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
12643 echo "configure:12644: checking for dlopen in -ldl" >&5 12620 echo "configure:12621: checking for dlopen in -ldl" >&5
12644 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 12621 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12645 12622
12646 xe_check_libs=" -ldl " 12623 xe_check_libs=" -ldl "
12647 cat > conftest.$ac_ext <<EOF 12624 cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure" 12625 #line 12626 "configure"
12649 #include "confdefs.h" 12626 #include "confdefs.h"
12650 /* Override any gcc2 internal prototype to avoid an error. */ 12627 /* Override any gcc2 internal prototype to avoid an error. */
12651 /* We use char because int might match the return type of a gcc2 12628 /* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */ 12629 builtin and then its argument prototype would still apply. */
12653 char dlopen(); 12630 char dlopen();
12654 12631
12655 int main() { 12632 int main() {
12656 dlopen() 12633 dlopen()
12657 ; return 0; } 12634 ; return 0; }
12658 EOF 12635 EOF
12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12636 if { (eval echo configure:12637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12660 rm -rf conftest* 12637 rm -rf conftest*
12661 eval "ac_cv_lib_$ac_lib_var=yes" 12638 eval "ac_cv_lib_$ac_lib_var=yes"
12662 else 12639 else
12663 echo "configure: failed program was:" >&5 12640 echo "configure: failed program was:" >&5
12664 cat conftest.$ac_ext >&5 12641 cat conftest.$ac_ext >&5
12673 have_dl=yes libdl=dl 12650 have_dl=yes libdl=dl
12674 else 12651 else
12675 echo "$ac_t""no" 1>&6 12652 echo "$ac_t""no" 1>&6
12676 12653
12677 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 12654 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
12678 echo "configure:12679: checking for dlopen in -lc" >&5 12655 echo "configure:12656: checking for dlopen in -lc" >&5
12679 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 12656 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
12680 12657
12681 xe_check_libs=" -lc " 12658 xe_check_libs=" -lc "
12682 cat > conftest.$ac_ext <<EOF 12659 cat > conftest.$ac_ext <<EOF
12683 #line 12684 "configure" 12660 #line 12661 "configure"
12684 #include "confdefs.h" 12661 #include "confdefs.h"
12685 /* Override any gcc2 internal prototype to avoid an error. */ 12662 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2 12663 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */ 12664 builtin and then its argument prototype would still apply. */
12688 char dlopen(); 12665 char dlopen();
12689 12666
12690 int main() { 12667 int main() {
12691 dlopen() 12668 dlopen()
12692 ; return 0; } 12669 ; return 0; }
12693 EOF 12670 EOF
12694 if { (eval echo configure:12695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12671 if { (eval echo configure:12672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12695 rm -rf conftest* 12672 rm -rf conftest*
12696 eval "ac_cv_lib_$ac_lib_var=yes" 12673 eval "ac_cv_lib_$ac_lib_var=yes"
12697 else 12674 else
12698 echo "configure: failed program was:" >&5 12675 echo "configure: failed program was:" >&5
12699 cat conftest.$ac_ext >&5 12676 cat conftest.$ac_ext >&5
12728 } 12705 }
12729 12706
12730 else 12707 else
12731 12708
12732 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 12709 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
12733 echo "configure:12734: checking for shl_load in -ldld" >&5 12710 echo "configure:12711: checking for shl_load in -ldld" >&5
12734 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 12711 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
12735 12712
12736 xe_check_libs=" -ldld " 12713 xe_check_libs=" -ldld "
12737 cat > conftest.$ac_ext <<EOF 12714 cat > conftest.$ac_ext <<EOF
12738 #line 12739 "configure" 12715 #line 12716 "configure"
12739 #include "confdefs.h" 12716 #include "confdefs.h"
12740 /* Override any gcc2 internal prototype to avoid an error. */ 12717 /* Override any gcc2 internal prototype to avoid an error. */
12741 /* We use char because int might match the return type of a gcc2 12718 /* We use char because int might match the return type of a gcc2
12742 builtin and then its argument prototype would still apply. */ 12719 builtin and then its argument prototype would still apply. */
12743 char shl_load(); 12720 char shl_load();
12744 12721
12745 int main() { 12722 int main() {
12746 shl_load() 12723 shl_load()
12747 ; return 0; } 12724 ; return 0; }
12748 EOF 12725 EOF
12749 if { (eval echo configure:12750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12726 if { (eval echo configure:12727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12750 rm -rf conftest* 12727 rm -rf conftest*
12751 eval "ac_cv_lib_$ac_lib_var=yes" 12728 eval "ac_cv_lib_$ac_lib_var=yes"
12752 else 12729 else
12753 echo "configure: failed program was:" >&5 12730 echo "configure: failed program was:" >&5
12754 cat conftest.$ac_ext >&5 12731 cat conftest.$ac_ext >&5
12771 12748
12772 else 12749 else
12773 echo "$ac_t""no" 1>&6 12750 echo "$ac_t""no" 1>&6
12774 12751
12775 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 12752 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12776 echo "configure:12777: checking for dld_init in -ldld" >&5 12753 echo "configure:12754: checking for dld_init in -ldld" >&5
12777 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 12754 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12778 12755
12779 xe_check_libs=" -ldld " 12756 xe_check_libs=" -ldld "
12780 cat > conftest.$ac_ext <<EOF 12757 cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure" 12758 #line 12759 "configure"
12782 #include "confdefs.h" 12759 #include "confdefs.h"
12783 /* Override any gcc2 internal prototype to avoid an error. */ 12760 /* Override any gcc2 internal prototype to avoid an error. */
12784 /* We use char because int might match the return type of a gcc2 12761 /* We use char because int might match the return type of a gcc2
12785 builtin and then its argument prototype would still apply. */ 12762 builtin and then its argument prototype would still apply. */
12786 char dld_init(); 12763 char dld_init();
12787 12764
12788 int main() { 12765 int main() {
12789 dld_init() 12766 dld_init()
12790 ; return 0; } 12767 ; return 0; }
12791 EOF 12768 EOF
12792 if { (eval echo configure:12793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12769 if { (eval echo configure:12770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12793 rm -rf conftest* 12770 rm -rf conftest*
12794 eval "ac_cv_lib_$ac_lib_var=yes" 12771 eval "ac_cv_lib_$ac_lib_var=yes"
12795 else 12772 else
12796 echo "configure: failed program was:" >&5 12773 echo "configure: failed program was:" >&5
12797 cat conftest.$ac_ext >&5 12774 cat conftest.$ac_ext >&5
12832 ld_dynamic_link_flags= 12809 ld_dynamic_link_flags=
12833 xehost=$canonical 12810 xehost=$canonical
12834 xealias=$internal_configuration 12811 xealias=$internal_configuration
12835 12812
12836 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 12813 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12837 echo "configure:12838: checking how to build dynamic libraries for ${xehost}" >&5 12814 echo "configure:12815: checking how to build dynamic libraries for ${xehost}" >&5
12838 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 12815 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12839 case "$xehost" in 12816 case "$xehost" in
12840 *-*-linux-gnu*) ;; 12817 *-*-linux-gnu*) ;;
12841 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 12818 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12842 esac 12819 esac
12860 # Now see if the compiler is really GCC. 12837 # Now see if the compiler is really GCC.
12861 if test "$GCC" = "yes"; then 12838 if test "$GCC" = "yes"; then
12862 XEGCC=yes 12839 XEGCC=yes
12863 else 12840 else
12864 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 12841 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12865 echo "configure:12866: checking checking whether we are using GNU C" >&5 12842 echo "configure:12843: checking checking whether we are using GNU C" >&5
12866 cat > conftest.$ac_ext <<EOF 12843 cat > conftest.$ac_ext <<EOF
12867 #line 12868 "configure" 12844 #line 12845 "configure"
12868 #include "confdefs.h" 12845 #include "confdefs.h"
12869 12846
12870 #ifdef __GNUC__ 12847 #ifdef __GNUC__
12871 yes; 12848 yes;
12872 #endif 12849 #endif
12884 12861
12885 echo "$ac_t""${XEGCC}" 1>&6 12862 echo "$ac_t""${XEGCC}" 1>&6
12886 fi 12863 fi
12887 12864
12888 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 12865 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12889 echo "configure:12890: checking how to produce PIC code" >&5 12866 echo "configure:12867: checking how to produce PIC code" >&5
12890 wl= 12867 wl=
12891 12868
12892 can_build_shared=yes 12869 can_build_shared=yes
12893 if test "$XEGCC" = yes; then 12870 if test "$XEGCC" = yes; then
12894 wl='-Wl,' 12871 wl='-Wl,'
12977 if test -n "$dll_cflags"; then 12954 if test -n "$dll_cflags"; then
12978 echo "$ac_t""${dll_cflags}" 1>&6 12955 echo "$ac_t""${dll_cflags}" 1>&6
12979 12956
12980 # Check to make sure the dll_cflags actually works. 12957 # Check to make sure the dll_cflags actually works.
12981 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 12958 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12982 echo "configure:12983: checking if PIC flag ${dll_cflags} really works" >&5 12959 echo "configure:12960: checking if PIC flag ${dll_cflags} really works" >&5
12983 save_CFLAGS="$CFLAGS" 12960 save_CFLAGS="$CFLAGS"
12984 CFLAGS="$CFLAGS $dll_cflags -DPIC" 12961 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12985 cat > conftest.$ac_ext <<EOF 12962 cat > conftest.$ac_ext <<EOF
12986 #line 12987 "configure" 12963 #line 12964 "configure"
12987 #include "confdefs.h" 12964 #include "confdefs.h"
12988 12965
12989 int main() { 12966 int main() {
12990 int x=0; 12967 int x=0;
12991 ; return 0; } 12968 ; return 0; }
12992 EOF 12969 EOF
12993 if { (eval echo configure:12994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12970 if { (eval echo configure:12971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12994 rm -rf conftest* 12971 rm -rf conftest*
12995 12972
12996 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 12973 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12997 # reports no error. So, we need to grep stderr for (Bundled). 12974 # reports no error. So, we need to grep stderr for (Bundled).
12998 if grep '(Bundled)' config.log >/dev/null; then 12975 if grep '(Bundled)' config.log >/dev/null; then
13019 if test "$can_build_shared" = "yes"; then 12996 if test "$can_build_shared" = "yes"; then
13020 cc_produces_so=no 12997 cc_produces_so=no
13021 xldf= 12998 xldf=
13022 xcldf= 12999 xcldf=
13023 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 13000 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13024 echo "configure:13025: checking if C compiler can produce shared libraries" >&5 13001 echo "configure:13002: checking if C compiler can produce shared libraries" >&5
13025 if test "$XEGCC" = yes; then 13002 if test "$XEGCC" = yes; then
13026 xcldf="-shared" 13003 xcldf="-shared"
13027 xldf="-shared" 13004 xldf="-shared"
13028 else # Not using GCC 13005 else # Not using GCC
13029 case "$xehost_os" in 13006 case "$xehost_os" in
13070 LDFLAGS="$xcldf $LDFLAGS" 13047 LDFLAGS="$xcldf $LDFLAGS"
13071 LIBS= 13048 LIBS=
13072 xe_libs= 13049 xe_libs=
13073 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 13050 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13074 cat > conftest.$ac_ext <<EOF 13051 cat > conftest.$ac_ext <<EOF
13075 #line 13076 "configure" 13052 #line 13053 "configure"
13076 #include "confdefs.h" 13053 #include "confdefs.h"
13077 13054
13078 int main() { 13055 int main() {
13079 int x=0; 13056 int x=0;
13080 ; return 0; } 13057 ; return 0; }
13081 EOF 13058 EOF
13082 if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13059 if { (eval echo configure:13060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13083 rm -rf conftest* 13060 rm -rf conftest*
13084 cc_produces_so=yes 13061 cc_produces_so=yes
13085 else 13062 else
13086 echo "configure: failed program was:" >&5 13063 echo "configure: failed program was:" >&5
13087 cat conftest.$ac_ext >&5 13064 cat conftest.$ac_ext >&5
13102 if test -z "$LTLD"; then 13079 if test -z "$LTLD"; then
13103 ac_prog=ld 13080 ac_prog=ld
13104 if test "$XEGCC" = yes; then 13081 if test "$XEGCC" = yes; then
13105 # Check if gcc -print-prog-name=ld gives a path. 13082 # Check if gcc -print-prog-name=ld gives a path.
13106 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 13083 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13107 echo "configure:13108: checking for ld used by GCC" >&5 13084 echo "configure:13085: checking for ld used by GCC" >&5
13108 ac_prog=`($CC -print-prog-name=ld) 2>&5` 13085 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13109 case "$ac_prog" in 13086 case "$ac_prog" in
13110 # Accept absolute paths. 13087 # Accept absolute paths.
13111 /*) 13088 /*)
13112 if test -z "$LTLD"; then 13089 if test -z "$LTLD"; then
13127 with_gnu_ld=unknown 13104 with_gnu_ld=unknown
13128 ;; 13105 ;;
13129 esac 13106 esac
13130 else 13107 else
13131 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 13108 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
13132 echo "configure:13133: checking for GNU ld" >&5 13109 echo "configure:13110: checking for GNU ld" >&5
13133 fi 13110 fi
13134 13111
13135 if test -z "$LTLD"; then 13112 if test -z "$LTLD"; then
13136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 13113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13137 for ac_dir in $PATH; do 13114 for ac_dir in $PATH; do
13165 13142
13166 ld_dynamic_link_flags= 13143 ld_dynamic_link_flags=
13167 13144
13168 # Check to see if it really is or isn't GNU ld. 13145 # Check to see if it really is or isn't GNU ld.
13169 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 13146 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
13170 echo "configure:13171: checking if the linker is GNU ld" >&5 13147 echo "configure:13148: checking if the linker is GNU ld" >&5
13171 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 13148 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13172 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 13149 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13173 xe_gnu_ld=yes 13150 xe_gnu_ld=yes
13174 else 13151 else
13175 xe_gnu_ld=no 13152 xe_gnu_ld=no
13192 can_build_shared=yes 13169 can_build_shared=yes
13193 else 13170 else
13194 # OK - only NOW do we futz about with ld. 13171 # OK - only NOW do we futz about with ld.
13195 # See if the linker supports building shared libraries. 13172 # See if the linker supports building shared libraries.
13196 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 13173 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
13197 echo "configure:13198: checking whether the linker supports shared libraries" >&5 13174 echo "configure:13175: checking whether the linker supports shared libraries" >&5
13198 dll_ld=$CC 13175 dll_ld=$CC
13199 dll_ldflags=$LDFLAGS 13176 dll_ldflags=$LDFLAGS
13200 ld_shlibs=yes 13177 ld_shlibs=yes
13201 can_build_shared=yes 13178 can_build_shared=yes
13202 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 13179 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
13407 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 13384 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
13408 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 13385 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
13409 for ac_func in dlerror _dlerror 13386 for ac_func in dlerror _dlerror
13410 do 13387 do
13411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13412 echo "configure:13413: checking for $ac_func" >&5 13389 echo "configure:13390: checking for $ac_func" >&5
13413 13390
13414 cat > conftest.$ac_ext <<EOF 13391 cat > conftest.$ac_ext <<EOF
13415 #line 13416 "configure" 13392 #line 13393 "configure"
13416 #include "confdefs.h" 13393 #include "confdefs.h"
13417 /* System header to define __stub macros and hopefully few prototypes, 13394 /* System header to define __stub macros and hopefully few prototypes,
13418 which can conflict with char $ac_func(); below. */ 13395 which can conflict with char $ac_func(); below. */
13419 #include <assert.h> 13396 #include <assert.h>
13420 /* Override any gcc2 internal prototype to avoid an error. */ 13397 /* Override any gcc2 internal prototype to avoid an error. */
13433 $ac_func(); 13410 $ac_func();
13434 #endif 13411 #endif
13435 13412
13436 ; return 0; } 13413 ; return 0; }
13437 EOF 13414 EOF
13438 if { (eval echo configure:13439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13415 if { (eval echo configure:13416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13439 rm -rf conftest* 13416 rm -rf conftest*
13440 eval "ac_cv_func_$ac_func=yes" 13417 eval "ac_cv_func_$ac_func=yes"
13441 else 13418 else
13442 echo "configure: failed program was:" >&5 13419 echo "configure: failed program was:" >&5
13443 cat conftest.$ac_ext >&5 13420 cat conftest.$ac_ext >&5
13472 with_modules=no 13449 with_modules=no
13473 fi 13450 fi
13474 fi 13451 fi
13475 13452
13476 cat > conftest.$ac_ext <<EOF 13453 cat > conftest.$ac_ext <<EOF
13477 #line 13478 "configure" 13454 #line 13455 "configure"
13478 #include "confdefs.h" 13455 #include "confdefs.h"
13479 int main(int c,char *v[]){return 0;} 13456 int main(int c,char *v[]){return 0;}
13480 EOF 13457 EOF
13481 if { (eval echo configure:13482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13458 if { (eval echo configure:13459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13482 then 13459 then
13483 : 13460 :
13484 else 13461 else
13485 conftest_rc="$?" 13462 conftest_rc="$?"
13486 echo "configure: failed program was:" >&5 13463 echo "configure: failed program was:" >&5