comparison configure @ 27205:5b9c236a581d

*** empty log message ***
author Dave Love <fx@gnu.org>
date Wed, 05 Jan 2000 22:56:49 +0000
parents b20c864d87b9
children 6a78e514e6d3
comparison
equal deleted inserted replaced
27204:ce06277761dc 27205:5b9c236a581d
1 #! /bin/sh 1 #! /bin/sh
2 2
3 # Guess values for system-dependent variables and create Makefiles. 3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 # 6 #
7 # This configure script is free software; the Free Software Foundation 7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it. 8 # gives unlimited permission to copy, distribute and modify it.
9 9
73 mandir='${prefix}/man' 73 mandir='${prefix}/man'
74 74
75 # Initialize some other variables. 75 # Initialize some other variables.
76 subdirs= 76 subdirs=
77 MFLAGS= MAKEFLAGS= 77 MFLAGS= MAKEFLAGS=
78 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document. 79 # Maximum number of lines to put in a shell here document.
79 ac_max_here_lines=12 80 ac_max_here_lines=12
80 81
81 ac_prev= 82 ac_prev=
82 for ac_option 83 for ac_option
356 357
357 -v | -verbose | --verbose | --verbos | --verbo | --verb) 358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;; 359 verbose=yes ;;
359 360
360 -version | --version | --versio | --versi | --vers) 361 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.12" 362 echo "configure generated by autoconf version 2.13"
362 exit 0 ;; 363 exit 0 ;;
363 364
364 -with-* | --with-*) 365 -with-* | --with-*)
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names. 367 # Reject names that are not valid shell variable names.
526 527
527 ac_ext=c 528 ac_ext=c
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS' 530 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross 533 cross_compiling=$ac_cv_prog_cc_cross
533 534
535 ac_exeext=
536 ac_objext=o
534 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c=' 540 ac_n= ac_c='
538 ' ac_t=' ' 541 ' ac_t=' '
734 ac_config_sub=$ac_aux_dir/config.sub 737 ac_config_sub=$ac_aux_dir/config.sub
735 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 738 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
736 739
737 740
738 # Make sure we can run config.sub. 741 # Make sure we can run config.sub.
739 if $ac_config_sub sun4 >/dev/null 2>&1; then : 742 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
740 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 743 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
741 fi 744 fi
742 745
743 echo $ac_n "checking host system type""... $ac_c" 1>&6 746 echo $ac_n "checking host system type""... $ac_c" 1>&6
744 echo "configure:745: checking host system type" >&5 747 echo "configure:748: checking host system type" >&5
745 748
746 host_alias=$host 749 host_alias=$host
747 case "$host_alias" in 750 case "$host_alias" in
748 NONE) 751 NONE)
749 case $nonopt in 752 case $nonopt in
750 NONE) 753 NONE)
751 if host_alias=`$ac_config_guess`; then : 754 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
752 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 755 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
753 fi ;; 756 fi ;;
754 *) host_alias=$nonopt ;; 757 *) host_alias=$nonopt ;;
755 esac ;; 758 esac ;;
756 esac 759 esac
757 760
758 host=`$ac_config_sub $host_alias` 761 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
759 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 762 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
760 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 763 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
761 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 764 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
762 echo "$ac_t""$host" 1>&6 765 echo "$ac_t""$host" 1>&6
763 766
866 alpha*-dec-osf* ) 869 alpha*-dec-osf* )
867 machine=alpha opsys=osf1 870 machine=alpha opsys=osf1
868 # This is needed to find X11R6.1 libraries for certain tests. 871 # This is needed to find X11R6.1 libraries for certain tests.
869 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib 872 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
870 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib 873 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
874 #NON_GCC_TEST_OPTIONS=-std # gets us __STDC__
875 #NON_GNU_CPP=/usr/lib/cpp
871 ;; 876 ;;
872 877
873 alpha*-*-linux-gnu* ) 878 alpha*-*-linux-gnu* )
874 machine=alpha opsys=gnu-linux 879 machine=alpha opsys=gnu-linux
880 ;;
881
882 arm*-*-linux-gnu* )
883 machine=arm opsys=gnu-linux
884 ;;
885
886 ppc-*-linux | \
887 powerpc-*-linux* )
888 machine=powerpc opsys=gnu-linux
875 ;; 889 ;;
876 890
877 ## Altos 3068 891 ## Altos 3068
878 m68*-altos-sysv* ) 892 m68*-altos-sysv* )
879 machine=altos opsys=usg5-2 893 machine=altos opsys=usg5-2
1387 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" 1401 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1388 NON_GCC_TEST_OPTIONS="-n32 -G0 -D_LANGUAGE_C" 1402 NON_GCC_TEST_OPTIONS="-n32 -G0 -D_LANGUAGE_C"
1389 ;; 1403 ;;
1390 mips-sgi-irix6* ) 1404 mips-sgi-irix6* )
1391 machine=iris4d opsys=irix6-0 1405 machine=iris4d opsys=irix6-0
1392 # It's not clear whether -D_LANGUAGE_C is necessary as for 6.5, 1406 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1393 # but presumably it does no harm. 1407 # but presumably it does no harm.
1394 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" 1408 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1395 NON_GCC_TEST_OPTIONS=-32 1409 NON_GCC_TEST_OPTIONS=-32
1396 ;; 1410 ;;
1397 mips-sgi-irix5.[01]* ) 1411 mips-sgi-irix5.[01]* )
1690 "yes" ) CC="gcc" GCC=yes ;; 1704 "yes" ) CC="gcc" GCC=yes ;;
1691 "no" ) : ${CC=cc} ;; 1705 "no" ) : ${CC=cc} ;;
1692 * ) # Extract the first word of "gcc", so it can be a program name with args. 1706 * ) # Extract the first word of "gcc", so it can be a program name with args.
1693 set dummy gcc; ac_word=$2 1707 set dummy gcc; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5 1709 echo "configure:1710: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6 1711 echo $ac_n "(cached) $ac_c" 1>&6
1698 else 1712 else
1699 if test -n "$CC"; then 1713 if test -n "$CC"; then
1700 ac_cv_prog_CC="$CC" # Let the user override the test. 1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 else 1715 else
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1703 for ac_dir in $PATH; do 1717 ac_dummy="$PATH"
1718 for ac_dir in $ac_dummy; do
1704 test -z "$ac_dir" && ac_dir=. 1719 test -z "$ac_dir" && ac_dir=.
1705 if test -f $ac_dir/$ac_word; then 1720 if test -f $ac_dir/$ac_word; then
1706 ac_cv_prog_CC="gcc" 1721 ac_cv_prog_CC="gcc"
1707 break 1722 break
1708 fi 1723 fi
1719 1734
1720 if test -z "$CC"; then 1735 if test -z "$CC"; then
1721 # Extract the first word of "cc", so it can be a program name with args. 1736 # Extract the first word of "cc", so it can be a program name with args.
1722 set dummy cc; ac_word=$2 1737 set dummy cc; ac_word=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5 1739 echo "configure:1740: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6 1741 echo $ac_n "(cached) $ac_c" 1>&6
1727 else 1742 else
1728 if test -n "$CC"; then 1743 if test -n "$CC"; then
1729 ac_cv_prog_CC="$CC" # Let the user override the test. 1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1730 else 1745 else
1731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1732 ac_prog_rejected=no 1747 ac_prog_rejected=no
1733 for ac_dir in $PATH; do 1748 ac_dummy="$PATH"
1749 for ac_dir in $ac_dummy; do
1734 test -z "$ac_dir" && ac_dir=. 1750 test -z "$ac_dir" && ac_dir=.
1735 if test -f $ac_dir/$ac_word; then 1751 if test -f $ac_dir/$ac_word; then
1736 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1752 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1737 ac_prog_rejected=yes 1753 ac_prog_rejected=yes
1738 continue 1754 continue
1763 echo "$ac_t""$CC" 1>&6 1779 echo "$ac_t""$CC" 1>&6
1764 else 1780 else
1765 echo "$ac_t""no" 1>&6 1781 echo "$ac_t""no" 1>&6
1766 fi 1782 fi
1767 1783
1784 if test -z "$CC"; then
1785 case "`uname -s`" in
1786 *win32* | *WIN32*)
1787 # Extract the first word of "cl", so it can be a program name with args.
1788 set dummy cl; ac_word=$2
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_word" >&5
1791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1793 else
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1796 else
1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1798 ac_dummy="$PATH"
1799 for ac_dir in $ac_dummy; do
1800 test -z "$ac_dir" && ac_dir=.
1801 if test -f $ac_dir/$ac_word; then
1802 ac_cv_prog_CC="cl"
1803 break
1804 fi
1805 done
1806 IFS="$ac_save_ifs"
1807 fi
1808 fi
1809 CC="$ac_cv_prog_CC"
1810 if test -n "$CC"; then
1811 echo "$ac_t""$CC" 1>&6
1812 else
1813 echo "$ac_t""no" 1>&6
1814 fi
1815 ;;
1816 esac
1817 fi
1768 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1818 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1769 fi 1819 fi
1770 1820
1771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1821 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1822 echo "configure:1823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1773 1823
1774 ac_ext=c 1824 ac_ext=c
1775 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1776 ac_cpp='$CPP $CPPFLAGS' 1826 ac_cpp='$CPP $CPPFLAGS'
1777 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1778 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1779 cross_compiling=$ac_cv_prog_cc_cross 1829 cross_compiling=$ac_cv_prog_cc_cross
1780 1830
1781 cat > conftest.$ac_ext <<EOF 1831 cat > conftest.$ac_ext << EOF
1782 #line 1783 "configure" 1832
1783 #include "confdefs.h" 1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835
1784 main(){return(0);} 1836 main(){return(0);}
1785 EOF 1837 EOF
1786 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1838 if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1787 ac_cv_prog_cc_works=yes 1839 ac_cv_prog_cc_works=yes
1788 # If we can't run a trivial program, we are probably using a cross compiler. 1840 # If we can't run a trivial program, we are probably using a cross compiler.
1789 if (./conftest; exit) 2>/dev/null; then 1841 if (./conftest; exit) 2>/dev/null; then
1790 ac_cv_prog_cc_cross=no 1842 ac_cv_prog_cc_cross=no
1791 else 1843 else
1795 echo "configure: failed program was:" >&5 1847 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5 1848 cat conftest.$ac_ext >&5
1797 ac_cv_prog_cc_works=no 1849 ac_cv_prog_cc_works=no
1798 fi 1850 fi
1799 rm -fr conftest* 1851 rm -fr conftest*
1852 ac_ext=c
1853 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1854 ac_cpp='$CPP $CPPFLAGS'
1855 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1856 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1857 cross_compiling=$ac_cv_prog_cc_cross
1800 1858
1801 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1859 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1802 if test $ac_cv_prog_cc_works = no; then 1860 if test $ac_cv_prog_cc_works = no; then
1803 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1861 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1804 fi 1862 fi
1805 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1863 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1864 echo "configure:1865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1807 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1865 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1808 cross_compiling=$ac_cv_prog_cc_cross 1866 cross_compiling=$ac_cv_prog_cc_cross
1809 1867
1810 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1868 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1811 echo "configure:1812: checking whether we are using GNU C" >&5 1869 echo "configure:1870: checking whether we are using GNU C" >&5
1812 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1870 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6 1871 echo $ac_n "(cached) $ac_c" 1>&6
1814 else 1872 else
1815 cat > conftest.c <<EOF 1873 cat > conftest.c <<EOF
1816 #ifdef __GNUC__ 1874 #ifdef __GNUC__
1817 yes; 1875 yes;
1818 #endif 1876 #endif
1819 EOF 1877 EOF
1820 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1878 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1821 ac_cv_prog_gcc=yes 1879 ac_cv_prog_gcc=yes
1822 else 1880 else
1823 ac_cv_prog_gcc=no 1881 ac_cv_prog_gcc=no
1824 fi 1882 fi
1825 fi 1883 fi
1826 1884
1827 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1885 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1828 1886
1829 if test $ac_cv_prog_gcc = yes; then 1887 if test $ac_cv_prog_gcc = yes; then
1830 GCC=yes 1888 GCC=yes
1831 ac_test_CFLAGS="${CFLAGS+set}" 1889 else
1832 ac_save_CFLAGS="$CFLAGS" 1890 GCC=
1833 CFLAGS= 1891 fi
1834 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1892
1835 echo "configure:1836: checking whether ${CC-cc} accepts -g" >&5 1893 ac_test_CFLAGS="${CFLAGS+set}"
1894 ac_save_CFLAGS="$CFLAGS"
1895 CFLAGS=
1896 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether ${CC-cc} accepts -g" >&5
1836 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1898 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6 1899 echo $ac_n "(cached) $ac_c" 1>&6
1838 else 1900 else
1839 echo 'void f(){}' > conftest.c 1901 echo 'void f(){}' > conftest.c
1840 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1902 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1845 rm -f conftest* 1907 rm -f conftest*
1846 1908
1847 fi 1909 fi
1848 1910
1849 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1911 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1850 if test "$ac_test_CFLAGS" = set; then 1912 if test "$ac_test_CFLAGS" = set; then
1851 CFLAGS="$ac_save_CFLAGS" 1913 CFLAGS="$ac_save_CFLAGS"
1852 elif test $ac_cv_prog_cc_g = yes; then 1914 elif test $ac_cv_prog_cc_g = yes; then
1915 if test "$GCC" = yes; then
1853 CFLAGS="-g -O2" 1916 CFLAGS="-g -O2"
1854 else 1917 else
1918 CFLAGS="-g"
1919 fi
1920 else
1921 if test "$GCC" = yes; then
1855 CFLAGS="-O2" 1922 CFLAGS="-O2"
1923 else
1924 CFLAGS=
1856 fi 1925 fi
1857 else
1858 GCC=
1859 test "${CFLAGS+set}" = set || CFLAGS="-g"
1860 fi 1926 fi
1861 1927
1862 esac 1928 esac
1863 1929
1864 # On Suns, sometimes $CPP names a directory. 1930 # On Suns, sometimes $CPP names a directory.
1906 #### Some other nice autoconf tests. If you add a test here which 1972 #### Some other nice autoconf tests. If you add a test here which
1907 #### should make an entry in src/config.h, don't forget to add an 1973 #### should make an entry in src/config.h, don't forget to add an
1908 #### #undef clause to src/config.h.in for autoconf to modify. 1974 #### #undef clause to src/config.h.in for autoconf to modify.
1909 1975
1910 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1976 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1911 echo "configure:1912: checking whether ln -s works" >&5 1977 echo "configure:1978: checking whether ln -s works" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1978 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6 1979 echo $ac_n "(cached) $ac_c" 1>&6
1914 else 1980 else
1915 rm -f conftestdata 1981 rm -f conftestdata
1916 if ln -s X conftestdata 2>/dev/null 1982 if ln -s X conftestdata 2>/dev/null
1927 else 1993 else
1928 echo "$ac_t""no" 1>&6 1994 echo "$ac_t""no" 1>&6
1929 fi 1995 fi
1930 1996
1931 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1997 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1932 echo "configure:1933: checking how to run the C preprocessor" >&5 1998 echo "configure:1999: checking how to run the C preprocessor" >&5
1933 # On Suns, sometimes $CPP names a directory. 1999 # On Suns, sometimes $CPP names a directory.
1934 if test -n "$CPP" && test -d "$CPP"; then 2000 if test -n "$CPP" && test -d "$CPP"; then
1935 CPP= 2001 CPP=
1936 fi 2002 fi
1937 if test -z "$CPP"; then 2003 if test -z "$CPP"; then
1942 # substituted into the Makefile and "${CC-cc}" will confuse make. 2008 # substituted into the Makefile and "${CC-cc}" will confuse make.
1943 CPP="${CC-cc} -E" 2009 CPP="${CC-cc} -E"
1944 # On the NeXT, cc -E runs the code through the compiler's parser, 2010 # On the NeXT, cc -E runs the code through the compiler's parser,
1945 # not just through cpp. 2011 # not just through cpp.
1946 cat > conftest.$ac_ext <<EOF 2012 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure" 2013 #line 2014 "configure"
1948 #include "confdefs.h" 2014 #include "confdefs.h"
1949 #include <assert.h> 2015 #include <assert.h>
1950 Syntax Error 2016 Syntax Error
1951 EOF 2017 EOF
1952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2019 { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err=`grep -v '^ *+' conftest.out` 2020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1955 if test -z "$ac_err"; then 2021 if test -z "$ac_err"; then
1956 : 2022 :
1957 else 2023 else
1958 echo "$ac_err" >&5 2024 echo "$ac_err" >&5
1959 echo "configure: failed program was:" >&5 2025 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5 2026 cat conftest.$ac_ext >&5
1961 rm -rf conftest* 2027 rm -rf conftest*
1962 CPP="${CC-cc} -E -traditional-cpp" 2028 CPP="${CC-cc} -E -traditional-cpp"
1963 cat > conftest.$ac_ext <<EOF 2029 cat > conftest.$ac_ext <<EOF
1964 #line 1965 "configure" 2030 #line 2031 "configure"
1965 #include "confdefs.h" 2031 #include "confdefs.h"
1966 #include <assert.h> 2032 #include <assert.h>
1967 Syntax Error 2033 Syntax Error
1968 EOF 2034 EOF
1969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err=`grep -v '^ *+' conftest.out` 2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1972 if test -z "$ac_err"; then 2038 if test -z "$ac_err"; then
1973 : 2039 :
1974 else 2040 else
1975 echo "$ac_err" >&5 2041 echo "$ac_err" >&5
1976 echo "configure: failed program was:" >&5 2042 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5 2043 cat conftest.$ac_ext >&5
1978 rm -rf conftest* 2044 rm -rf conftest*
2045 CPP="${CC-cc} -nologo -E"
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 #include <assert.h>
2050 Syntax Error
2051 EOF
2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055 if test -z "$ac_err"; then
2056 :
2057 else
2058 echo "$ac_err" >&5
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2061 rm -rf conftest*
1979 CPP=/lib/cpp 2062 CPP=/lib/cpp
2063 fi
2064 rm -f conftest*
1980 fi 2065 fi
1981 rm -f conftest* 2066 rm -f conftest*
1982 fi 2067 fi
1983 rm -f conftest* 2068 rm -f conftest*
1984 ac_cv_prog_CPP="$CPP" 2069 ac_cv_prog_CPP="$CPP"
1994 # incompatible versions: 2079 # incompatible versions:
1995 # SysV /etc/install, /usr/sbin/install 2080 # SysV /etc/install, /usr/sbin/install
1996 # SunOS /usr/etc/install 2081 # SunOS /usr/etc/install
1997 # IRIX /sbin/install 2082 # IRIX /sbin/install
1998 # AIX /bin/install 2083 # AIX /bin/install
2084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2001 # ./install, which can be erroneously created by make from ./install.sh. 2087 # ./install, which can be erroneously created by make from ./install.sh.
2002 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2088 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2003 echo "configure:2004: checking for a BSD compatible install" >&5 2089 echo "configure:2090: checking for a BSD compatible install" >&5
2004 if test -z "$INSTALL"; then 2090 if test -z "$INSTALL"; then
2005 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2091 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6 2092 echo $ac_n "(cached) $ac_c" 1>&6
2007 else 2093 else
2008 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2094 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2009 for ac_dir in $PATH; do 2095 for ac_dir in $PATH; do
2010 # Account for people who put trailing slashes in PATH elements. 2096 # Account for people who put trailing slashes in PATH elements.
2011 case "$ac_dir/" in 2097 case "$ac_dir/" in
2012 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2098 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2013 *) 2099 *)
2014 # OSF1 and SCO ODT 3.0 have their own names for install. 2100 # OSF1 and SCO ODT 3.0 have their own names for install.
2015 for ac_prog in ginstall installbsd scoinst install; do 2101 # Don't use installbsd from OSF since it installs stuff as root
2102 # by default.
2103 for ac_prog in ginstall scoinst install; do
2016 if test -f $ac_dir/$ac_prog; then 2104 if test -f $ac_dir/$ac_prog; then
2017 if test $ac_prog = install && 2105 if test $ac_prog = install &&
2018 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 2106 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2019 # AIX install. It has an incompatible calling convention. 2107 # AIX install. It has an incompatible calling convention.
2020 # OSF/1 installbsd also uses dspmsg, but is usable.
2021 : 2108 :
2022 else 2109 else
2023 ac_cv_path_install="$ac_dir/$ac_prog -c" 2110 ac_cv_path_install="$ac_dir/$ac_prog -c"
2024 break 2 2111 break 2
2025 fi 2112 fi
2045 2132
2046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2047 # It thinks the first close brace ends the variable substitution. 2134 # It thinks the first close brace ends the variable substitution.
2048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049 2136
2137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2138
2050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2051 2140
2052 for ac_prog in 'bison -y' byacc 2141 for ac_prog in 'bison -y' byacc
2053 do 2142 do
2054 # Extract the first word of "$ac_prog", so it can be a program name with args. 2143 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2 2144 set dummy $ac_prog; ac_word=$2
2056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_word" >&5 2146 echo "configure:2147: checking for $ac_word" >&5
2058 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2147 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6 2148 echo $ac_n "(cached) $ac_c" 1>&6
2060 else 2149 else
2061 if test -n "$YACC"; then 2150 if test -n "$YACC"; then
2062 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2151 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2063 else 2152 else
2064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2065 for ac_dir in $PATH; do 2154 ac_dummy="$PATH"
2155 for ac_dir in $ac_dummy; do
2066 test -z "$ac_dir" && ac_dir=. 2156 test -z "$ac_dir" && ac_dir=.
2067 if test -f $ac_dir/$ac_word; then 2157 if test -f $ac_dir/$ac_word; then
2068 ac_cv_prog_YACC="$ac_prog" 2158 ac_cv_prog_YACC="$ac_prog"
2069 break 2159 break
2070 fi 2160 fi
2083 done 2173 done
2084 test -n "$YACC" || YACC="yacc" 2174 test -n "$YACC" || YACC="yacc"
2085 2175
2086 2176
2087 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2177 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2088 echo "configure:2089: checking for AIX" >&5 2178 echo "configure:2179: checking for AIX" >&5
2089 cat > conftest.$ac_ext <<EOF 2179 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure" 2180 #line 2181 "configure"
2091 #include "confdefs.h" 2181 #include "confdefs.h"
2092 #ifdef _AIX 2182 #ifdef _AIX
2093 yes 2183 yes
2094 #endif 2184 #endif
2095 2185
2112 # Sound support for GNU/Linux and the free BSDs. 2202 # Sound support for GNU/Linux and the free BSDs.
2113 for ac_hdr in machine/soundcard.h sys/soundcard.h 2203 for ac_hdr in machine/soundcard.h sys/soundcard.h
2114 do 2204 do
2115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2117 echo "configure:2118: checking for $ac_hdr" >&5 2207 echo "configure:2208: checking for $ac_hdr" >&5
2118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6 2209 echo $ac_n "(cached) $ac_c" 1>&6
2120 else 2210 else
2121 cat > conftest.$ac_ext <<EOF 2211 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure" 2212 #line 2213 "configure"
2123 #include "confdefs.h" 2213 #include "confdefs.h"
2124 #include <$ac_hdr> 2214 #include <$ac_hdr>
2125 EOF 2215 EOF
2126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2127 { (eval echo configure:2128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2217 { (eval echo configure:2218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2128 ac_err=`grep -v '^ *+' conftest.out` 2218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2129 if test -z "$ac_err"; then 2219 if test -z "$ac_err"; then
2130 rm -rf conftest* 2220 rm -rf conftest*
2131 eval "ac_cv_header_$ac_safe=yes" 2221 eval "ac_cv_header_$ac_safe=yes"
2132 else 2222 else
2133 echo "$ac_err" >&5 2223 echo "$ac_err" >&5
2155 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2245 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2156 termcap.h stdio_ext.h 2246 termcap.h stdio_ext.h
2157 do 2247 do
2158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_hdr" >&5 2250 echo "configure:2251: checking for $ac_hdr" >&5
2161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6 2252 echo $ac_n "(cached) $ac_c" 1>&6
2163 else 2253 else
2164 cat > conftest.$ac_ext <<EOF 2254 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure" 2255 #line 2256 "configure"
2166 #include "confdefs.h" 2256 #include "confdefs.h"
2167 #include <$ac_hdr> 2257 #include <$ac_hdr>
2168 EOF 2258 EOF
2169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170 { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2260 { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171 ac_err=`grep -v '^ *+' conftest.out` 2261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2172 if test -z "$ac_err"; then 2262 if test -z "$ac_err"; then
2173 rm -rf conftest* 2263 rm -rf conftest*
2174 eval "ac_cv_header_$ac_safe=yes" 2264 eval "ac_cv_header_$ac_safe=yes"
2175 else 2265 else
2176 echo "$ac_err" >&5 2266 echo "$ac_err" >&5
2192 echo "$ac_t""no" 1>&6 2282 echo "$ac_t""no" 1>&6
2193 fi 2283 fi
2194 done 2284 done
2195 2285
2196 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2286 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2197 echo "configure:2198: checking for ANSI C header files" >&5 2287 echo "configure:2288: checking for ANSI C header files" >&5
2198 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2288 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6 2289 echo $ac_n "(cached) $ac_c" 1>&6
2200 else 2290 else
2201 cat > conftest.$ac_ext <<EOF 2291 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure" 2292 #line 2293 "configure"
2203 #include "confdefs.h" 2293 #include "confdefs.h"
2204 #include <stdlib.h> 2294 #include <stdlib.h>
2205 #include <stdarg.h> 2295 #include <stdarg.h>
2206 #include <string.h> 2296 #include <string.h>
2207 #include <float.h> 2297 #include <float.h>
2208 EOF 2298 EOF
2209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2210 { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2300 { (eval echo configure:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2211 ac_err=`grep -v '^ *+' conftest.out` 2301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2212 if test -z "$ac_err"; then 2302 if test -z "$ac_err"; then
2213 rm -rf conftest* 2303 rm -rf conftest*
2214 ac_cv_header_stdc=yes 2304 ac_cv_header_stdc=yes
2215 else 2305 else
2216 echo "$ac_err" >&5 2306 echo "$ac_err" >&5
2222 rm -f conftest* 2312 rm -f conftest*
2223 2313
2224 if test $ac_cv_header_stdc = yes; then 2314 if test $ac_cv_header_stdc = yes; then
2225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2226 cat > conftest.$ac_ext <<EOF 2316 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure" 2317 #line 2318 "configure"
2228 #include "confdefs.h" 2318 #include "confdefs.h"
2229 #include <string.h> 2319 #include <string.h>
2230 EOF 2320 EOF
2231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2232 egrep "memchr" >/dev/null 2>&1; then 2322 egrep "memchr" >/dev/null 2>&1; then
2240 fi 2330 fi
2241 2331
2242 if test $ac_cv_header_stdc = yes; then 2332 if test $ac_cv_header_stdc = yes; then
2243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2244 cat > conftest.$ac_ext <<EOF 2334 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure" 2335 #line 2336 "configure"
2246 #include "confdefs.h" 2336 #include "confdefs.h"
2247 #include <stdlib.h> 2337 #include <stdlib.h>
2248 EOF 2338 EOF
2249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2250 egrep "free" >/dev/null 2>&1; then 2340 egrep "free" >/dev/null 2>&1; then
2261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2351 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2262 if test "$cross_compiling" = yes; then 2352 if test "$cross_compiling" = yes; then
2263 : 2353 :
2264 else 2354 else
2265 cat > conftest.$ac_ext <<EOF 2355 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure" 2356 #line 2357 "configure"
2267 #include "confdefs.h" 2357 #include "confdefs.h"
2268 #include <ctype.h> 2358 #include <ctype.h>
2269 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2359 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2270 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2360 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2272 int main () { int i; for (i = 0; i < 256; i++) 2362 int main () { int i; for (i = 0; i < 256; i++)
2273 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2363 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2274 exit (0); } 2364 exit (0); }
2275 2365
2276 EOF 2366 EOF
2277 if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2278 then 2368 then
2279 : 2369 :
2280 else 2370 else
2281 echo "configure: failed program was:" >&5 2371 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5 2372 cat conftest.$ac_ext >&5
2296 EOF 2386 EOF
2297 2387
2298 fi 2388 fi
2299 2389
2300 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2390 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2301 echo "configure:2302: checking whether time.h and sys/time.h may both be included" >&5 2391 echo "configure:2392: checking whether time.h and sys/time.h may both be included" >&5
2302 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2392 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6 2393 echo $ac_n "(cached) $ac_c" 1>&6
2304 else 2394 else
2305 cat > conftest.$ac_ext <<EOF 2395 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure" 2396 #line 2397 "configure"
2307 #include "confdefs.h" 2397 #include "confdefs.h"
2308 #include <sys/types.h> 2398 #include <sys/types.h>
2309 #include <sys/time.h> 2399 #include <sys/time.h>
2310 #include <time.h> 2400 #include <time.h>
2311 int main() { 2401 int main() {
2312 struct tm *tp; 2402 struct tm *tp;
2313 ; return 0; } 2403 ; return 0; }
2314 EOF 2404 EOF
2315 if { (eval echo configure:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2405 if { (eval echo configure:2406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2316 rm -rf conftest* 2406 rm -rf conftest*
2317 ac_cv_header_time=yes 2407 ac_cv_header_time=yes
2318 else 2408 else
2319 echo "configure: failed program was:" >&5 2409 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5 2410 cat conftest.$ac_ext >&5
2331 EOF 2421 EOF
2332 2422
2333 fi 2423 fi
2334 2424
2335 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2425 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2336 echo "configure:2337: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2426 echo "configure:2427: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2337 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2427 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6 2428 echo $ac_n "(cached) $ac_c" 1>&6
2339 else 2429 else
2340 cat > conftest.$ac_ext <<EOF 2430 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure" 2431 #line 2432 "configure"
2342 #include "confdefs.h" 2432 #include "confdefs.h"
2343 #include <sys/types.h> 2433 #include <sys/types.h>
2344 #include <signal.h> 2434 #include <signal.h>
2345 /* NetBSD declares sys_siglist in unistd.h. */ 2435 /* NetBSD declares sys_siglist in unistd.h. */
2346 #ifdef HAVE_UNISTD_H 2436 #ifdef HAVE_UNISTD_H
2348 #endif 2438 #endif
2349 int main() { 2439 int main() {
2350 char *msg = *(sys_siglist + 1); 2440 char *msg = *(sys_siglist + 1);
2351 ; return 0; } 2441 ; return 0; }
2352 EOF 2442 EOF
2353 if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2443 if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2354 rm -rf conftest* 2444 rm -rf conftest*
2355 ac_cv_decl_sys_siglist=yes 2445 ac_cv_decl_sys_siglist=yes
2356 else 2446 else
2357 echo "configure: failed program was:" >&5 2447 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5 2448 cat conftest.$ac_ext >&5
2370 2460
2371 fi 2461 fi
2372 2462
2373 2463
2374 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2464 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2375 echo "configure:2376: checking for struct utimbuf" >&5 2465 echo "configure:2466: checking for struct utimbuf" >&5
2376 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2466 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6 2467 echo $ac_n "(cached) $ac_c" 1>&6
2378 else 2468 else
2379 cat > conftest.$ac_ext <<EOF 2469 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure" 2470 #line 2471 "configure"
2381 #include "confdefs.h" 2471 #include "confdefs.h"
2382 #ifdef TIME_WITH_SYS_TIME 2472 #ifdef TIME_WITH_SYS_TIME
2383 #include <sys/time.h> 2473 #include <sys/time.h>
2384 #include <time.h> 2474 #include <time.h>
2385 #else 2475 #else
2394 #endif 2484 #endif
2395 int main() { 2485 int main() {
2396 static struct utimbuf x; x.actime = x.modtime; 2486 static struct utimbuf x; x.actime = x.modtime;
2397 ; return 0; } 2487 ; return 0; }
2398 EOF 2488 EOF
2399 if { (eval echo configure:2400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2489 if { (eval echo configure:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2400 rm -rf conftest* 2490 rm -rf conftest*
2401 emacs_cv_struct_utimbuf=yes 2491 emacs_cv_struct_utimbuf=yes
2402 else 2492 else
2403 echo "configure: failed program was:" >&5 2493 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5 2494 cat conftest.$ac_ext >&5
2415 EOF 2505 EOF
2416 2506
2417 fi 2507 fi
2418 2508
2419 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2509 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2420 echo "configure:2421: checking return type of signal handlers" >&5 2510 echo "configure:2511: checking return type of signal handlers" >&5
2421 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2511 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6 2512 echo $ac_n "(cached) $ac_c" 1>&6
2423 else 2513 else
2424 cat > conftest.$ac_ext <<EOF 2514 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure" 2515 #line 2516 "configure"
2426 #include "confdefs.h" 2516 #include "confdefs.h"
2427 #include <sys/types.h> 2517 #include <sys/types.h>
2428 #include <signal.h> 2518 #include <signal.h>
2429 #ifdef signal 2519 #ifdef signal
2430 #undef signal 2520 #undef signal
2437 2527
2438 int main() { 2528 int main() {
2439 int i; 2529 int i;
2440 ; return 0; } 2530 ; return 0; }
2441 EOF 2531 EOF
2442 if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2532 if { (eval echo configure:2533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2443 rm -rf conftest* 2533 rm -rf conftest*
2444 ac_cv_type_signal=void 2534 ac_cv_type_signal=void
2445 else 2535 else
2446 echo "configure: failed program was:" >&5 2536 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5 2537 cat conftest.$ac_ext >&5
2457 EOF 2547 EOF
2458 2548
2459 2549
2460 2550
2461 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2551 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2462 echo "configure:2463: checking for struct timeval" >&5 2552 echo "configure:2553: checking for struct timeval" >&5
2463 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2553 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6 2554 echo $ac_n "(cached) $ac_c" 1>&6
2465 else 2555 else
2466 cat > conftest.$ac_ext <<EOF 2556 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure" 2557 #line 2558 "configure"
2468 #include "confdefs.h" 2558 #include "confdefs.h"
2469 #ifdef TIME_WITH_SYS_TIME 2559 #ifdef TIME_WITH_SYS_TIME
2470 #include <sys/time.h> 2560 #include <sys/time.h>
2471 #include <time.h> 2561 #include <time.h>
2472 #else 2562 #else
2478 #endif 2568 #endif
2479 int main() { 2569 int main() {
2480 static struct timeval x; x.tv_sec = x.tv_usec; 2570 static struct timeval x; x.tv_sec = x.tv_usec;
2481 ; return 0; } 2571 ; return 0; }
2482 EOF 2572 EOF
2483 if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2484 rm -rf conftest* 2574 rm -rf conftest*
2485 emacs_cv_struct_timeval=yes 2575 emacs_cv_struct_timeval=yes
2486 else 2576 else
2487 echo "configure: failed program was:" >&5 2577 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5 2578 cat conftest.$ac_ext >&5
2500 EOF 2590 EOF
2501 2591
2502 fi 2592 fi
2503 2593
2504 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2594 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2505 echo "configure:2506: checking whether struct tm is in sys/time.h or time.h" >&5 2595 echo "configure:2596: checking whether struct tm is in sys/time.h or time.h" >&5
2506 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2596 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6 2597 echo $ac_n "(cached) $ac_c" 1>&6
2508 else 2598 else
2509 cat > conftest.$ac_ext <<EOF 2599 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure" 2600 #line 2601 "configure"
2511 #include "confdefs.h" 2601 #include "confdefs.h"
2512 #include <sys/types.h> 2602 #include <sys/types.h>
2513 #include <time.h> 2603 #include <time.h>
2514 int main() { 2604 int main() {
2515 struct tm *tp; tp->tm_sec; 2605 struct tm *tp; tp->tm_sec;
2516 ; return 0; } 2606 ; return 0; }
2517 EOF 2607 EOF
2518 if { (eval echo configure:2519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2608 if { (eval echo configure:2609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2519 rm -rf conftest* 2609 rm -rf conftest*
2520 ac_cv_struct_tm=time.h 2610 ac_cv_struct_tm=time.h
2521 else 2611 else
2522 echo "configure: failed program was:" >&5 2612 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5 2613 cat conftest.$ac_ext >&5
2534 EOF 2624 EOF
2535 2625
2536 fi 2626 fi
2537 2627
2538 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2628 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2539 echo "configure:2540: checking for tm_zone in struct tm" >&5 2629 echo "configure:2630: checking for tm_zone in struct tm" >&5
2540 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2630 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6 2631 echo $ac_n "(cached) $ac_c" 1>&6
2542 else 2632 else
2543 cat > conftest.$ac_ext <<EOF 2633 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure" 2634 #line 2635 "configure"
2545 #include "confdefs.h" 2635 #include "confdefs.h"
2546 #include <sys/types.h> 2636 #include <sys/types.h>
2547 #include <$ac_cv_struct_tm> 2637 #include <$ac_cv_struct_tm>
2548 int main() { 2638 int main() {
2549 struct tm tm; tm.tm_zone; 2639 struct tm tm; tm.tm_zone;
2550 ; return 0; } 2640 ; return 0; }
2551 EOF 2641 EOF
2552 if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2642 if { (eval echo configure:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2553 rm -rf conftest* 2643 rm -rf conftest*
2554 ac_cv_struct_tm_zone=yes 2644 ac_cv_struct_tm_zone=yes
2555 else 2645 else
2556 echo "configure: failed program was:" >&5 2646 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5 2647 cat conftest.$ac_ext >&5
2567 #define HAVE_TM_ZONE 1 2657 #define HAVE_TM_ZONE 1
2568 EOF 2658 EOF
2569 2659
2570 else 2660 else
2571 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2661 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2572 echo "configure:2573: checking for tzname" >&5 2662 echo "configure:2663: checking for tzname" >&5
2573 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2663 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6 2664 echo $ac_n "(cached) $ac_c" 1>&6
2575 else 2665 else
2576 cat > conftest.$ac_ext <<EOF 2666 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure" 2667 #line 2668 "configure"
2578 #include "confdefs.h" 2668 #include "confdefs.h"
2579 #include <time.h> 2669 #include <time.h>
2580 #ifndef tzname /* For SGI. */ 2670 #ifndef tzname /* For SGI. */
2581 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2671 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2582 #endif 2672 #endif
2583 int main() { 2673 int main() {
2584 atoi(*tzname); 2674 atoi(*tzname);
2585 ; return 0; } 2675 ; return 0; }
2586 EOF 2676 EOF
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2677 if { (eval echo configure:2678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2588 rm -rf conftest* 2678 rm -rf conftest*
2589 ac_cv_var_tzname=yes 2679 ac_cv_var_tzname=yes
2590 else 2680 else
2591 echo "configure: failed program was:" >&5 2681 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5 2682 cat conftest.$ac_ext >&5
2604 2694
2605 fi 2695 fi
2606 fi 2696 fi
2607 2697
2608 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2698 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2609 echo "configure:2610: checking for tm_gmtoff in struct tm" >&5 2699 echo "configure:2700: checking for tm_gmtoff in struct tm" >&5
2610 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2700 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6 2701 echo $ac_n "(cached) $ac_c" 1>&6
2612 else 2702 else
2613 cat > conftest.$ac_ext <<EOF 2703 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure" 2704 #line 2705 "configure"
2615 #include "confdefs.h" 2705 #include "confdefs.h"
2616 #include <time.h> 2706 #include <time.h>
2617 int main() { 2707 int main() {
2618 struct tm t; t.tm_gmtoff = 0 2708 struct tm t; t.tm_gmtoff = 0
2619 ; return 0; } 2709 ; return 0; }
2620 EOF 2710 EOF
2621 if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2711 if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2622 rm -rf conftest* 2712 rm -rf conftest*
2623 emacs_cv_tm_gmtoff=yes 2713 emacs_cv_tm_gmtoff=yes
2624 else 2714 else
2625 echo "configure: failed program was:" >&5 2715 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5 2716 cat conftest.$ac_ext >&5
2637 EOF 2727 EOF
2638 2728
2639 fi 2729 fi
2640 2730
2641 echo $ac_n "checking for working const""... $ac_c" 1>&6 2731 echo $ac_n "checking for working const""... $ac_c" 1>&6
2642 echo "configure:2643: checking for working const" >&5 2732 echo "configure:2733: checking for working const" >&5
2643 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2733 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6 2734 echo $ac_n "(cached) $ac_c" 1>&6
2645 else 2735 else
2646 cat > conftest.$ac_ext <<EOF 2736 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure" 2737 #line 2738 "configure"
2648 #include "confdefs.h" 2738 #include "confdefs.h"
2649 2739
2650 int main() { 2740 int main() {
2651 2741
2652 /* Ultrix mips cc rejects this. */ 2742 /* Ultrix mips cc rejects this. */
2691 const int foo = 10; 2781 const int foo = 10;
2692 } 2782 }
2693 2783
2694 ; return 0; } 2784 ; return 0; }
2695 EOF 2785 EOF
2696 if { (eval echo configure:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2786 if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 rm -rf conftest* 2787 rm -rf conftest*
2698 ac_cv_c_const=yes 2788 ac_cv_c_const=yes
2699 else 2789 else
2700 echo "configure: failed program was:" >&5 2790 echo "configure: failed program was:" >&5
2701 cat conftest.$ac_ext >&5 2791 cat conftest.$ac_ext >&5
2713 2803
2714 fi 2804 fi
2715 2805
2716 2806
2717 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2807 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2718 echo "configure:2719: checking whether ${MAKE-make} sets \${MAKE}" >&5 2808 echo "configure:2809: checking whether ${MAKE-make} sets \${MAKE}" >&5
2719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2809 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2720 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 2810 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6 2811 echo $ac_n "(cached) $ac_c" 1>&6
2722 else 2812 else
2723 cat > conftestmake <<\EOF 2813 cat > conftestmake <<\EOF
2741 SET_MAKE="MAKE=${MAKE-make}" 2831 SET_MAKE="MAKE=${MAKE-make}"
2742 fi 2832 fi
2743 2833
2744 2834
2745 echo $ac_n "checking for long file names""... $ac_c" 1>&6 2835 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2746 echo "configure:2747: checking for long file names" >&5 2836 echo "configure:2837: checking for long file names" >&5
2747 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 2837 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6 2838 echo $ac_n "(cached) $ac_c" 1>&6
2749 else 2839 else
2750 ac_cv_sys_long_file_names=yes 2840 ac_cv_sys_long_file_names=yes
2751 # Test for long file names in all the places we know might matter: 2841 # Test for long file names in all the places we know might matter:
2792 # If we find X, set shell vars x_includes and x_libraries to the 2882 # If we find X, set shell vars x_includes and x_libraries to the
2793 # paths, otherwise set no_x=yes. 2883 # paths, otherwise set no_x=yes.
2794 # Uses ac_ vars as temps to allow command line to override cache and checks. 2884 # Uses ac_ vars as temps to allow command line to override cache and checks.
2795 # --without-x overrides everything else, but does not touch the cache. 2885 # --without-x overrides everything else, but does not touch the cache.
2796 echo $ac_n "checking for X""... $ac_c" 1>&6 2886 echo $ac_n "checking for X""... $ac_c" 1>&6
2797 echo "configure:2798: checking for X" >&5 2887 echo "configure:2888: checking for X" >&5
2798 2888
2799 # Check whether --with-x or --without-x was given. 2889 # Check whether --with-x or --without-x was given.
2800 if test "${with_x+set}" = set; then 2890 if test "${with_x+set}" = set; then
2801 withval="$with_x" 2891 withval="$with_x"
2802 : 2892 :
2854 # Guess where to find include files, by looking for this one X11 .h file. 2944 # Guess where to find include files, by looking for this one X11 .h file.
2855 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 2945 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2856 2946
2857 # First, try using that file with no special directory specified. 2947 # First, try using that file with no special directory specified.
2858 cat > conftest.$ac_ext <<EOF 2948 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure" 2949 #line 2950 "configure"
2860 #include "confdefs.h" 2950 #include "confdefs.h"
2861 #include <$x_direct_test_include> 2951 #include <$x_direct_test_include>
2862 EOF 2952 EOF
2863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2864 { (eval echo configure:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2954 { (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2865 ac_err=`grep -v '^ *+' conftest.out` 2955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2866 if test -z "$ac_err"; then 2956 if test -z "$ac_err"; then
2867 rm -rf conftest* 2957 rm -rf conftest*
2868 # We can compile using X headers with no special include directory. 2958 # We can compile using X headers with no special include directory.
2869 ac_x_includes= 2959 ac_x_includes=
2870 else 2960 else
2928 # See if we find them without any special options. 3018 # See if we find them without any special options.
2929 # Don't add to $LIBS permanently. 3019 # Don't add to $LIBS permanently.
2930 ac_save_LIBS="$LIBS" 3020 ac_save_LIBS="$LIBS"
2931 LIBS="-l$x_direct_test_library $LIBS" 3021 LIBS="-l$x_direct_test_library $LIBS"
2932 cat > conftest.$ac_ext <<EOF 3022 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure" 3023 #line 3024 "configure"
2934 #include "confdefs.h" 3024 #include "confdefs.h"
2935 3025
2936 int main() { 3026 int main() {
2937 ${x_direct_test_function}() 3027 ${x_direct_test_function}()
2938 ; return 0; } 3028 ; return 0; }
2939 EOF 3029 EOF
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2941 rm -rf conftest* 3031 rm -rf conftest*
2942 LIBS="$ac_save_LIBS" 3032 LIBS="$ac_save_LIBS"
2943 # We can link X programs with no special library path. 3033 # We can link X programs with no special library path.
2944 ac_x_libraries= 3034 ac_x_libraries=
2945 else 3035 else
3110 #### Extract some information from the operating system and machine files. 3200 #### Extract some information from the operating system and machine files.
3111 3201
3112 echo "checking the machine- and system-dependent files to find out 3202 echo "checking the machine- and system-dependent files to find out
3113 - which libraries the lib-src programs will want, and 3203 - which libraries the lib-src programs will want, and
3114 - whether the GNU malloc routines are usable" 1>&6 3204 - whether the GNU malloc routines are usable" 1>&6
3115 echo "configure:3116: checking the machine- and system-dependent files to find out 3205 echo "configure:3206: checking the machine- and system-dependent files to find out
3116 - which libraries the lib-src programs will want, and 3206 - which libraries the lib-src programs will want, and
3117 - whether the GNU malloc routines are usable" >&5 3207 - whether the GNU malloc routines are usable" >&5
3118 3208
3119 ### First figure out CFLAGS (which we use for running the compiler here) 3209 ### First figure out CFLAGS (which we use for running the compiler here)
3120 ### and REAL_CFLAGS (which we use for real compilation). 3210 ### and REAL_CFLAGS (which we use for real compilation).
3240 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3330 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3241 # Assume not, until told otherwise. 3331 # Assume not, until told otherwise.
3242 GNU_MALLOC=yes 3332 GNU_MALLOC=yes
3243 doug_lea_malloc=yes 3333 doug_lea_malloc=yes
3244 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3334 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3245 echo "configure:3246: checking for malloc_get_state" >&5 3335 echo "configure:3336: checking for malloc_get_state" >&5
3246 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3336 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6 3337 echo $ac_n "(cached) $ac_c" 1>&6
3248 else 3338 else
3249 cat > conftest.$ac_ext <<EOF 3339 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure" 3340 #line 3341 "configure"
3251 #include "confdefs.h" 3341 #include "confdefs.h"
3252 /* System header to define __stub macros and hopefully few prototypes, 3342 /* System header to define __stub macros and hopefully few prototypes,
3253 which can conflict with char malloc_get_state(); below. */ 3343 which can conflict with char malloc_get_state(); below. */
3254 #include <assert.h> 3344 #include <assert.h>
3255 /* Override any gcc2 internal prototype to avoid an error. */ 3345 /* Override any gcc2 internal prototype to avoid an error. */
3268 malloc_get_state(); 3358 malloc_get_state();
3269 #endif 3359 #endif
3270 3360
3271 ; return 0; } 3361 ; return 0; }
3272 EOF 3362 EOF
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3274 rm -rf conftest* 3364 rm -rf conftest*
3275 eval "ac_cv_func_malloc_get_state=yes" 3365 eval "ac_cv_func_malloc_get_state=yes"
3276 else 3366 else
3277 echo "configure: failed program was:" >&5 3367 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5 3368 cat conftest.$ac_ext >&5
3289 echo "$ac_t""no" 1>&6 3379 echo "$ac_t""no" 1>&6
3290 doug_lea_malloc=no 3380 doug_lea_malloc=no
3291 fi 3381 fi
3292 3382
3293 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3383 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3294 echo "configure:3295: checking for malloc_set_state" >&5 3384 echo "configure:3385: checking for malloc_set_state" >&5
3295 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3385 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6 3386 echo $ac_n "(cached) $ac_c" 1>&6
3297 else 3387 else
3298 cat > conftest.$ac_ext <<EOF 3388 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure" 3389 #line 3390 "configure"
3300 #include "confdefs.h" 3390 #include "confdefs.h"
3301 /* System header to define __stub macros and hopefully few prototypes, 3391 /* System header to define __stub macros and hopefully few prototypes,
3302 which can conflict with char malloc_set_state(); below. */ 3392 which can conflict with char malloc_set_state(); below. */
3303 #include <assert.h> 3393 #include <assert.h>
3304 /* Override any gcc2 internal prototype to avoid an error. */ 3394 /* Override any gcc2 internal prototype to avoid an error. */
3317 malloc_set_state(); 3407 malloc_set_state();
3318 #endif 3408 #endif
3319 3409
3320 ; return 0; } 3410 ; return 0; }
3321 EOF 3411 EOF
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3323 rm -rf conftest* 3413 rm -rf conftest*
3324 eval "ac_cv_func_malloc_set_state=yes" 3414 eval "ac_cv_func_malloc_set_state=yes"
3325 else 3415 else
3326 echo "configure: failed program was:" >&5 3416 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5 3417 cat conftest.$ac_ext >&5
3338 echo "$ac_t""no" 1>&6 3428 echo "$ac_t""no" 1>&6
3339 doug_lea_malloc=no 3429 doug_lea_malloc=no
3340 fi 3430 fi
3341 3431
3342 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3432 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3343 echo "configure:3344: checking whether __after_morecore_hook exists" >&5 3433 echo "configure:3434: checking whether __after_morecore_hook exists" >&5
3344 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3434 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6 3435 echo $ac_n "(cached) $ac_c" 1>&6
3346 else 3436 else
3347 cat > conftest.$ac_ext <<EOF 3437 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure" 3438 #line 3439 "configure"
3349 #include "confdefs.h" 3439 #include "confdefs.h"
3350 extern void (* __after_morecore_hook)(); 3440 extern void (* __after_morecore_hook)();
3351 int main() { 3441 int main() {
3352 __after_morecore_hook = 0 3442 __after_morecore_hook = 0
3353 ; return 0; } 3443 ; return 0; }
3354 EOF 3444 EOF
3355 if { (eval echo configure:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3445 if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3356 rm -rf conftest* 3446 rm -rf conftest*
3357 emacs_cv_var___after_morecore_hook=yes 3447 emacs_cv_var___after_morecore_hook=yes
3358 else 3448 else
3359 echo "configure: failed program was:" >&5 3449 echo "configure: failed program was:" >&5
3360 cat conftest.$ac_ext >&5 3450 cat conftest.$ac_ext >&5
3400 fi 3490 fi
3401 3491
3402 LIBS="$libsrc_libs $LIBS" 3492 LIBS="$libsrc_libs $LIBS"
3403 3493
3404 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3494 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3405 echo "configure:3406: checking for dnet_ntoa in -ldnet" >&5 3495 echo "configure:3496: checking for dnet_ntoa in -ldnet" >&5
3406 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3496 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6 3498 echo $ac_n "(cached) $ac_c" 1>&6
3409 else 3499 else
3410 ac_save_LIBS="$LIBS" 3500 ac_save_LIBS="$LIBS"
3411 LIBS="-ldnet $LIBS" 3501 LIBS="-ldnet $LIBS"
3412 cat > conftest.$ac_ext <<EOF 3502 cat > conftest.$ac_ext <<EOF
3413 #line 3414 "configure" 3503 #line 3504 "configure"
3414 #include "confdefs.h" 3504 #include "confdefs.h"
3415 /* Override any gcc2 internal prototype to avoid an error. */ 3505 /* Override any gcc2 internal prototype to avoid an error. */
3416 /* We use char because int might match the return type of a gcc2 3506 /* We use char because int might match the return type of a gcc2
3417 builtin and then its argument prototype would still apply. */ 3507 builtin and then its argument prototype would still apply. */
3418 char dnet_ntoa(); 3508 char dnet_ntoa();
3419 3509
3420 int main() { 3510 int main() {
3421 dnet_ntoa() 3511 dnet_ntoa()
3422 ; return 0; } 3512 ; return 0; }
3423 EOF 3513 EOF
3424 if { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3425 rm -rf conftest* 3515 rm -rf conftest*
3426 eval "ac_cv_lib_$ac_lib_var=yes" 3516 eval "ac_cv_lib_$ac_lib_var=yes"
3427 else 3517 else
3428 echo "configure: failed program was:" >&5 3518 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5 3519 cat conftest.$ac_ext >&5
3448 echo "$ac_t""no" 1>&6 3538 echo "$ac_t""no" 1>&6
3449 fi 3539 fi
3450 3540
3451 3541
3452 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3542 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3453 echo "configure:3454: checking for main in -lXbsd" >&5 3543 echo "configure:3544: checking for main in -lXbsd" >&5
3454 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3544 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6 3546 echo $ac_n "(cached) $ac_c" 1>&6
3457 else 3547 else
3458 ac_save_LIBS="$LIBS" 3548 ac_save_LIBS="$LIBS"
3459 LIBS="-lXbsd $LIBS" 3549 LIBS="-lXbsd $LIBS"
3460 cat > conftest.$ac_ext <<EOF 3550 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure" 3551 #line 3552 "configure"
3462 #include "confdefs.h" 3552 #include "confdefs.h"
3463 3553
3464 int main() { 3554 int main() {
3465 main() 3555 main()
3466 ; return 0; } 3556 ; return 0; }
3467 EOF 3557 EOF
3468 if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3469 rm -rf conftest* 3559 rm -rf conftest*
3470 eval "ac_cv_lib_$ac_lib_var=yes" 3560 eval "ac_cv_lib_$ac_lib_var=yes"
3471 else 3561 else
3472 echo "configure: failed program was:" >&5 3562 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5 3563 cat conftest.$ac_ext >&5
3485 echo "$ac_t""no" 1>&6 3575 echo "$ac_t""no" 1>&6
3486 fi 3576 fi
3487 3577
3488 3578
3489 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3579 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3490 echo "configure:3491: checking for cma_open in -lpthreads" >&5 3580 echo "configure:3581: checking for cma_open in -lpthreads" >&5
3491 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3581 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6 3583 echo $ac_n "(cached) $ac_c" 1>&6
3494 else 3584 else
3495 ac_save_LIBS="$LIBS" 3585 ac_save_LIBS="$LIBS"
3496 LIBS="-lpthreads $LIBS" 3586 LIBS="-lpthreads $LIBS"
3497 cat > conftest.$ac_ext <<EOF 3587 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure" 3588 #line 3589 "configure"
3499 #include "confdefs.h" 3589 #include "confdefs.h"
3500 /* Override any gcc2 internal prototype to avoid an error. */ 3590 /* Override any gcc2 internal prototype to avoid an error. */
3501 /* We use char because int might match the return type of a gcc2 3591 /* We use char because int might match the return type of a gcc2
3502 builtin and then its argument prototype would still apply. */ 3592 builtin and then its argument prototype would still apply. */
3503 char cma_open(); 3593 char cma_open();
3504 3594
3505 int main() { 3595 int main() {
3506 cma_open() 3596 cma_open()
3507 ; return 0; } 3597 ; return 0; }
3508 EOF 3598 EOF
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3510 rm -rf conftest* 3600 rm -rf conftest*
3511 eval "ac_cv_lib_$ac_lib_var=yes" 3601 eval "ac_cv_lib_$ac_lib_var=yes"
3512 else 3602 else
3513 echo "configure: failed program was:" >&5 3603 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5 3604 cat conftest.$ac_ext >&5
3533 echo "$ac_t""no" 1>&6 3623 echo "$ac_t""no" 1>&6
3534 fi 3624 fi
3535 3625
3536 3626
3537 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3627 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3538 echo "configure:3539: checking for XFree86 in /usr/X386" >&5 3628 echo "configure:3629: checking for XFree86 in /usr/X386" >&5
3539 if test -d /usr/X386/include; then 3629 if test -d /usr/X386/include; then
3540 HAVE_XFREE386=yes 3630 HAVE_XFREE386=yes
3541 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3631 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3542 else 3632 else
3543 HAVE_XFREE386=no 3633 HAVE_XFREE386=no
3562 export LD_RUN_PATH 3652 export LD_RUN_PATH
3563 fi 3653 fi
3564 3654
3565 if test "${opsys}" = "gnu-linux"; then 3655 if test "${opsys}" = "gnu-linux"; then
3566 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3656 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3567 echo "configure:3568: checking whether X on GNU/Linux needs -b to link" >&5 3657 echo "configure:3658: checking whether X on GNU/Linux needs -b to link" >&5
3568 cat > conftest.$ac_ext <<EOF 3658 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure" 3659 #line 3660 "configure"
3570 #include "confdefs.h" 3660 #include "confdefs.h"
3571 3661
3572 int main() { 3662 int main() {
3573 XOpenDisplay ("foo"); 3663 XOpenDisplay ("foo");
3574 ; return 0; } 3664 ; return 0; }
3575 EOF 3665 EOF
3576 if { (eval echo configure:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3577 rm -rf conftest* 3667 rm -rf conftest*
3578 xlinux_first_failure=no 3668 xlinux_first_failure=no
3579 else 3669 else
3580 echo "configure: failed program was:" >&5 3670 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5 3671 cat conftest.$ac_ext >&5
3591 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 3681 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3592 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 3682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3593 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3683 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3594 LIBS="$LIBS -b i486-linuxaout" 3684 LIBS="$LIBS -b i486-linuxaout"
3595 cat > conftest.$ac_ext <<EOF 3685 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure" 3686 #line 3687 "configure"
3597 #include "confdefs.h" 3687 #include "confdefs.h"
3598 3688
3599 int main() { 3689 int main() {
3600 XOpenDisplay ("foo"); 3690 XOpenDisplay ("foo");
3601 ; return 0; } 3691 ; return 0; }
3602 EOF 3692 EOF
3603 if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3604 rm -rf conftest* 3694 rm -rf conftest*
3605 xlinux_second_failure=no 3695 xlinux_second_failure=no
3606 else 3696 else
3607 echo "configure: failed program was:" >&5 3697 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5 3698 cat conftest.$ac_ext >&5
3628 3718
3629 for ac_func in XrmSetDatabase XScreenResourceString \ 3719 for ac_func in XrmSetDatabase XScreenResourceString \
3630 XScreenNumberOfScreen XSetWMProtocols 3720 XScreenNumberOfScreen XSetWMProtocols
3631 do 3721 do
3632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3633 echo "configure:3634: checking for $ac_func" >&5 3723 echo "configure:3724: checking for $ac_func" >&5
3634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6 3725 echo $ac_n "(cached) $ac_c" 1>&6
3636 else 3726 else
3637 cat > conftest.$ac_ext <<EOF 3727 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure" 3728 #line 3729 "configure"
3639 #include "confdefs.h" 3729 #include "confdefs.h"
3640 /* System header to define __stub macros and hopefully few prototypes, 3730 /* System header to define __stub macros and hopefully few prototypes,
3641 which can conflict with char $ac_func(); below. */ 3731 which can conflict with char $ac_func(); below. */
3642 #include <assert.h> 3732 #include <assert.h>
3643 /* Override any gcc2 internal prototype to avoid an error. */ 3733 /* Override any gcc2 internal prototype to avoid an error. */
3656 $ac_func(); 3746 $ac_func();
3657 #endif 3747 #endif
3658 3748
3659 ; return 0; } 3749 ; return 0; }
3660 EOF 3750 EOF
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3662 rm -rf conftest* 3752 rm -rf conftest*
3663 eval "ac_cv_func_$ac_func=yes" 3753 eval "ac_cv_func_$ac_func=yes"
3664 else 3754 else
3665 echo "configure: failed program was:" >&5 3755 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5 3756 cat conftest.$ac_ext >&5
3684 3774
3685 fi 3775 fi
3686 3776
3687 if test "${window_system}" = "x11"; then 3777 if test "${window_system}" = "x11"; then
3688 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 3778 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3689 echo "configure:3690: checking X11 version 6" >&5 3779 echo "configure:3780: checking X11 version 6" >&5
3690 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 3780 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6 3781 echo $ac_n "(cached) $ac_c" 1>&6
3692 else 3782 else
3693 cat > conftest.$ac_ext <<EOF 3783 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure" 3784 #line 3785 "configure"
3695 #include "confdefs.h" 3785 #include "confdefs.h"
3696 #include <X11/Xlib.h> 3786 #include <X11/Xlib.h>
3697 int main() { 3787 int main() {
3698 #if XlibSpecificationRelease < 6 3788 #if XlibSpecificationRelease < 6
3699 fail; 3789 fail;
3700 #endif 3790 #endif
3701 3791
3702 ; return 0; } 3792 ; return 0; }
3703 EOF 3793 EOF
3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3705 rm -rf conftest* 3795 rm -rf conftest*
3706 emacs_cv_x11_version_6=yes 3796 emacs_cv_x11_version_6=yes
3707 else 3797 else
3708 echo "configure: failed program was:" >&5 3798 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5 3799 cat conftest.$ac_ext >&5
3724 fi 3814 fi
3725 fi 3815 fi
3726 3816
3727 if test "${window_system}" = "x11"; then 3817 if test "${window_system}" = "x11"; then
3728 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 3818 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3729 echo "configure:3730: checking X11 version 5" >&5 3819 echo "configure:3820: checking X11 version 5" >&5
3730 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 3820 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6 3821 echo $ac_n "(cached) $ac_c" 1>&6
3732 else 3822 else
3733 cat > conftest.$ac_ext <<EOF 3823 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure" 3824 #line 3825 "configure"
3735 #include "confdefs.h" 3825 #include "confdefs.h"
3736 #include <X11/Xlib.h> 3826 #include <X11/Xlib.h>
3737 int main() { 3827 int main() {
3738 #if XlibSpecificationRelease < 5 3828 #if XlibSpecificationRelease < 5
3739 fail; 3829 fail;
3740 #endif 3830 #endif
3741 3831
3742 ; return 0; } 3832 ; return 0; }
3743 EOF 3833 EOF
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745 rm -rf conftest* 3835 rm -rf conftest*
3746 emacs_cv_x11_version_5=yes 3836 emacs_cv_x11_version_5=yes
3747 else 3837 else
3748 echo "configure: failed program was:" >&5 3838 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5 3839 cat conftest.$ac_ext >&5
3767 fi 3857 fi
3768 3858
3769 if test x"${USE_X_TOOLKIT}" = xmaybe; then 3859 if test x"${USE_X_TOOLKIT}" = xmaybe; then
3770 if test x"${HAVE_X11R5}" = xyes; then 3860 if test x"${HAVE_X11R5}" = xyes; then
3771 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 3861 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3772 echo "configure:3773: checking X11 version 5 with Xaw" >&5 3862 echo "configure:3863: checking X11 version 5 with Xaw" >&5
3773 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 3863 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6 3864 echo $ac_n "(cached) $ac_c" 1>&6
3775 else 3865 else
3776 cat > conftest.$ac_ext <<EOF 3866 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure" 3867 #line 3868 "configure"
3778 #include "confdefs.h" 3868 #include "confdefs.h"
3779 3869
3780 #include <X11/Intrinsic.h> 3870 #include <X11/Intrinsic.h>
3781 #include <X11/Xaw/Simple.h> 3871 #include <X11/Xaw/Simple.h>
3782 int main() { 3872 int main() {
3783 3873
3784 ; return 0; } 3874 ; return 0; }
3785 EOF 3875 EOF
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3787 rm -rf conftest* 3877 rm -rf conftest*
3788 emacs_cv_x11_version_5_with_xaw=yes 3878 emacs_cv_x11_version_5_with_xaw=yes
3789 else 3879 else
3790 echo "configure: failed program was:" >&5 3880 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5 3881 cat conftest.$ac_ext >&5
3809 3899
3810 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 3900 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
3811 3901
3812 if test "${USE_X_TOOLKIT}" != "none"; then 3902 if test "${USE_X_TOOLKIT}" != "none"; then
3813 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 3903 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3814 echo "configure:3815: checking X11 toolkit version" >&5 3904 echo "configure:3905: checking X11 toolkit version" >&5
3815 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 3905 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6 3906 echo $ac_n "(cached) $ac_c" 1>&6
3817 else 3907 else
3818 cat > conftest.$ac_ext <<EOF 3908 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure" 3909 #line 3910 "configure"
3820 #include "confdefs.h" 3910 #include "confdefs.h"
3821 #include <X11/Intrinsic.h> 3911 #include <X11/Intrinsic.h>
3822 int main() { 3912 int main() {
3823 #if XtSpecificationRelease < 6 3913 #if XtSpecificationRelease < 6
3824 fail; 3914 fail;
3825 #endif 3915 #endif
3826 3916
3827 ; return 0; } 3917 ; return 0; }
3828 EOF 3918 EOF
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3830 rm -rf conftest* 3920 rm -rf conftest*
3831 emacs_cv_x11_toolkit_version_6=yes 3921 emacs_cv_x11_toolkit_version_6=yes
3832 else 3922 else
3833 echo "configure: failed program was:" >&5 3923 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5 3924 cat conftest.$ac_ext >&5
3854 LIBS="-lXt -lSM -lICE $LIBS" 3944 LIBS="-lXt -lSM -lICE $LIBS"
3855 else 3945 else
3856 LIBS="-lXt $LIBS" 3946 LIBS="-lXt $LIBS"
3857 fi 3947 fi
3858 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 3948 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3859 echo "configure:3860: checking for XmuConvertStandardSelection in -lXmu" >&5 3949 echo "configure:3950: checking for XmuConvertStandardSelection in -lXmu" >&5
3860 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 3950 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6 3952 echo $ac_n "(cached) $ac_c" 1>&6
3863 else 3953 else
3864 ac_save_LIBS="$LIBS" 3954 ac_save_LIBS="$LIBS"
3865 LIBS="-lXmu $LIBS" 3955 LIBS="-lXmu $LIBS"
3866 cat > conftest.$ac_ext <<EOF 3956 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure" 3957 #line 3958 "configure"
3868 #include "confdefs.h" 3958 #include "confdefs.h"
3869 /* Override any gcc2 internal prototype to avoid an error. */ 3959 /* Override any gcc2 internal prototype to avoid an error. */
3870 /* We use char because int might match the return type of a gcc2 3960 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */ 3961 builtin and then its argument prototype would still apply. */
3872 char XmuConvertStandardSelection(); 3962 char XmuConvertStandardSelection();
3873 3963
3874 int main() { 3964 int main() {
3875 XmuConvertStandardSelection() 3965 XmuConvertStandardSelection()
3876 ; return 0; } 3966 ; return 0; }
3877 EOF 3967 EOF
3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3879 rm -rf conftest* 3969 rm -rf conftest*
3880 eval "ac_cv_lib_$ac_lib_var=yes" 3970 eval "ac_cv_lib_$ac_lib_var=yes"
3881 else 3971 else
3882 echo "configure: failed program was:" >&5 3972 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5 3973 cat conftest.$ac_ext >&5
3905 LIBS="$OLDLIBS" 3995 LIBS="$OLDLIBS"
3906 fi 3996 fi
3907 3997
3908 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 3998 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3909 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 3999 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3910 echo "configure:3911: checking for Motif version 2.1" >&5 4000 echo "configure:4001: checking for Motif version 2.1" >&5
3911 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4001 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6 4002 echo $ac_n "(cached) $ac_c" 1>&6
3913 else 4003 else
3914 cat > conftest.$ac_ext <<EOF 4004 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure" 4005 #line 4006 "configure"
3916 #include "confdefs.h" 4006 #include "confdefs.h"
3917 #include <Xm/Xm.h> 4007 #include <Xm/Xm.h>
3918 int main() { 4008 int main() {
3919 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 4009 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
3920 int x = 5; 4010 int x = 5;
3921 #else 4011 #else
3922 Motif version prior to 2.1. 4012 Motif version prior to 2.1.
3923 #endif 4013 #endif
3924 ; return 0; } 4014 ; return 0; }
3925 EOF 4015 EOF
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4016 if { (eval echo configure:4017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 rm -rf conftest* 4017 rm -rf conftest*
3928 emacs_cv_motif_version_2_1=yes 4018 emacs_cv_motif_version_2_1=yes
3929 else 4019 else
3930 echo "configure: failed program was:" >&5 4020 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5 4021 cat conftest.$ac_ext >&5
3941 cat >> confdefs.h <<\EOF 4031 cat >> confdefs.h <<\EOF
3942 #define HAVE_MOTIF_2_1 1 4032 #define HAVE_MOTIF_2_1 1
3943 EOF 4033 EOF
3944 4034
3945 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4035 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3946 echo "configure:3947: checking for XpCreateContext in -lXp" >&5 4036 echo "configure:4037: checking for XpCreateContext in -lXp" >&5
3947 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4037 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6 4039 echo $ac_n "(cached) $ac_c" 1>&6
3950 else 4040 else
3951 ac_save_LIBS="$LIBS" 4041 ac_save_LIBS="$LIBS"
3952 LIBS="-lXp $LIBS" 4042 LIBS="-lXp $LIBS"
3953 cat > conftest.$ac_ext <<EOF 4043 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure" 4044 #line 4045 "configure"
3955 #include "confdefs.h" 4045 #include "confdefs.h"
3956 /* Override any gcc2 internal prototype to avoid an error. */ 4046 /* Override any gcc2 internal prototype to avoid an error. */
3957 /* We use char because int might match the return type of a gcc2 4047 /* We use char because int might match the return type of a gcc2
3958 builtin and then its argument prototype would still apply. */ 4048 builtin and then its argument prototype would still apply. */
3959 char XpCreateContext(); 4049 char XpCreateContext();
3960 4050
3961 int main() { 4051 int main() {
3962 XpCreateContext() 4052 XpCreateContext()
3963 ; return 0; } 4053 ; return 0; }
3964 EOF 4054 EOF
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3966 rm -rf conftest* 4056 rm -rf conftest*
3967 eval "ac_cv_lib_$ac_lib_var=yes" 4057 eval "ac_cv_lib_$ac_lib_var=yes"
3968 else 4058 else
3969 echo "configure: failed program was:" >&5 4059 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5 4060 cat conftest.$ac_ext >&5
3998 if test "${USE_X_TOOLKIT}" != "none"; then 4088 if test "${USE_X_TOOLKIT}" != "none"; then
3999 old_c_flags="${CFLAGS}" 4089 old_c_flags="${CFLAGS}"
4000 CFLAGS="${LD_SWITCH_X_SITE}" 4090 CFLAGS="${LD_SWITCH_X_SITE}"
4001 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4091 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4002 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4092 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4003 echo "configure:4004: checking for X11/Xaw3d/Scrollbar.h" >&5 4093 echo "configure:4094: checking for X11/Xaw3d/Scrollbar.h" >&5
4004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4094 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6 4095 echo $ac_n "(cached) $ac_c" 1>&6
4006 else 4096 else
4007 cat > conftest.$ac_ext <<EOF 4097 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure" 4098 #line 4099 "configure"
4009 #include "confdefs.h" 4099 #include "confdefs.h"
4010 #include <X11/Xaw3d/Scrollbar.h> 4100 #include <X11/Xaw3d/Scrollbar.h>
4011 EOF 4101 EOF
4012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4013 { (eval echo configure:4014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4103 { (eval echo configure:4104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4014 ac_err=`grep -v '^ *+' conftest.out` 4104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4015 if test -z "$ac_err"; then 4105 if test -z "$ac_err"; then
4016 rm -rf conftest* 4106 rm -rf conftest*
4017 eval "ac_cv_header_$ac_safe=yes" 4107 eval "ac_cv_header_$ac_safe=yes"
4018 else 4108 else
4019 echo "$ac_err" >&5 4109 echo "$ac_err" >&5
4025 rm -f conftest* 4115 rm -f conftest*
4026 fi 4116 fi
4027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4028 echo "$ac_t""yes" 1>&6 4118 echo "$ac_t""yes" 1>&6
4029 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4119 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4030 echo "configure:4031: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4120 echo "configure:4121: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4031 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4121 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6 4123 echo $ac_n "(cached) $ac_c" 1>&6
4034 else 4124 else
4035 ac_save_LIBS="$LIBS" 4125 ac_save_LIBS="$LIBS"
4036 LIBS="-lXaw3d -lX11 $LIBS" 4126 LIBS="-lXaw3d -lX11 $LIBS"
4037 cat > conftest.$ac_ext <<EOF 4127 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure" 4128 #line 4129 "configure"
4039 #include "confdefs.h" 4129 #include "confdefs.h"
4040 /* Override any gcc2 internal prototype to avoid an error. */ 4130 /* Override any gcc2 internal prototype to avoid an error. */
4041 /* We use char because int might match the return type of a gcc2 4131 /* We use char because int might match the return type of a gcc2
4042 builtin and then its argument prototype would still apply. */ 4132 builtin and then its argument prototype would still apply. */
4043 char XawScrollbarSetThumb(); 4133 char XawScrollbarSetThumb();
4044 4134
4045 int main() { 4135 int main() {
4046 XawScrollbarSetThumb() 4136 XawScrollbarSetThumb()
4047 ; return 0; } 4137 ; return 0; }
4048 EOF 4138 EOF
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4050 rm -rf conftest* 4140 rm -rf conftest*
4051 eval "ac_cv_lib_$ac_lib_var=yes" 4141 eval "ac_cv_lib_$ac_lib_var=yes"
4052 else 4142 else
4053 echo "configure: failed program was:" >&5 4143 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5 4144 cat conftest.$ac_ext >&5
4108 if test "${with_xpm}" != "no"; then 4198 if test "${with_xpm}" != "no"; then
4109 old_c_flags="${CFLAGS}" 4199 old_c_flags="${CFLAGS}"
4110 CFLAGS="${LD_SWITCH_X_SITE}" 4200 CFLAGS="${LD_SWITCH_X_SITE}"
4111 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4201 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4112 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4202 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4113 echo "configure:4114: checking for X11/xpm.h" >&5 4203 echo "configure:4204: checking for X11/xpm.h" >&5
4114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6 4205 echo $ac_n "(cached) $ac_c" 1>&6
4116 else 4206 else
4117 cat > conftest.$ac_ext <<EOF 4207 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure" 4208 #line 4209 "configure"
4119 #include "confdefs.h" 4209 #include "confdefs.h"
4120 #include <X11/xpm.h> 4210 #include <X11/xpm.h>
4121 EOF 4211 EOF
4122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4123 { (eval echo configure:4124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4213 { (eval echo configure:4214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4124 ac_err=`grep -v '^ *+' conftest.out` 4214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4125 if test -z "$ac_err"; then 4215 if test -z "$ac_err"; then
4126 rm -rf conftest* 4216 rm -rf conftest*
4127 eval "ac_cv_header_$ac_safe=yes" 4217 eval "ac_cv_header_$ac_safe=yes"
4128 else 4218 else
4129 echo "$ac_err" >&5 4219 echo "$ac_err" >&5
4135 rm -f conftest* 4225 rm -f conftest*
4136 fi 4226 fi
4137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6 4228 echo "$ac_t""yes" 1>&6
4139 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4229 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4140 echo "configure:4141: checking for XpmReadFileToPixmap in -lXpm" >&5 4230 echo "configure:4231: checking for XpmReadFileToPixmap in -lXpm" >&5
4141 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4231 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6 4233 echo $ac_n "(cached) $ac_c" 1>&6
4144 else 4234 else
4145 ac_save_LIBS="$LIBS" 4235 ac_save_LIBS="$LIBS"
4146 LIBS="-lXpm -lX11 $LIBS" 4236 LIBS="-lXpm -lX11 $LIBS"
4147 cat > conftest.$ac_ext <<EOF 4237 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure" 4238 #line 4239 "configure"
4149 #include "confdefs.h" 4239 #include "confdefs.h"
4150 /* Override any gcc2 internal prototype to avoid an error. */ 4240 /* Override any gcc2 internal prototype to avoid an error. */
4151 /* We use char because int might match the return type of a gcc2 4241 /* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */ 4242 builtin and then its argument prototype would still apply. */
4153 char XpmReadFileToPixmap(); 4243 char XpmReadFileToPixmap();
4154 4244
4155 int main() { 4245 int main() {
4156 XpmReadFileToPixmap() 4246 XpmReadFileToPixmap()
4157 ; return 0; } 4247 ; return 0; }
4158 EOF 4248 EOF
4159 if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4160 rm -rf conftest* 4250 rm -rf conftest*
4161 eval "ac_cv_lib_$ac_lib_var=yes" 4251 eval "ac_cv_lib_$ac_lib_var=yes"
4162 else 4252 else
4163 echo "configure: failed program was:" >&5 4253 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5 4254 cat conftest.$ac_ext >&5
4196 if test "${HAVE_X11}" = "yes"; then 4286 if test "${HAVE_X11}" = "yes"; then
4197 if test "${with_jpeg}" != "no"; then 4287 if test "${with_jpeg}" != "no"; then
4198 old_c_flags="${CFLAGS}" 4288 old_c_flags="${CFLAGS}"
4199 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4289 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4200 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4290 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4201 echo "configure:4202: checking for jpeg_destroy_compress in -ljpeg" >&5 4291 echo "configure:4292: checking for jpeg_destroy_compress in -ljpeg" >&5
4202 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4292 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6 4294 echo $ac_n "(cached) $ac_c" 1>&6
4205 else 4295 else
4206 ac_save_LIBS="$LIBS" 4296 ac_save_LIBS="$LIBS"
4207 LIBS="-ljpeg -lX11 $LIBS" 4297 LIBS="-ljpeg -lX11 $LIBS"
4208 cat > conftest.$ac_ext <<EOF 4298 cat > conftest.$ac_ext <<EOF
4209 #line 4210 "configure" 4299 #line 4300 "configure"
4210 #include "confdefs.h" 4300 #include "confdefs.h"
4211 /* Override any gcc2 internal prototype to avoid an error. */ 4301 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2 4302 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */ 4303 builtin and then its argument prototype would still apply. */
4214 char jpeg_destroy_compress(); 4304 char jpeg_destroy_compress();
4215 4305
4216 int main() { 4306 int main() {
4217 jpeg_destroy_compress() 4307 jpeg_destroy_compress()
4218 ; return 0; } 4308 ; return 0; }
4219 EOF 4309 EOF
4220 if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4310 if { (eval echo configure:4311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 rm -rf conftest* 4311 rm -rf conftest*
4222 eval "ac_cv_lib_$ac_lib_var=yes" 4312 eval "ac_cv_lib_$ac_lib_var=yes"
4223 else 4313 else
4224 echo "configure: failed program was:" >&5 4314 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5 4315 cat conftest.$ac_ext >&5
4254 if test "${with_png}" != "no"; then 4344 if test "${with_png}" != "no"; then
4255 old_c_flags="${CFLAGS}" 4345 old_c_flags="${CFLAGS}"
4256 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4346 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4257 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4347 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4258 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4348 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4259 echo "configure:4260: checking for png.h" >&5 4349 echo "configure:4350: checking for png.h" >&5
4260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6 4351 echo $ac_n "(cached) $ac_c" 1>&6
4262 else 4352 else
4263 cat > conftest.$ac_ext <<EOF 4353 cat > conftest.$ac_ext <<EOF
4264 #line 4265 "configure" 4354 #line 4355 "configure"
4265 #include "confdefs.h" 4355 #include "confdefs.h"
4266 #include <png.h> 4356 #include <png.h>
4267 EOF 4357 EOF
4268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269 { (eval echo configure:4270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4359 { (eval echo configure:4360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4270 ac_err=`grep -v '^ *+' conftest.out` 4360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4271 if test -z "$ac_err"; then 4361 if test -z "$ac_err"; then
4272 rm -rf conftest* 4362 rm -rf conftest*
4273 eval "ac_cv_header_$ac_safe=yes" 4363 eval "ac_cv_header_$ac_safe=yes"
4274 else 4364 else
4275 echo "$ac_err" >&5 4365 echo "$ac_err" >&5
4281 rm -f conftest* 4371 rm -f conftest*
4282 fi 4372 fi
4283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6 4374 echo "$ac_t""yes" 1>&6
4285 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4375 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4286 echo "configure:4287: checking for png_set_expand in -lpng" >&5 4376 echo "configure:4377: checking for png_set_expand in -lpng" >&5
4287 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4377 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6 4379 echo $ac_n "(cached) $ac_c" 1>&6
4290 else 4380 else
4291 ac_save_LIBS="$LIBS" 4381 ac_save_LIBS="$LIBS"
4292 LIBS="-lpng -lX11 -lz -lm $LIBS" 4382 LIBS="-lpng -lX11 -lz -lm $LIBS"
4293 cat > conftest.$ac_ext <<EOF 4383 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure" 4384 #line 4385 "configure"
4295 #include "confdefs.h" 4385 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */ 4386 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2 4387 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */ 4388 builtin and then its argument prototype would still apply. */
4299 char png_set_expand(); 4389 char png_set_expand();
4300 4390
4301 int main() { 4391 int main() {
4302 png_set_expand() 4392 png_set_expand()
4303 ; return 0; } 4393 ; return 0; }
4304 EOF 4394 EOF
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 rm -rf conftest* 4396 rm -rf conftest*
4307 eval "ac_cv_lib_$ac_lib_var=yes" 4397 eval "ac_cv_lib_$ac_lib_var=yes"
4308 else 4398 else
4309 echo "configure: failed program was:" >&5 4399 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5 4400 cat conftest.$ac_ext >&5
4343 if test "${with_tiff}" != "no"; then 4433 if test "${with_tiff}" != "no"; then
4344 old_c_flags="${CFLAGS}" 4434 old_c_flags="${CFLAGS}"
4345 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4435 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4346 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4436 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4347 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4437 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4348 echo "configure:4349: checking for tiffio.h" >&5 4438 echo "configure:4439: checking for tiffio.h" >&5
4349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6 4440 echo $ac_n "(cached) $ac_c" 1>&6
4351 else 4441 else
4352 cat > conftest.$ac_ext <<EOF 4442 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure" 4443 #line 4444 "configure"
4354 #include "confdefs.h" 4444 #include "confdefs.h"
4355 #include <tiffio.h> 4445 #include <tiffio.h>
4356 EOF 4446 EOF
4357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4358 { (eval echo configure:4359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4448 { (eval echo configure:4449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4359 ac_err=`grep -v '^ *+' conftest.out` 4449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4360 if test -z "$ac_err"; then 4450 if test -z "$ac_err"; then
4361 rm -rf conftest* 4451 rm -rf conftest*
4362 eval "ac_cv_header_$ac_safe=yes" 4452 eval "ac_cv_header_$ac_safe=yes"
4363 else 4453 else
4364 echo "$ac_err" >&5 4454 echo "$ac_err" >&5
4370 rm -f conftest* 4460 rm -f conftest*
4371 fi 4461 fi
4372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6 4463 echo "$ac_t""yes" 1>&6
4374 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4464 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4375 echo "configure:4376: checking for TIFFGetVersion in -ltiff" >&5 4465 echo "configure:4466: checking for TIFFGetVersion in -ltiff" >&5
4376 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4466 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6 4468 echo $ac_n "(cached) $ac_c" 1>&6
4379 else 4469 else
4380 ac_save_LIBS="$LIBS" 4470 ac_save_LIBS="$LIBS"
4381 LIBS="-ltiff -lX11 -lm $LIBS" 4471 LIBS="-ltiff -lX11 -lm $LIBS"
4382 cat > conftest.$ac_ext <<EOF 4472 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure" 4473 #line 4474 "configure"
4384 #include "confdefs.h" 4474 #include "confdefs.h"
4385 /* Override any gcc2 internal prototype to avoid an error. */ 4475 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2 4476 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */ 4477 builtin and then its argument prototype would still apply. */
4388 char TIFFGetVersion(); 4478 char TIFFGetVersion();
4389 4479
4390 int main() { 4480 int main() {
4391 TIFFGetVersion() 4481 TIFFGetVersion()
4392 ; return 0; } 4482 ; return 0; }
4393 EOF 4483 EOF
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 rm -rf conftest* 4485 rm -rf conftest*
4396 eval "ac_cv_lib_$ac_lib_var=yes" 4486 eval "ac_cv_lib_$ac_lib_var=yes"
4397 else 4487 else
4398 echo "configure: failed program was:" >&5 4488 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5 4489 cat conftest.$ac_ext >&5
4432 if test "${with_gif}" != "no"; then 4522 if test "${with_gif}" != "no"; then
4433 old_c_flags="${CFLAGS}" 4523 old_c_flags="${CFLAGS}"
4434 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4524 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4435 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4525 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4436 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4526 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4437 echo "configure:4438: checking for gif_lib.h" >&5 4527 echo "configure:4528: checking for gif_lib.h" >&5
4438 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6 4529 echo $ac_n "(cached) $ac_c" 1>&6
4440 else 4530 else
4441 cat > conftest.$ac_ext <<EOF 4531 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure" 4532 #line 4533 "configure"
4443 #include "confdefs.h" 4533 #include "confdefs.h"
4444 #include <gif_lib.h> 4534 #include <gif_lib.h>
4445 EOF 4535 EOF
4446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4447 { (eval echo configure:4448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4537 { (eval echo configure:4538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4448 ac_err=`grep -v '^ *+' conftest.out` 4538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4449 if test -z "$ac_err"; then 4539 if test -z "$ac_err"; then
4450 rm -rf conftest* 4540 rm -rf conftest*
4451 eval "ac_cv_header_$ac_safe=yes" 4541 eval "ac_cv_header_$ac_safe=yes"
4452 else 4542 else
4453 echo "$ac_err" >&5 4543 echo "$ac_err" >&5
4459 rm -f conftest* 4549 rm -f conftest*
4460 fi 4550 fi
4461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6 4552 echo "$ac_t""yes" 1>&6
4463 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 4553 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4464 echo "configure:4465: checking for DGifOpenFileName in -lungif" >&5 4554 echo "configure:4555: checking for DGifOpenFileName in -lungif" >&5
4465 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` 4555 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6 4557 echo $ac_n "(cached) $ac_c" 1>&6
4468 else 4558 else
4469 ac_save_LIBS="$LIBS" 4559 ac_save_LIBS="$LIBS"
4470 LIBS="-lungif -lX11 $LIBS" 4560 LIBS="-lungif -lX11 $LIBS"
4471 cat > conftest.$ac_ext <<EOF 4561 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure" 4562 #line 4563 "configure"
4473 #include "confdefs.h" 4563 #include "confdefs.h"
4474 /* Override any gcc2 internal prototype to avoid an error. */ 4564 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2 4565 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */ 4566 builtin and then its argument prototype would still apply. */
4477 char DGifOpenFileName(); 4567 char DGifOpenFileName();
4478 4568
4479 int main() { 4569 int main() {
4480 DGifOpenFileName() 4570 DGifOpenFileName()
4481 ; return 0; } 4571 ; return 0; }
4482 EOF 4572 EOF
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4573 if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4484 rm -rf conftest* 4574 rm -rf conftest*
4485 eval "ac_cv_lib_$ac_lib_var=yes" 4575 eval "ac_cv_lib_$ac_lib_var=yes"
4486 else 4576 else
4487 echo "configure: failed program was:" >&5 4577 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5 4578 cat conftest.$ac_ext >&5
4515 fi 4605 fi
4516 fi 4606 fi
4517 4607
4518 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4608 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4519 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4609 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4520 echo "configure:4521: checking whether netdb declares h_errno" >&5 4610 echo "configure:4611: checking whether netdb declares h_errno" >&5
4521 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4611 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6 4612 echo $ac_n "(cached) $ac_c" 1>&6
4523 else 4613 else
4524 cat > conftest.$ac_ext <<EOF 4614 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure" 4615 #line 4616 "configure"
4526 #include "confdefs.h" 4616 #include "confdefs.h"
4527 #include <netdb.h> 4617 #include <netdb.h>
4528 int main() { 4618 int main() {
4529 return h_errno; 4619 return h_errno;
4530 ; return 0; } 4620 ; return 0; }
4531 EOF 4621 EOF
4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4622 if { (eval echo configure:4623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4533 rm -rf conftest* 4623 rm -rf conftest*
4534 emacs_cv_netdb_declares_h_errno=yes 4624 emacs_cv_netdb_declares_h_errno=yes
4535 else 4625 else
4536 echo "configure: failed program was:" >&5 4626 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5 4627 cat conftest.$ac_ext >&5
4550 fi 4640 fi
4551 4641
4552 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4553 # for constant arguments. Useless! 4643 # for constant arguments. Useless!
4554 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4644 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4555 echo "configure:4556: checking for working alloca.h" >&5 4645 echo "configure:4646: checking for working alloca.h" >&5
4556 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4646 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6 4647 echo $ac_n "(cached) $ac_c" 1>&6
4558 else 4648 else
4559 cat > conftest.$ac_ext <<EOF 4649 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure" 4650 #line 4651 "configure"
4561 #include "confdefs.h" 4651 #include "confdefs.h"
4562 #include <alloca.h> 4652 #include <alloca.h>
4563 int main() { 4653 int main() {
4564 char *p = alloca(2 * sizeof(int)); 4654 char *p = alloca(2 * sizeof(int));
4565 ; return 0; } 4655 ; return 0; }
4566 EOF 4656 EOF
4567 if { (eval echo configure:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4657 if { (eval echo configure:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4568 rm -rf conftest* 4658 rm -rf conftest*
4569 ac_cv_header_alloca_h=yes 4659 ac_cv_header_alloca_h=yes
4570 else 4660 else
4571 echo "configure: failed program was:" >&5 4661 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5 4662 cat conftest.$ac_ext >&5
4583 EOF 4673 EOF
4584 4674
4585 fi 4675 fi
4586 4676
4587 echo $ac_n "checking for alloca""... $ac_c" 1>&6 4677 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4588 echo "configure:4589: checking for alloca" >&5 4678 echo "configure:4679: checking for alloca" >&5
4589 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4679 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6 4680 echo $ac_n "(cached) $ac_c" 1>&6
4591 else 4681 else
4592 cat > conftest.$ac_ext <<EOF 4682 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure" 4683 #line 4684 "configure"
4594 #include "confdefs.h" 4684 #include "confdefs.h"
4595 4685
4596 #ifdef __GNUC__ 4686 #ifdef __GNUC__
4597 # define alloca __builtin_alloca 4687 # define alloca __builtin_alloca
4598 #else 4688 #else
4599 # if HAVE_ALLOCA_H 4689 # ifdef _MSC_VER
4600 # include <alloca.h> 4690 # include <malloc.h>
4691 # define alloca _alloca
4601 # else 4692 # else
4602 # ifdef _AIX 4693 # if HAVE_ALLOCA_H
4694 # include <alloca.h>
4695 # else
4696 # ifdef _AIX
4603 #pragma alloca 4697 #pragma alloca
4604 # else 4698 # else
4605 # ifndef alloca /* predefined by HP cc +Olibcalls */ 4699 # ifndef alloca /* predefined by HP cc +Olibcalls */
4606 char *alloca (); 4700 char *alloca ();
4701 # endif
4607 # endif 4702 # endif
4608 # endif 4703 # endif
4609 # endif 4704 # endif
4610 #endif 4705 #endif
4611 4706
4612 int main() { 4707 int main() {
4613 char *p = (char *) alloca(1); 4708 char *p = (char *) alloca(1);
4614 ; return 0; } 4709 ; return 0; }
4615 EOF 4710 EOF
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4617 rm -rf conftest* 4712 rm -rf conftest*
4618 ac_cv_func_alloca_works=yes 4713 ac_cv_func_alloca_works=yes
4619 else 4714 else
4620 echo "configure: failed program was:" >&5 4715 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5 4716 cat conftest.$ac_ext >&5
4636 if test $ac_cv_func_alloca_works = no; then 4731 if test $ac_cv_func_alloca_works = no; then
4637 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4732 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4638 # that cause trouble. Some versions do not even contain alloca or 4733 # that cause trouble. Some versions do not even contain alloca or
4639 # contain a buggy version. If you still want to use their alloca, 4734 # contain a buggy version. If you still want to use their alloca,
4640 # use ar to extract alloca.o from them instead of compiling alloca.c. 4735 # use ar to extract alloca.o from them instead of compiling alloca.c.
4641 ALLOCA=alloca.o 4736 ALLOCA=alloca.${ac_objext}
4642 cat >> confdefs.h <<\EOF 4737 cat >> confdefs.h <<\EOF
4643 #define C_ALLOCA 1 4738 #define C_ALLOCA 1
4644 EOF 4739 EOF
4645 4740
4646 4741
4647 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 4742 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4648 echo "configure:4649: checking whether alloca needs Cray hooks" >&5 4743 echo "configure:4744: checking whether alloca needs Cray hooks" >&5
4649 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 4744 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6 4745 echo $ac_n "(cached) $ac_c" 1>&6
4651 else 4746 else
4652 cat > conftest.$ac_ext <<EOF 4747 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure" 4748 #line 4749 "configure"
4654 #include "confdefs.h" 4749 #include "confdefs.h"
4655 #if defined(CRAY) && ! defined(CRAY2) 4750 #if defined(CRAY) && ! defined(CRAY2)
4656 webecray 4751 webecray
4657 #else 4752 #else
4658 wenotbecray 4753 wenotbecray
4673 4768
4674 echo "$ac_t""$ac_cv_os_cray" 1>&6 4769 echo "$ac_t""$ac_cv_os_cray" 1>&6
4675 if test $ac_cv_os_cray = yes; then 4770 if test $ac_cv_os_cray = yes; then
4676 for ac_func in _getb67 GETB67 getb67; do 4771 for ac_func in _getb67 GETB67 getb67; do
4677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_func" >&5 4773 echo "configure:4774: checking for $ac_func" >&5
4679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6 4775 echo $ac_n "(cached) $ac_c" 1>&6
4681 else 4776 else
4682 cat > conftest.$ac_ext <<EOF 4777 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure" 4778 #line 4779 "configure"
4684 #include "confdefs.h" 4779 #include "confdefs.h"
4685 /* System header to define __stub macros and hopefully few prototypes, 4780 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func(); below. */ 4781 which can conflict with char $ac_func(); below. */
4687 #include <assert.h> 4782 #include <assert.h>
4688 /* Override any gcc2 internal prototype to avoid an error. */ 4783 /* Override any gcc2 internal prototype to avoid an error. */
4701 $ac_func(); 4796 $ac_func();
4702 #endif 4797 #endif
4703 4798
4704 ; return 0; } 4799 ; return 0; }
4705 EOF 4800 EOF
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4801 if { (eval echo configure:4802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4707 rm -rf conftest* 4802 rm -rf conftest*
4708 eval "ac_cv_func_$ac_func=yes" 4803 eval "ac_cv_func_$ac_func=yes"
4709 else 4804 else
4710 echo "configure: failed program was:" >&5 4805 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5 4806 cat conftest.$ac_ext >&5
4728 4823
4729 done 4824 done
4730 fi 4825 fi
4731 4826
4732 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 4827 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4733 echo "configure:4734: checking stack direction for C alloca" >&5 4828 echo "configure:4829: checking stack direction for C alloca" >&5
4734 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 4829 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6 4830 echo $ac_n "(cached) $ac_c" 1>&6
4736 else 4831 else
4737 if test "$cross_compiling" = yes; then 4832 if test "$cross_compiling" = yes; then
4738 ac_cv_c_stack_direction=0 4833 ac_cv_c_stack_direction=0
4739 else 4834 else
4740 cat > conftest.$ac_ext <<EOF 4835 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure" 4836 #line 4837 "configure"
4742 #include "confdefs.h" 4837 #include "confdefs.h"
4743 find_stack_direction () 4838 find_stack_direction ()
4744 { 4839 {
4745 static char *addr = 0; 4840 static char *addr = 0;
4746 auto char dummy; 4841 auto char dummy;
4755 main () 4850 main ()
4756 { 4851 {
4757 exit (find_stack_direction() < 0); 4852 exit (find_stack_direction() < 0);
4758 } 4853 }
4759 EOF 4854 EOF
4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4761 then 4856 then
4762 ac_cv_c_stack_direction=1 4857 ac_cv_c_stack_direction=1
4763 else 4858 else
4764 echo "configure: failed program was:" >&5 4859 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5 4860 cat conftest.$ac_ext >&5
4780 4875
4781 4876
4782 # fmod, logb, and frexp are found in -lm on most systems. 4877 # fmod, logb, and frexp are found in -lm on most systems.
4783 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 4878 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4784 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 4879 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4785 echo "configure:4786: checking for sqrt in -lm" >&5 4880 echo "configure:4881: checking for sqrt in -lm" >&5
4786 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 4881 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6 4883 echo $ac_n "(cached) $ac_c" 1>&6
4789 else 4884 else
4790 ac_save_LIBS="$LIBS" 4885 ac_save_LIBS="$LIBS"
4791 LIBS="-lm $LIBS" 4886 LIBS="-lm $LIBS"
4792 cat > conftest.$ac_ext <<EOF 4887 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure" 4888 #line 4889 "configure"
4794 #include "confdefs.h" 4889 #include "confdefs.h"
4795 /* Override any gcc2 internal prototype to avoid an error. */ 4890 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2 4891 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */ 4892 builtin and then its argument prototype would still apply. */
4798 char sqrt(); 4893 char sqrt();
4799 4894
4800 int main() { 4895 int main() {
4801 sqrt() 4896 sqrt()
4802 ; return 0; } 4897 ; return 0; }
4803 EOF 4898 EOF
4804 if { (eval echo configure:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4805 rm -rf conftest* 4900 rm -rf conftest*
4806 eval "ac_cv_lib_$ac_lib_var=yes" 4901 eval "ac_cv_lib_$ac_lib_var=yes"
4807 else 4902 else
4808 echo "configure: failed program was:" >&5 4903 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5 4904 cat conftest.$ac_ext >&5
4829 fi 4924 fi
4830 4925
4831 4926
4832 # Check for mail-locking functions in a "mail" library 4927 # Check for mail-locking functions in a "mail" library
4833 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 4928 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4834 echo "configure:4835: checking for maillock in -lmail" >&5 4929 echo "configure:4930: checking for maillock in -lmail" >&5
4835 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 4930 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6 4932 echo $ac_n "(cached) $ac_c" 1>&6
4838 else 4933 else
4839 ac_save_LIBS="$LIBS" 4934 ac_save_LIBS="$LIBS"
4840 LIBS="-lmail $LIBS" 4935 LIBS="-lmail $LIBS"
4841 cat > conftest.$ac_ext <<EOF 4936 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure" 4937 #line 4938 "configure"
4843 #include "confdefs.h" 4938 #include "confdefs.h"
4844 /* Override any gcc2 internal prototype to avoid an error. */ 4939 /* Override any gcc2 internal prototype to avoid an error. */
4845 /* We use char because int might match the return type of a gcc2 4940 /* We use char because int might match the return type of a gcc2
4846 builtin and then its argument prototype would still apply. */ 4941 builtin and then its argument prototype would still apply. */
4847 char maillock(); 4942 char maillock();
4848 4943
4849 int main() { 4944 int main() {
4850 maillock() 4945 maillock()
4851 ; return 0; } 4946 ; return 0; }
4852 EOF 4947 EOF
4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4854 rm -rf conftest* 4949 rm -rf conftest*
4855 eval "ac_cv_lib_$ac_lib_var=yes" 4950 eval "ac_cv_lib_$ac_lib_var=yes"
4856 else 4951 else
4857 echo "configure: failed program was:" >&5 4952 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5 4953 cat conftest.$ac_ext >&5
4876 else 4971 else
4877 echo "$ac_t""no" 1>&6 4972 echo "$ac_t""no" 1>&6
4878 fi 4973 fi
4879 4974
4880 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 4975 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4881 echo "configure:4882: checking for maillock in -llockfile" >&5 4976 echo "configure:4977: checking for maillock in -llockfile" >&5
4882 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 4977 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6 4979 echo $ac_n "(cached) $ac_c" 1>&6
4885 else 4980 else
4886 ac_save_LIBS="$LIBS" 4981 ac_save_LIBS="$LIBS"
4887 LIBS="-llockfile $LIBS" 4982 LIBS="-llockfile $LIBS"
4888 cat > conftest.$ac_ext <<EOF 4983 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure" 4984 #line 4985 "configure"
4890 #include "confdefs.h" 4985 #include "confdefs.h"
4891 /* Override any gcc2 internal prototype to avoid an error. */ 4986 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2 4987 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */ 4988 builtin and then its argument prototype would still apply. */
4894 char maillock(); 4989 char maillock();
4895 4990
4896 int main() { 4991 int main() {
4897 maillock() 4992 maillock()
4898 ; return 0; } 4993 ; return 0; }
4899 EOF 4994 EOF
4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4901 rm -rf conftest* 4996 rm -rf conftest*
4902 eval "ac_cv_lib_$ac_lib_var=yes" 4997 eval "ac_cv_lib_$ac_lib_var=yes"
4903 else 4998 else
4904 echo "configure: failed program was:" >&5 4999 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5 5000 cat conftest.$ac_ext >&5
4929 # (no liblockfile.a installed), ensure that we don't need to. 5024 # (no liblockfile.a installed), ensure that we don't need to.
4930 if test "$ac_cv_lib_lockfile_maillock" = no; then 5025 if test "$ac_cv_lib_lockfile_maillock" = no; then
4931 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5026 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4932 set dummy liblockfile.so; ac_word=$2 5027 set dummy liblockfile.so; ac_word=$2
4933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_word" >&5 5029 echo "configure:5030: checking for $ac_word" >&5
4935 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5030 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6 5031 echo $ac_n "(cached) $ac_c" 1>&6
4937 else 5032 else
4938 if test -n "$liblockfile"; then 5033 if test -n "$liblockfile"; then
4939 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5034 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
4940 else 5035 else
4941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4942 for ac_dir in /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH$ac_dummy; do 5037 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
5038 for ac_dir in $ac_dummy; do
4943 test -z "$ac_dir" && ac_dir=. 5039 test -z "$ac_dir" && ac_dir=.
4944 if test -f $ac_dir/$ac_word; then 5040 if test -f $ac_dir/$ac_word; then
4945 ac_cv_prog_liblockfile="yes" 5041 ac_cv_prog_liblockfile="yes"
4946 break 5042 break
4947 fi 5043 fi
4969 else : 5065 else :
4970 fi 5066 fi
4971 for ac_func in touchlock 5067 for ac_func in touchlock
4972 do 5068 do
4973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_func" >&5 5070 echo "configure:5071: checking for $ac_func" >&5
4975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6 5072 echo $ac_n "(cached) $ac_c" 1>&6
4977 else 5073 else
4978 cat > conftest.$ac_ext <<EOF 5074 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure" 5075 #line 5076 "configure"
4980 #include "confdefs.h" 5076 #include "confdefs.h"
4981 /* System header to define __stub macros and hopefully few prototypes, 5077 /* System header to define __stub macros and hopefully few prototypes,
4982 which can conflict with char $ac_func(); below. */ 5078 which can conflict with char $ac_func(); below. */
4983 #include <assert.h> 5079 #include <assert.h>
4984 /* Override any gcc2 internal prototype to avoid an error. */ 5080 /* Override any gcc2 internal prototype to avoid an error. */
4997 $ac_func(); 5093 $ac_func();
4998 #endif 5094 #endif
4999 5095
5000 ; return 0; } 5096 ; return 0; }
5001 EOF 5097 EOF
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5003 rm -rf conftest* 5099 rm -rf conftest*
5004 eval "ac_cv_func_$ac_func=yes" 5100 eval "ac_cv_func_$ac_func=yes"
5005 else 5101 else
5006 echo "configure: failed program was:" >&5 5102 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5 5103 cat conftest.$ac_ext >&5
5025 5121
5026 for ac_hdr in maillock.h 5122 for ac_hdr in maillock.h
5027 do 5123 do
5028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5030 echo "configure:5031: checking for $ac_hdr" >&5 5126 echo "configure:5127: checking for $ac_hdr" >&5
5031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6 5128 echo $ac_n "(cached) $ac_c" 1>&6
5033 else 5129 else
5034 cat > conftest.$ac_ext <<EOF 5130 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure" 5131 #line 5132 "configure"
5036 #include "confdefs.h" 5132 #include "confdefs.h"
5037 #include <$ac_hdr> 5133 #include <$ac_hdr>
5038 EOF 5134 EOF
5039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5040 { (eval echo configure:5041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5136 { (eval echo configure:5137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5041 ac_err=`grep -v '^ *+' conftest.out` 5137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5042 if test -z "$ac_err"; then 5138 if test -z "$ac_err"; then
5043 rm -rf conftest* 5139 rm -rf conftest*
5044 eval "ac_cv_header_$ac_safe=yes" 5140 eval "ac_cv_header_$ac_safe=yes"
5045 else 5141 else
5046 echo "$ac_err" >&5 5142 echo "$ac_err" >&5
5070 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5166 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5071 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ 5167 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5072 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm 5168 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm
5073 do 5169 do
5074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5075 echo "configure:5076: checking for $ac_func" >&5 5171 echo "configure:5172: checking for $ac_func" >&5
5076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6 5173 echo $ac_n "(cached) $ac_c" 1>&6
5078 else 5174 else
5079 cat > conftest.$ac_ext <<EOF 5175 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure" 5176 #line 5177 "configure"
5081 #include "confdefs.h" 5177 #include "confdefs.h"
5082 /* System header to define __stub macros and hopefully few prototypes, 5178 /* System header to define __stub macros and hopefully few prototypes,
5083 which can conflict with char $ac_func(); below. */ 5179 which can conflict with char $ac_func(); below. */
5084 #include <assert.h> 5180 #include <assert.h>
5085 /* Override any gcc2 internal prototype to avoid an error. */ 5181 /* Override any gcc2 internal prototype to avoid an error. */
5098 $ac_func(); 5194 $ac_func();
5099 #endif 5195 #endif
5100 5196
5101 ; return 0; } 5197 ; return 0; }
5102 EOF 5198 EOF
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5199 if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 rm -rf conftest* 5200 rm -rf conftest*
5105 eval "ac_cv_func_$ac_func=yes" 5201 eval "ac_cv_func_$ac_func=yes"
5106 else 5202 else
5107 echo "configure: failed program was:" >&5 5203 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5 5204 cat conftest.$ac_ext >&5
5128 # Check this now, so that we will NOT find the above functions in ncurses. 5224 # Check this now, so that we will NOT find the above functions in ncurses.
5129 # That is because we have not set up to link ncurses in lib-src. 5225 # That is because we have not set up to link ncurses in lib-src.
5130 # It's better to believe a function is not available 5226 # It's better to believe a function is not available
5131 # than to expect to find it in ncurses. 5227 # than to expect to find it in ncurses.
5132 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 5228 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5133 echo "configure:5134: checking for tparm in -lncurses" >&5 5229 echo "configure:5230: checking for tparm in -lncurses" >&5
5134 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 5230 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6 5232 echo $ac_n "(cached) $ac_c" 1>&6
5137 else 5233 else
5138 ac_save_LIBS="$LIBS" 5234 ac_save_LIBS="$LIBS"
5139 LIBS="-lncurses $LIBS" 5235 LIBS="-lncurses $LIBS"
5140 cat > conftest.$ac_ext <<EOF 5236 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure" 5237 #line 5238 "configure"
5142 #include "confdefs.h" 5238 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */ 5239 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2 5240 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */ 5241 builtin and then its argument prototype would still apply. */
5146 char tparm(); 5242 char tparm();
5147 5243
5148 int main() { 5244 int main() {
5149 tparm() 5245 tparm()
5150 ; return 0; } 5246 ; return 0; }
5151 EOF 5247 EOF
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 rm -rf conftest* 5249 rm -rf conftest*
5154 eval "ac_cv_lib_$ac_lib_var=yes" 5250 eval "ac_cv_lib_$ac_lib_var=yes"
5155 else 5251 else
5156 echo "configure: failed program was:" >&5 5252 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5 5253 cat conftest.$ac_ext >&5
5178 5274
5179 5275
5180 # These tell us which Kerberos-related libraries to use. 5276 # These tell us which Kerberos-related libraries to use.
5181 if test "${with_kerberos+set}" = set; then 5277 if test "${with_kerberos+set}" = set; then
5182 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 5278 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
5183 echo "configure:5184: checking for com_err in -lcom_err" >&5 5279 echo "configure:5280: checking for com_err in -lcom_err" >&5
5184 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 5280 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
5185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6 5282 echo $ac_n "(cached) $ac_c" 1>&6
5187 else 5283 else
5188 ac_save_LIBS="$LIBS" 5284 ac_save_LIBS="$LIBS"
5189 LIBS="-lcom_err $LIBS" 5285 LIBS="-lcom_err $LIBS"
5190 cat > conftest.$ac_ext <<EOF 5286 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure" 5287 #line 5288 "configure"
5192 #include "confdefs.h" 5288 #include "confdefs.h"
5193 /* Override any gcc2 internal prototype to avoid an error. */ 5289 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* 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
5195 builtin and then its argument prototype would still apply. */ 5291 builtin and then its argument prototype would still apply. */
5196 char com_err(); 5292 char com_err();
5197 5293
5198 int main() { 5294 int main() {
5199 com_err() 5295 com_err()
5200 ; return 0; } 5296 ; return 0; }
5201 EOF 5297 EOF
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 rm -rf conftest* 5299 rm -rf conftest*
5204 eval "ac_cv_lib_$ac_lib_var=yes" 5300 eval "ac_cv_lib_$ac_lib_var=yes"
5205 else 5301 else
5206 echo "configure: failed program was:" >&5 5302 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5 5303 cat conftest.$ac_ext >&5
5225 else 5321 else
5226 echo "$ac_t""no" 1>&6 5322 echo "$ac_t""no" 1>&6
5227 fi 5323 fi
5228 5324
5229 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 5325 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
5230 echo "configure:5231: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 5326 echo "configure:5327: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
5231 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 5327 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6 5329 echo $ac_n "(cached) $ac_c" 1>&6
5234 else 5330 else
5235 ac_save_LIBS="$LIBS" 5331 ac_save_LIBS="$LIBS"
5236 LIBS="-lk5crypto $LIBS" 5332 LIBS="-lk5crypto $LIBS"
5237 cat > conftest.$ac_ext <<EOF 5333 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure" 5334 #line 5335 "configure"
5239 #include "confdefs.h" 5335 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */ 5336 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2 5337 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */ 5338 builtin and then its argument prototype would still apply. */
5243 char mit_des_cbc_encrypt(); 5339 char mit_des_cbc_encrypt();
5244 5340
5245 int main() { 5341 int main() {
5246 mit_des_cbc_encrypt() 5342 mit_des_cbc_encrypt()
5247 ; return 0; } 5343 ; return 0; }
5248 EOF 5344 EOF
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5250 rm -rf conftest* 5346 rm -rf conftest*
5251 eval "ac_cv_lib_$ac_lib_var=yes" 5347 eval "ac_cv_lib_$ac_lib_var=yes"
5252 else 5348 else
5253 echo "configure: failed program was:" >&5 5349 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5 5350 cat conftest.$ac_ext >&5
5272 else 5368 else
5273 echo "$ac_t""no" 1>&6 5369 echo "$ac_t""no" 1>&6
5274 fi 5370 fi
5275 5371
5276 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 5372 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
5277 echo "configure:5278: checking for mit_des_cbc_encrypt in -lcrypto" >&5 5373 echo "configure:5374: checking for mit_des_cbc_encrypt in -lcrypto" >&5
5278 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 5374 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6 5376 echo $ac_n "(cached) $ac_c" 1>&6
5281 else 5377 else
5282 ac_save_LIBS="$LIBS" 5378 ac_save_LIBS="$LIBS"
5283 LIBS="-lcrypto $LIBS" 5379 LIBS="-lcrypto $LIBS"
5284 cat > conftest.$ac_ext <<EOF 5380 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure" 5381 #line 5382 "configure"
5286 #include "confdefs.h" 5382 #include "confdefs.h"
5287 /* Override any gcc2 internal prototype to avoid an error. */ 5383 /* Override any gcc2 internal prototype to avoid an error. */
5288 /* We use char because int might match the return type of a gcc2 5384 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */ 5385 builtin and then its argument prototype would still apply. */
5290 char mit_des_cbc_encrypt(); 5386 char mit_des_cbc_encrypt();
5291 5387
5292 int main() { 5388 int main() {
5293 mit_des_cbc_encrypt() 5389 mit_des_cbc_encrypt()
5294 ; return 0; } 5390 ; return 0; }
5295 EOF 5391 EOF
5296 if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5297 rm -rf conftest* 5393 rm -rf conftest*
5298 eval "ac_cv_lib_$ac_lib_var=yes" 5394 eval "ac_cv_lib_$ac_lib_var=yes"
5299 else 5395 else
5300 echo "configure: failed program was:" >&5 5396 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5 5397 cat conftest.$ac_ext >&5
5319 else 5415 else
5320 echo "$ac_t""no" 1>&6 5416 echo "$ac_t""no" 1>&6
5321 fi 5417 fi
5322 5418
5323 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 5419 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
5324 echo "configure:5325: checking for krb5_init_context in -lkrb5" >&5 5420 echo "configure:5421: checking for krb5_init_context in -lkrb5" >&5
5325 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 5421 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
5326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6 5423 echo $ac_n "(cached) $ac_c" 1>&6
5328 else 5424 else
5329 ac_save_LIBS="$LIBS" 5425 ac_save_LIBS="$LIBS"
5330 LIBS="-lkrb5 $LIBS" 5426 LIBS="-lkrb5 $LIBS"
5331 cat > conftest.$ac_ext <<EOF 5427 cat > conftest.$ac_ext <<EOF
5332 #line 5333 "configure" 5428 #line 5429 "configure"
5333 #include "confdefs.h" 5429 #include "confdefs.h"
5334 /* Override any gcc2 internal prototype to avoid an error. */ 5430 /* Override any gcc2 internal prototype to avoid an error. */
5335 /* We use char because int might match the return type of a gcc2 5431 /* We use char because int might match the return type of a gcc2
5336 builtin and then its argument prototype would still apply. */ 5432 builtin and then its argument prototype would still apply. */
5337 char krb5_init_context(); 5433 char krb5_init_context();
5338 5434
5339 int main() { 5435 int main() {
5340 krb5_init_context() 5436 krb5_init_context()
5341 ; return 0; } 5437 ; return 0; }
5342 EOF 5438 EOF
5343 if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5439 if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5344 rm -rf conftest* 5440 rm -rf conftest*
5345 eval "ac_cv_lib_$ac_lib_var=yes" 5441 eval "ac_cv_lib_$ac_lib_var=yes"
5346 else 5442 else
5347 echo "configure: failed program was:" >&5 5443 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5 5444 cat conftest.$ac_ext >&5
5367 echo "$ac_t""no" 1>&6 5463 echo "$ac_t""no" 1>&6
5368 fi 5464 fi
5369 5465
5370 if test "${with_kerberos5+set}" != set; then 5466 if test "${with_kerberos5+set}" != set; then
5371 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 5467 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
5372 echo "configure:5373: checking for des_cbc_encrypt in -ldes425" >&5 5468 echo "configure:5469: checking for des_cbc_encrypt in -ldes425" >&5
5373 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 5469 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6 5471 echo $ac_n "(cached) $ac_c" 1>&6
5376 else 5472 else
5377 ac_save_LIBS="$LIBS" 5473 ac_save_LIBS="$LIBS"
5378 LIBS="-ldes425 $LIBS" 5474 LIBS="-ldes425 $LIBS"
5379 cat > conftest.$ac_ext <<EOF 5475 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure" 5476 #line 5477 "configure"
5381 #include "confdefs.h" 5477 #include "confdefs.h"
5382 /* Override any gcc2 internal prototype to avoid an error. */ 5478 /* Override any gcc2 internal prototype to avoid an error. */
5383 /* We use char because int might match the return type of a gcc2 5479 /* We use char because int might match the return type of a gcc2
5384 builtin and then its argument prototype would still apply. */ 5480 builtin and then its argument prototype would still apply. */
5385 char des_cbc_encrypt(); 5481 char des_cbc_encrypt();
5386 5482
5387 int main() { 5483 int main() {
5388 des_cbc_encrypt() 5484 des_cbc_encrypt()
5389 ; return 0; } 5485 ; return 0; }
5390 EOF 5486 EOF
5391 if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392 rm -rf conftest* 5488 rm -rf conftest*
5393 eval "ac_cv_lib_$ac_lib_var=yes" 5489 eval "ac_cv_lib_$ac_lib_var=yes"
5394 else 5490 else
5395 echo "configure: failed program was:" >&5 5491 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5 5492 cat conftest.$ac_ext >&5
5412 LIBS="-ldes425 $LIBS" 5508 LIBS="-ldes425 $LIBS"
5413 5509
5414 else 5510 else
5415 echo "$ac_t""no" 1>&6 5511 echo "$ac_t""no" 1>&6
5416 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 5512 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
5417 echo "configure:5418: checking for des_cbc_encrypt in -ldes" >&5 5513 echo "configure:5514: checking for des_cbc_encrypt in -ldes" >&5
5418 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 5514 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6 5516 echo $ac_n "(cached) $ac_c" 1>&6
5421 else 5517 else
5422 ac_save_LIBS="$LIBS" 5518 ac_save_LIBS="$LIBS"
5423 LIBS="-ldes $LIBS" 5519 LIBS="-ldes $LIBS"
5424 cat > conftest.$ac_ext <<EOF 5520 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure" 5521 #line 5522 "configure"
5426 #include "confdefs.h" 5522 #include "confdefs.h"
5427 /* Override any gcc2 internal prototype to avoid an error. */ 5523 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2 5524 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */ 5525 builtin and then its argument prototype would still apply. */
5430 char des_cbc_encrypt(); 5526 char des_cbc_encrypt();
5431 5527
5432 int main() { 5528 int main() {
5433 des_cbc_encrypt() 5529 des_cbc_encrypt()
5434 ; return 0; } 5530 ; return 0; }
5435 EOF 5531 EOF
5436 if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5437 rm -rf conftest* 5533 rm -rf conftest*
5438 eval "ac_cv_lib_$ac_lib_var=yes" 5534 eval "ac_cv_lib_$ac_lib_var=yes"
5439 else 5535 else
5440 echo "configure: failed program was:" >&5 5536 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5 5537 cat conftest.$ac_ext >&5
5461 fi 5557 fi
5462 5558
5463 fi 5559 fi
5464 5560
5465 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 5561 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
5466 echo "configure:5467: checking for krb_get_cred in -lkrb4" >&5 5562 echo "configure:5563: checking for krb_get_cred in -lkrb4" >&5
5467 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 5563 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
5468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6 5565 echo $ac_n "(cached) $ac_c" 1>&6
5470 else 5566 else
5471 ac_save_LIBS="$LIBS" 5567 ac_save_LIBS="$LIBS"
5472 LIBS="-lkrb4 $LIBS" 5568 LIBS="-lkrb4 $LIBS"
5473 cat > conftest.$ac_ext <<EOF 5569 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure" 5570 #line 5571 "configure"
5475 #include "confdefs.h" 5571 #include "confdefs.h"
5476 /* Override any gcc2 internal prototype to avoid an error. */ 5572 /* Override any gcc2 internal prototype to avoid an error. */
5477 /* We use char because int might match the return type of a gcc2 5573 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */ 5574 builtin and then its argument prototype would still apply. */
5479 char krb_get_cred(); 5575 char krb_get_cred();
5480 5576
5481 int main() { 5577 int main() {
5482 krb_get_cred() 5578 krb_get_cred()
5483 ; return 0; } 5579 ; return 0; }
5484 EOF 5580 EOF
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 rm -rf conftest* 5582 rm -rf conftest*
5487 eval "ac_cv_lib_$ac_lib_var=yes" 5583 eval "ac_cv_lib_$ac_lib_var=yes"
5488 else 5584 else
5489 echo "configure: failed program was:" >&5 5585 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5 5586 cat conftest.$ac_ext >&5
5506 LIBS="-lkrb4 $LIBS" 5602 LIBS="-lkrb4 $LIBS"
5507 5603
5508 else 5604 else
5509 echo "$ac_t""no" 1>&6 5605 echo "$ac_t""no" 1>&6
5510 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 5606 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
5511 echo "configure:5512: checking for krb_get_cred in -lkrb" >&5 5607 echo "configure:5608: checking for krb_get_cred in -lkrb" >&5
5512 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 5608 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
5513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6 5610 echo $ac_n "(cached) $ac_c" 1>&6
5515 else 5611 else
5516 ac_save_LIBS="$LIBS" 5612 ac_save_LIBS="$LIBS"
5517 LIBS="-lkrb $LIBS" 5613 LIBS="-lkrb $LIBS"
5518 cat > conftest.$ac_ext <<EOF 5614 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure" 5615 #line 5616 "configure"
5520 #include "confdefs.h" 5616 #include "confdefs.h"
5521 /* Override any gcc2 internal prototype to avoid an error. */ 5617 /* Override any gcc2 internal prototype to avoid an error. */
5522 /* We use char because int might match the return type of a gcc2 5618 /* We use char because int might match the return type of a gcc2
5523 builtin and then its argument prototype would still apply. */ 5619 builtin and then its argument prototype would still apply. */
5524 char krb_get_cred(); 5620 char krb_get_cred();
5525 5621
5526 int main() { 5622 int main() {
5527 krb_get_cred() 5623 krb_get_cred()
5528 ; return 0; } 5624 ; return 0; }
5529 EOF 5625 EOF
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5531 rm -rf conftest* 5627 rm -rf conftest*
5532 eval "ac_cv_lib_$ac_lib_var=yes" 5628 eval "ac_cv_lib_$ac_lib_var=yes"
5533 else 5629 else
5534 echo "configure: failed program was:" >&5 5630 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5 5631 cat conftest.$ac_ext >&5
5561 if test "${with_kerberos5+set}" = set; then 5657 if test "${with_kerberos5+set}" = set; then
5562 for ac_hdr in krb5.h 5658 for ac_hdr in krb5.h
5563 do 5659 do
5564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5566 echo "configure:5567: checking for $ac_hdr" >&5 5662 echo "configure:5663: checking for $ac_hdr" >&5
5567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6 5664 echo $ac_n "(cached) $ac_c" 1>&6
5569 else 5665 else
5570 cat > conftest.$ac_ext <<EOF 5666 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure" 5667 #line 5668 "configure"
5572 #include "confdefs.h" 5668 #include "confdefs.h"
5573 #include <$ac_hdr> 5669 #include <$ac_hdr>
5574 EOF 5670 EOF
5575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5576 { (eval echo configure:5577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5672 { (eval echo configure:5673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5577 ac_err=`grep -v '^ *+' conftest.out` 5673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5578 if test -z "$ac_err"; then 5674 if test -z "$ac_err"; then
5579 rm -rf conftest* 5675 rm -rf conftest*
5580 eval "ac_cv_header_$ac_safe=yes" 5676 eval "ac_cv_header_$ac_safe=yes"
5581 else 5677 else
5582 echo "$ac_err" >&5 5678 echo "$ac_err" >&5
5602 else 5698 else
5603 for ac_hdr in des.h 5699 for ac_hdr in des.h
5604 do 5700 do
5605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5607 echo "configure:5608: checking for $ac_hdr" >&5 5703 echo "configure:5704: checking for $ac_hdr" >&5
5608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6 5705 echo $ac_n "(cached) $ac_c" 1>&6
5610 else 5706 else
5611 cat > conftest.$ac_ext <<EOF 5707 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure" 5708 #line 5709 "configure"
5613 #include "confdefs.h" 5709 #include "confdefs.h"
5614 #include <$ac_hdr> 5710 #include <$ac_hdr>
5615 EOF 5711 EOF
5616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5617 { (eval echo configure:5618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5713 { (eval echo configure:5714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5618 ac_err=`grep -v '^ *+' conftest.out` 5714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5619 if test -z "$ac_err"; then 5715 if test -z "$ac_err"; then
5620 rm -rf conftest* 5716 rm -rf conftest*
5621 eval "ac_cv_header_$ac_safe=yes" 5717 eval "ac_cv_header_$ac_safe=yes"
5622 else 5718 else
5623 echo "$ac_err" >&5 5719 echo "$ac_err" >&5
5639 echo "$ac_t""no" 1>&6 5735 echo "$ac_t""no" 1>&6
5640 for ac_hdr in kerberosIV/des.h 5736 for ac_hdr in kerberosIV/des.h
5641 do 5737 do
5642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5644 echo "configure:5645: checking for $ac_hdr" >&5 5740 echo "configure:5741: checking for $ac_hdr" >&5
5645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6 5742 echo $ac_n "(cached) $ac_c" 1>&6
5647 else 5743 else
5648 cat > conftest.$ac_ext <<EOF 5744 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure" 5745 #line 5746 "configure"
5650 #include "confdefs.h" 5746 #include "confdefs.h"
5651 #include <$ac_hdr> 5747 #include <$ac_hdr>
5652 EOF 5748 EOF
5653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5654 { (eval echo configure:5655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5750 { (eval echo configure:5751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5655 ac_err=`grep -v '^ *+' conftest.out` 5751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5656 if test -z "$ac_err"; then 5752 if test -z "$ac_err"; then
5657 rm -rf conftest* 5753 rm -rf conftest*
5658 eval "ac_cv_header_$ac_safe=yes" 5754 eval "ac_cv_header_$ac_safe=yes"
5659 else 5755 else
5660 echo "$ac_err" >&5 5756 echo "$ac_err" >&5
5676 echo "$ac_t""no" 1>&6 5772 echo "$ac_t""no" 1>&6
5677 for ac_hdr in kerberos/des.h 5773 for ac_hdr in kerberos/des.h
5678 do 5774 do
5679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5681 echo "configure:5682: checking for $ac_hdr" >&5 5777 echo "configure:5778: checking for $ac_hdr" >&5
5682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6 5779 echo $ac_n "(cached) $ac_c" 1>&6
5684 else 5780 else
5685 cat > conftest.$ac_ext <<EOF 5781 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure" 5782 #line 5783 "configure"
5687 #include "confdefs.h" 5783 #include "confdefs.h"
5688 #include <$ac_hdr> 5784 #include <$ac_hdr>
5689 EOF 5785 EOF
5690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5691 { (eval echo configure:5692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5787 { (eval echo configure:5788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5692 ac_err=`grep -v '^ *+' conftest.out` 5788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5693 if test -z "$ac_err"; then 5789 if test -z "$ac_err"; then
5694 rm -rf conftest* 5790 rm -rf conftest*
5695 eval "ac_cv_header_$ac_safe=yes" 5791 eval "ac_cv_header_$ac_safe=yes"
5696 else 5792 else
5697 echo "$ac_err" >&5 5793 echo "$ac_err" >&5
5722 5818
5723 for ac_hdr in krb.h 5819 for ac_hdr in krb.h
5724 do 5820 do
5725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5727 echo "configure:5728: checking for $ac_hdr" >&5 5823 echo "configure:5824: checking for $ac_hdr" >&5
5728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6 5825 echo $ac_n "(cached) $ac_c" 1>&6
5730 else 5826 else
5731 cat > conftest.$ac_ext <<EOF 5827 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure" 5828 #line 5829 "configure"
5733 #include "confdefs.h" 5829 #include "confdefs.h"
5734 #include <$ac_hdr> 5830 #include <$ac_hdr>
5735 EOF 5831 EOF
5736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5737 { (eval echo configure:5738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5833 { (eval echo configure:5834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5738 ac_err=`grep -v '^ *+' conftest.out` 5834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5739 if test -z "$ac_err"; then 5835 if test -z "$ac_err"; then
5740 rm -rf conftest* 5836 rm -rf conftest*
5741 eval "ac_cv_header_$ac_safe=yes" 5837 eval "ac_cv_header_$ac_safe=yes"
5742 else 5838 else
5743 echo "$ac_err" >&5 5839 echo "$ac_err" >&5
5759 echo "$ac_t""no" 1>&6 5855 echo "$ac_t""no" 1>&6
5760 for ac_hdr in kerberosIV/krb.h 5856 for ac_hdr in kerberosIV/krb.h
5761 do 5857 do
5762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_hdr" >&5 5860 echo "configure:5861: checking for $ac_hdr" >&5
5765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6 5862 echo $ac_n "(cached) $ac_c" 1>&6
5767 else 5863 else
5768 cat > conftest.$ac_ext <<EOF 5864 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure" 5865 #line 5866 "configure"
5770 #include "confdefs.h" 5866 #include "confdefs.h"
5771 #include <$ac_hdr> 5867 #include <$ac_hdr>
5772 EOF 5868 EOF
5773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5774 { (eval echo configure:5775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5870 { (eval echo configure:5871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5775 ac_err=`grep -v '^ *+' conftest.out` 5871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5776 if test -z "$ac_err"; then 5872 if test -z "$ac_err"; then
5777 rm -rf conftest* 5873 rm -rf conftest*
5778 eval "ac_cv_header_$ac_safe=yes" 5874 eval "ac_cv_header_$ac_safe=yes"
5779 else 5875 else
5780 echo "$ac_err" >&5 5876 echo "$ac_err" >&5
5796 echo "$ac_t""no" 1>&6 5892 echo "$ac_t""no" 1>&6
5797 for ac_hdr in kerberos/krb.h 5893 for ac_hdr in kerberos/krb.h
5798 do 5894 do
5799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5801 echo "configure:5802: checking for $ac_hdr" >&5 5897 echo "configure:5898: checking for $ac_hdr" >&5
5802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6 5899 echo $ac_n "(cached) $ac_c" 1>&6
5804 else 5900 else
5805 cat > conftest.$ac_ext <<EOF 5901 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure" 5902 #line 5903 "configure"
5807 #include "confdefs.h" 5903 #include "confdefs.h"
5808 #include <$ac_hdr> 5904 #include <$ac_hdr>
5809 EOF 5905 EOF
5810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5811 { (eval echo configure:5812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5907 { (eval echo configure:5908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5812 ac_err=`grep -v '^ *+' conftest.out` 5908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5813 if test -z "$ac_err"; then 5909 if test -z "$ac_err"; then
5814 rm -rf conftest* 5910 rm -rf conftest*
5815 eval "ac_cv_header_$ac_safe=yes" 5911 eval "ac_cv_header_$ac_safe=yes"
5816 else 5912 else
5817 echo "$ac_err" >&5 5913 echo "$ac_err" >&5
5843 fi 5939 fi
5844 for ac_hdr in com_err.h 5940 for ac_hdr in com_err.h
5845 do 5941 do
5846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5848 echo "configure:5849: checking for $ac_hdr" >&5 5944 echo "configure:5945: checking for $ac_hdr" >&5
5849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6 5946 echo $ac_n "(cached) $ac_c" 1>&6
5851 else 5947 else
5852 cat > conftest.$ac_ext <<EOF 5948 cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure" 5949 #line 5950 "configure"
5854 #include "confdefs.h" 5950 #include "confdefs.h"
5855 #include <$ac_hdr> 5951 #include <$ac_hdr>
5856 EOF 5952 EOF
5857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5858 { (eval echo configure:5859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5954 { (eval echo configure:5955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5859 ac_err=`grep -v '^ *+' conftest.out` 5955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5860 if test -z "$ac_err"; then 5956 if test -z "$ac_err"; then
5861 rm -rf conftest* 5957 rm -rf conftest*
5862 eval "ac_cv_header_$ac_safe=yes" 5958 eval "ac_cv_header_$ac_safe=yes"
5863 else 5959 else
5864 echo "$ac_err" >&5 5960 echo "$ac_err" >&5
5884 fi 5980 fi
5885 5981
5886 # Solaris requires -lintl if you want strerror (which calls dgettext) 5982 # Solaris requires -lintl if you want strerror (which calls dgettext)
5887 # to return localized messages. 5983 # to return localized messages.
5888 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 5984 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5889 echo "configure:5890: checking for dgettext in -lintl" >&5 5985 echo "configure:5986: checking for dgettext in -lintl" >&5
5890 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 5986 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6 5988 echo $ac_n "(cached) $ac_c" 1>&6
5893 else 5989 else
5894 ac_save_LIBS="$LIBS" 5990 ac_save_LIBS="$LIBS"
5895 LIBS="-lintl $LIBS" 5991 LIBS="-lintl $LIBS"
5896 cat > conftest.$ac_ext <<EOF 5992 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure" 5993 #line 5994 "configure"
5898 #include "confdefs.h" 5994 #include "confdefs.h"
5899 /* Override any gcc2 internal prototype to avoid an error. */ 5995 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2 5996 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */ 5997 builtin and then its argument prototype would still apply. */
5902 char dgettext(); 5998 char dgettext();
5903 5999
5904 int main() { 6000 int main() {
5905 dgettext() 6001 dgettext()
5906 ; return 0; } 6002 ; return 0; }
5907 EOF 6003 EOF
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909 rm -rf conftest* 6005 rm -rf conftest*
5910 eval "ac_cv_lib_$ac_lib_var=yes" 6006 eval "ac_cv_lib_$ac_lib_var=yes"
5911 else 6007 else
5912 echo "configure: failed program was:" >&5 6008 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5 6009 cat conftest.$ac_ext >&5
5932 echo "$ac_t""no" 1>&6 6028 echo "$ac_t""no" 1>&6
5933 fi 6029 fi
5934 6030
5935 6031
5936 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 6032 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5937 echo "configure:5938: checking whether localtime caches TZ" >&5 6033 echo "configure:6034: checking whether localtime caches TZ" >&5
5938 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 6034 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6 6035 echo $ac_n "(cached) $ac_c" 1>&6
5940 else 6036 else
5941 if test x$ac_cv_func_tzset = xyes; then 6037 if test x$ac_cv_func_tzset = xyes; then
5942 if test "$cross_compiling" = yes; then 6038 if test "$cross_compiling" = yes; then
5943 # If we have tzset, assume the worst when cross-compiling. 6039 # If we have tzset, assume the worst when cross-compiling.
5944 emacs_cv_localtime_cache=yes 6040 emacs_cv_localtime_cache=yes
5945 else 6041 else
5946 cat > conftest.$ac_ext <<EOF 6042 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure" 6043 #line 6044 "configure"
5948 #include "confdefs.h" 6044 #include "confdefs.h"
5949 #include <time.h> 6045 #include <time.h>
5950 extern char **environ; 6046 extern char **environ;
5951 unset_TZ () 6047 unset_TZ ()
5952 { 6048 {
5974 if (localtime (&now)->tm_hour != hour_unset) 6070 if (localtime (&now)->tm_hour != hour_unset)
5975 exit (1); 6071 exit (1);
5976 exit (0); 6072 exit (0);
5977 } 6073 }
5978 EOF 6074 EOF
5979 if { (eval echo configure:5980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 6075 if { (eval echo configure:6076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5980 then 6076 then
5981 emacs_cv_localtime_cache=no 6077 emacs_cv_localtime_cache=no
5982 else 6078 else
5983 echo "configure: failed program was:" >&5 6079 echo "configure: failed program was:" >&5
5984 cat conftest.$ac_ext >&5 6080 cat conftest.$ac_ext >&5
6002 6098
6003 fi 6099 fi
6004 6100
6005 if test "x$HAVE_TIMEVAL" = xyes; then 6101 if test "x$HAVE_TIMEVAL" = xyes; then
6006 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 6102 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
6007 echo "configure:6008: checking whether gettimeofday can accept two arguments" >&5 6103 echo "configure:6104: checking whether gettimeofday can accept two arguments" >&5
6008 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 6104 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6 6105 echo $ac_n "(cached) $ac_c" 1>&6
6010 else 6106 else
6011 cat > conftest.$ac_ext <<EOF 6107 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure" 6108 #line 6109 "configure"
6013 #include "confdefs.h" 6109 #include "confdefs.h"
6014 6110
6015 #ifdef TIME_WITH_SYS_TIME 6111 #ifdef TIME_WITH_SYS_TIME
6016 #include <sys/time.h> 6112 #include <sys/time.h>
6017 #include <time.h> 6113 #include <time.h>
6029 struct timezone dummy; 6125 struct timezone dummy;
6030 gettimeofday (&time, &dummy); 6126 gettimeofday (&time, &dummy);
6031 6127
6032 ; return 0; } 6128 ; return 0; }
6033 EOF 6129 EOF
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6035 rm -rf conftest* 6131 rm -rf conftest*
6036 emacs_cv_gettimeofday_two_arguments=yes 6132 emacs_cv_gettimeofday_two_arguments=yes
6037 else 6133 else
6038 echo "configure: failed program was:" >&5 6134 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5 6135 cat conftest.$ac_ext >&5
6052 fi 6148 fi
6053 fi 6149 fi
6054 6150
6055 ok_so_far=yes 6151 ok_so_far=yes
6056 echo $ac_n "checking for socket""... $ac_c" 1>&6 6152 echo $ac_n "checking for socket""... $ac_c" 1>&6
6057 echo "configure:6058: checking for socket" >&5 6153 echo "configure:6154: checking for socket" >&5
6058 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 6154 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6 6155 echo $ac_n "(cached) $ac_c" 1>&6
6060 else 6156 else
6061 cat > conftest.$ac_ext <<EOF 6157 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure" 6158 #line 6159 "configure"
6063 #include "confdefs.h" 6159 #include "confdefs.h"
6064 /* System header to define __stub macros and hopefully few prototypes, 6160 /* System header to define __stub macros and hopefully few prototypes,
6065 which can conflict with char socket(); below. */ 6161 which can conflict with char socket(); below. */
6066 #include <assert.h> 6162 #include <assert.h>
6067 /* Override any gcc2 internal prototype to avoid an error. */ 6163 /* Override any gcc2 internal prototype to avoid an error. */
6080 socket(); 6176 socket();
6081 #endif 6177 #endif
6082 6178
6083 ; return 0; } 6179 ; return 0; }
6084 EOF 6180 EOF
6085 if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6086 rm -rf conftest* 6182 rm -rf conftest*
6087 eval "ac_cv_func_socket=yes" 6183 eval "ac_cv_func_socket=yes"
6088 else 6184 else
6089 echo "configure: failed program was:" >&5 6185 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5 6186 cat conftest.$ac_ext >&5
6103 fi 6199 fi
6104 6200
6105 if test $ok_so_far = yes; then 6201 if test $ok_so_far = yes; then
6106 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 6202 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
6107 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 6203 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
6108 echo "configure:6109: checking for netinet/in.h" >&5 6204 echo "configure:6205: checking for netinet/in.h" >&5
6109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6 6206 echo $ac_n "(cached) $ac_c" 1>&6
6111 else 6207 else
6112 cat > conftest.$ac_ext <<EOF 6208 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure" 6209 #line 6210 "configure"
6114 #include "confdefs.h" 6210 #include "confdefs.h"
6115 #include <netinet/in.h> 6211 #include <netinet/in.h>
6116 EOF 6212 EOF
6117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6118 { (eval echo configure:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6214 { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6119 ac_err=`grep -v '^ *+' conftest.out` 6215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6120 if test -z "$ac_err"; then 6216 if test -z "$ac_err"; then
6121 rm -rf conftest* 6217 rm -rf conftest*
6122 eval "ac_cv_header_$ac_safe=yes" 6218 eval "ac_cv_header_$ac_safe=yes"
6123 else 6219 else
6124 echo "$ac_err" >&5 6220 echo "$ac_err" >&5
6139 6235
6140 fi 6236 fi
6141 if test $ok_so_far = yes; then 6237 if test $ok_so_far = yes; then
6142 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 6238 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
6143 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 6239 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
6144 echo "configure:6145: checking for arpa/inet.h" >&5 6240 echo "configure:6241: checking for arpa/inet.h" >&5
6145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6146 echo $ac_n "(cached) $ac_c" 1>&6 6242 echo $ac_n "(cached) $ac_c" 1>&6
6147 else 6243 else
6148 cat > conftest.$ac_ext <<EOF 6244 cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure" 6245 #line 6246 "configure"
6150 #include "confdefs.h" 6246 #include "confdefs.h"
6151 #include <arpa/inet.h> 6247 #include <arpa/inet.h>
6152 EOF 6248 EOF
6153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6154 { (eval echo configure:6155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6250 { (eval echo configure:6251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6155 ac_err=`grep -v '^ *+' conftest.out` 6251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6156 if test -z "$ac_err"; then 6252 if test -z "$ac_err"; then
6157 rm -rf conftest* 6253 rm -rf conftest*
6158 eval "ac_cv_header_$ac_safe=yes" 6254 eval "ac_cv_header_$ac_safe=yes"
6159 else 6255 else
6160 echo "$ac_err" >&5 6256 echo "$ac_err" >&5
6187 EOF 6283 EOF
6188 6284
6189 fi 6285 fi
6190 6286
6191 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 6287 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
6192 echo "configure:6193: checking whether system supports dynamic ptys" >&5 6288 echo "configure:6289: checking whether system supports dynamic ptys" >&5
6193 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 6289 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
6194 echo "$ac_t""yes" 1>&6 6290 echo "$ac_t""yes" 1>&6
6195 cat >> confdefs.h <<\EOF 6291 cat >> confdefs.h <<\EOF
6196 #define HAVE_DEV_PTMX 1 6292 #define HAVE_DEV_PTMX 1
6197 EOF 6293 EOF
6198 6294
6199 else 6295 else
6200 echo "$ac_t""no" 1>&6 6296 echo "$ac_t""no" 1>&6
6201 fi 6297 fi
6298
6299 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6300 echo "configure:6301: checking for pid_t" >&5
6301 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6303 else
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6307 #include <sys/types.h>
6308 #if STDC_HEADERS
6309 #include <stdlib.h>
6310 #include <stddef.h>
6311 #endif
6312 EOF
6313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6314 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6315 rm -rf conftest*
6316 ac_cv_type_pid_t=yes
6317 else
6318 rm -rf conftest*
6319 ac_cv_type_pid_t=no
6320 fi
6321 rm -f conftest*
6322
6323 fi
6324 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6325 if test $ac_cv_type_pid_t = no; then
6326 cat >> confdefs.h <<\EOF
6327 #define pid_t int
6328 EOF
6329
6330 fi
6331
6332 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6333 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6334 echo "configure:6335: checking for vfork.h" >&5
6335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6336 echo $ac_n "(cached) $ac_c" 1>&6
6337 else
6338 cat > conftest.$ac_ext <<EOF
6339 #line 6340 "configure"
6340 #include "confdefs.h"
6341 #include <vfork.h>
6342 EOF
6343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6344 { (eval echo configure:6345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6346 if test -z "$ac_err"; then
6347 rm -rf conftest*
6348 eval "ac_cv_header_$ac_safe=yes"
6349 else
6350 echo "$ac_err" >&5
6351 echo "configure: failed program was:" >&5
6352 cat conftest.$ac_ext >&5
6353 rm -rf conftest*
6354 eval "ac_cv_header_$ac_safe=no"
6355 fi
6356 rm -f conftest*
6357 fi
6358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6359 echo "$ac_t""yes" 1>&6
6360 cat >> confdefs.h <<\EOF
6361 #define HAVE_VFORK_H 1
6362 EOF
6363
6364 else
6365 echo "$ac_t""no" 1>&6
6366 fi
6367
6368 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6369 echo "configure:6370: checking for working vfork" >&5
6370 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6372 else
6373 if test "$cross_compiling" = yes; then
6374 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6375 echo "configure:6376: checking for vfork" >&5
6376 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6377 echo $ac_n "(cached) $ac_c" 1>&6
6378 else
6379 cat > conftest.$ac_ext <<EOF
6380 #line 6381 "configure"
6381 #include "confdefs.h"
6382 /* System header to define __stub macros and hopefully few prototypes,
6383 which can conflict with char vfork(); below. */
6384 #include <assert.h>
6385 /* Override any gcc2 internal prototype to avoid an error. */
6386 /* We use char because int might match the return type of a gcc2
6387 builtin and then its argument prototype would still apply. */
6388 char vfork();
6389
6390 int main() {
6391
6392 /* The GNU C library defines this for functions which it implements
6393 to always fail with ENOSYS. Some functions are actually named
6394 something starting with __ and the normal name is an alias. */
6395 #if defined (__stub_vfork) || defined (__stub___vfork)
6396 choke me
6397 #else
6398 vfork();
6399 #endif
6400
6401 ; return 0; }
6402 EOF
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 rm -rf conftest*
6405 eval "ac_cv_func_vfork=yes"
6406 else
6407 echo "configure: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 rm -rf conftest*
6410 eval "ac_cv_func_vfork=no"
6411 fi
6412 rm -f conftest*
6413 fi
6414
6415 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6416 echo "$ac_t""yes" 1>&6
6417 :
6418 else
6419 echo "$ac_t""no" 1>&6
6420 fi
6421
6422 ac_cv_func_vfork_works=$ac_cv_func_vfork
6423 else
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 /* Thanks to Paul Eggert for this test. */
6428 #include <stdio.h>
6429 #include <sys/types.h>
6430 #include <sys/stat.h>
6431 #ifdef HAVE_UNISTD_H
6432 #include <unistd.h>
6433 #endif
6434 #ifdef HAVE_VFORK_H
6435 #include <vfork.h>
6436 #endif
6437 /* On some sparc systems, changes by the child to local and incoming
6438 argument registers are propagated back to the parent.
6439 The compiler is told about this with #include <vfork.h>,
6440 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6441 Test for this by using a static variable whose address
6442 is put into a register that is clobbered by the vfork. */
6443 static
6444 #ifdef __cplusplus
6445 sparc_address_test (int arg)
6446 #else
6447 sparc_address_test (arg) int arg;
6448 #endif
6449 {
6450 static pid_t child;
6451 if (!child) {
6452 child = vfork ();
6453 if (child < 0) {
6454 perror ("vfork");
6455 _exit(2);
6456 }
6457 if (!child) {
6458 arg = getpid();
6459 write(-1, "", 0);
6460 _exit (arg);
6461 }
6462 }
6463 }
6464 main() {
6465 pid_t parent = getpid ();
6466 pid_t child;
6467
6468 sparc_address_test ();
6469
6470 child = vfork ();
6471
6472 if (child == 0) {
6473 /* Here is another test for sparc vfork register problems.
6474 This test uses lots of local variables, at least
6475 as many local variables as main has allocated so far
6476 including compiler temporaries. 4 locals are enough for
6477 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6478 A buggy compiler should reuse the register of parent
6479 for one of the local variables, since it will think that
6480 parent can't possibly be used any more in this routine.
6481 Assigning to the local variable will thus munge parent
6482 in the parent process. */
6483 pid_t
6484 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6485 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6486 /* Convince the compiler that p..p7 are live; otherwise, it might
6487 use the same hardware register for all 8 local variables. */
6488 if (p != p1 || p != p2 || p != p3 || p != p4
6489 || p != p5 || p != p6 || p != p7)
6490 _exit(1);
6491
6492 /* On some systems (e.g. IRIX 3.3),
6493 vfork doesn't separate parent from child file descriptors.
6494 If the child closes a descriptor before it execs or exits,
6495 this munges the parent's descriptor as well.
6496 Test for this by closing stdout in the child. */
6497 _exit(close(fileno(stdout)) != 0);
6498 } else {
6499 int status;
6500 struct stat st;
6501
6502 while (wait(&status) != child)
6503 ;
6504 exit(
6505 /* Was there some problem with vforking? */
6506 child < 0
6507
6508 /* Did the child fail? (This shouldn't happen.) */
6509 || status
6510
6511 /* Did the vfork/compiler bug occur? */
6512 || parent != getpid()
6513
6514 /* Did the file descriptor bug occur? */
6515 || fstat(fileno(stdout), &st) != 0
6516 );
6517 }
6518 }
6519 EOF
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6521 then
6522 ac_cv_func_vfork_works=yes
6523 else
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6526 rm -fr conftest*
6527 ac_cv_func_vfork_works=no
6528 fi
6529 rm -fr conftest*
6530 fi
6531
6532 fi
6533
6534 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6535 if test $ac_cv_func_vfork_works = no; then
6536 cat >> confdefs.h <<\EOF
6537 #define vfork fork
6538 EOF
6539
6540 fi
6541
6202 6542
6203 # Set up the CFLAGS for real compilation, so we can substitute it. 6543 # Set up the CFLAGS for real compilation, so we can substitute it.
6204 CFLAGS="$REAL_CFLAGS" 6544 CFLAGS="$REAL_CFLAGS"
6205 6545
6206 #### Find out which version of Emacs this is. 6546 #### Find out which version of Emacs this is.
6452 case "\$ac_option" in 6792 case "\$ac_option" in
6453 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6454 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 6794 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6455 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 6795 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6456 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 6796 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6457 echo "$CONFIG_STATUS generated by autoconf version 2.12" 6797 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6458 exit 0 ;; 6798 exit 0 ;;
6459 -help | --help | --hel | --he | --h) 6799 -help | --help | --hel | --he | --h)
6460 echo "\$ac_cs_usage"; exit 0 ;; 6800 echo "\$ac_cs_usage"; exit 0 ;;
6461 *) echo "\$ac_cs_usage"; exit 1 ;; 6801 *) echo "\$ac_cs_usage"; exit 1 ;;
6462 esac 6802 esac
6474 # Protect against being on the right side of a sed subst in config.status. 6814 # Protect against being on the right side of a sed subst in config.status.
6475 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 6815 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6476 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 6816 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6477 $ac_vpsub 6817 $ac_vpsub
6478 $extrasub 6818 $extrasub
6819 s%@SHELL@%$SHELL%g
6479 s%@CFLAGS@%$CFLAGS%g 6820 s%@CFLAGS@%$CFLAGS%g
6480 s%@CPPFLAGS@%$CPPFLAGS%g 6821 s%@CPPFLAGS@%$CPPFLAGS%g
6481 s%@CXXFLAGS@%$CXXFLAGS%g 6822 s%@CXXFLAGS@%$CXXFLAGS%g
6823 s%@FFLAGS@%$FFLAGS%g
6482 s%@DEFS@%$DEFS%g 6824 s%@DEFS@%$DEFS%g
6483 s%@LDFLAGS@%$LDFLAGS%g 6825 s%@LDFLAGS@%$LDFLAGS%g
6484 s%@LIBS@%$LIBS%g 6826 s%@LIBS@%$LIBS%g
6485 s%@exec_prefix@%$exec_prefix%g 6827 s%@exec_prefix@%$exec_prefix%g
6486 s%@prefix@%$prefix%g 6828 s%@prefix@%$prefix%g
6504 s%@host_os@%$host_os%g 6846 s%@host_os@%$host_os%g
6505 s%@CC@%$CC%g 6847 s%@CC@%$CC%g
6506 s%@LN_S@%$LN_S%g 6848 s%@LN_S@%$LN_S%g
6507 s%@CPP@%$CPP%g 6849 s%@CPP@%$CPP%g
6508 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 6850 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6851 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6509 s%@INSTALL_DATA@%$INSTALL_DATA%g 6852 s%@INSTALL_DATA@%$INSTALL_DATA%g
6510 s%@YACC@%$YACC%g 6853 s%@YACC@%$YACC%g
6511 s%@SET_MAKE@%$SET_MAKE%g 6854 s%@SET_MAKE@%$SET_MAKE%g
6512 s%@ALLOCA@%$ALLOCA%g 6855 s%@ALLOCA@%$ALLOCA%g
6513 s%@liblockfile@%$liblockfile%g 6856 s%@liblockfile@%$liblockfile%g