comparison configure @ 112335:d3c691ea0839

Merge: Automate syncing from gnulib.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 17 Jan 2011 12:17:27 -0800
parents 56d3e9c28eb0
children 19348bd13f81
comparison
equal deleted inserted replaced
112301:4249a8552faf 112335:d3c691ea0839
1 #! /bin/sh 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles. 2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 24.0.50. 3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 # 4 #
5 # 5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc. 8 # Foundation, Inc.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.) 88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl" 89 IFS=" "" $as_nl"
90 90
91 # Find who we are. Look in the path if we contain no directory separator. 91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
92 case $0 in #(( 93 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;; 94 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH 96 for as_dir in $PATH
96 do 97 do
212 213
213 if test "x$CONFIG_SHELL" != x; then : 214 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a 215 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also 216 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables. 217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
217 BASH_ENV=/dev/null 219 BASH_ENV=/dev/null
218 ENV=/dev/null 220 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL 222 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
222 fi 230 fi
223 231
224 if test x$as_have_required = xno; then : 232 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all" 233 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system." 234 $as_echo "$0: the shells that I found on your system."
591 # include <unistd.h> 599 # include <unistd.h>
592 #endif" 600 #endif"
593 601
594 ac_config_libobj_dir=src 602 ac_config_libobj_dir=src
595 ac_header_list= 603 ac_header_list=
604 gl_getopt_required=POSIX
605 gl_getopt_required=POSIX
596 ac_func_list= 606 ac_func_list=
597 ac_subst_vars='LTLIBOBJS 607 ac_subst_vars='gltests_LTLIBOBJS
608 gltests_LIBOBJS
609 gl_LTLIBOBJS
610 gl_LIBOBJS
611 am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
598 WINDOW_SUPPORT 614 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT 615 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT 616 MOUSE_SUPPORT
601 LIB_GCC 617 LIB_GCC
602 LD_FIRSTFLAG 618 LD_FIRSTFLAG
648 COM_ERRLIB 664 COM_ERRLIB
649 LIBRESOLV 665 LIBRESOLV
650 LIBHESIOD 666 LIBHESIOD
651 TERMCAP_OBJ 667 TERMCAP_OBJ
652 LIBS_TERMCAP 668 LIBS_TERMCAP
653 GETOPTOBJS 669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
681 NEXT_STDDEF_H
682 STDDEF_H
683 HAVE_WCHAR_T
684 REPLACE_NULL
685 APPLE_UNIVERSAL_BUILD
686 REPLACE_TIMEGM
687 REPLACE_NANOSLEEP
688 REPLACE_MKTIME
689 REPLACE_LOCALTIME_R
690 HAVE_TIMEGM
691 HAVE_STRPTIME
692 HAVE_NANOSLEEP
693 HAVE_DECL_LOCALTIME_R
694 GNULIB_TIME_R
695 GNULIB_TIMEGM
696 GNULIB_STRPTIME
697 GNULIB_NANOSLEEP
698 GNULIB_MKTIME
699 LTLIBINTL
700 LIBINTL
654 GETOPT_H 701 GETOPT_H
702 HAVE_GETOPT_H
703 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
704 NEXT_GETOPT_H
705 PRAGMA_COLUMNS
706 PRAGMA_SYSTEM_HEADER
707 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
708 INCLUDE_NEXT
709 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
710 UNISTD_H_HAVE_WINSOCK2_H
711 REPLACE_WRITE
712 REPLACE_USLEEP
713 REPLACE_UNLINKAT
714 REPLACE_UNLINK
715 REPLACE_TTYNAME_R
716 REPLACE_SYMLINK
717 REPLACE_SLEEP
718 REPLACE_RMDIR
719 REPLACE_READLINK
720 REPLACE_PWRITE
721 REPLACE_PREAD
722 REPLACE_LSEEK
723 REPLACE_LINKAT
724 REPLACE_LINK
725 REPLACE_LCHOWN
726 REPLACE_GETPAGESIZE
727 REPLACE_GETGROUPS
728 REPLACE_GETLOGIN_R
729 REPLACE_GETDOMAINNAME
730 REPLACE_GETCWD
731 REPLACE_FCHOWNAT
732 REPLACE_DUP2
733 REPLACE_DUP
734 REPLACE_CLOSE
735 REPLACE_CHOWN
736 HAVE_SYS_PARAM_H
737 HAVE_OS_H
738 HAVE_DECL_TTYNAME_R
739 HAVE_DECL_GETUSERSHELL
740 HAVE_DECL_GETPAGESIZE
741 HAVE_DECL_GETLOGIN_R
742 HAVE_DECL_GETDOMAINNAME
743 HAVE_DECL_FCHDIR
744 HAVE_DECL_ENVIRON
745 HAVE_USLEEP
746 HAVE_UNLINKAT
747 HAVE_SYMLINKAT
748 HAVE_SYMLINK
749 HAVE_SLEEP
750 HAVE_READLINKAT
751 HAVE_READLINK
752 HAVE_PWRITE
753 HAVE_PREAD
754 HAVE_PIPE2
755 HAVE_PIPE
756 HAVE_LINKAT
757 HAVE_LINK
758 HAVE_LCHOWN
759 HAVE_GETPAGESIZE
760 HAVE_GETLOGIN
761 HAVE_GETHOSTNAME
762 HAVE_GETGROUPS
763 HAVE_GETDTABLESIZE
764 HAVE_FTRUNCATE
765 HAVE_FSYNC
766 HAVE_FCHOWNAT
767 HAVE_FCHDIR
768 HAVE_FACCESSAT
769 HAVE_EUIDACCESS
770 HAVE_DUP3
771 HAVE_DUP2
772 HAVE_CHOWN
773 GNULIB_WRITE
774 GNULIB_USLEEP
775 GNULIB_UNLINKAT
776 GNULIB_UNLINK
777 GNULIB_UNISTD_H_SIGPIPE
778 GNULIB_UNISTD_H_GETOPT
779 GNULIB_TTYNAME_R
780 GNULIB_SYMLINKAT
781 GNULIB_SYMLINK
782 GNULIB_SLEEP
783 GNULIB_RMDIR
784 GNULIB_READLINKAT
785 GNULIB_READLINK
786 GNULIB_PWRITE
787 GNULIB_PREAD
788 GNULIB_PIPE2
789 GNULIB_PIPE
790 GNULIB_LSEEK
791 GNULIB_LINKAT
792 GNULIB_LINK
793 GNULIB_LCHOWN
794 GNULIB_GETUSERSHELL
795 GNULIB_GETPAGESIZE
796 GNULIB_GETLOGIN_R
797 GNULIB_GETLOGIN
798 GNULIB_GETHOSTNAME
799 GNULIB_GETGROUPS
800 GNULIB_GETDTABLESIZE
801 GNULIB_GETDOMAINNAME
802 GNULIB_GETCWD
803 GNULIB_FTRUNCATE
804 GNULIB_FSYNC
805 GNULIB_FCHOWNAT
806 GNULIB_FCHDIR
807 GNULIB_FACCESSAT
808 GNULIB_EUIDACCESS
809 GNULIB_ENVIRON
810 GNULIB_DUP3
811 GNULIB_DUP2
812 GNULIB_CLOSE
813 GNULIB_CHOWN
814 GL_COND_LIBTOOL_FALSE
815 GL_COND_LIBTOOL_TRUE
655 GETLOADAVG_LIBS 816 GETLOADAVG_LIBS
656 KMEM_GROUP 817 KMEM_GROUP
657 NEED_SETGID 818 NEED_SETGID
658 LIBOBJS 819 LIBOBJS
659 BLESSMAIL_TARGET 820 BLESSMAIL_TARGET
706 LD_SWITCH_X_SITE_AUX_RPATH 867 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX 868 LD_SWITCH_X_SITE_AUX
708 XMKMF 869 XMKMF
709 DEPFLAGS 870 DEPFLAGS
710 MKDEPDIR 871 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND 872 CFLAGS_SOUND
713 ALSA_LIBS 873 ALSA_LIBS
714 ALSA_CFLAGS 874 ALSA_CFLAGS
715 PKG_CONFIG 875 PKG_CONFIG
716 LIBSOUND 876 LIBSOUND
722 UNEXEC_OBJ 882 UNEXEC_OBJ
723 C_SWITCH_MACHINE 883 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM 884 LD_SWITCH_SYSTEM
725 CANNOT_DUMP 885 CANNOT_DUMP
726 HAVE_MAKEINFO 886 HAVE_MAKEINFO
727 MAKEINFO
728 GZIP_PROG 887 GZIP_PROG
729 INSTALL_INFO 888 INSTALL_INFO
730 RANLIB
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 C_WARNINGS_SWITCH 889 C_WARNINGS_SWITCH
735 EGREP 890 EGREP
736 GREP 891 GREP
737 CPP 892 CPP
893 RANLIB
894 am__fastdepCC_FALSE
895 am__fastdepCC_TRUE
896 CCDEPMODE
897 AMDEPBACKSLASH
898 AMDEP_FALSE
899 AMDEP_TRUE
900 am__quote
901 am__include
902 DEPDIR
738 OBJEXT 903 OBJEXT
739 EXEEXT 904 EXEEXT
740 ac_ct_CC 905 ac_ct_CC
741 CPPFLAGS 906 CPPFLAGS
742 LDFLAGS 907 LDFLAGS
751 build_cpu 916 build_cpu
752 build 917 build
753 PROFILING_CFLAGS 918 PROFILING_CFLAGS
754 MAINT 919 MAINT
755 GZIP_INFO 920 GZIP_INFO
921 am__untar
922 am__tar
923 AMTAR
924 am__leading_dot
925 SET_MAKE
926 AWK
927 mkdir_p
928 MKDIR_P
929 INSTALL_STRIP_PROGRAM
930 STRIP
931 install_sh
932 MAKEINFO
933 AUTOHEADER
934 AUTOMAKE
935 AUTOCONF
936 ACLOCAL
937 VERSION
938 PACKAGE
939 CYGPATH_W
940 am__isrc
941 INSTALL_DATA
942 INSTALL_SCRIPT
943 INSTALL_PROGRAM
756 target_alias 944 target_alias
757 host_alias 945 host_alias
758 build_alias 946 build_alias
759 LIBS 947 LIBS
760 ECHO_T 948 ECHO_T
837 enable_locallisppath 1025 enable_locallisppath
838 enable_checking 1026 enable_checking
839 enable_use_lisp_union_type 1027 enable_use_lisp_union_type
840 enable_profiling 1028 enable_profiling
841 enable_autodepend 1029 enable_autodepend
1030 enable_dependency_tracking
842 enable_largefile 1031 enable_largefile
843 with_x 1032 with_x
844 ' 1033 '
845 ac_precious_vars='build_alias 1034 ac_precious_vars='build_alias
846 host_alias 1035 host_alias
849 CFLAGS 1038 CFLAGS
850 LDFLAGS 1039 LDFLAGS
851 LIBS 1040 LIBS
852 CPPFLAGS 1041 CPPFLAGS
853 CPP 1042 CPP
1043 CPPFLAGS
1044 CPP
1045 CPPFLAGS
854 XMKMF' 1046 XMKMF'
855 1047
856 1048
857 # Initialize some variables set by options. 1049 # Initialize some variables set by options.
858 ac_init_help= 1050 ac_init_help=
1254 *) 1446 *)
1255 # FIXME: should be removed in autoconf 3.0. 1447 # FIXME: should be removed in autoconf 3.0.
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1448 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1449 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1450 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1259 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1451 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260 ;; 1452 ;;
1261 1453
1262 esac 1454 esac
1263 done 1455 done
1264 1456
1497 --enable-profiling build emacs with profiling support. This might not 1689 --enable-profiling build emacs with profiling support. This might not
1498 work on all platforms 1690 work on all platforms
1499 --enable-autodepend automatically generate dependencies to .h-files. 1691 --enable-autodepend automatically generate dependencies to .h-files.
1500 Requires GNU Make and Gcc. Enabled if GNU Make and 1692 Requires GNU Make and Gcc. Enabled if GNU Make and
1501 Gcc is found 1693 Gcc is found
1694 --disable-dependency-tracking speeds up one-time build
1695 --enable-dependency-tracking do not reject slow dependency extractors
1502 --disable-largefile omit support for large files 1696 --disable-largefile omit support for large files
1503 1697
1504 Optional Packages: 1698 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1699 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1700 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1626 1820
1627 test -n "$ac_init_help" && exit $ac_status 1821 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then 1822 if $ac_init_version; then
1629 cat <<\_ACEOF 1823 cat <<\_ACEOF
1630 emacs configure 24.0.50 1824 emacs configure 24.0.50
1631 generated by GNU Autoconf 2.67 1825 generated by GNU Autoconf 2.68
1632 1826
1633 Copyright (C) 2010 Free Software Foundation, Inc. 1827 Copyright (C) 2010 Free Software Foundation, Inc.
1634 This configure script is free software; the Free Software Foundation 1828 This configure script is free software; the Free Software Foundation
1635 gives unlimited permission to copy, distribute and modify it. 1829 gives unlimited permission to copy, distribute and modify it.
1636 _ACEOF 1830 _ACEOF
1672 $as_echo "$as_me: failed program was:" >&5 1866 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5 1867 sed 's/^/| /' conftest.$ac_ext >&5
1674 1868
1675 ac_retval=1 1869 ac_retval=1
1676 fi 1870 fi
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval 1872 as_fn_set_status $ac_retval
1679 1873
1680 } # ac_fn_c_try_compile 1874 } # ac_fn_c_try_compile
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 $as_test_x conftest$ac_exeext
1710 }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_link
1727 1875
1728 # ac_fn_c_try_cpp LINENO 1876 # ac_fn_c_try_cpp LINENO
1729 # ---------------------- 1877 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1878 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp () 1879 ac_fn_c_try_cpp ()
1755 $as_echo "$as_me: failed program was:" >&5 1903 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5 1904 sed 's/^/| /' conftest.$ac_ext >&5
1757 1905
1758 ac_retval=1 1906 ac_retval=1
1759 fi 1907 fi
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval 1909 as_fn_set_status $ac_retval
1762 1910
1763 } # ac_fn_c_try_cpp 1911 } # ac_fn_c_try_cpp
1764 1912
1765 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1768 # the include files in INCLUDES and setting the cache variable VAR 1916 # the include files in INCLUDES and setting the cache variable VAR
1769 # accordingly. 1917 # accordingly.
1770 ac_fn_c_check_header_mongrel () 1918 ac_fn_c_check_header_mongrel ()
1771 { 1919 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if eval "test \"\${$3+set}\"" = set; then : 1921 if eval \${$3+:} false; then :
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; } 1923 $as_echo_n "checking for $2... " >&6; }
1776 if eval "test \"\${$3+set}\"" = set; then : 1924 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6 1925 $as_echo_n "(cached) " >&6
1778 fi 1926 fi
1779 eval ac_res=\$$3 1927 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; } 1929 $as_echo "$ac_res" >&6; }
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;; 1983 ;;
1836 esac 1984 esac
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; } 1986 $as_echo_n "checking for $2... " >&6; }
1839 if eval "test \"\${$3+set}\"" = set; then : 1987 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6 1988 $as_echo_n "(cached) " >&6
1841 else 1989 else
1842 eval "$3=\$ac_header_compiler" 1990 eval "$3=\$ac_header_compiler"
1843 fi 1991 fi
1844 eval ac_res=\$$3 1992 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; } 1994 $as_echo "$ac_res" >&6; }
1847 fi 1995 fi
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 1997
1850 } # ac_fn_c_check_header_mongrel 1998 } # ac_fn_c_check_header_mongrel
1851 1999
1852 # ac_fn_c_try_run LINENO 2000 # ac_fn_c_try_run LINENO
1853 # ---------------------- 2001 # ----------------------
1884 sed 's/^/| /' conftest.$ac_ext >&5 2032 sed 's/^/| /' conftest.$ac_ext >&5
1885 2033
1886 ac_retval=$ac_status 2034 ac_retval=$ac_status
1887 fi 2035 fi
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval 2038 as_fn_set_status $ac_retval
1891 2039
1892 } # ac_fn_c_try_run 2040 } # ac_fn_c_try_run
1893 2041
1894 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2042 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 ac_fn_c_check_header_compile () 2046 ac_fn_c_check_header_compile ()
1899 { 2047 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; } 2050 $as_echo_n "checking for $2... " >&6; }
1903 if eval "test \"\${$3+set}\"" = set; then : 2051 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6 2052 $as_echo_n "(cached) " >&6
1905 else 2053 else
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */ 2055 /* end confdefs.h. */
1908 $4 2056 $4
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 fi 2065 fi
1918 eval ac_res=\$$3 2066 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; } 2068 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 2070
1923 } # ac_fn_c_check_header_compile 2071 } # ac_fn_c_check_header_compile
2072
2073 # ac_fn_c_try_link LINENO
2074 # -----------------------
2075 # Try to link conftest.$ac_ext, and return whether this succeeded.
2076 ac_fn_c_try_link ()
2077 {
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 rm -f conftest.$ac_objext conftest$ac_exeext
2080 if { { ac_try="$ac_link"
2081 case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_link") 2>conftest.err
2088 ac_status=$?
2089 if test -s conftest.err; then
2090 grep -v '^ *+' conftest.err >conftest.er1
2091 cat conftest.er1 >&5
2092 mv -f conftest.er1 conftest.err
2093 fi
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; } && {
2096 test -z "$ac_c_werror_flag" ||
2097 test ! -s conftest.err
2098 } && test -s conftest$ac_exeext && {
2099 test "$cross_compiling" = yes ||
2100 $as_test_x conftest$ac_exeext
2101 }; then :
2102 ac_retval=0
2103 else
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_retval=1
2108 fi
2109 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2110 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2111 # interfere with the next link command; also delete a directory that is
2112 # left behind by Apple's compiler. We do this before executing the actions.
2113 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 as_fn_set_status $ac_retval
2116
2117 } # ac_fn_c_try_link
1924 2118
1925 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2119 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1926 # --------------------------------------------- 2120 # ---------------------------------------------
1927 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2121 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1928 # accordingly. 2122 # accordingly.
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 as_decl_name=`echo $2|sed 's/ *(.*//'` 2126 as_decl_name=`echo $2|sed 's/ *(.*//'`
1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2127 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1935 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2129 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1936 if eval "test \"\${$3+set}\"" = set; then : 2130 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6 2131 $as_echo_n "(cached) " >&6
1938 else 2132 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */ 2134 /* end confdefs.h. */
1941 $4 2135 $4
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 fi 2157 fi
1964 eval ac_res=\$$3 2158 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; } 2160 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 2162
1969 } # ac_fn_c_check_decl 2163 } # ac_fn_c_check_decl
1970 2164
1971 # ac_fn_c_check_header_preproc LINENO HEADER VAR 2165 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1972 # ---------------------------------------------- 2166 # ----------------------------------------------
1974 ac_fn_c_check_header_preproc () 2168 ac_fn_c_check_header_preproc ()
1975 { 2169 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; } 2172 $as_echo_n "checking for $2... " >&6; }
1979 if eval "test \"\${$3+set}\"" = set; then : 2173 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6 2174 $as_echo_n "(cached) " >&6
1981 else 2175 else
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */ 2177 /* end confdefs.h. */
1984 #include <$2> 2178 #include <$2>
1991 rm -f conftest.err conftest.i conftest.$ac_ext 2185 rm -f conftest.err conftest.i conftest.$ac_ext
1992 fi 2186 fi
1993 eval ac_res=\$$3 2187 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; } 2189 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 2191
1998 } # ac_fn_c_check_header_preproc 2192 } # ac_fn_c_check_header_preproc
1999 2193
2000 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2194 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001 # ---------------------------------------------------- 2195 # ----------------------------------------------------
2004 ac_fn_c_check_member () 2198 ac_fn_c_check_member ()
2005 { 2199 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008 $as_echo_n "checking for $2.$3... " >&6; } 2202 $as_echo_n "checking for $2.$3... " >&6; }
2009 if eval "test \"\${$4+set}\"" = set; then : 2203 if eval \${$4+:} false; then :
2010 $as_echo_n "(cached) " >&6 2204 $as_echo_n "(cached) " >&6
2011 else 2205 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */ 2207 /* end confdefs.h. */
2014 $5 2208 $5
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi 2243 fi
2050 eval ac_res=\$$4 2244 eval ac_res=\$$4
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; } 2246 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 2248
2055 } # ac_fn_c_check_member 2249 } # ac_fn_c_check_member
2056 2250
2057 # ac_fn_c_check_func LINENO FUNC VAR 2251 # ac_fn_c_check_func LINENO FUNC VAR
2058 # ---------------------------------- 2252 # ----------------------------------
2060 ac_fn_c_check_func () 2254 ac_fn_c_check_func ()
2061 { 2255 {
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; } 2258 $as_echo_n "checking for $2... " >&6; }
2065 if eval "test \"\${$3+set}\"" = set; then : 2259 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6 2260 $as_echo_n "(cached) " >&6
2067 else 2261 else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */ 2263 /* end confdefs.h. */
2070 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2264 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2115 conftest$ac_exeext conftest.$ac_ext 2309 conftest$ac_exeext conftest.$ac_ext
2116 fi 2310 fi
2117 eval ac_res=\$$3 2311 eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; } 2313 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 2315
2122 } # ac_fn_c_check_func 2316 } # ac_fn_c_check_func
2123 2317
2124 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2318 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2125 # ------------------------------------------- 2319 # -------------------------------------------
2128 ac_fn_c_check_type () 2322 ac_fn_c_check_type ()
2129 { 2323 {
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; } 2326 $as_echo_n "checking for $2... " >&6; }
2133 if eval "test \"\${$3+set}\"" = set; then : 2327 if eval \${$3+:} false; then :
2134 $as_echo_n "(cached) " >&6 2328 $as_echo_n "(cached) " >&6
2135 else 2329 else
2136 eval "$3=no" 2330 eval "$3=no"
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */ 2332 /* end confdefs.h. */
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi 2364 fi
2171 eval ac_res=\$$3 2365 eval ac_res=\$$3
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; } 2367 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 2369
2176 } # ac_fn_c_check_type 2370 } # ac_fn_c_check_type
2177 cat >config.log <<_ACEOF 2371 cat >config.log <<_ACEOF
2178 This file contains any messages produced by compilers while 2372 This file contains any messages produced by compilers while
2179 running configure, to aid debugging if configure makes a mistake. 2373 running configure, to aid debugging if configure makes a mistake.
2180 2374
2181 It was created by emacs $as_me 24.0.50, which was 2375 It was created by emacs $as_me 24.0.50, which was
2182 generated by GNU Autoconf 2.67. Invocation command line was 2376 generated by GNU Autoconf 2.68. Invocation command line was
2183 2377
2184 $ $0 $@ 2378 $ $0 $@
2185 2379
2186 _ACEOF 2380 _ACEOF
2187 exec 5>>config.log 2381 exec 5>>config.log
2459 fi 2653 fi
2460 2654
2461 as_fn_append ac_header_list " stdlib.h" 2655 as_fn_append ac_header_list " stdlib.h"
2462 as_fn_append ac_header_list " unistd.h" 2656 as_fn_append ac_header_list " unistd.h"
2463 as_fn_append ac_header_list " sys/param.h" 2657 as_fn_append ac_header_list " sys/param.h"
2658 gl_getopt_required=GNU
2659 as_fn_append ac_header_list " getopt.h"
2660 as_fn_append ac_func_list " alarm"
2661 as_fn_append ac_header_list " stddef.h"
2662 as_fn_append ac_header_list " time.h"
2464 as_fn_append ac_header_list " sys/time.h" 2663 as_fn_append ac_header_list " sys/time.h"
2465 as_fn_append ac_func_list " alarm" 2664 as_fn_append ac_func_list " localtime_r"
2466 # Check that the precious variables saved in the cache have kept the same 2665 # Check that the precious variables saved in the cache have kept the same
2467 # value. 2666 # value.
2468 ac_cache_corrupted=false 2667 ac_cache_corrupted=false
2469 for ac_var in $ac_precious_vars; do 2668 for ac_var in $ac_precious_vars; do
2470 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2669 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2532 2731
2533 2732
2534 ac_config_headers="$ac_config_headers src/config.h:src/config.in" 2733 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2535 2734
2536 2735
2537 2736 am__api_version='1.11'
2538 test "$program_prefix" != NONE &&
2539 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2540 # Use a double $ so make ignores it.
2541 test "$program_suffix" != NONE &&
2542 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2543 # Double any \ or $.
2544 # By default was `s,x,x', remove it if useless.
2545 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2546 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2547
2548
2549 lispdir='${datadir}/emacs/${version}/lisp'
2550 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2551 '${datadir}/emacs/site-lisp'
2552 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2553 etcdir='${datadir}/emacs/${version}/etc'
2554 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2555 docdir='${datadir}/emacs/${version}/etc'
2556 gamedir='${localstatedir}/games/emacs'
2557
2558
2559
2560
2561 # Check whether --with-pop was given.
2562 if test "${with_pop+set}" = set; then :
2563 withval=$with_pop;
2564 else
2565 with_pop=yes
2566 fi
2567
2568 if test "$with_pop" = yes; then
2569 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2570
2571 fi
2572
2573
2574 # Check whether --with-kerberos was given.
2575 if test "${with_kerberos+set}" = set; then :
2576 withval=$with_kerberos;
2577 else
2578 with_kerberos=no
2579 fi
2580
2581 if test "$with_kerberos" != no; then
2582 $as_echo "#define KERBEROS 1" >>confdefs.h
2583
2584 fi
2585
2586
2587 # Check whether --with-kerberos5 was given.
2588 if test "${with_kerberos5+set}" = set; then :
2589 withval=$with_kerberos5;
2590 else
2591 with_kerberos5=no
2592 fi
2593
2594 if test "${with_kerberos5}" != no; then
2595 if test "${with_kerberos}" = no; then
2596 with_kerberos=yes
2597 $as_echo "#define KERBEROS 1" >>confdefs.h
2598
2599 fi
2600
2601 $as_echo "#define KERBEROS5 1" >>confdefs.h
2602
2603 fi
2604
2605
2606 # Check whether --with-hesiod was given.
2607 if test "${with_hesiod+set}" = set; then :
2608 withval=$with_hesiod;
2609 else
2610 with_hesiod=no
2611 fi
2612
2613 if test "$with_hesiod" != no; then
2614
2615 $as_echo "#define HESIOD 1" >>confdefs.h
2616
2617 fi
2618
2619
2620 # Check whether --with-mmdf was given.
2621 if test "${with_mmdf+set}" = set; then :
2622 withval=$with_mmdf;
2623 else
2624 with_mmdf=no
2625 fi
2626
2627 if test "$with_mmdf" != no; then
2628
2629 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2630
2631 fi
2632
2633
2634 # Check whether --with-mail-unlink was given.
2635 if test "${with_mail_unlink+set}" = set; then :
2636 withval=$with_mail_unlink;
2637 else
2638 with_mail_unlink=no
2639 fi
2640
2641 if test "$with_mail_unlink" != no; then
2642
2643 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2644
2645 fi
2646
2647
2648 # Check whether --with-mailhost was given.
2649 if test "${with_mailhost+set}" = set; then :
2650 withval=$with_mailhost;
2651 cat >>confdefs.h <<_ACEOF
2652 #define MAILHOST "$withval"
2653 _ACEOF
2654
2655 fi
2656
2657
2658
2659 # Check whether --with-sound was given.
2660 if test "${with_sound+set}" = set; then :
2661 withval=$with_sound;
2662 else
2663 with_sound=yes
2664 fi
2665
2666
2667
2668 # Check whether --with-sync-input was given.
2669 if test "${with_sync_input+set}" = set; then :
2670 withval=$with_sync_input;
2671 else
2672 with_sync_input=yes
2673 fi
2674
2675 if test "$with_sync_input" = yes; then
2676
2677 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2678
2679 fi
2680
2681
2682 # Check whether --with-x-toolkit was given.
2683 if test "${with_x_toolkit+set}" = set; then :
2684 withval=$with_x_toolkit; case "${withval}" in
2685 y | ye | yes ) val=gtk ;;
2686 n | no ) val=no ;;
2687 l | lu | luc | luci | lucid ) val=lucid ;;
2688 a | at | ath | athe | athen | athena ) val=athena ;;
2689 m | mo | mot | moti | motif ) val=motif ;;
2690 g | gt | gtk ) val=gtk ;;
2691 gtk3 ) val=gtk3 ;;
2692 * )
2693 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2694 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2695 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2696 ;;
2697 esac
2698 with_x_toolkit=$val
2699
2700 fi
2701
2702
2703
2704 # Check whether --with-xpm was given.
2705 if test "${with_xpm+set}" = set; then :
2706 withval=$with_xpm;
2707 else
2708 with_xpm=yes
2709 fi
2710
2711
2712 # Check whether --with-jpeg was given.
2713 if test "${with_jpeg+set}" = set; then :
2714 withval=$with_jpeg;
2715 else
2716 with_jpeg=yes
2717 fi
2718
2719
2720 # Check whether --with-tiff was given.
2721 if test "${with_tiff+set}" = set; then :
2722 withval=$with_tiff;
2723 else
2724 with_tiff=yes
2725 fi
2726
2727
2728 # Check whether --with-gif was given.
2729 if test "${with_gif+set}" = set; then :
2730 withval=$with_gif;
2731 else
2732 with_gif=yes
2733 fi
2734
2735
2736 # Check whether --with-png was given.
2737 if test "${with_png+set}" = set; then :
2738 withval=$with_png;
2739 else
2740 with_png=yes
2741 fi
2742
2743
2744 # Check whether --with-rsvg was given.
2745 if test "${with_rsvg+set}" = set; then :
2746 withval=$with_rsvg;
2747 else
2748 with_rsvg=yes
2749 fi
2750
2751
2752 # Check whether --with-xml2 was given.
2753 if test "${with_xml2+set}" = set; then :
2754 withval=$with_xml2;
2755 else
2756 with_xml2=yes
2757 fi
2758
2759
2760 # Check whether --with-imagemagick was given.
2761 if test "${with_imagemagick+set}" = set; then :
2762 withval=$with_imagemagick;
2763 else
2764 with_imagemagick=yes
2765 fi
2766
2767
2768
2769 # Check whether --with-xft was given.
2770 if test "${with_xft+set}" = set; then :
2771 withval=$with_xft;
2772 else
2773 with_xft=yes
2774 fi
2775
2776
2777 # Check whether --with-libotf was given.
2778 if test "${with_libotf+set}" = set; then :
2779 withval=$with_libotf;
2780 else
2781 with_libotf=yes
2782 fi
2783
2784
2785 # Check whether --with-m17n-flt was given.
2786 if test "${with_m17n_flt+set}" = set; then :
2787 withval=$with_m17n_flt;
2788 else
2789 with_m17n_flt=yes
2790 fi
2791
2792
2793
2794 # Check whether --with-toolkit-scroll-bars was given.
2795 if test "${with_toolkit_scroll_bars+set}" = set; then :
2796 withval=$with_toolkit_scroll_bars;
2797 else
2798 with_toolkit_scroll_bars=yes
2799 fi
2800
2801
2802 # Check whether --with-xaw3d was given.
2803 if test "${with_xaw3d+set}" = set; then :
2804 withval=$with_xaw3d;
2805 else
2806 with_xaw3d=yes
2807 fi
2808
2809
2810 # Check whether --with-xim was given.
2811 if test "${with_xim+set}" = set; then :
2812 withval=$with_xim;
2813 else
2814 with_xim=yes
2815 fi
2816
2817
2818 # Check whether --with-ns was given.
2819 if test "${with_ns+set}" = set; then :
2820 withval=$with_ns;
2821 else
2822 with_ns=no
2823 fi
2824
2825
2826
2827 # Check whether --with-gpm was given.
2828 if test "${with_gpm+set}" = set; then :
2829 withval=$with_gpm;
2830 else
2831 with_gpm=yes
2832 fi
2833
2834
2835 # Check whether --with-dbus was given.
2836 if test "${with_dbus+set}" = set; then :
2837 withval=$with_dbus;
2838 else
2839 with_dbus=yes
2840 fi
2841
2842
2843 # Check whether --with-gconf was given.
2844 if test "${with_gconf+set}" = set; then :
2845 withval=$with_gconf;
2846 else
2847 with_gconf=yes
2848 fi
2849
2850
2851 # Check whether --with-selinux was given.
2852 if test "${with_selinux+set}" = set; then :
2853 withval=$with_selinux;
2854 else
2855 with_selinux=yes
2856 fi
2857
2858
2859 # Check whether --with-gnutls was given.
2860 if test "${with_gnutls+set}" = set; then :
2861 withval=$with_gnutls;
2862 else
2863 with_gnutls=yes
2864 fi
2865
2866
2867 ## For the times when you want to build Emacs but don't have
2868 ## a suitable makeinfo, and can live without the manuals.
2869
2870 # Check whether --with-makeinfo was given.
2871 if test "${with_makeinfo+set}" = set; then :
2872 withval=$with_makeinfo;
2873 else
2874 with_makeinfo=yes
2875 fi
2876
2877
2878 ## This is an option because I do not know if all info/man support
2879 ## compressed files, nor how to test if they do so.
2880
2881 # Check whether --with-compress-info was given.
2882 if test "${with_compress_info+set}" = set; then :
2883 withval=$with_compress_info;
2884 else
2885 with_compress_info=yes
2886 fi
2887
2888 if test $with_compress_info = yes; then
2889 GZIP_INFO=yes
2890 else
2891 GZIP_INFO=
2892 fi
2893
2894
2895
2896 # Check whether --with-pkg-config-prog was given.
2897 if test "${with_pkg_config_prog+set}" = set; then :
2898 withval=$with_pkg_config_prog;
2899 fi
2900
2901 if test "X${with_pkg_config_prog}" != X; then
2902 if test "${with_pkg_config_prog}" != yes; then
2903 PKG_CONFIG="${with_pkg_config_prog}"
2904 fi
2905 fi
2906
2907 CRT_DIR=
2908
2909 # Check whether --with-crt-dir was given.
2910 if test "${with_crt_dir+set}" = set; then :
2911 withval=$with_crt_dir;
2912 fi
2913
2914 CRT_DIR="${with_crt_dir}"
2915
2916
2917 # Check whether --with-gameuser was given.
2918 if test "${with_gameuser+set}" = set; then :
2919 withval=$with_gameuser;
2920 fi
2921
2922 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
2923 && gameuser="${with_gameuser}"
2924 test "X$gameuser" = X && gameuser=games
2925
2926
2927 # Check whether --with-gnustep-conf was given.
2928 if test "${with_gnustep_conf+set}" = set; then :
2929 withval=$with_gnustep_conf;
2930 fi
2931
2932 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2933 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2934 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2935 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2936
2937 # Check whether --enable-ns-self-contained was given.
2938 if test "${enable_ns_self_contained+set}" = set; then :
2939 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2940 else
2941 EN_NS_SELF_CONTAINED=yes
2942 fi
2943
2944
2945 # Check whether --enable-asserts was given.
2946 if test "${enable_asserts+set}" = set; then :
2947 enableval=$enable_asserts; USE_XASSERTS=$enableval
2948 else
2949 USE_XASSERTS=no
2950 fi
2951
2952
2953 # Check whether --enable-maintainer-mode was given.
2954 if test "${enable_maintainer_mode+set}" = set; then :
2955 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2956 else
2957 USE_MAINTAINER_MODE=no
2958 fi
2959
2960 if test $USE_MAINTAINER_MODE = yes; then
2961 MAINT=
2962 else
2963 MAINT=#
2964 fi
2965
2966
2967 # Check whether --enable-locallisppath was given.
2968 if test "${enable_locallisppath+set}" = set; then :
2969 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2970 locallisppath=
2971 elif test "${enableval}" != "yes"; then
2972 locallisppath=${enableval}
2973 fi
2974 fi
2975
2976
2977 # Check whether --enable-checking was given.
2978 if test "${enable_checking+set}" = set; then :
2979 enableval=$enable_checking; ac_checking_flags="${enableval}"
2980 fi
2981
2982 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2983 for check in $ac_checking_flags
2984 do
2985 case $check in
2986 # these set all the flags to specific states
2987 yes) ac_enable_checking=1 ;;
2988 no) ac_enable_checking= ;
2989 ac_gc_check_stringbytes= ;
2990 ac_gc_check_string_overrun= ;
2991 ac_gc_check_string_free_list= ;
2992 ac_xmalloc_overrun= ;
2993 ac_gc_check_cons_list= ;;
2994 all) ac_enable_checking=1 ;
2995 ac_gc_check_stringbytes=1 ;
2996 ac_gc_check_string_overrun=1 ;
2997 ac_gc_check_string_free_list=1 ;
2998 ac_xmalloc_overrun=1 ;
2999 ac_gc_check_cons_list=1 ;;
3000 # these enable particular checks
3001 stringbytes) ac_gc_check_stringbytes=1 ;;
3002 stringoverrun) ac_gc_check_string_overrun=1 ;;
3003 stringfreelist) ac_gc_check_string_free_list=1 ;;
3004 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3005 conslist) ac_gc_check_cons_list=1 ;;
3006 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3007 esac
3008 done
3009 IFS="$ac_save_IFS"
3010
3011 if test x$ac_enable_checking != x ; then
3012
3013 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3014
3015 fi
3016 if test x$ac_gc_check_stringbytes != x ; then
3017
3018 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3019
3020 fi
3021 if test x$ac_gc_check_stringoverrun != x ; then
3022
3023 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3024
3025 fi
3026 if test x$ac_gc_check_string_free_list != x ; then
3027
3028 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3029
3030 fi
3031 if test x$ac_xmalloc_overrun != x ; then
3032
3033 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3034
3035 fi
3036 if test x$ac_gc_check_cons_list != x ; then
3037
3038 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3039
3040 fi
3041
3042 # Check whether --enable-use-lisp-union-type was given.
3043 if test "${enable_use_lisp_union_type+set}" = set; then :
3044 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3045
3046 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3047
3048 fi
3049 fi
3050
3051
3052
3053 # Check whether --enable-profiling was given.
3054 if test "${enable_profiling+set}" = set; then :
3055 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3056 fi
3057
3058 if test x$ac_enable_profiling != x ; then
3059 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3060 else
3061 PROFILING_CFLAGS=
3062 fi
3063
3064
3065 # Check whether --enable-autodepend was given.
3066 if test "${enable_autodepend+set}" = set; then :
3067 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3068 else
3069 ac_enable_autodepend=yes
3070 fi
3071
3072
3073 #### Make srcdir absolute, if it isn't already. It's important to
3074 #### avoid running the path through pwd unnecessarily, since pwd can
3075 #### give you automounter prefixes, which can go away. We do all this
3076 #### so Emacs can find its files when run uninstalled.
3077 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3078 unset CDPATH
3079 case "${srcdir}" in
3080 /* ) ;;
3081 . )
3082 ## We may be able to use the $PWD environment variable to make this
3083 ## absolute. But sometimes PWD is inaccurate.
3084 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3085 ## but that tested only for a well-formed and valid PWD,
3086 ## it did not object when PWD was well-formed and valid but just wrong.
3087 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3088 then
3089 srcdir="$PWD"
3090 else
3091 srcdir="`(cd ${srcdir}; pwd)`"
3092 fi
3093 ;;
3094 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3095 esac
3096
3097 #### Check if the source directory already has a configured system in it.
3098 if test `pwd` != `(cd ${srcdir} && pwd)` \
3099 && test -f "${srcdir}/src/config.h" ; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3101 as a build directory right now; it has been configured in its own
3102 right. To configure in another directory as well, you MUST
3103 use GNU make. If you do not have GNU make, then you must
3104 now do \`make distclean' in ${srcdir},
3105 and then run $0 again." >&5
3106 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3107 as a build directory right now; it has been configured in its own
3108 right. To configure in another directory as well, you MUST
3109 use GNU make. If you do not have GNU make, then you must
3110 now do \`make distclean' in ${srcdir},
3111 and then run $0 again." >&2;}
3112 fi
3113
3114 #### Given the configuration name, set machfile and opsysfile to the
3115 #### names of the m/*.h and s/*.h files we should use.
3116
3117 ### Canonicalize the configuration name.
3118 2737
3119 ac_aux_dir= 2738 ac_aux_dir=
3120 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2739 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3121 if test -f "$ac_dir/install-sh"; then 2740 if test -f "$ac_dir/install-sh"; then
3122 ac_aux_dir=$ac_dir 2741 ac_aux_dir=$ac_dir
3142 # whose full name contains unusual characters. 2761 # whose full name contains unusual characters.
3143 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2762 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3144 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2763 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3145 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2764 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3146 2765
3147
3148 # Make sure we can run config.sub.
3149 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3150 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3153 $as_echo_n "checking build system type... " >&6; }
3154 if test "${ac_cv_build+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 ac_build_alias=$build_alias
3158 test "x$ac_build_alias" = x &&
3159 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3160 test "x$ac_build_alias" = x &&
3161 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3163 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3164
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3167 $as_echo "$ac_cv_build" >&6; }
3168 case $ac_cv_build in
3169 *-*-*) ;;
3170 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3171 esac
3172 build=$ac_cv_build
3173 ac_save_IFS=$IFS; IFS='-'
3174 set x $ac_cv_build
3175 shift
3176 build_cpu=$1
3177 build_vendor=$2
3178 shift; shift
3179 # Remember, the first character of IFS is used to create $*,
3180 # except with old shells:
3181 build_os=$*
3182 IFS=$ac_save_IFS
3183 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3184
3185
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3187 $as_echo_n "checking host system type... " >&6; }
3188 if test "${ac_cv_host+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test "x$host_alias" = x; then
3192 ac_cv_host=$ac_cv_build
3193 else
3194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3195 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3196 fi
3197
3198 fi
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3200 $as_echo "$ac_cv_host" >&6; }
3201 case $ac_cv_host in
3202 *-*-*) ;;
3203 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3204 esac
3205 host=$ac_cv_host
3206 ac_save_IFS=$IFS; IFS='-'
3207 set x $ac_cv_host
3208 shift
3209 host_cpu=$1
3210 host_vendor=$2
3211 shift; shift
3212 # Remember, the first character of IFS is used to create $*,
3213 # except with old shells:
3214 host_os=$*
3215 IFS=$ac_save_IFS
3216 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3217
3218
3219 canonical=$host
3220 configuration=${host_alias-${build_alias-$host}}
3221
3222
3223
3224 ### If you add support for a new configuration, add code to this
3225 ### switch statement to recognize your configuration name and select
3226 ### the appropriate operating system and machine description files.
3227
3228 ### You would hope that you could choose an m/*.h file pretty much
3229 ### based on the machine portion of the configuration name, and an s/*.h
3230 ### file based on the operating system portion. However, it turns out
3231 ### that each m/*.h file is pretty manufacturer-specific - for
3232 ### example mips.h is MIPS
3233 ### So we basically have to have a special case for each
3234 ### configuration name.
3235 ###
3236 ### As far as handling version numbers on operating systems is
3237 ### concerned, make sure things will fail in a fixable way. If
3238 ### /etc/MACHINES doesn't say anything about version numbers, be
3239 ### prepared to handle anything reasonably. If version numbers
3240 ### matter, be sure /etc/MACHINES says something about it.
3241
3242 machine='' opsys='' unported=no
3243 case "${canonical}" in
3244
3245 ## GNU/Linux ports
3246 *-*-linux-gnu*)
3247 opsys=gnu-linux
3248 case ${canonical} in
3249 alpha*) machine=alpha ;;
3250 s390-*) machine=ibms390 ;;
3251 s390x-*) machine=ibms390x ;;
3252 powerpc*) machine=macppc ;;
3253 sparc*) machine=sparc ;;
3254 ia64*) machine=ia64 ;;
3255 m68k*) machine=m68k ;;
3256 x86_64*) machine=amdx86-64 ;;
3257 esac
3258 ;;
3259
3260 ## FreeBSD ports
3261 *-*-freebsd* )
3262 opsys=freebsd
3263 case "${canonical}" in
3264 alpha*) machine=alpha ;;
3265 amd64-*|x86_64-*) machine=amdx86-64 ;;
3266 ia64-*) machine=ia64 ;;
3267 i[3456]86-*) machine=intel386 ;;
3268 powerpc-*) machine=macppc ;;
3269 sparc-*) machine=sparc ;;
3270 sparc64-*) machine=sparc ;;
3271 esac
3272 ;;
3273
3274 ## FreeBSD kernel + glibc based userland
3275 *-*-kfreebsd*gnu* )
3276 opsys=gnu-kfreebsd
3277 case "${canonical}" in
3278 alpha*) machine=alpha ;;
3279 amd64-*|x86_64-*) machine=amdx86-64 ;;
3280 ia64-*) machine=ia64 ;;
3281 i[3456]86-*) machine=intel386 ;;
3282 powerpc-*) machine=macppc ;;
3283 sparc-*) machine=sparc ;;
3284 sparc64-*) machine=sparc ;;
3285 esac
3286 ;;
3287
3288 ## NetBSD ports
3289 *-*-netbsd* )
3290 opsys=netbsd
3291 case "${canonical}" in
3292 alpha*) machine=alpha ;;
3293 x86_64-*) machine=amdx86-64 ;;
3294 i[3456]86-*) machine=intel386 ;;
3295 m68k-*) machine=m68k ;;
3296 powerpc-*) machine=macppc ;;
3297 sparc*-) machine=sparc ;;
3298 vax-*) machine=vax ;;
3299 esac
3300 ;;
3301
3302 ## OpenBSD ports
3303 *-*-openbsd* )
3304 opsys=openbsd
3305 case "${canonical}" in
3306 alpha*) machine=alpha ;;
3307 x86_64-*) machine=amdx86-64 ;;
3308 i386-*) machine=intel386 ;;
3309 powerpc-*) machine=macppc ;;
3310 sparc*) machine=sparc ;;
3311 vax-*) machine=vax ;;
3312 esac
3313 ;;
3314
3315 ## Apple Darwin / Mac OS X
3316 *-apple-darwin* )
3317 case "${canonical}" in
3318 i[3456]86-* ) machine=intel386 ;;
3319 powerpc-* ) machine=macppc ;;
3320 x86_64-* ) machine=amdx86-64 ;;
3321 * ) unported=yes ;;
3322 esac
3323 opsys=darwin
3324 # Define CPP as follows to make autoconf work correctly.
3325 CPP="${CC-cc} -E -no-cpp-precomp"
3326 # Use fink packages if available.
3327 if test -d /sw/include && test -d /sw/lib; then
3328 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3329 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3330 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3331 fi
3332 ;;
3333
3334 ## HP 9000 series 700 and 800, running HP/UX
3335 hppa*-hp-hpux10.2* )
3336 opsys=hpux10-20
3337 ;;
3338 hppa*-hp-hpux1[1-9]* )
3339 opsys=hpux11
3340 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3341 ;;
3342
3343 ## IBM machines
3344 rs6000-ibm-aix4.[23]* )
3345 machine=ibmrs6000 opsys=aix4-2
3346 ;;
3347 powerpc-ibm-aix4.[23]* )
3348 machine=ibmrs6000 opsys=aix4-2
3349 ;;
3350 rs6000-ibm-aix[56]* )
3351 machine=ibmrs6000 opsys=aix4-2
3352 ;;
3353 powerpc-ibm-aix[56]* )
3354 machine=ibmrs6000 opsys=aix4-2
3355 ;;
3356
3357 ## Silicon Graphics machines
3358 ## Iris 4D
3359 mips-sgi-irix6.5 )
3360 machine=iris4d opsys=irix6-5
3361 # Without defining _LANGUAGE_C, things get masked out in the headers
3362 # so that, for instance, grepping for `free' in stdlib.h fails and
3363 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3364 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3365 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3366 ;;
3367
3368 ## Suns
3369 *-sun-solaris* \
3370 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3371 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3372 case "${canonical}" in
3373 i[3456]86-*-* ) machine=intel386 ;;
3374 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3375 sparc* ) machine=sparc ;;
3376 * ) unported=yes ;;
3377 esac
3378 case "${canonical}" in
3379 *-sunos5.6* | *-solaris2.6* )
3380 opsys=sol2-6
3381 NON_GNU_CPP=/usr/ccs/lib/cpp
3382 RANLIB="ar -ts"
3383 ;;
3384 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3385 opsys=sol2-6
3386 emacs_check_sunpro_c=yes
3387 NON_GNU_CPP=/usr/ccs/lib/cpp
3388 ;;
3389 *-sunos5* | *-solaris* )
3390 opsys=sol2-10
3391 emacs_check_sunpro_c=yes
3392 NON_GNU_CPP=/usr/ccs/lib/cpp
3393 ;;
3394 esac
3395 ## Watch out for a compiler that we know will not work.
3396 case "${canonical}" in
3397 *-solaris* | *-sunos5* )
3398 if [ "x$CC" = x/usr/ucb/cc ]; then
3399 ## /usr/ucb/cc doesn't work;
3400 ## we should find some other compiler that does work.
3401 unset CC
3402 fi
3403 ;;
3404 *) ;;
3405 esac
3406 ;;
3407
3408 ## Intel 386 machines where we don't care about the manufacturer.
3409 i[3456]86-*-* )
3410 machine=intel386
3411 case "${canonical}" in
3412 *-cygwin ) opsys=cygwin ;;
3413 *-darwin* ) opsys=darwin
3414 CPP="${CC-cc} -E -no-cpp-precomp"
3415 ;;
3416 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3417 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3418 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3419 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3420 esac
3421 ;;
3422
3423 * )
3424 unported=yes
3425 ;;
3426 esac
3427
3428 ### If the code above didn't choose an operating system, just choose
3429 ### an operating system based on the configuration name. You really
3430 ### only want to use this when you have no idea what the right
3431 ### operating system is; if you know what operating systems a machine
3432 ### runs, it's cleaner to make it explicit in the case statement
3433 ### above.
3434 if test x"${opsys}" = x; then
3435 case "${canonical}" in
3436 *-gnu* ) opsys=gnu ;;
3437 * )
3438 unported=yes
3439 ;;
3440 esac
3441 fi
3442
3443
3444
3445 if test $unported = yes; then
3446 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3447 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3448 fi
3449
3450 if test -n "$machine"; then
3451 machfile="m/${machine}.h"
3452 else
3453 machfile=
3454 fi
3455 opsysfile="s/${opsys}.h"
3456
3457
3458 #### Choose a compiler.
3459 test -n "$CC" && cc_specified=yes
3460
3461 # Save the value of CFLAGS that the user specified.
3462 SPECIFIED_CFLAGS="$CFLAGS"
3463
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 if test -n "$ac_tool_prefix"; then
3470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if test "${ac_cv_prog_CC+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507 fi
3508 if test -z "$ac_cv_prog_CC"; then
3509 ac_ct_CC=$CC
3510 # Extract the first word of "gcc", so it can be a program name with args.
3511 set dummy gcc; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3519 else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 ac_cv_prog_ac_ct_CC="gcc"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531 done
3532 done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3540 $as_echo "$ac_ct_CC" >&6; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 fi
3545
3546 if test "x$ac_ct_CC" = x; then
3547 CC=""
3548 else
3549 case $cross_compiling:$ac_tool_warned in
3550 yes:)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553 ac_tool_warned=yes ;;
3554 esac
3555 CC=$ac_ct_CC
3556 fi
3557 else
3558 CC="$ac_cv_prog_CC"
3559 fi
3560
3561 if test -z "$CC"; then
3562 if test -n "$ac_tool_prefix"; then
3563 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3564 set dummy ${ac_tool_prefix}cc; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_CC+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$CC"; then
3571 ac_cv_prog_CC="$CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_CC="${ac_tool_prefix}cc"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3583 fi
3584 done
3585 done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 CC=$ac_cv_prog_CC
3591 if test -n "$CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593 $as_echo "$CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600 fi
3601 fi
3602 if test -z "$CC"; then
3603 # Extract the first word of "cc", so it can be a program name with args.
3604 set dummy cc; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if test "${ac_cv_prog_CC+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 ac_prog_rejected=no
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3622 ac_prog_rejected=yes
3623 continue
3624 fi
3625 ac_cv_prog_CC="cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 if test $ac_prog_rejected = yes; then
3634 # We found a bogon in the path, so make sure we never use it.
3635 set dummy $ac_cv_prog_CC
3636 shift
3637 if test $# != 0; then
3638 # We chose a different compiler from the bogus one.
3639 # However, it has the same basename, so the bogon will be chosen
3640 # first if we set CC to just the basename; use the full file name.
3641 shift
3642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3643 fi
3644 fi
3645 fi
3646 fi
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 fi
3658 if test -z "$CC"; then
3659 if test -n "$ac_tool_prefix"; then
3660 for ac_prog in cl.exe
3661 do
3662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if test "${ac_cv_prog_CC+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -n "$CC"; then
3670 ac_cv_prog_CC="$CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 break 2
3682 fi
3683 done
3684 done
3685 IFS=$as_save_IFS
3686
3687 fi
3688 fi
3689 CC=$ac_cv_prog_CC
3690 if test -n "$CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 $as_echo "$CC" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3696 fi
3697
3698
3699 test -n "$CC" && break
3700 done
3701 fi
3702 if test -z "$CC"; then
3703 ac_ct_CC=$CC
3704 for ac_prog in cl.exe
3705 do
3706 # Extract the first word of "$ac_prog", so it can be a program name with args.
3707 set dummy $ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$ac_ct_CC"; then
3714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_ac_ct_CC="$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3726 fi
3727 done
3728 done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3736 $as_echo "$ac_ct_CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742
3743 test -n "$ac_ct_CC" && break
3744 done
3745
3746 if test "x$ac_ct_CC" = x; then
3747 CC=""
3748 else
3749 case $cross_compiling:$ac_tool_warned in
3750 yes:)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753 ac_tool_warned=yes ;;
3754 esac
3755 CC=$ac_ct_CC
3756 fi
3757 fi
3758
3759 fi
3760
3761
3762 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "no acceptable C compiler found in \$PATH
3765 See \`config.log' for more details" "$LINENO" 5; }
3766
3767 # Provide some information about the compiler.
3768 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3769 set X $ac_compile
3770 ac_compiler=$2
3771 for ac_option in --version -v -V -qversion; do
3772 { { ac_try="$ac_compiler $ac_option >&5"
3773 case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3780 ac_status=$?
3781 if test -s conftest.err; then
3782 sed '10a\
3783 ... rest of stderr output deleted ...
3784 10q' conftest.err >conftest.er1
3785 cat conftest.er1 >&5
3786 fi
3787 rm -f conftest.er1 conftest.err
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }
3790 done
3791
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main ()
3797 {
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 ac_clean_files_save=$ac_clean_files
3804 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3805 # Try to create an executable without -o first, disregard a.out.
3806 # It will help us diagnose broken compilers, and finding out an intuition
3807 # of exeext.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3809 $as_echo_n "checking whether the C compiler works... " >&6; }
3810 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3811
3812 # The possible output files:
3813 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3814
3815 ac_rmfiles=
3816 for ac_file in $ac_files
3817 do
3818 case $ac_file in
3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3820 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3821 esac
3822 done
3823 rm -f $ac_rmfiles
3824
3825 if { { ac_try="$ac_link_default"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_link_default") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }; then :
3836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3837 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3838 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3839 # so that the user can short-circuit this test for compilers unknown to
3840 # Autoconf.
3841 for ac_file in $ac_files ''
3842 do
3843 test -f "$ac_file" || continue
3844 case $ac_file in
3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3846 ;;
3847 [ab].out )
3848 # We found the default executable, but exeext='' is most
3849 # certainly right.
3850 break;;
3851 *.* )
3852 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3853 then :; else
3854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3855 fi
3856 # We set ac_cv_exeext here because the later test for it is not
3857 # safe: cross compilers may not add the suffix if given an `-o'
3858 # argument, so we may need to know it at that point already.
3859 # Even if this section looks crufty: it has the advantage of
3860 # actually working.
3861 break;;
3862 * )
3863 break;;
3864 esac
3865 done
3866 test "$ac_cv_exeext" = no && ac_cv_exeext=
3867
3868 else
3869 ac_file=''
3870 fi
3871 if test -z "$ac_file"; then :
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 $as_echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error 77 "C compiler cannot create executables
3880 See \`config.log' for more details" "$LINENO" 5; }
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3883 $as_echo "yes" >&6; }
3884 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3886 $as_echo_n "checking for C compiler default output file name... " >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3888 $as_echo "$ac_file" >&6; }
3889 ac_exeext=$ac_cv_exeext
3890
3891 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3892 ac_clean_files=$ac_clean_files_save
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3894 $as_echo_n "checking for suffix of executables... " >&6; }
3895 if { { ac_try="$ac_link"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3907 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3908 # work properly (i.e., refer to `conftest.exe'), while it won't with
3909 # `rm'.
3910 for ac_file in conftest.exe conftest conftest.*; do
3911 test -f "$ac_file" || continue
3912 case $ac_file in
3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3915 break;;
3916 * ) break;;
3917 esac
3918 done
3919 else
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3923 See \`config.log' for more details" "$LINENO" 5; }
3924 fi
3925 rm -f conftest conftest$ac_cv_exeext
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3927 $as_echo "$ac_cv_exeext" >&6; }
3928
3929 rm -f conftest.$ac_ext
3930 EXEEXT=$ac_cv_exeext
3931 ac_exeext=$EXEEXT
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <stdio.h>
3935 int
3936 main ()
3937 {
3938 FILE *f = fopen ("conftest.out", "w");
3939 return ferror (f) || fclose (f) != 0;
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 ac_clean_files="$ac_clean_files conftest.out"
3946 # Check that the compiler produces executables we can run. If not, either
3947 # the compiler is broken, or we cross compile.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3949 $as_echo_n "checking whether we are cross compiling... " >&6; }
3950 if test "$cross_compiling" != yes; then
3951 { { ac_try="$ac_link"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962 if { ac_try='./conftest$ac_cv_exeext'
3963 { { case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; }; then
3973 cross_compiling=no
3974 else
3975 if test "$cross_compiling" = maybe; then
3976 cross_compiling=yes
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot run C compiled programs.
3981 If you meant to cross compile, use \`--host'.
3982 See \`config.log' for more details" "$LINENO" 5; }
3983 fi
3984 fi
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3987 $as_echo "$cross_compiling" >&6; }
3988
3989 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3990 ac_clean_files=$ac_clean_files_save
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998
3999 int
4000 main ()
4001 {
4002
4003 ;
4004 return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024 break;;
4025 esac
4026 done
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error $? "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details" "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054 choke me
4055 #endif
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_compiler_gnu=yes
4063 else
4064 ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073 GCC=yes
4074 else
4075 GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4086 ac_cv_prog_cc_g=no
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090
4091 int
4092 main ()
4093 {
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 else
4102 CFLAGS=""
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main ()
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4146 CFLAGS="-g -O2"
4147 else
4148 CFLAGS="-g"
4149 fi
4150 else
4151 if test "$GCC" = yes; then
4152 CFLAGS="-O2"
4153 else
4154 CFLAGS=
4155 fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174 char **p;
4175 int i;
4176 {
4177 return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181 char *s;
4182 va_list v;
4183 va_start (v,p);
4184 s = g (p, va_arg (v,int));
4185 va_end (v);
4186 return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233 x)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236 xno)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239 *)
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254
4255 # On Suns, sometimes $CPP names a directory.
4256 if test -n "$CPP" && test -d "$CPP"; then
4257 CPP=
4258 fi
4259
4260 ## If not using gcc, and on Solaris, and no CPP specified, see if
4261 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4262 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4263 test x"$CPP" = x; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4265 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4266
4267 if test "${emacs_cv_sunpro_c+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272
4273 int
4274 main ()
4275 {
4276 #ifndef __SUNPRO_C
4277 fail;
4278 #endif
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 if ac_fn_c_try_link "$LINENO"; then :
4285 emacs_cv_sunpro_c=yes
4286 else
4287 emacs_cv_sunpro_c=no
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext \
4290 conftest$ac_exeext conftest.$ac_ext
4291 fi
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4294 $as_echo "$emacs_cv_sunpro_c" >&6; }
4295
4296 if test x"$emacs_cv_sunpro_c" = xyes; then
4297 NON_GNU_CPP="$CC -E -Xs"
4298 fi
4299 fi
4300
4301 #### Some systems specify a CPP to use unless we are using GCC.
4302 #### Now that we know whether we are using GCC, we can decide whether
4303 #### to use that one.
4304 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4305 then
4306 CPP="$NON_GNU_CPP"
4307 fi
4308
4309 #### Some systems specify a CC to use unless we are using GCC.
4310 #### Now that we know whether we are using GCC, we can decide whether
4311 #### to use that one.
4312 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4313 test x$cc_specified != xyes
4314 then
4315 CC="$NON_GNU_CC"
4316 fi
4317
4318 if test x$GCC = xyes; then
4319 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4320 else
4321 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4330 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4331 # On Suns, sometimes $CPP names a directory.
4332 if test -n "$CPP" && test -d "$CPP"; then
4333 CPP=
4334 fi
4335 if test -z "$CPP"; then
4336 if test "${ac_cv_prog_CPP+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 # Double quotes because CPP needs to be expanded
4340 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4341 do
4342 ac_preproc_ok=false
4343 for ac_c_preproc_warn_flag in '' yes
4344 do
4345 # Use a header file that comes with gcc, so configuring glibc
4346 # with a fresh cross-compiler works.
4347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4348 # <limits.h> exists even on freestanding compilers.
4349 # On the NeXT, cc -E runs the code through the compiler's parser,
4350 # not just through cpp. "Syntax error" is here to catch this case.
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #ifdef __STDC__
4354 # include <limits.h>
4355 #else
4356 # include <assert.h>
4357 #endif
4358 Syntax error
4359 _ACEOF
4360 if ac_fn_c_try_cpp "$LINENO"; then :
4361
4362 else
4363 # Broken: fails on valid input.
4364 continue
4365 fi
4366 rm -f conftest.err conftest.i conftest.$ac_ext
4367
4368 # OK, works on sane cases. Now check whether nonexistent headers
4369 # can be detected and how.
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <ac_nonexistent.h>
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4375 # Broken: success on invalid input.
4376 continue
4377 else
4378 # Passes both tests.
4379 ac_preproc_ok=:
4380 break
4381 fi
4382 rm -f conftest.err conftest.i conftest.$ac_ext
4383
4384 done
4385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386 rm -f conftest.i conftest.err conftest.$ac_ext
4387 if $ac_preproc_ok; then :
4388 break
4389 fi
4390
4391 done
4392 ac_cv_prog_CPP=$CPP
4393
4394 fi
4395 CPP=$ac_cv_prog_CPP
4396 else
4397 ac_cv_prog_CPP=$CPP
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4400 $as_echo "$CPP" >&6; }
4401 ac_preproc_ok=false
4402 for ac_c_preproc_warn_flag in '' yes
4403 do
4404 # Use a header file that comes with gcc, so configuring glibc
4405 # with a fresh cross-compiler works.
4406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4407 # <limits.h> exists even on freestanding compilers.
4408 # On the NeXT, cc -E runs the code through the compiler's parser,
4409 # not just through cpp. "Syntax error" is here to catch this case.
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4412 #ifdef __STDC__
4413 # include <limits.h>
4414 #else
4415 # include <assert.h>
4416 #endif
4417 Syntax error
4418 _ACEOF
4419 if ac_fn_c_try_cpp "$LINENO"; then :
4420
4421 else
4422 # Broken: fails on valid input.
4423 continue
4424 fi
4425 rm -f conftest.err conftest.i conftest.$ac_ext
4426
4427 # OK, works on sane cases. Now check whether nonexistent headers
4428 # can be detected and how.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <ac_nonexistent.h>
4432 _ACEOF
4433 if ac_fn_c_try_cpp "$LINENO"; then :
4434 # Broken: success on invalid input.
4435 continue
4436 else
4437 # Passes both tests.
4438 ac_preproc_ok=:
4439 break
4440 fi
4441 rm -f conftest.err conftest.i conftest.$ac_ext
4442
4443 done
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.i conftest.err conftest.$ac_ext
4446 if $ac_preproc_ok; then :
4447
4448 else
4449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4452 See \`config.log' for more details" "$LINENO" 5; }
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4463 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4464 if test "${ac_cv_path_GREP+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -z "$GREP"; then
4468 ac_path_GREP_found=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_prog in grep ggrep; do
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4479 # Check for GNU ac_path_GREP and select it if it is found.
4480 # Check for GNU $ac_path_GREP
4481 case `"$ac_path_GREP" --version 2>&1` in
4482 *GNU*)
4483 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4484 *)
4485 ac_count=0
4486 $as_echo_n 0123456789 >"conftest.in"
4487 while :
4488 do
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 $as_echo 'GREP' >> "conftest.nl"
4493 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495 as_fn_arith $ac_count + 1 && ac_count=$as_val
4496 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_GREP="$ac_path_GREP"
4499 ac_path_GREP_max=$ac_count
4500 fi
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4503 done
4504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505 esac
4506
4507 $ac_path_GREP_found && break 3
4508 done
4509 done
4510 done
4511 IFS=$as_save_IFS
4512 if test -z "$ac_cv_path_GREP"; then
4513 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4514 fi
4515 else
4516 ac_cv_path_GREP=$GREP
4517 fi
4518
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4521 $as_echo "$ac_cv_path_GREP" >&6; }
4522 GREP="$ac_cv_path_GREP"
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4526 $as_echo_n "checking for egrep... " >&6; }
4527 if test "${ac_cv_path_EGREP+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4531 then ac_cv_path_EGREP="$GREP -E"
4532 else
4533 if test -z "$EGREP"; then
4534 ac_path_EGREP_found=false
4535 # Loop through the user's path and test for each of PROGNAME-LIST
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_prog in egrep; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4544 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4545 # Check for GNU ac_path_EGREP and select it if it is found.
4546 # Check for GNU $ac_path_EGREP
4547 case `"$ac_path_EGREP" --version 2>&1` in
4548 *GNU*)
4549 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4550 *)
4551 ac_count=0
4552 $as_echo_n 0123456789 >"conftest.in"
4553 while :
4554 do
4555 cat "conftest.in" "conftest.in" >"conftest.tmp"
4556 mv "conftest.tmp" "conftest.in"
4557 cp "conftest.in" "conftest.nl"
4558 $as_echo 'EGREP' >> "conftest.nl"
4559 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561 as_fn_arith $ac_count + 1 && ac_count=$as_val
4562 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4563 # Best one so far, save it but keep looking for a better one
4564 ac_cv_path_EGREP="$ac_path_EGREP"
4565 ac_path_EGREP_max=$ac_count
4566 fi
4567 # 10*(2^10) chars as input seems more than enough
4568 test $ac_count -gt 10 && break
4569 done
4570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571 esac
4572
4573 $ac_path_EGREP_found && break 3
4574 done
4575 done
4576 done
4577 IFS=$as_save_IFS
4578 if test -z "$ac_cv_path_EGREP"; then
4579 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4580 fi
4581 else
4582 ac_cv_path_EGREP=$EGREP
4583 fi
4584
4585 fi
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4588 $as_echo "$ac_cv_path_EGREP" >&6; }
4589 EGREP="$ac_cv_path_EGREP"
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4593 $as_echo_n "checking for ANSI C header files... " >&6; }
4594 if test "${ac_cv_header_stdc+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <stdlib.h>
4600 #include <stdarg.h>
4601 #include <string.h>
4602 #include <float.h>
4603
4604 int
4605 main ()
4606 {
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 ac_cv_header_stdc=yes
4614 else
4615 ac_cv_header_stdc=no
4616 fi
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618
4619 if test $ac_cv_header_stdc = yes; then
4620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623 #include <string.h>
4624
4625 _ACEOF
4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4627 $EGREP "memchr" >/dev/null 2>&1; then :
4628
4629 else
4630 ac_cv_header_stdc=no
4631 fi
4632 rm -f conftest*
4633
4634 fi
4635
4636 if test $ac_cv_header_stdc = yes; then
4637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 #include <stdlib.h>
4641
4642 _ACEOF
4643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4644 $EGREP "free" >/dev/null 2>&1; then :
4645
4646 else
4647 ac_cv_header_stdc=no
4648 fi
4649 rm -f conftest*
4650
4651 fi
4652
4653 if test $ac_cv_header_stdc = yes; then
4654 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4655 if test "$cross_compiling" = yes; then :
4656 :
4657 else
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <ctype.h>
4661 #include <stdlib.h>
4662 #if ((' ' & 0x0FF) == 0x020)
4663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4665 #else
4666 # define ISLOWER(c) \
4667 (('a' <= (c) && (c) <= 'i') \
4668 || ('j' <= (c) && (c) <= 'r') \
4669 || ('s' <= (c) && (c) <= 'z'))
4670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4671 #endif
4672
4673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4674 int
4675 main ()
4676 {
4677 int i;
4678 for (i = 0; i < 256; i++)
4679 if (XOR (islower (i), ISLOWER (i))
4680 || toupper (i) != TOUPPER (i))
4681 return 2;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_run "$LINENO"; then :
4686
4687 else
4688 ac_cv_header_stdc=no
4689 fi
4690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4691 conftest.$ac_objext conftest.beam conftest.$ac_ext
4692 fi
4693
4694 fi
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4697 $as_echo "$ac_cv_header_stdc" >&6; }
4698 if test $ac_cv_header_stdc = yes; then
4699
4700 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4701
4702 fi
4703
4704 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4705 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4706 inttypes.h stdint.h unistd.h
4707 do :
4708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4709 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4710 "
4711 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4712 cat >>confdefs.h <<_ACEOF
4713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4714 _ACEOF
4715
4716 fi
4717
4718 done
4719
4720
4721
4722 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4723 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4724 MINIX=yes
4725 else
4726 MINIX=
4727 fi
4728
4729
4730 if test "$MINIX" = yes; then
4731
4732 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4733
4734
4735 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4736
4737
4738 $as_echo "#define _MINIX 1" >>confdefs.h
4739
4740 fi
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4744 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750
4751 # define __EXTENSIONS__ 1
4752 $ac_includes_default
4753 int
4754 main ()
4755 {
4756
4757 ;
4758 return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_safe_to_define___extensions__=yes
4763 else
4764 ac_cv_safe_to_define___extensions__=no
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4769 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4770 test $ac_cv_safe_to_define___extensions__ = yes &&
4771 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4772
4773 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4774
4775 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4776
4777 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4778
4779 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4780
4781
4782
4783 ### Use -Wno-pointer-sign if the compiler supports it
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4785 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4786 SAVE_CFLAGS="$CFLAGS"
4787 CFLAGS="$CFLAGS -Wno-pointer-sign"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 has_option=yes
4801 else
4802 has_option=no
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 if test $has_option = yes; then
4806 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4809 $as_echo "$has_option" >&6; }
4810 CFLAGS="$SAVE_CFLAGS"
4811 unset has_option
4812 unset SAVE_CFLAGS
4813
4814 ### Use -Wdeclaration-after-statement if the compiler supports it
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4816 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4817 SAVE_CFLAGS="$CFLAGS"
4818 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main ()
4824 {
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 has_option=yes
4832 else
4833 has_option=no
4834 fi
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 if test $has_option = yes; then
4837 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4840 $as_echo "$has_option" >&6; }
4841 CFLAGS="$SAVE_CFLAGS"
4842 unset has_option
4843 unset SAVE_CFLAGS
4844
4845 ### Use -Wold-style-definition if the compiler supports it
4846 # This can be removed when conversion to standard C is finished.
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4848 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4849 SAVE_CFLAGS="$CFLAGS"
4850 CFLAGS="$CFLAGS -Wold-style-definition"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853
4854 int
4855 main ()
4856 {
4857
4858 ;
4859 return 0;
4860 }
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 has_option=yes
4864 else
4865 has_option=no
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 if test $has_option = yes; then
4869 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4872 $as_echo "$has_option" >&6; }
4873 CFLAGS="$SAVE_CFLAGS"
4874 unset has_option
4875 unset SAVE_CFLAGS
4876
4877 ### Use -Wimplicit-function-declaration if the compiler supports it
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4879 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4880 SAVE_CFLAGS="$CFLAGS"
4881 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884
4885 int
4886 main ()
4887 {
4888
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 has_option=yes
4895 else
4896 has_option=no
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 if test $has_option = yes; then
4900 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4903 $as_echo "$has_option" >&6; }
4904 CFLAGS="$SAVE_CFLAGS"
4905 unset has_option
4906 unset SAVE_CFLAGS
4907
4908
4909
4910
4911 #### Some other nice autoconf tests.
4912
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4919 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4920 # On Suns, sometimes $CPP names a directory.
4921 if test -n "$CPP" && test -d "$CPP"; then
4922 CPP=
4923 fi
4924 if test -z "$CPP"; then
4925 if test "${ac_cv_prog_CPP+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 # Double quotes because CPP needs to be expanded
4929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4930 do
4931 ac_preproc_ok=false
4932 for ac_c_preproc_warn_flag in '' yes
4933 do
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #ifdef __STDC__
4943 # include <limits.h>
4944 #else
4945 # include <assert.h>
4946 #endif
4947 Syntax error
4948 _ACEOF
4949 if ac_fn_c_try_cpp "$LINENO"; then :
4950
4951 else
4952 # Broken: fails on valid input.
4953 continue
4954 fi
4955 rm -f conftest.err conftest.i conftest.$ac_ext
4956
4957 # OK, works on sane cases. Now check whether nonexistent headers
4958 # can be detected and how.
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <ac_nonexistent.h>
4962 _ACEOF
4963 if ac_fn_c_try_cpp "$LINENO"; then :
4964 # Broken: success on invalid input.
4965 continue
4966 else
4967 # Passes both tests.
4968 ac_preproc_ok=:
4969 break
4970 fi
4971 rm -f conftest.err conftest.i conftest.$ac_ext
4972
4973 done
4974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4975 rm -f conftest.i conftest.err conftest.$ac_ext
4976 if $ac_preproc_ok; then :
4977 break
4978 fi
4979
4980 done
4981 ac_cv_prog_CPP=$CPP
4982
4983 fi
4984 CPP=$ac_cv_prog_CPP
4985 else
4986 ac_cv_prog_CPP=$CPP
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4989 $as_echo "$CPP" >&6; }
4990 ac_preproc_ok=false
4991 for ac_c_preproc_warn_flag in '' yes
4992 do
4993 # Use a header file that comes with gcc, so configuring glibc
4994 # with a fresh cross-compiler works.
4995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 # <limits.h> exists even on freestanding compilers.
4997 # On the NeXT, cc -E runs the code through the compiler's parser,
4998 # not just through cpp. "Syntax error" is here to catch this case.
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 #ifdef __STDC__
5002 # include <limits.h>
5003 #else
5004 # include <assert.h>
5005 #endif
5006 Syntax error
5007 _ACEOF
5008 if ac_fn_c_try_cpp "$LINENO"; then :
5009
5010 else
5011 # Broken: fails on valid input.
5012 continue
5013 fi
5014 rm -f conftest.err conftest.i conftest.$ac_ext
5015
5016 # OK, works on sane cases. Now check whether nonexistent headers
5017 # can be detected and how.
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #include <ac_nonexistent.h>
5021 _ACEOF
5022 if ac_fn_c_try_cpp "$LINENO"; then :
5023 # Broken: success on invalid input.
5024 continue
5025 else
5026 # Passes both tests.
5027 ac_preproc_ok=:
5028 break
5029 fi
5030 rm -f conftest.err conftest.i conftest.$ac_ext
5031
5032 done
5033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034 rm -f conftest.i conftest.err conftest.$ac_ext
5035 if $ac_preproc_ok; then :
5036
5037 else
5038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5040 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5041 See \`config.log' for more details" "$LINENO" 5; }
5042 fi
5043
5044 ac_ext=c
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 2766
5050 # Find a good install program. We prefer a C program (faster), 2767 # Find a good install program. We prefer a C program (faster),
5051 # so one script is as good as another. But avoid the broken or 2768 # so one script is as good as another. But avoid the broken or
5052 # incompatible versions: 2769 # incompatible versions:
5053 # SysV /etc/install, /usr/sbin/install 2770 # SysV /etc/install, /usr/sbin/install
5062 # ./install, which can be erroneously created by make from ./install.sh. 2779 # ./install, which can be erroneously created by make from ./install.sh.
5063 # Reject install programs that cannot install multiple files. 2780 # Reject install programs that cannot install multiple files.
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5065 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2782 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5066 if test -z "$INSTALL"; then 2783 if test -z "$INSTALL"; then
5067 if test "${ac_cv_path_install+set}" = set; then : 2784 if ${ac_cv_path_install+:} false; then :
5068 $as_echo_n "(cached) " >&6 2785 $as_echo_n "(cached) " >&6
5069 else 2786 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH 2788 for as_dir in $PATH
5072 do 2789 do
5138 2855
5139 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5140 2857
5141 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5142 2859
5143 if test "x$RANLIB" = x; then 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2861 $as_echo_n "checking whether build environment is sane... " >&6; }
2862 # Just in case
2863 sleep 1
2864 echo timestamp > conftest.file
2865 # Reject unsafe characters in $srcdir or the absolute working directory
2866 # name. Accept space and tab only in the latter.
2867 am_lf='
2868 '
2869 case `pwd` in
2870 *[\\\"\#\$\&\'\`$am_lf]*)
2871 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2872 esac
2873 case $srcdir in
2874 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2875 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2876 esac
2877
2878 # Do `set' in a subshell so we don't clobber the current shell's
2879 # arguments. Must try -L first in case configure is actually a
2880 # symlink; some systems play weird games with the mod time of symlinks
2881 # (eg FreeBSD returns the mod time of the symlink's containing
2882 # directory).
2883 if (
2884 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2885 if test "$*" = "X"; then
2886 # -L didn't work.
2887 set X `ls -t "$srcdir/configure" conftest.file`
2888 fi
2889 rm -f conftest.file
2890 if test "$*" != "X $srcdir/configure conftest.file" \
2891 && test "$*" != "X conftest.file $srcdir/configure"; then
2892
2893 # If neither matched, then we have a broken ls. This can happen
2894 # if, for instance, CONFIG_SHELL is bash and it inherits a
2895 # broken ls alias from the environment. This has actually
2896 # happened. Such a system could not be considered "sane".
2897 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2898 alias in your environment" "$LINENO" 5
2899 fi
2900
2901 test "$2" = conftest.file
2902 )
2903 then
2904 # Ok.
2905 :
2906 else
2907 as_fn_error $? "newly created file is older than distributed files!
2908 Check your system clock" "$LINENO" 5
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912 test "$program_prefix" != NONE &&
2913 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2914 # Use a double $ so make ignores it.
2915 test "$program_suffix" != NONE &&
2916 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2917 # Double any \ or $.
2918 # By default was `s,x,x', remove it if useless.
2919 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2920 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2921
2922 # expand $ac_aux_dir to an absolute path
2923 am_aux_dir=`cd $ac_aux_dir && pwd`
2924
2925 if test x"${MISSING+set}" != xset; then
2926 case $am_aux_dir in
2927 *\ * | *\ *)
2928 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2929 *)
2930 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2931 esac
2932 fi
2933 # Use eval to expand $SHELL
2934 if eval "$MISSING --run true"; then
2935 am_missing_run="$MISSING --run "
2936 else
2937 am_missing_run=
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2939 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2940 fi
2941
2942 if test x"${install_sh}" != xset; then
2943 case $am_aux_dir in
2944 *\ * | *\ *)
2945 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2946 *)
2947 install_sh="\${SHELL} $am_aux_dir/install-sh"
2948 esac
2949 fi
2950
2951 # Installed binaries are usually stripped using `strip' when the user
2952 # run `make install-strip'. However `strip' might not be the right
2953 # tool to use in cross-compilation environments, therefore Automake
2954 # will honor the `STRIP' environment variable to overrule this program.
2955 if test "$cross_compiling" != no; then
5144 if test -n "$ac_tool_prefix"; then 2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}strip; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_STRIP+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 if test -n "$STRIP"; then
2965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 STRIP=$ac_cv_prog_STRIP
2985 if test -n "$STRIP"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2987 $as_echo "$STRIP" >&6; }
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994 fi
2995 if test -z "$ac_cv_prog_STRIP"; then
2996 ac_ct_STRIP=$STRIP
2997 # Extract the first word of "strip", so it can be a program name with args.
2998 set dummy strip; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if test -n "$ac_ct_STRIP"; then
3005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_STRIP="strip"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018 done
3019 done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3025 if test -n "$ac_ct_STRIP"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3027 $as_echo "$ac_ct_STRIP" >&6; }
3028 else
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3031 fi
3032
3033 if test "x$ac_ct_STRIP" = x; then
3034 STRIP=":"
3035 else
3036 case $cross_compiling:$ac_tool_warned in
3037 yes:)
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040 ac_tool_warned=yes ;;
3041 esac
3042 STRIP=$ac_ct_STRIP
3043 fi
3044 else
3045 STRIP="$ac_cv_prog_STRIP"
3046 fi
3047
3048 fi
3049 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3050
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3052 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3053 if test -z "$MKDIR_P"; then
3054 if ${ac_cv_path_mkdir+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_prog in mkdir gmkdir; do
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3065 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3066 'mkdir (GNU coreutils) '* | \
3067 'mkdir (coreutils) '* | \
3068 'mkdir (fileutils) '4.1*)
3069 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3070 break 3;;
3071 esac
3072 done
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078
3079 test -d ./--version && rmdir ./--version
3080 if test "${ac_cv_path_mkdir+set}" = set; then
3081 MKDIR_P="$ac_cv_path_mkdir -p"
3082 else
3083 # As a last resort, use the slow shell script. Don't cache a
3084 # value for MKDIR_P within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the value is a relative name.
3087 MKDIR_P="$ac_install_sh -d"
3088 fi
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3091 $as_echo "$MKDIR_P" >&6; }
3092
3093
3094 mkdir_p="$MKDIR_P"
3095 case $mkdir_p in
3096 [\\/$]* | ?:[\\/]*) ;;
3097 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3098 esac
3099
3100 for ac_prog in gawk mawk nawk awk
3101 do
3102 # Extract the first word of "$ac_prog", so it can be a program name with args.
3103 set dummy $ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_AWK+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$AWK"; then
3110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_AWK="$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 AWK=$ac_cv_prog_AWK
3130 if test -n "$AWK"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132 $as_echo "$AWK" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139 test -n "$AWK" && break
3140 done
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144 set x ${MAKE-make}
3145 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 cat >conftest.make <<\_ACEOF
3150 SHELL = /bin/sh
3151 all:
3152 @echo '@@@%%%=$(MAKE)=@@@%%%'
3153 _ACEOF
3154 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3155 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3156 *@@@%%%=?*=@@@%%%*)
3157 eval ac_cv_prog_make_${ac_make}_set=yes;;
3158 *)
3159 eval ac_cv_prog_make_${ac_make}_set=no;;
3160 esac
3161 rm -f conftest.make
3162 fi
3163 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3166 SET_MAKE=
3167 else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 SET_MAKE="MAKE=${MAKE-make}"
3171 fi
3172
3173 rm -rf .tst 2>/dev/null
3174 mkdir .tst 2>/dev/null
3175 if test -d .tst; then
3176 am__leading_dot=.
3177 else
3178 am__leading_dot=_
3179 fi
3180 rmdir .tst 2>/dev/null
3181
3182 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184 # is not polluted with repeated "-I."
3185 am__isrc=' -I$(srcdir)'
3186 # test to see if srcdir already configured
3187 if test -f $srcdir/config.status; then
3188 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3189 fi
3190 fi
3191
3192 # test whether we have cygpath
3193 if test -z "$CYGPATH_W"; then
3194 if (cygpath --version) >/dev/null 2>/dev/null; then
3195 CYGPATH_W='cygpath -w'
3196 else
3197 CYGPATH_W=echo
3198 fi
3199 fi
3200
3201
3202 # Define the identity of the package.
3203 PACKAGE='emacs'
3204 VERSION='24.0.50'
3205
3206
3207 cat >>confdefs.h <<_ACEOF
3208 #define PACKAGE "$PACKAGE"
3209 _ACEOF
3210
3211
3212 cat >>confdefs.h <<_ACEOF
3213 #define VERSION "$VERSION"
3214 _ACEOF
3215
3216 # Some tools Automake needs.
3217
3218 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3219
3220
3221 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3222
3223
3224 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3225
3226
3227 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3228
3229
3230 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3231
3232 # We need awk for the "check" target. The system "awk" is bad on
3233 # some platforms.
3234 # Always define AMTAR for backward compatibility.
3235
3236 AMTAR=${AMTAR-"${am_missing_run}tar"}
3237
3238 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3239
3240
3241
3242
3243
3244
3245
3246
3247 lispdir='${datadir}/emacs/${version}/lisp'
3248 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3249 '${datadir}/emacs/site-lisp'
3250 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3251 etcdir='${datadir}/emacs/${version}/etc'
3252 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3253 docdir='${datadir}/emacs/${version}/etc'
3254 gamedir='${localstatedir}/games/emacs'
3255
3256
3257
3258
3259 # Check whether --with-pop was given.
3260 if test "${with_pop+set}" = set; then :
3261 withval=$with_pop;
3262 else
3263 with_pop=yes
3264 fi
3265
3266 if test "$with_pop" = yes; then
3267 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3268
3269 fi
3270
3271
3272 # Check whether --with-kerberos was given.
3273 if test "${with_kerberos+set}" = set; then :
3274 withval=$with_kerberos;
3275 else
3276 with_kerberos=no
3277 fi
3278
3279 if test "$with_kerberos" != no; then
3280 $as_echo "#define KERBEROS 1" >>confdefs.h
3281
3282 fi
3283
3284
3285 # Check whether --with-kerberos5 was given.
3286 if test "${with_kerberos5+set}" = set; then :
3287 withval=$with_kerberos5;
3288 else
3289 with_kerberos5=no
3290 fi
3291
3292 if test "${with_kerberos5}" != no; then
3293 if test "${with_kerberos}" = no; then
3294 with_kerberos=yes
3295 $as_echo "#define KERBEROS 1" >>confdefs.h
3296
3297 fi
3298
3299 $as_echo "#define KERBEROS5 1" >>confdefs.h
3300
3301 fi
3302
3303
3304 # Check whether --with-hesiod was given.
3305 if test "${with_hesiod+set}" = set; then :
3306 withval=$with_hesiod;
3307 else
3308 with_hesiod=no
3309 fi
3310
3311 if test "$with_hesiod" != no; then
3312
3313 $as_echo "#define HESIOD 1" >>confdefs.h
3314
3315 fi
3316
3317
3318 # Check whether --with-mmdf was given.
3319 if test "${with_mmdf+set}" = set; then :
3320 withval=$with_mmdf;
3321 else
3322 with_mmdf=no
3323 fi
3324
3325 if test "$with_mmdf" != no; then
3326
3327 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3328
3329 fi
3330
3331
3332 # Check whether --with-mail-unlink was given.
3333 if test "${with_mail_unlink+set}" = set; then :
3334 withval=$with_mail_unlink;
3335 else
3336 with_mail_unlink=no
3337 fi
3338
3339 if test "$with_mail_unlink" != no; then
3340
3341 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3342
3343 fi
3344
3345
3346 # Check whether --with-mailhost was given.
3347 if test "${with_mailhost+set}" = set; then :
3348 withval=$with_mailhost;
3349 cat >>confdefs.h <<_ACEOF
3350 #define MAILHOST "$withval"
3351 _ACEOF
3352
3353 fi
3354
3355
3356
3357 # Check whether --with-sound was given.
3358 if test "${with_sound+set}" = set; then :
3359 withval=$with_sound;
3360 else
3361 with_sound=yes
3362 fi
3363
3364
3365
3366 # Check whether --with-sync-input was given.
3367 if test "${with_sync_input+set}" = set; then :
3368 withval=$with_sync_input;
3369 else
3370 with_sync_input=yes
3371 fi
3372
3373 if test "$with_sync_input" = yes; then
3374
3375 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3376
3377 fi
3378
3379
3380 # Check whether --with-x-toolkit was given.
3381 if test "${with_x_toolkit+set}" = set; then :
3382 withval=$with_x_toolkit; case "${withval}" in
3383 y | ye | yes ) val=gtk ;;
3384 n | no ) val=no ;;
3385 l | lu | luc | luci | lucid ) val=lucid ;;
3386 a | at | ath | athe | athen | athena ) val=athena ;;
3387 m | mo | mot | moti | motif ) val=motif ;;
3388 g | gt | gtk ) val=gtk ;;
3389 gtk3 ) val=gtk3 ;;
3390 * )
3391 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3392 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3393 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3394 ;;
3395 esac
3396 with_x_toolkit=$val
3397
3398 fi
3399
3400
3401
3402 # Check whether --with-xpm was given.
3403 if test "${with_xpm+set}" = set; then :
3404 withval=$with_xpm;
3405 else
3406 with_xpm=yes
3407 fi
3408
3409
3410 # Check whether --with-jpeg was given.
3411 if test "${with_jpeg+set}" = set; then :
3412 withval=$with_jpeg;
3413 else
3414 with_jpeg=yes
3415 fi
3416
3417
3418 # Check whether --with-tiff was given.
3419 if test "${with_tiff+set}" = set; then :
3420 withval=$with_tiff;
3421 else
3422 with_tiff=yes
3423 fi
3424
3425
3426 # Check whether --with-gif was given.
3427 if test "${with_gif+set}" = set; then :
3428 withval=$with_gif;
3429 else
3430 with_gif=yes
3431 fi
3432
3433
3434 # Check whether --with-png was given.
3435 if test "${with_png+set}" = set; then :
3436 withval=$with_png;
3437 else
3438 with_png=yes
3439 fi
3440
3441
3442 # Check whether --with-rsvg was given.
3443 if test "${with_rsvg+set}" = set; then :
3444 withval=$with_rsvg;
3445 else
3446 with_rsvg=yes
3447 fi
3448
3449
3450 # Check whether --with-xml2 was given.
3451 if test "${with_xml2+set}" = set; then :
3452 withval=$with_xml2;
3453 else
3454 with_xml2=yes
3455 fi
3456
3457
3458 # Check whether --with-imagemagick was given.
3459 if test "${with_imagemagick+set}" = set; then :
3460 withval=$with_imagemagick;
3461 else
3462 with_imagemagick=yes
3463 fi
3464
3465
3466
3467 # Check whether --with-xft was given.
3468 if test "${with_xft+set}" = set; then :
3469 withval=$with_xft;
3470 else
3471 with_xft=yes
3472 fi
3473
3474
3475 # Check whether --with-libotf was given.
3476 if test "${with_libotf+set}" = set; then :
3477 withval=$with_libotf;
3478 else
3479 with_libotf=yes
3480 fi
3481
3482
3483 # Check whether --with-m17n-flt was given.
3484 if test "${with_m17n_flt+set}" = set; then :
3485 withval=$with_m17n_flt;
3486 else
3487 with_m17n_flt=yes
3488 fi
3489
3490
3491
3492 # Check whether --with-toolkit-scroll-bars was given.
3493 if test "${with_toolkit_scroll_bars+set}" = set; then :
3494 withval=$with_toolkit_scroll_bars;
3495 else
3496 with_toolkit_scroll_bars=yes
3497 fi
3498
3499
3500 # Check whether --with-xaw3d was given.
3501 if test "${with_xaw3d+set}" = set; then :
3502 withval=$with_xaw3d;
3503 else
3504 with_xaw3d=yes
3505 fi
3506
3507
3508 # Check whether --with-xim was given.
3509 if test "${with_xim+set}" = set; then :
3510 withval=$with_xim;
3511 else
3512 with_xim=yes
3513 fi
3514
3515
3516 # Check whether --with-ns was given.
3517 if test "${with_ns+set}" = set; then :
3518 withval=$with_ns;
3519 else
3520 with_ns=no
3521 fi
3522
3523
3524
3525 # Check whether --with-gpm was given.
3526 if test "${with_gpm+set}" = set; then :
3527 withval=$with_gpm;
3528 else
3529 with_gpm=yes
3530 fi
3531
3532
3533 # Check whether --with-dbus was given.
3534 if test "${with_dbus+set}" = set; then :
3535 withval=$with_dbus;
3536 else
3537 with_dbus=yes
3538 fi
3539
3540
3541 # Check whether --with-gconf was given.
3542 if test "${with_gconf+set}" = set; then :
3543 withval=$with_gconf;
3544 else
3545 with_gconf=yes
3546 fi
3547
3548
3549 # Check whether --with-selinux was given.
3550 if test "${with_selinux+set}" = set; then :
3551 withval=$with_selinux;
3552 else
3553 with_selinux=yes
3554 fi
3555
3556
3557 # Check whether --with-gnutls was given.
3558 if test "${with_gnutls+set}" = set; then :
3559 withval=$with_gnutls;
3560 else
3561 with_gnutls=yes
3562 fi
3563
3564
3565 ## For the times when you want to build Emacs but don't have
3566 ## a suitable makeinfo, and can live without the manuals.
3567
3568 # Check whether --with-makeinfo was given.
3569 if test "${with_makeinfo+set}" = set; then :
3570 withval=$with_makeinfo;
3571 else
3572 with_makeinfo=yes
3573 fi
3574
3575
3576 ## This is an option because I do not know if all info/man support
3577 ## compressed files, nor how to test if they do so.
3578
3579 # Check whether --with-compress-info was given.
3580 if test "${with_compress_info+set}" = set; then :
3581 withval=$with_compress_info;
3582 else
3583 with_compress_info=yes
3584 fi
3585
3586 if test $with_compress_info = yes; then
3587 GZIP_INFO=yes
3588 else
3589 GZIP_INFO=
3590 fi
3591
3592
3593
3594 # Check whether --with-pkg-config-prog was given.
3595 if test "${with_pkg_config_prog+set}" = set; then :
3596 withval=$with_pkg_config_prog;
3597 fi
3598
3599 if test "X${with_pkg_config_prog}" != X; then
3600 if test "${with_pkg_config_prog}" != yes; then
3601 PKG_CONFIG="${with_pkg_config_prog}"
3602 fi
3603 fi
3604
3605 CRT_DIR=
3606
3607 # Check whether --with-crt-dir was given.
3608 if test "${with_crt_dir+set}" = set; then :
3609 withval=$with_crt_dir;
3610 fi
3611
3612 CRT_DIR="${with_crt_dir}"
3613
3614
3615 # Check whether --with-gameuser was given.
3616 if test "${with_gameuser+set}" = set; then :
3617 withval=$with_gameuser;
3618 fi
3619
3620 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3621 && gameuser="${with_gameuser}"
3622 test "X$gameuser" = X && gameuser=games
3623
3624
3625 # Check whether --with-gnustep-conf was given.
3626 if test "${with_gnustep_conf+set}" = set; then :
3627 withval=$with_gnustep_conf;
3628 fi
3629
3630 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3631 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3632 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3633 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3634
3635 # Check whether --enable-ns-self-contained was given.
3636 if test "${enable_ns_self_contained+set}" = set; then :
3637 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3638 else
3639 EN_NS_SELF_CONTAINED=yes
3640 fi
3641
3642
3643 # Check whether --enable-asserts was given.
3644 if test "${enable_asserts+set}" = set; then :
3645 enableval=$enable_asserts; USE_XASSERTS=$enableval
3646 else
3647 USE_XASSERTS=no
3648 fi
3649
3650
3651 # Check whether --enable-maintainer-mode was given.
3652 if test "${enable_maintainer_mode+set}" = set; then :
3653 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3654 else
3655 USE_MAINTAINER_MODE=no
3656 fi
3657
3658 if test $USE_MAINTAINER_MODE = yes; then
3659 MAINT=
3660 else
3661 MAINT=#
3662 fi
3663
3664
3665 # Check whether --enable-locallisppath was given.
3666 if test "${enable_locallisppath+set}" = set; then :
3667 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3668 locallisppath=
3669 elif test "${enableval}" != "yes"; then
3670 locallisppath=${enableval}
3671 fi
3672 fi
3673
3674
3675 # Check whether --enable-checking was given.
3676 if test "${enable_checking+set}" = set; then :
3677 enableval=$enable_checking; ac_checking_flags="${enableval}"
3678 fi
3679
3680 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3681 for check in $ac_checking_flags
3682 do
3683 case $check in
3684 # these set all the flags to specific states
3685 yes) ac_enable_checking=1 ;;
3686 no) ac_enable_checking= ;
3687 ac_gc_check_stringbytes= ;
3688 ac_gc_check_string_overrun= ;
3689 ac_gc_check_string_free_list= ;
3690 ac_xmalloc_overrun= ;
3691 ac_gc_check_cons_list= ;;
3692 all) ac_enable_checking=1 ;
3693 ac_gc_check_stringbytes=1 ;
3694 ac_gc_check_string_overrun=1 ;
3695 ac_gc_check_string_free_list=1 ;
3696 ac_xmalloc_overrun=1 ;
3697 ac_gc_check_cons_list=1 ;;
3698 # these enable particular checks
3699 stringbytes) ac_gc_check_stringbytes=1 ;;
3700 stringoverrun) ac_gc_check_string_overrun=1 ;;
3701 stringfreelist) ac_gc_check_string_free_list=1 ;;
3702 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3703 conslist) ac_gc_check_cons_list=1 ;;
3704 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3705 esac
3706 done
3707 IFS="$ac_save_IFS"
3708
3709 if test x$ac_enable_checking != x ; then
3710
3711 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3712
3713 fi
3714 if test x$ac_gc_check_stringbytes != x ; then
3715
3716 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3717
3718 fi
3719 if test x$ac_gc_check_stringoverrun != x ; then
3720
3721 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3722
3723 fi
3724 if test x$ac_gc_check_string_free_list != x ; then
3725
3726 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3727
3728 fi
3729 if test x$ac_xmalloc_overrun != x ; then
3730
3731 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3732
3733 fi
3734 if test x$ac_gc_check_cons_list != x ; then
3735
3736 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3737
3738 fi
3739
3740 # Check whether --enable-use-lisp-union-type was given.
3741 if test "${enable_use_lisp_union_type+set}" = set; then :
3742 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3743
3744 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3745
3746 fi
3747 fi
3748
3749
3750
3751 # Check whether --enable-profiling was given.
3752 if test "${enable_profiling+set}" = set; then :
3753 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3754 fi
3755
3756 if test x$ac_enable_profiling != x ; then
3757 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3758 else
3759 PROFILING_CFLAGS=
3760 fi
3761
3762
3763 # Check whether --enable-autodepend was given.
3764 if test "${enable_autodepend+set}" = set; then :
3765 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3766 else
3767 ac_enable_autodepend=yes
3768 fi
3769
3770
3771 #### Make srcdir absolute, if it isn't already. It's important to
3772 #### avoid running the path through pwd unnecessarily, since pwd can
3773 #### give you automounter prefixes, which can go away. We do all this
3774 #### so Emacs can find its files when run uninstalled.
3775 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3776 unset CDPATH
3777 case "${srcdir}" in
3778 /* ) ;;
3779 . )
3780 ## We may be able to use the $PWD environment variable to make this
3781 ## absolute. But sometimes PWD is inaccurate.
3782 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3783 ## but that tested only for a well-formed and valid PWD,
3784 ## it did not object when PWD was well-formed and valid but just wrong.
3785 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3786 then
3787 srcdir="$PWD"
3788 else
3789 srcdir="`(cd ${srcdir}; pwd)`"
3790 fi
3791 ;;
3792 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3793 esac
3794
3795 #### Check if the source directory already has a configured system in it.
3796 if test `pwd` != `(cd ${srcdir} && pwd)` \
3797 && test -f "${srcdir}/src/config.h" ; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3799 as a build directory right now; it has been configured in its own
3800 right. To configure in another directory as well, you MUST
3801 use GNU make. If you do not have GNU make, then you must
3802 now do \`make distclean' in ${srcdir},
3803 and then run $0 again." >&5
3804 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3805 as a build directory right now; it has been configured in its own
3806 right. To configure in another directory as well, you MUST
3807 use GNU make. If you do not have GNU make, then you must
3808 now do \`make distclean' in ${srcdir},
3809 and then run $0 again." >&2;}
3810 fi
3811
3812 #### Given the configuration name, set machfile and opsysfile to the
3813 #### names of the m/*.h and s/*.h files we should use.
3814
3815 ### Canonicalize the configuration name.
3816
3817 # Make sure we can run config.sub.
3818 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3819 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3822 $as_echo_n "checking build system type... " >&6; }
3823 if ${ac_cv_build+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 ac_build_alias=$build_alias
3827 test "x$ac_build_alias" = x &&
3828 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3829 test "x$ac_build_alias" = x &&
3830 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3831 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3833
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3836 $as_echo "$ac_cv_build" >&6; }
3837 case $ac_cv_build in
3838 *-*-*) ;;
3839 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3840 esac
3841 build=$ac_cv_build
3842 ac_save_IFS=$IFS; IFS='-'
3843 set x $ac_cv_build
3844 shift
3845 build_cpu=$1
3846 build_vendor=$2
3847 shift; shift
3848 # Remember, the first character of IFS is used to create $*,
3849 # except with old shells:
3850 build_os=$*
3851 IFS=$ac_save_IFS
3852 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3853
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3856 $as_echo_n "checking host system type... " >&6; }
3857 if ${ac_cv_host+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test "x$host_alias" = x; then
3861 ac_cv_host=$ac_cv_build
3862 else
3863 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3864 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3865 fi
3866
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3869 $as_echo "$ac_cv_host" >&6; }
3870 case $ac_cv_host in
3871 *-*-*) ;;
3872 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3873 esac
3874 host=$ac_cv_host
3875 ac_save_IFS=$IFS; IFS='-'
3876 set x $ac_cv_host
3877 shift
3878 host_cpu=$1
3879 host_vendor=$2
3880 shift; shift
3881 # Remember, the first character of IFS is used to create $*,
3882 # except with old shells:
3883 host_os=$*
3884 IFS=$ac_save_IFS
3885 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3886
3887
3888 canonical=$host
3889 configuration=${host_alias-${build_alias-$host}}
3890
3891
3892
3893 ### If you add support for a new configuration, add code to this
3894 ### switch statement to recognize your configuration name and select
3895 ### the appropriate operating system and machine description files.
3896
3897 ### You would hope that you could choose an m/*.h file pretty much
3898 ### based on the machine portion of the configuration name, and an s/*.h
3899 ### file based on the operating system portion. However, it turns out
3900 ### that each m/*.h file is pretty manufacturer-specific - for
3901 ### example mips.h is MIPS
3902 ### So we basically have to have a special case for each
3903 ### configuration name.
3904 ###
3905 ### As far as handling version numbers on operating systems is
3906 ### concerned, make sure things will fail in a fixable way. If
3907 ### /etc/MACHINES doesn't say anything about version numbers, be
3908 ### prepared to handle anything reasonably. If version numbers
3909 ### matter, be sure /etc/MACHINES says something about it.
3910
3911 machine='' opsys='' unported=no
3912 case "${canonical}" in
3913
3914 ## GNU/Linux ports
3915 *-*-linux-gnu*)
3916 opsys=gnu-linux
3917 case ${canonical} in
3918 alpha*) machine=alpha ;;
3919 s390-*) machine=ibms390 ;;
3920 s390x-*) machine=ibms390x ;;
3921 powerpc*) machine=macppc ;;
3922 sparc*) machine=sparc ;;
3923 ia64*) machine=ia64 ;;
3924 m68k*) machine=m68k ;;
3925 x86_64*) machine=amdx86-64 ;;
3926 esac
3927 ;;
3928
3929 ## FreeBSD ports
3930 *-*-freebsd* )
3931 opsys=freebsd
3932 case "${canonical}" in
3933 alpha*) machine=alpha ;;
3934 amd64-*|x86_64-*) machine=amdx86-64 ;;
3935 ia64-*) machine=ia64 ;;
3936 i[3456]86-*) machine=intel386 ;;
3937 powerpc-*) machine=macppc ;;
3938 sparc-*) machine=sparc ;;
3939 sparc64-*) machine=sparc ;;
3940 esac
3941 ;;
3942
3943 ## FreeBSD kernel + glibc based userland
3944 *-*-kfreebsd*gnu* )
3945 opsys=gnu-kfreebsd
3946 case "${canonical}" in
3947 alpha*) machine=alpha ;;
3948 amd64-*|x86_64-*) machine=amdx86-64 ;;
3949 ia64-*) machine=ia64 ;;
3950 i[3456]86-*) machine=intel386 ;;
3951 powerpc-*) machine=macppc ;;
3952 sparc-*) machine=sparc ;;
3953 sparc64-*) machine=sparc ;;
3954 esac
3955 ;;
3956
3957 ## NetBSD ports
3958 *-*-netbsd* )
3959 opsys=netbsd
3960 case "${canonical}" in
3961 alpha*) machine=alpha ;;
3962 x86_64-*) machine=amdx86-64 ;;
3963 i[3456]86-*) machine=intel386 ;;
3964 m68k-*) machine=m68k ;;
3965 powerpc-*) machine=macppc ;;
3966 sparc*-) machine=sparc ;;
3967 vax-*) machine=vax ;;
3968 esac
3969 ;;
3970
3971 ## OpenBSD ports
3972 *-*-openbsd* )
3973 opsys=openbsd
3974 case "${canonical}" in
3975 alpha*) machine=alpha ;;
3976 x86_64-*) machine=amdx86-64 ;;
3977 i386-*) machine=intel386 ;;
3978 powerpc-*) machine=macppc ;;
3979 sparc*) machine=sparc ;;
3980 vax-*) machine=vax ;;
3981 esac
3982 ;;
3983
3984 ## Apple Darwin / Mac OS X
3985 *-apple-darwin* )
3986 case "${canonical}" in
3987 i[3456]86-* ) machine=intel386 ;;
3988 powerpc-* ) machine=macppc ;;
3989 x86_64-* ) machine=amdx86-64 ;;
3990 * ) unported=yes ;;
3991 esac
3992 opsys=darwin
3993 # Define CPP as follows to make autoconf work correctly.
3994 CPP="${CC-cc} -E -no-cpp-precomp"
3995 # Use fink packages if available.
3996 if test -d /sw/include && test -d /sw/lib; then
3997 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3998 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3999 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4000 fi
4001 ;;
4002
4003 ## HP 9000 series 700 and 800, running HP/UX
4004 hppa*-hp-hpux10.2* )
4005 opsys=hpux10-20
4006 ;;
4007 hppa*-hp-hpux1[1-9]* )
4008 opsys=hpux11
4009 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4010 ;;
4011
4012 ## IBM machines
4013 rs6000-ibm-aix4.[23]* )
4014 machine=ibmrs6000 opsys=aix4-2
4015 ;;
4016 powerpc-ibm-aix4.[23]* )
4017 machine=ibmrs6000 opsys=aix4-2
4018 ;;
4019 rs6000-ibm-aix[56]* )
4020 machine=ibmrs6000 opsys=aix4-2
4021 ;;
4022 powerpc-ibm-aix[56]* )
4023 machine=ibmrs6000 opsys=aix4-2
4024 ;;
4025
4026 ## Silicon Graphics machines
4027 ## Iris 4D
4028 mips-sgi-irix6.5 )
4029 machine=iris4d opsys=irix6-5
4030 # Without defining _LANGUAGE_C, things get masked out in the headers
4031 # so that, for instance, grepping for `free' in stdlib.h fails and
4032 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4033 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4034 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4035 ;;
4036
4037 ## Suns
4038 *-sun-solaris* \
4039 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4040 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4041 case "${canonical}" in
4042 i[3456]86-*-* ) machine=intel386 ;;
4043 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4044 sparc* ) machine=sparc ;;
4045 * ) unported=yes ;;
4046 esac
4047 case "${canonical}" in
4048 *-sunos5.6* | *-solaris2.6* )
4049 opsys=sol2-6
4050 NON_GNU_CPP=/usr/ccs/lib/cpp
4051 RANLIB="ar -ts"
4052 ;;
4053 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4054 opsys=sol2-6
4055 emacs_check_sunpro_c=yes
4056 NON_GNU_CPP=/usr/ccs/lib/cpp
4057 ;;
4058 *-sunos5* | *-solaris* )
4059 opsys=sol2-10
4060 emacs_check_sunpro_c=yes
4061 NON_GNU_CPP=/usr/ccs/lib/cpp
4062 ;;
4063 esac
4064 ## Watch out for a compiler that we know will not work.
4065 case "${canonical}" in
4066 *-solaris* | *-sunos5* )
4067 if [ "x$CC" = x/usr/ucb/cc ]; then
4068 ## /usr/ucb/cc doesn't work;
4069 ## we should find some other compiler that does work.
4070 unset CC
4071 fi
4072 ;;
4073 *) ;;
4074 esac
4075 ;;
4076
4077 ## Intel 386 machines where we don't care about the manufacturer.
4078 i[3456]86-*-* )
4079 machine=intel386
4080 case "${canonical}" in
4081 *-cygwin ) opsys=cygwin ;;
4082 *-darwin* ) opsys=darwin
4083 CPP="${CC-cc} -E -no-cpp-precomp"
4084 ;;
4085 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4086 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4087 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4088 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4089 esac
4090 ;;
4091
4092 * )
4093 unported=yes
4094 ;;
4095 esac
4096
4097 ### If the code above didn't choose an operating system, just choose
4098 ### an operating system based on the configuration name. You really
4099 ### only want to use this when you have no idea what the right
4100 ### operating system is; if you know what operating systems a machine
4101 ### runs, it's cleaner to make it explicit in the case statement
4102 ### above.
4103 if test x"${opsys}" = x; then
4104 case "${canonical}" in
4105 *-gnu* ) opsys=gnu ;;
4106 * )
4107 unported=yes
4108 ;;
4109 esac
4110 fi
4111
4112
4113
4114 if test $unported = yes; then
4115 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4116 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4117 fi
4118
4119 if test -n "$machine"; then
4120 machfile="m/${machine}.h"
4121 else
4122 machfile=
4123 fi
4124 opsysfile="s/${opsys}.h"
4125
4126
4127 #### Choose a compiler.
4128 test -n "$CC" && cc_specified=yes
4129
4130 # Save the value of CFLAGS that the user specified.
4131 SPECIFIED_CFLAGS="$CFLAGS"
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160 done
4161 done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 CC=$ac_cv_prog_CC
4167 if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176 fi
4177 if test -z "$ac_cv_prog_CC"; then
4178 ac_ct_CC=$CC
4179 # Extract the first word of "gcc", so it can be a program name with args.
4180 set dummy gcc; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$ac_ct_CC"; then
4187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_ac_ct_CC="gcc"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4207 if test -n "$ac_ct_CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4209 $as_echo "$ac_ct_CC" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215 if test "x$ac_ct_CC" = x; then
4216 CC=""
4217 else
4218 case $cross_compiling:$ac_tool_warned in
4219 yes:)
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4222 ac_tool_warned=yes ;;
4223 esac
4224 CC=$ac_ct_CC
4225 fi
4226 else
4227 CC="$ac_cv_prog_CC"
4228 fi
4229
4230 if test -z "$CC"; then
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}cc; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_CC+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_CC="${ac_tool_prefix}cc"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 CC=$ac_cv_prog_CC
4260 if test -n "$CC"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4262 $as_echo "$CC" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268
4269 fi
4270 fi
4271 if test -z "$CC"; then
4272 # Extract the first word of "cc", so it can be a program name with args.
4273 set dummy cc; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_CC+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 else
4282 ac_prog_rejected=no
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4291 ac_prog_rejected=yes
4292 continue
4293 fi
4294 ac_cv_prog_CC="cc"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298 done
4299 done
4300 IFS=$as_save_IFS
4301
4302 if test $ac_prog_rejected = yes; then
4303 # We found a bogon in the path, so make sure we never use it.
4304 set dummy $ac_cv_prog_CC
4305 shift
4306 if test $# != 0; then
4307 # We chose a different compiler from the bogus one.
4308 # However, it has the same basename, so the bogon will be chosen
4309 # first if we set CC to just the basename; use the full file name.
4310 shift
4311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4312 fi
4313 fi
4314 fi
4315 fi
4316 CC=$ac_cv_prog_CC
4317 if test -n "$CC"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319 $as_echo "$CC" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326 fi
4327 if test -z "$CC"; then
4328 if test -n "$ac_tool_prefix"; then
4329 for ac_prog in cl.exe
4330 do
4331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if ${ac_cv_prog_CC+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -n "$CC"; then
4339 ac_cv_prog_CC="$CC" # Let the user override the test.
4340 else
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4343 do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4351 fi
4352 done
4353 done
4354 IFS=$as_save_IFS
4355
4356 fi
4357 fi
4358 CC=$ac_cv_prog_CC
4359 if test -n "$CC"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4361 $as_echo "$CC" >&6; }
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4365 fi
4366
4367
4368 test -n "$CC" && break
4369 done
4370 fi
4371 if test -z "$CC"; then
4372 ac_ct_CC=$CC
4373 for ac_prog in cl.exe
4374 do
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376 set dummy $ac_prog; ac_word=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test -n "$ac_ct_CC"; then
4383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_ac_ct_CC="$ac_prog"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396 done
4397 done
4398 IFS=$as_save_IFS
4399
4400 fi
4401 fi
4402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4403 if test -n "$ac_ct_CC"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4405 $as_echo "$ac_ct_CC" >&6; }
4406 else
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4409 fi
4410
4411
4412 test -n "$ac_ct_CC" && break
4413 done
4414
4415 if test "x$ac_ct_CC" = x; then
4416 CC=""
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419 yes:)
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422 ac_tool_warned=yes ;;
4423 esac
4424 CC=$ac_ct_CC
4425 fi
4426 fi
4427
4428 fi
4429
4430
4431 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error $? "no acceptable C compiler found in \$PATH
4434 See \`config.log' for more details" "$LINENO" 5; }
4435
4436 # Provide some information about the compiler.
4437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4438 set X $ac_compile
4439 ac_compiler=$2
4440 for ac_option in --version -v -V -qversion; do
4441 { { ac_try="$ac_compiler $ac_option >&5"
4442 case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 $as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4449 ac_status=$?
4450 if test -s conftest.err; then
4451 sed '10a\
4452 ... rest of stderr output deleted ...
4453 10q' conftest.err >conftest.er1
4454 cat conftest.er1 >&5
4455 fi
4456 rm -f conftest.er1 conftest.err
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }
4459 done
4460
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463
4464 int
4465 main ()
4466 {
4467
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 ac_clean_files_save=$ac_clean_files
4473 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4474 # Try to create an executable without -o first, disregard a.out.
4475 # It will help us diagnose broken compilers, and finding out an intuition
4476 # of exeext.
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4478 $as_echo_n "checking whether the C compiler works... " >&6; }
4479 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4480
4481 # The possible output files:
4482 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4483
4484 ac_rmfiles=
4485 for ac_file in $ac_files
4486 do
4487 case $ac_file in
4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4490 esac
4491 done
4492 rm -f $ac_rmfiles
4493
4494 if { { ac_try="$ac_link_default"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link_default") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4506 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4507 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4508 # so that the user can short-circuit this test for compilers unknown to
4509 # Autoconf.
4510 for ac_file in $ac_files ''
4511 do
4512 test -f "$ac_file" || continue
4513 case $ac_file in
4514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4515 ;;
4516 [ab].out )
4517 # We found the default executable, but exeext='' is most
4518 # certainly right.
4519 break;;
4520 *.* )
4521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4522 then :; else
4523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 fi
4525 # We set ac_cv_exeext here because the later test for it is not
4526 # safe: cross compilers may not add the suffix if given an `-o'
4527 # argument, so we may need to know it at that point already.
4528 # Even if this section looks crufty: it has the advantage of
4529 # actually working.
4530 break;;
4531 * )
4532 break;;
4533 esac
4534 done
4535 test "$ac_cv_exeext" = no && ac_cv_exeext=
4536
4537 else
4538 ac_file=''
4539 fi
4540 if test -z "$ac_file"; then :
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 $as_echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error 77 "C compiler cannot create executables
4549 See \`config.log' for more details" "$LINENO" 5; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4555 $as_echo_n "checking for C compiler default output file name... " >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4557 $as_echo "$ac_file" >&6; }
4558 ac_exeext=$ac_cv_exeext
4559
4560 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4561 ac_clean_files=$ac_clean_files_save
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4563 $as_echo_n "checking for suffix of executables... " >&6; }
4564 if { { ac_try="$ac_link"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_link") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; then :
4575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4576 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4577 # work properly (i.e., refer to `conftest.exe'), while it won't with
4578 # `rm'.
4579 for ac_file in conftest.exe conftest conftest.*; do
4580 test -f "$ac_file" || continue
4581 case $ac_file in
4582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4583 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4584 break;;
4585 * ) break;;
4586 esac
4587 done
4588 else
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4592 See \`config.log' for more details" "$LINENO" 5; }
4593 fi
4594 rm -f conftest conftest$ac_cv_exeext
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4596 $as_echo "$ac_cv_exeext" >&6; }
4597
4598 rm -f conftest.$ac_ext
4599 EXEEXT=$ac_cv_exeext
4600 ac_exeext=$EXEEXT
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603 #include <stdio.h>
4604 int
4605 main ()
4606 {
4607 FILE *f = fopen ("conftest.out", "w");
4608 return ferror (f) || fclose (f) != 0;
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 ac_clean_files="$ac_clean_files conftest.out"
4615 # Check that the compiler produces executables we can run. If not, either
4616 # the compiler is broken, or we cross compile.
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4618 $as_echo_n "checking whether we are cross compiling... " >&6; }
4619 if test "$cross_compiling" != yes; then
4620 { { ac_try="$ac_link"
4621 case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_link") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }
4631 if { ac_try='./conftest$ac_cv_exeext'
4632 { { case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637 $as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_try") 2>&5
4639 ac_status=$?
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }; }; then
4642 cross_compiling=no
4643 else
4644 if test "$cross_compiling" = maybe; then
4645 cross_compiling=yes
4646 else
4647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4649 as_fn_error $? "cannot run C compiled programs.
4650 If you meant to cross compile, use \`--host'.
4651 See \`config.log' for more details" "$LINENO" 5; }
4652 fi
4653 fi
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4656 $as_echo "$cross_compiling" >&6; }
4657
4658 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4659 ac_clean_files=$ac_clean_files_save
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4661 $as_echo_n "checking for suffix of object files... " >&6; }
4662 if ${ac_cv_objext+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667
4668 int
4669 main ()
4670 {
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.o conftest.obj
4677 if { { ac_try="$ac_compile"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compile") 2>&5
4685 ac_status=$?
4686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }; then :
4688 for ac_file in conftest.o conftest.obj conftest.*; do
4689 test -f "$ac_file" || continue;
4690 case $ac_file in
4691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4693 break;;
4694 esac
4695 done
4696 else
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 as_fn_error $? "cannot compute suffix of object files: cannot compile
4703 See \`config.log' for more details" "$LINENO" 5; }
4704 fi
4705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4708 $as_echo "$ac_cv_objext" >&6; }
4709 OBJEXT=$ac_cv_objext
4710 ac_objext=$OBJEXT
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4713 if ${ac_cv_c_compiler_gnu+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718
4719 int
4720 main ()
4721 {
4722 #ifndef __GNUC__
4723 choke me
4724 #endif
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_compiler_gnu=yes
4732 else
4733 ac_compiler_gnu=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4741 if test $ac_compiler_gnu = yes; then
4742 GCC=yes
4743 else
4744 GCC=
4745 fi
4746 ac_test_CFLAGS=${CFLAGS+set}
4747 ac_save_CFLAGS=$CFLAGS
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4750 if ${ac_cv_prog_cc_g+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 ac_save_c_werror_flag=$ac_c_werror_flag
4754 ac_c_werror_flag=yes
4755 ac_cv_prog_cc_g=no
4756 CFLAGS="-g"
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759
4760 int
4761 main ()
4762 {
4763
4764 ;
4765 return 0;
4766 }
4767 _ACEOF
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_cv_prog_cc_g=yes
4770 else
4771 CFLAGS=""
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774
4775 int
4776 main ()
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784
4785 else
4786 ac_c_werror_flag=$ac_save_c_werror_flag
4787 CFLAGS="-g"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_prog_cc_g=yes
4801 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_c_werror_flag=$ac_save_c_werror_flag
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810 $as_echo "$ac_cv_prog_cc_g" >&6; }
4811 if test "$ac_test_CFLAGS" = set; then
4812 CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4815 CFLAGS="-g -O2"
4816 else
4817 CFLAGS="-g"
4818 fi
4819 else
4820 if test "$GCC" = yes; then
4821 CFLAGS="-O2"
4822 else
4823 CFLAGS=
4824 fi
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4828 if ${ac_cv_prog_cc_c89+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 ac_cv_prog_cc_c89=no
4832 ac_save_CC=$CC
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <stdarg.h>
4836 #include <stdio.h>
4837 #include <sys/types.h>
4838 #include <sys/stat.h>
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4843 char **p;
4844 int i;
4845 {
4846 return p[i];
4847 }
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4849 {
4850 char *s;
4851 va_list v;
4852 va_start (v,p);
4853 s = g (p, va_arg (v,int));
4854 va_end (v);
4855 return s;
4856 }
4857
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
4861 as 'x'. The following induces an error, until -std is added to get
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
4864 that's true only with -std. */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866
4867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4869 #define FOO(x) 'x'
4870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876 int argc;
4877 char **argv;
4878 int
4879 main ()
4880 {
4881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4888 do
4889 CC="$ac_save_CC $ac_arg"
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_c89=$ac_arg
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext
4894 test "x$ac_cv_prog_cc_c89" != "xno" && break
4895 done
4896 rm -f conftest.$ac_ext
4897 CC=$ac_save_CC
4898
4899 fi
4900 # AC_CACHE_VAL
4901 case "x$ac_cv_prog_cc_c89" in
4902 x)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904 $as_echo "none needed" >&6; } ;;
4905 xno)
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4907 $as_echo "unsupported" >&6; } ;;
4908 *)
4909 CC="$CC $ac_cv_prog_cc_c89"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4912 esac
4913 if test "x$ac_cv_prog_cc_c89" != xno; then :
4914
4915 fi
4916
4917 ac_ext=c
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922 DEPDIR="${am__leading_dot}deps"
4923
4924 ac_config_commands="$ac_config_commands depfiles"
4925
4926
4927 am_make=${MAKE-make}
4928 cat > confinc << 'END'
4929 am__doit:
4930 @echo this is the am__doit target
4931 .PHONY: am__doit
4932 END
4933 # If we don't find an include directive, just comment out the code.
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4935 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4936 am__include="#"
4937 am__quote=
4938 _am_result=none
4939 # First try GNU make style include.
4940 echo "include confinc" > confmf
4941 # Ignore all kinds of additional output from `make'.
4942 case `$am_make -s -f confmf 2> /dev/null` in #(
4943 *the\ am__doit\ target*)
4944 am__include=include
4945 am__quote=
4946 _am_result=GNU
4947 ;;
4948 esac
4949 # Now try BSD make style include.
4950 if test "$am__include" = "#"; then
4951 echo '.include "confinc"' > confmf
4952 case `$am_make -s -f confmf 2> /dev/null` in #(
4953 *the\ am__doit\ target*)
4954 am__include=.include
4955 am__quote="\""
4956 _am_result=BSD
4957 ;;
4958 esac
4959 fi
4960
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4963 $as_echo "$_am_result" >&6; }
4964 rm -f confinc confmf
4965
4966 # Check whether --enable-dependency-tracking was given.
4967 if test "${enable_dependency_tracking+set}" = set; then :
4968 enableval=$enable_dependency_tracking;
4969 fi
4970
4971 if test "x$enable_dependency_tracking" != xno; then
4972 am_depcomp="$ac_aux_dir/depcomp"
4973 AMDEPBACKSLASH='\'
4974 fi
4975 if test "x$enable_dependency_tracking" != xno; then
4976 AMDEP_TRUE=
4977 AMDEP_FALSE='#'
4978 else
4979 AMDEP_TRUE='#'
4980 AMDEP_FALSE=
4981 fi
4982
4983
4984
4985 depcc="$CC" am_compiler_list=
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4988 $as_echo_n "checking dependency style of $depcc... " >&6; }
4989 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4993 # We make a subdir and do the tests there. Otherwise we can end up
4994 # making bogus files that we don't know about and never remove. For
4995 # instance it was reported that on HP-UX the gcc test will end up
4996 # making a dummy file named `D' -- because `-MD' means `put the output
4997 # in D'.
4998 mkdir conftest.dir
4999 # Copy depcomp to subdir because otherwise we won't find it if we're
5000 # using a relative directory.
5001 cp "$am_depcomp" conftest.dir
5002 cd conftest.dir
5003 # We will build objects and dependencies in a subdirectory because
5004 # it helps to detect inapplicable dependency modes. For instance
5005 # both Tru64's cc and ICC support -MD to output dependencies as a
5006 # side effect of compilation, but ICC will put the dependencies in
5007 # the current directory while Tru64 will put them in the object
5008 # directory.
5009 mkdir sub
5010
5011 am_cv_CC_dependencies_compiler_type=none
5012 if test "$am_compiler_list" = ""; then
5013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5014 fi
5015 am__universal=false
5016 case " $depcc " in #(
5017 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5018 esac
5019
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5024 #
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5028 : > sub/conftest.c
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5032 # Solaris 8's {/usr,}/bin/sh.
5033 touch sub/conftst$i.h
5034 done
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036
5037 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle `-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5043 case $depmode in
5044 gcc)
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5047 ;;
5048 nosideeffect)
5049 # after this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested
5051 if test "x$enable_dependency_tracking" = xyes; then
5052 continue
5053 else
5054 break
5055 fi
5056 ;;
5057 msvisualcpp | msvcmsys)
5058 # This compiler won't grok `-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5062 am__minus_obj=
5063 ;;
5064 none) break ;;
5065 esac
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type=$depmode
5085 break
5086 fi
5087 fi
5088 done
5089
5090 cd ..
5091 rm -rf conftest.dir
5092 else
5093 am_cv_CC_dependencies_compiler_type=none
5094 fi
5095
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5098 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5099 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5100
5101 if
5102 test "x$enable_dependency_tracking" != xno \
5103 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5104 am__fastdepCC_TRUE=
5105 am__fastdepCC_FALSE='#'
5106 else
5107 am__fastdepCC_TRUE='#'
5108 am__fastdepCC_FALSE=
5109 fi
5110
5111
5112 if test "x$CC" != xcc; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5114 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5117 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5118 fi
5119 set dummy $CC; ac_cc=`$as_echo "$2" |
5120 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5121 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126
5127 int
5128 main ()
5129 {
5130
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 # Make sure it works both with $CC and with simple cc.
5136 # We do the test twice because some compilers refuse to overwrite an
5137 # existing .o file with -o, though they will create one.
5138 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5139 rm -f conftest2.*
5140 if { { case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5145 $as_echo "$ac_try_echo"; } >&5
5146 (eval "$ac_try") 2>&5
5147 ac_status=$?
5148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149 test $ac_status = 0; } &&
5150 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5155 $as_echo "$ac_try_echo"; } >&5
5156 (eval "$ac_try") 2>&5
5157 ac_status=$?
5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5159 test $ac_status = 0; };
5160 then
5161 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5162 if test "x$CC" != xcc; then
5163 # Test first that cc exists at all.
5164 if { ac_try='cc -c conftest.$ac_ext >&5'
5165 { { case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170 $as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_try") 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; }; then
5175 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5176 rm -f conftest2.*
5177 if { { case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180 esac
5181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5182 $as_echo "$ac_try_echo"; } >&5
5183 (eval "$ac_try") 2>&5
5184 ac_status=$?
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; } &&
5187 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5190 esac
5191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5192 $as_echo "$ac_try_echo"; } >&5
5193 (eval "$ac_try") 2>&5
5194 ac_status=$?
5195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5196 test $ac_status = 0; };
5197 then
5198 # cc works too.
5199 :
5200 else
5201 # cc exists but doesn't like -o.
5202 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5203 fi
5204 fi
5205 fi
5206 else
5207 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5208 fi
5209 rm -f core conftest*
5210
5211 fi
5212 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214 $as_echo "yes" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218
5219 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5220
5221 fi
5222
5223 # FIXME: we rely on the cache variable name because
5224 # there is no other way.
5225 set dummy $CC
5226 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5227 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5228 if test "$am_t" != yes; then
5229 # Losing compiler, so override with the script.
5230 # FIXME: It is wrong to rewrite CC.
5231 # But if we don't then we get into trouble of one sort or another.
5232 # A longer-term fix would be to have automake use am__CC in this case,
5233 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5234 CC="$am_aux_dir/compile $CC"
5235 fi
5236
5237
5238
5239 # Initialize gnulib right after verifying that the C compiler works.
5240 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; } 5244 $as_echo_n "checking for $ac_word... " >&6; }
5149 if test "${ac_cv_prog_RANLIB+set}" = set; then : 5245 if ${ac_cv_prog_RANLIB+:} false; then :
5150 $as_echo_n "(cached) " >&6 5246 $as_echo_n "(cached) " >&6
5151 else 5247 else
5152 if test -n "$RANLIB"; then 5248 if test -n "$RANLIB"; then
5153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5154 else 5250 else
5184 ac_ct_RANLIB=$RANLIB 5280 ac_ct_RANLIB=$RANLIB
5185 # Extract the first word of "ranlib", so it can be a program name with args. 5281 # Extract the first word of "ranlib", so it can be a program name with args.
5186 set dummy ranlib; ac_word=$2 5282 set dummy ranlib; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; } 5284 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5285 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5190 $as_echo_n "(cached) " >&6 5286 $as_echo_n "(cached) " >&6
5191 else 5287 else
5192 if test -n "$ac_ct_RANLIB"; then 5288 if test -n "$ac_ct_RANLIB"; then
5193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5194 else 5290 else
5231 fi 5327 fi
5232 else 5328 else
5233 RANLIB="$ac_cv_prog_RANLIB" 5329 RANLIB="$ac_cv_prog_RANLIB"
5234 fi 5330 fi
5235 5331
5332
5333 ac_ext=c
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5340 # On Suns, sometimes $CPP names a directory.
5341 if test -n "$CPP" && test -d "$CPP"; then
5342 CPP=
5343 fi
5344 if test -z "$CPP"; then
5345 if ${ac_cv_prog_CPP+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 # Double quotes because CPP needs to be expanded
5349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5350 do
5351 ac_preproc_ok=false
5352 for ac_c_preproc_warn_flag in '' yes
5353 do
5354 # Use a header file that comes with gcc, so configuring glibc
5355 # with a fresh cross-compiler works.
5356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 # <limits.h> exists even on freestanding compilers.
5358 # On the NeXT, cc -E runs the code through the compiler's parser,
5359 # not just through cpp. "Syntax error" is here to catch this case.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #ifdef __STDC__
5363 # include <limits.h>
5364 #else
5365 # include <assert.h>
5366 #endif
5367 Syntax error
5368 _ACEOF
5369 if ac_fn_c_try_cpp "$LINENO"; then :
5370
5371 else
5372 # Broken: fails on valid input.
5373 continue
5374 fi
5375 rm -f conftest.err conftest.i conftest.$ac_ext
5376
5377 # OK, works on sane cases. Now check whether nonexistent headers
5378 # can be detected and how.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <ac_nonexistent.h>
5382 _ACEOF
5383 if ac_fn_c_try_cpp "$LINENO"; then :
5384 # Broken: success on invalid input.
5385 continue
5386 else
5387 # Passes both tests.
5388 ac_preproc_ok=:
5389 break
5390 fi
5391 rm -f conftest.err conftest.i conftest.$ac_ext
5392
5393 done
5394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5395 rm -f conftest.i conftest.err conftest.$ac_ext
5396 if $ac_preproc_ok; then :
5397 break
5398 fi
5399
5400 done
5401 ac_cv_prog_CPP=$CPP
5402
5403 fi
5404 CPP=$ac_cv_prog_CPP
5405 else
5406 ac_cv_prog_CPP=$CPP
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5409 $as_echo "$CPP" >&6; }
5410 ac_preproc_ok=false
5411 for ac_c_preproc_warn_flag in '' yes
5412 do
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421 #ifdef __STDC__
5422 # include <limits.h>
5423 #else
5424 # include <assert.h>
5425 #endif
5426 Syntax error
5427 _ACEOF
5428 if ac_fn_c_try_cpp "$LINENO"; then :
5429
5430 else
5431 # Broken: fails on valid input.
5432 continue
5433 fi
5434 rm -f conftest.err conftest.i conftest.$ac_ext
5435
5436 # OK, works on sane cases. Now check whether nonexistent headers
5437 # can be detected and how.
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <ac_nonexistent.h>
5441 _ACEOF
5442 if ac_fn_c_try_cpp "$LINENO"; then :
5443 # Broken: success on invalid input.
5444 continue
5445 else
5446 # Passes both tests.
5447 ac_preproc_ok=:
5448 break
5449 fi
5450 rm -f conftest.err conftest.i conftest.$ac_ext
5451
5452 done
5453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5454 rm -f conftest.i conftest.err conftest.$ac_ext
5455 if $ac_preproc_ok; then :
5456
5457 else
5458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5460 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5461 See \`config.log' for more details" "$LINENO" 5; }
5462 fi
5463
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5472 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5473 if ${ac_cv_path_GREP+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -z "$GREP"; then
5477 ac_path_GREP_found=false
5478 # Loop through the user's path and test for each of PROGNAME-LIST
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_prog in grep ggrep; do
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5487 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5488 # Check for GNU ac_path_GREP and select it if it is found.
5489 # Check for GNU $ac_path_GREP
5490 case `"$ac_path_GREP" --version 2>&1` in
5491 *GNU*)
5492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5493 *)
5494 ac_count=0
5495 $as_echo_n 0123456789 >"conftest.in"
5496 while :
5497 do
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 $as_echo 'GREP' >> "conftest.nl"
5502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504 as_fn_arith $ac_count + 1 && ac_count=$as_val
5505 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_GREP="$ac_path_GREP"
5508 ac_path_GREP_max=$ac_count
5509 fi
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5512 done
5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514 esac
5515
5516 $ac_path_GREP_found && break 3
5517 done
5518 done
5519 done
5520 IFS=$as_save_IFS
5521 if test -z "$ac_cv_path_GREP"; then
5522 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5523 fi
5524 else
5525 ac_cv_path_GREP=$GREP
5526 fi
5527
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5530 $as_echo "$ac_cv_path_GREP" >&6; }
5531 GREP="$ac_cv_path_GREP"
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5535 $as_echo_n "checking for egrep... " >&6; }
5536 if ${ac_cv_path_EGREP+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5540 then ac_cv_path_EGREP="$GREP -E"
5541 else
5542 if test -z "$EGREP"; then
5543 ac_path_EGREP_found=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_prog in egrep; do
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5553 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5554 # Check for GNU ac_path_EGREP and select it if it is found.
5555 # Check for GNU $ac_path_EGREP
5556 case `"$ac_path_EGREP" --version 2>&1` in
5557 *GNU*)
5558 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5559 *)
5560 ac_count=0
5561 $as_echo_n 0123456789 >"conftest.in"
5562 while :
5563 do
5564 cat "conftest.in" "conftest.in" >"conftest.tmp"
5565 mv "conftest.tmp" "conftest.in"
5566 cp "conftest.in" "conftest.nl"
5567 $as_echo 'EGREP' >> "conftest.nl"
5568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5570 as_fn_arith $ac_count + 1 && ac_count=$as_val
5571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5572 # Best one so far, save it but keep looking for a better one
5573 ac_cv_path_EGREP="$ac_path_EGREP"
5574 ac_path_EGREP_max=$ac_count
5575 fi
5576 # 10*(2^10) chars as input seems more than enough
5577 test $ac_count -gt 10 && break
5578 done
5579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5580 esac
5581
5582 $ac_path_EGREP_found && break 3
5583 done
5584 done
5585 done
5586 IFS=$as_save_IFS
5587 if test -z "$ac_cv_path_EGREP"; then
5588 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5589 fi
5590 else
5591 ac_cv_path_EGREP=$EGREP
5592 fi
5593
5594 fi
5595 fi
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5597 $as_echo "$ac_cv_path_EGREP" >&6; }
5598 EGREP="$ac_cv_path_EGREP"
5599
5600
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5602 $as_echo_n "checking for ANSI C header files... " >&6; }
5603 if ${ac_cv_header_stdc+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <stdlib.h>
5609 #include <stdarg.h>
5610 #include <string.h>
5611 #include <float.h>
5612
5613 int
5614 main ()
5615 {
5616
5617 ;
5618 return 0;
5619 }
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"; then :
5622 ac_cv_header_stdc=yes
5623 else
5624 ac_cv_header_stdc=no
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627
5628 if test $ac_cv_header_stdc = yes; then
5629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <string.h>
5633
5634 _ACEOF
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "memchr" >/dev/null 2>&1; then :
5637
5638 else
5639 ac_cv_header_stdc=no
5640 fi
5641 rm -f conftest*
5642
5643 fi
5644
5645 if test $ac_cv_header_stdc = yes; then
5646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 #include <stdlib.h>
5650
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "free" >/dev/null 2>&1; then :
5654
5655 else
5656 ac_cv_header_stdc=no
5657 fi
5658 rm -f conftest*
5659
5660 fi
5661
5662 if test $ac_cv_header_stdc = yes; then
5663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5664 if test "$cross_compiling" = yes; then :
5665 :
5666 else
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <ctype.h>
5670 #include <stdlib.h>
5671 #if ((' ' & 0x0FF) == 0x020)
5672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5674 #else
5675 # define ISLOWER(c) \
5676 (('a' <= (c) && (c) <= 'i') \
5677 || ('j' <= (c) && (c) <= 'r') \
5678 || ('s' <= (c) && (c) <= 'z'))
5679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5680 #endif
5681
5682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5683 int
5684 main ()
5685 {
5686 int i;
5687 for (i = 0; i < 256; i++)
5688 if (XOR (islower (i), ISLOWER (i))
5689 || toupper (i) != TOUPPER (i))
5690 return 2;
5691 return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_run "$LINENO"; then :
5695
5696 else
5697 ac_cv_header_stdc=no
5698 fi
5699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5700 conftest.$ac_objext conftest.beam conftest.$ac_ext
5701 fi
5702
5703 fi
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5706 $as_echo "$ac_cv_header_stdc" >&6; }
5707 if test $ac_cv_header_stdc = yes; then
5708
5709 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5710
5711 fi
5712
5713 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5714 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5715 inttypes.h stdint.h unistd.h
5716 do :
5717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5718 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5719 "
5720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5721 cat >>confdefs.h <<_ACEOF
5722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5723 _ACEOF
5724
5725 fi
5726
5727 done
5728
5729
5730
5731
5732
5733 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5734 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5735 MINIX=yes
5736 else
5737 MINIX=
5738 fi
5739
5740
5741 if test "$MINIX" = yes; then
5742
5743 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5744
5745
5746 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5747
5748
5749 $as_echo "#define _MINIX 1" >>confdefs.h
5750
5751 fi
5752
5753 case "$host_os" in
5754 hpux*)
5755
5756 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5757
5758 ;;
5759 esac
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5763 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5764 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769
5770 # define __EXTENSIONS__ 1
5771 $ac_includes_default
5772 int
5773 main ()
5774 {
5775
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then :
5781 ac_cv_safe_to_define___extensions__=yes
5782 else
5783 ac_cv_safe_to_define___extensions__=no
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5788 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5789 test $ac_cv_safe_to_define___extensions__ = yes &&
5790 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5791
5792 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5793
5794 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5795
5796 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5797
5798 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809 # Code from module arg-nonnull:
5810 # Code from module c++defs:
5811 # Code from module dtoastr:
5812 # Code from module extensions:
5813
5814 # Code from module getopt-gnu:
5815 # Code from module getopt-posix:
5816 # Code from module gettext-h:
5817 # Code from module include_next:
5818 # Code from module intprops:
5819 # Code from module mktime:
5820 # Code from module multiarch:
5821 # Code from module stddef:
5822 # Code from module time:
5823 # Code from module time_r:
5824 # Code from module unistd:
5825 # Code from module warn-on-use:
5826
5827
5828 # On Suns, sometimes $CPP names a directory.
5829 if test -n "$CPP" && test -d "$CPP"; then
5830 CPP=
5831 fi
5832
5833 ## If not using gcc, and on Solaris, and no CPP specified, see if
5834 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5835 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5836 test x"$CPP" = x; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5838 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5839 if ${emacs_cv_sunpro_c+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844
5845 int
5846 main ()
5847 {
5848 #ifndef __SUNPRO_C
5849 fail;
5850 #endif
5851
5852 ;
5853 return 0;
5854 }
5855 _ACEOF
5856 if ac_fn_c_try_link "$LINENO"; then :
5857 emacs_cv_sunpro_c=yes
5858 else
5859 emacs_cv_sunpro_c=no
5860 fi
5861 rm -f core conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5863 fi
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5866 $as_echo "$emacs_cv_sunpro_c" >&6; }
5867
5868 if test x"$emacs_cv_sunpro_c" = xyes; then
5869 NON_GNU_CPP="$CC -E -Xs"
5870 fi
5871 fi
5872
5873 #### Some systems specify a CPP to use unless we are using GCC.
5874 #### Now that we know whether we are using GCC, we can decide whether
5875 #### to use that one.
5876 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5877 then
5878 CPP="$NON_GNU_CPP"
5879 fi
5880
5881 #### Some systems specify a CC to use unless we are using GCC.
5882 #### Now that we know whether we are using GCC, we can decide whether
5883 #### to use that one.
5884 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5885 test x$cc_specified != xyes
5886 then
5887 CC="$NON_GNU_CC"
5888 fi
5889
5890 if test x$GCC = xyes; then
5891 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5892 else
5893 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5894 fi
5895
5896 ### Use -Wno-pointer-sign if the compiler supports it
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5898 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5899 SAVE_CFLAGS="$CFLAGS"
5900 CFLAGS="$CFLAGS -Wno-pointer-sign"
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903
5904 int
5905 main ()
5906 {
5907
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"; then :
5913 has_option=yes
5914 else
5915 has_option=no
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 if test $has_option = yes; then
5919 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5922 $as_echo "$has_option" >&6; }
5923 CFLAGS="$SAVE_CFLAGS"
5924 unset has_option
5925 unset SAVE_CFLAGS
5926
5927 ### Use -Wdeclaration-after-statement if the compiler supports it
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5929 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5930 SAVE_CFLAGS="$CFLAGS"
5931 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5934
5935 int
5936 main ()
5937 {
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944 has_option=yes
5945 else
5946 has_option=no
5947 fi
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 if test $has_option = yes; then
5950 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5953 $as_echo "$has_option" >&6; }
5954 CFLAGS="$SAVE_CFLAGS"
5955 unset has_option
5956 unset SAVE_CFLAGS
5957
5958 ### Use -Wold-style-definition if the compiler supports it
5959 # This can be removed when conversion to standard C is finished.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5961 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5962 SAVE_CFLAGS="$CFLAGS"
5963 CFLAGS="$CFLAGS -Wold-style-definition"
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966
5967 int
5968 main ()
5969 {
5970
5971 ;
5972 return 0;
5973 }
5974 _ACEOF
5975 if ac_fn_c_try_compile "$LINENO"; then :
5976 has_option=yes
5977 else
5978 has_option=no
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 if test $has_option = yes; then
5982 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5983 fi
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5985 $as_echo "$has_option" >&6; }
5986 CFLAGS="$SAVE_CFLAGS"
5987 unset has_option
5988 unset SAVE_CFLAGS
5989
5990 ### Use -Wimplicit-function-declaration if the compiler supports it
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5992 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5993 SAVE_CFLAGS="$CFLAGS"
5994 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997
5998 int
5999 main ()
6000 {
6001
6002 ;
6003 return 0;
6004 }
6005 _ACEOF
6006 if ac_fn_c_try_compile "$LINENO"; then :
6007 has_option=yes
6008 else
6009 has_option=no
6010 fi
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 if test $has_option = yes; then
6013 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6014 fi
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6016 $as_echo "$has_option" >&6; }
6017 CFLAGS="$SAVE_CFLAGS"
6018 unset has_option
6019 unset SAVE_CFLAGS
6020
6021
6022
6023
6024 #### Some other nice autoconf tests.
6025
6026 ac_ext=c
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6033 # On Suns, sometimes $CPP names a directory.
6034 if test -n "$CPP" && test -d "$CPP"; then
6035 CPP=
6036 fi
6037 if test -z "$CPP"; then
6038 if ${ac_cv_prog_CPP+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 # Double quotes because CPP needs to be expanded
6042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6043 do
6044 ac_preproc_ok=false
6045 for ac_c_preproc_warn_flag in '' yes
6046 do
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #ifdef __STDC__
6056 # include <limits.h>
6057 #else
6058 # include <assert.h>
6059 #endif
6060 Syntax error
6061 _ACEOF
6062 if ac_fn_c_try_cpp "$LINENO"; then :
6063
6064 else
6065 # Broken: fails on valid input.
6066 continue
6067 fi
6068 rm -f conftest.err conftest.i conftest.$ac_ext
6069
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6075 _ACEOF
6076 if ac_fn_c_try_cpp "$LINENO"; then :
6077 # Broken: success on invalid input.
6078 continue
6079 else
6080 # Passes both tests.
6081 ac_preproc_ok=:
6082 break
6083 fi
6084 rm -f conftest.err conftest.i conftest.$ac_ext
6085
6086 done
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.i conftest.err conftest.$ac_ext
6089 if $ac_preproc_ok; then :
6090 break
6091 fi
6092
6093 done
6094 ac_cv_prog_CPP=$CPP
6095
6096 fi
6097 CPP=$ac_cv_prog_CPP
6098 else
6099 ac_cv_prog_CPP=$CPP
6100 fi
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102 $as_echo "$CPP" >&6; }
6103 ac_preproc_ok=false
6104 for ac_c_preproc_warn_flag in '' yes
6105 do
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 #ifdef __STDC__
6115 # include <limits.h>
6116 #else
6117 # include <assert.h>
6118 #endif
6119 Syntax error
6120 _ACEOF
6121 if ac_fn_c_try_cpp "$LINENO"; then :
6122
6123 else
6124 # Broken: fails on valid input.
6125 continue
6126 fi
6127 rm -f conftest.err conftest.i conftest.$ac_ext
6128
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6134 _ACEOF
6135 if ac_fn_c_try_cpp "$LINENO"; then :
6136 # Broken: success on invalid input.
6137 continue
6138 else
6139 # Passes both tests.
6140 ac_preproc_ok=:
6141 break
6142 fi
6143 rm -f conftest.err conftest.i conftest.$ac_ext
6144
6145 done
6146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147 rm -f conftest.i conftest.err conftest.$ac_ext
6148 if $ac_preproc_ok; then :
6149
6150 else
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details" "$LINENO" 5; }
6155 fi
6156
6157 ac_ext=c
6158 ac_cpp='$CPP $CPPFLAGS'
6159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
6163
6164 if test "x$RANLIB" = x; then
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_RANLIB+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -n "$RANLIB"; then
6174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 RANLIB=$ac_cv_prog_RANLIB
6194 if test -n "$RANLIB"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6196 $as_echo "$RANLIB" >&6; }
6197 else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203 fi
6204 if test -z "$ac_cv_prog_RANLIB"; then
6205 ac_ct_RANLIB=$RANLIB
6206 # Extract the first word of "ranlib", so it can be a program name with args.
6207 set dummy ranlib; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$ac_ct_RANLIB"; then
6214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_RANLIB="ranlib"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6234 if test -n "$ac_ct_RANLIB"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6236 $as_echo "$ac_ct_RANLIB" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242 if test "x$ac_ct_RANLIB" = x; then
6243 RANLIB=":"
6244 else
6245 case $cross_compiling:$ac_tool_warned in
6246 yes:)
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251 RANLIB=$ac_ct_RANLIB
6252 fi
6253 else
6254 RANLIB="$ac_cv_prog_RANLIB"
6255 fi
6256
5236 fi 6257 fi
5237 6258
5238 ## Although we're running on an amd64 kernel, we're actually compiling for 6259 ## Although we're running on an amd64 kernel, we're actually compiling for
5239 ## the x86 architecture. The user should probably have provided an 6260 ## the x86 architecture. The user should probably have provided an
5240 ## explicit --build to `configure', but if everything else than the kernel 6261 ## explicit --build to `configure', but if everything else than the kernel
5241 ## is running in i386 mode, we can help them out. 6262 ## is running in i386 mode, we can help them out.
5242 if test "$machine" = "amdx86-64"; then 6263 if test "$machine" = "amdx86-64"; then
5243 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default" 6264 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5244 if test "x$ac_cv_have_decl_i386" = x""yes; then : 6265 if test "x$ac_cv_have_decl_i386" = xyes; then :
5245 6266
5246 fi 6267 fi
5247 6268
5248 if test "$ac_cv_have_decl_i386" = "yes"; then 6269 if test "$ac_cv_have_decl_i386" = "yes"; then
5249 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` 6270 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5254 6275
5255 # Extract the first word of "install-info", so it can be a program name with args. 6276 # Extract the first word of "install-info", so it can be a program name with args.
5256 set dummy install-info; ac_word=$2 6277 set dummy install-info; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; } 6279 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 6280 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5260 $as_echo_n "(cached) " >&6 6281 $as_echo_n "(cached) " >&6
5261 else 6282 else
5262 case $INSTALL_INFO in 6283 case $INSTALL_INFO in
5263 [\\/]* | ?:[\\/]*) 6284 [\\/]* | ?:[\\/]*)
5264 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 6285 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5294 6315
5295 # Extract the first word of "install-info", so it can be a program name with args. 6316 # Extract the first word of "install-info", so it can be a program name with args.
5296 set dummy install-info; ac_word=$2 6317 set dummy install-info; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; } 6319 $as_echo_n "checking for $ac_word... " >&6; }
5299 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 6320 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5300 $as_echo_n "(cached) " >&6 6321 $as_echo_n "(cached) " >&6
5301 else 6322 else
5302 case $INSTALL_INFO in 6323 case $INSTALL_INFO in
5303 [\\/]* | ?:[\\/]*) 6324 [\\/]* | ?:[\\/]*)
5304 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 6325 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5334 6355
5335 # Extract the first word of "install-info", so it can be a program name with args. 6356 # Extract the first word of "install-info", so it can be a program name with args.
5336 set dummy install-info; ac_word=$2 6357 set dummy install-info; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; } 6359 $as_echo_n "checking for $ac_word... " >&6; }
5339 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 6360 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5340 $as_echo_n "(cached) " >&6 6361 $as_echo_n "(cached) " >&6
5341 else 6362 else
5342 case $INSTALL_INFO in 6363 case $INSTALL_INFO in
5343 [\\/]* | ?:[\\/]*) 6364 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 6365 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5375 6396
5376 # Extract the first word of "gzip", so it can be a program name with args. 6397 # Extract the first word of "gzip", so it can be a program name with args.
5377 set dummy gzip; ac_word=$2 6398 set dummy gzip; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; } 6400 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_path_GZIP_PROG+set}" = set; then : 6401 if ${ac_cv_path_GZIP_PROG+:} false; then :
5381 $as_echo_n "(cached) " >&6 6402 $as_echo_n "(cached) " >&6
5382 else 6403 else
5383 case $GZIP_PROG in 6404 case $GZIP_PROG in
5384 [\\/]* | ?:[\\/]*) 6405 [\\/]* | ?:[\\/]*)
5385 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. 6406 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5418 ## Need makeinfo >= 4.6 (?) to build the manuals. 6439 ## Need makeinfo >= 4.6 (?) to build the manuals.
5419 # Extract the first word of "makeinfo", so it can be a program name with args. 6440 # Extract the first word of "makeinfo", so it can be a program name with args.
5420 set dummy makeinfo; ac_word=$2 6441 set dummy makeinfo; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; } 6443 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_path_MAKEINFO+set}" = set; then : 6444 if ${ac_cv_path_MAKEINFO+:} false; then :
5424 $as_echo_n "(cached) " >&6 6445 $as_echo_n "(cached) " >&6
5425 else 6446 else
5426 case $MAKEINFO in 6447 case $MAKEINFO in
5427 [\\/]* | ?:[\\/]*) 6448 [\\/]* | ?:[\\/]*)
5428 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. 6449 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5623 6644
5624 6645
5625 C_SWITCH_MACHINE= 6646 C_SWITCH_MACHINE=
5626 if test "$machine" = "alpha"; then 6647 if test "$machine" = "alpha"; then
5627 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" 6648 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5628 if test "x$ac_cv_have_decl___ELF__" = x""yes; then : 6649 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
5629 6650
5630 fi 6651 fi
5631 6652
5632 if test "$ac_cv_have_decl___ELF__" = "yes"; then 6653 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5633 ## With ELF, make sure that all common symbols get allocated to in the 6654 ## With ELF, make sure that all common symbols get allocated to in the
5693 6714
5694 if test "$enable_largefile" != no; then 6715 if test "$enable_largefile" != no; then
5695 6716
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5697 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6718 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5698 if test "${ac_cv_sys_largefile_CC+set}" = set; then : 6719 if ${ac_cv_sys_largefile_CC+:} false; then :
5699 $as_echo_n "(cached) " >&6 6720 $as_echo_n "(cached) " >&6
5700 else 6721 else
5701 ac_cv_sys_largefile_CC=no 6722 ac_cv_sys_largefile_CC=no
5702 if test "$GCC" != yes; then 6723 if test "$GCC" != yes; then
5703 ac_save_CC=$CC 6724 ac_save_CC=$CC
5744 CC=$CC$ac_cv_sys_largefile_CC 6765 CC=$CC$ac_cv_sys_largefile_CC
5745 fi 6766 fi
5746 6767
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5748 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6769 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5749 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6770 if ${ac_cv_sys_file_offset_bits+:} false; then :
5750 $as_echo_n "(cached) " >&6 6771 $as_echo_n "(cached) " >&6
5751 else 6772 else
5752 while :; do 6773 while :; do
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */ 6775 /* end confdefs.h. */
5813 esac 6834 esac
5814 rm -rf conftest* 6835 rm -rf conftest*
5815 if test $ac_cv_sys_file_offset_bits = unknown; then 6836 if test $ac_cv_sys_file_offset_bits = unknown; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5817 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6838 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5818 if test "${ac_cv_sys_large_files+set}" = set; then : 6839 if ${ac_cv_sys_large_files+:} false; then :
5819 $as_echo_n "(cached) " >&6 6840 $as_echo_n "(cached) " >&6
5820 else 6841 else
5821 while :; do 6842 while :; do
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */ 6844 /* end confdefs.h. */
5981 done 7002 done
5982 7003
5983 # Emulation library used on NetBSD. 7004 # Emulation library used on NetBSD.
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5985 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 7006 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5986 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : 7007 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5987 $as_echo_n "(cached) " >&6 7008 $as_echo_n "(cached) " >&6
5988 else 7009 else
5989 ac_check_lib_save_LIBS=$LIBS 7010 ac_check_lib_save_LIBS=$LIBS
5990 LIBS="-lossaudio $LIBS" 7011 LIBS="-lossaudio $LIBS"
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 conftest$ac_exeext conftest.$ac_ext 7036 conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$ac_check_lib_save_LIBS 7037 LIBS=$ac_check_lib_save_LIBS
6017 fi 7038 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6019 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 7040 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6020 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : 7041 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6021 LIBSOUND=-lossaudio 7042 LIBSOUND=-lossaudio
6022 else 7043 else
6023 LIBSOUND= 7044 LIBSOUND=
6024 fi 7045 fi
6025 7046
6032 7053
6033 # Extract the first word of "pkg-config", so it can be a program name with args. 7054 # Extract the first word of "pkg-config", so it can be a program name with args.
6034 set dummy pkg-config; ac_word=$2 7055 set dummy pkg-config; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; } 7057 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 7058 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6038 $as_echo_n "(cached) " >&6 7059 $as_echo_n "(cached) " >&6
6039 else 7060 else
6040 case $PKG_CONFIG in 7061 case $PKG_CONFIG in
6041 [\\/]* | ?:[\\/]*) 7062 [\\/]* | ?:[\\/]*)
6042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7063 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6236 fi 7257 fi
6237 7258
6238 for ac_header in term.h 7259 for ac_header in term.h
6239 do : 7260 do :
6240 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 7261 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6241 if test "x$ac_cv_header_term_h" = x""yes; then : 7262 if test "x$ac_cv_header_term_h" = xyes; then :
6242 cat >>confdefs.h <<_ACEOF 7263 cat >>confdefs.h <<_ACEOF
6243 #define HAVE_TERM_H 1 7264 #define HAVE_TERM_H 1
6244 _ACEOF 7265 _ACEOF
6245 7266
6246 fi 7267 fi
6247 7268
6248 done 7269 done
6249 7270
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6251 $as_echo_n "checking for ANSI C header files... " >&6; } 7272 $as_echo_n "checking for ANSI C header files... " >&6; }
6252 if test "${ac_cv_header_stdc+set}" = set; then : 7273 if ${ac_cv_header_stdc+:} false; then :
6253 $as_echo_n "(cached) " >&6 7274 $as_echo_n "(cached) " >&6
6254 else 7275 else
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */ 7277 /* end confdefs.h. */
6257 #include <stdlib.h> 7278 #include <stdlib.h>
6359 7380
6360 fi 7381 fi
6361 7382
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6363 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7384 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6364 if test "${ac_cv_header_time+set}" = set; then : 7385 if ${ac_cv_header_time+:} false; then :
6365 $as_echo_n "(cached) " >&6 7386 $as_echo_n "(cached) " >&6
6366 else 7387 else
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */ 7389 /* end confdefs.h. */
6369 #include <sys/types.h> 7390 #include <sys/types.h>
6393 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7414 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6394 7415
6395 fi 7416 fi
6396 7417
6397 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" 7418 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6398 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : 7419 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
6399 ac_have_decl=1 7420 ac_have_decl=1
6400 else 7421 else
6401 ac_have_decl=0 7422 ac_have_decl=0
6402 fi 7423 fi
6403 7424
6406 _ACEOF 7427 _ACEOF
6407 7428
6408 if test $ac_cv_have_decl_sys_siglist != yes; then 7429 if test $ac_cv_have_decl_sys_siglist != yes; then
6409 # For Tru64, at least: 7430 # For Tru64, at least:
6410 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" 7431 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6411 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : 7432 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
6412 ac_have_decl=1 7433 ac_have_decl=1
6413 else 7434 else
6414 ac_have_decl=0 7435 ac_have_decl=0
6415 fi 7436 fi
6416 7437
6424 7445
6425 fi 7446 fi
6426 fi 7447 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6428 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7449 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6429 if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7450 if ${ac_cv_header_sys_wait_h+:} false; then :
6430 $as_echo_n "(cached) " >&6 7451 $as_echo_n "(cached) " >&6
6431 else 7452 else
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */ 7454 /* end confdefs.h. */
6434 #include <sys/types.h> 7455 #include <sys/types.h>
6466 fi 7487 fi
6467 7488
6468 7489
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6470 $as_echo_n "checking for struct utimbuf... " >&6; } 7491 $as_echo_n "checking for struct utimbuf... " >&6; }
6471 if test "${emacs_cv_struct_utimbuf+set}" = set; then : 7492 if ${emacs_cv_struct_utimbuf+:} false; then :
6472 $as_echo_n "(cached) " >&6 7493 $as_echo_n "(cached) " >&6
6473 else 7494 else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */ 7496 /* end confdefs.h. */
6476 #ifdef TIME_WITH_SYS_TIME 7497 #ifdef TIME_WITH_SYS_TIME
6509 7530
6510 fi 7531 fi
6511 7532
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6513 $as_echo_n "checking return type of signal handlers... " >&6; } 7534 $as_echo_n "checking return type of signal handlers... " >&6; }
6514 if test "${ac_cv_type_signal+set}" = set; then : 7535 if ${ac_cv_type_signal+:} false; then :
6515 $as_echo_n "(cached) " >&6 7536 $as_echo_n "(cached) " >&6
6516 else 7537 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */ 7539 /* end confdefs.h. */
6519 #include <sys/types.h> 7540 #include <sys/types.h>
6543 7564
6544 7565
6545 7566
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6547 $as_echo_n "checking for speed_t... " >&6; } 7568 $as_echo_n "checking for speed_t... " >&6; }
6548 if test "${emacs_cv_speed_t+set}" = set; then : 7569 if ${emacs_cv_speed_t+:} false; then :
6549 $as_echo_n "(cached) " >&6 7570 $as_echo_n "(cached) " >&6
6550 else 7571 else
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */ 7573 /* end confdefs.h. */
6553 #include <termios.h> 7574 #include <termios.h>
6574 7595
6575 fi 7596 fi
6576 7597
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6578 $as_echo_n "checking for struct timeval... " >&6; } 7599 $as_echo_n "checking for struct timeval... " >&6; }
6579 if test "${emacs_cv_struct_timeval+set}" = set; then : 7600 if ${emacs_cv_struct_timeval+:} false; then :
6580 $as_echo_n "(cached) " >&6 7601 $as_echo_n "(cached) " >&6
6581 else 7602 else
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */ 7604 /* end confdefs.h. */
6584 #ifdef TIME_WITH_SYS_TIME 7605 #ifdef TIME_WITH_SYS_TIME
6615 7636
6616 fi 7637 fi
6617 7638
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6619 $as_echo_n "checking for struct exception... " >&6; } 7640 $as_echo_n "checking for struct exception... " >&6; }
6620 if test "${emacs_cv_struct_exception+set}" = set; then : 7641 if ${emacs_cv_struct_exception+:} false; then :
6621 $as_echo_n "(cached) " >&6 7642 $as_echo_n "(cached) " >&6
6622 else 7643 else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */ 7645 /* end confdefs.h. */
6625 #include <math.h> 7646 #include <math.h>
6648 fi 7669 fi
6649 7670
6650 for ac_header in sys/socket.h 7671 for ac_header in sys/socket.h
6651 do : 7672 do :
6652 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7673 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6653 if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 7674 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
6654 cat >>confdefs.h <<_ACEOF 7675 cat >>confdefs.h <<_ACEOF
6655 #define HAVE_SYS_SOCKET_H 1 7676 #define HAVE_SYS_SOCKET_H 1
6656 _ACEOF 7677 _ACEOF
6657 7678
6658 fi 7679 fi
6664 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 7685 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6665 #if HAVE_SYS_SOCKET_H 7686 #if HAVE_SYS_SOCKET_H
6666 #include <sys/socket.h> 7687 #include <sys/socket.h>
6667 #endif 7688 #endif
6668 " 7689 "
6669 if test "x$ac_cv_header_net_if_h" = x""yes; then : 7690 if test "x$ac_cv_header_net_if_h" = xyes; then :
6670 cat >>confdefs.h <<_ACEOF 7691 cat >>confdefs.h <<_ACEOF
6671 #define HAVE_NET_IF_H 1 7692 #define HAVE_NET_IF_H 1
6672 _ACEOF 7693 _ACEOF
6673 7694
6674 fi 7695 fi
6676 done 7697 done
6677 7698
6678 7699
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6680 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 7701 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6681 if test "${ac_cv_struct_tm+set}" = set; then : 7702 if ${ac_cv_struct_tm+:} false; then :
6682 $as_echo_n "(cached) " >&6 7703 $as_echo_n "(cached) " >&6
6683 else 7704 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */ 7706 /* end confdefs.h. */
6686 #include <sys/types.h> 7707 #include <sys/types.h>
6713 7734
6714 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 7735 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6715 #include <$ac_cv_struct_tm> 7736 #include <$ac_cv_struct_tm>
6716 7737
6717 " 7738 "
6718 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 7739 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6719 7740
6720 cat >>confdefs.h <<_ACEOF 7741 cat >>confdefs.h <<_ACEOF
6721 #define HAVE_STRUCT_TM_TM_ZONE 1 7742 #define HAVE_STRUCT_TM_TM_ZONE 1
6722 _ACEOF 7743 _ACEOF
6723 7744
6729 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 7750 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6730 7751
6731 else 7752 else
6732 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 7753 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6733 " 7754 "
6734 if test "x$ac_cv_have_decl_tzname" = x""yes; then : 7755 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6735 ac_have_decl=1 7756 ac_have_decl=1
6736 else 7757 else
6737 ac_have_decl=0 7758 ac_have_decl=0
6738 fi 7759 fi
6739 7760
6741 #define HAVE_DECL_TZNAME $ac_have_decl 7762 #define HAVE_DECL_TZNAME $ac_have_decl
6742 _ACEOF 7763 _ACEOF
6743 7764
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6745 $as_echo_n "checking for tzname... " >&6; } 7766 $as_echo_n "checking for tzname... " >&6; }
6746 if test "${ac_cv_var_tzname+set}" = set; then : 7767 if ${ac_cv_var_tzname+:} false; then :
6747 $as_echo_n "(cached) " >&6 7768 $as_echo_n "(cached) " >&6
6748 else 7769 else
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */ 7771 /* end confdefs.h. */
6751 #include <time.h> 7772 #include <time.h>
6778 fi 7799 fi
6779 fi 7800 fi
6780 7801
6781 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 7802 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6782 " 7803 "
6783 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 7804 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6784 7805
6785 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 7806 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6786 7807
6787 fi 7808 fi
6788 7809
6792 #endif 7813 #endif
6793 #if HAVE_NET_IF_H 7814 #if HAVE_NET_IF_H
6794 #include <net/if.h> 7815 #include <net/if.h>
6795 #endif 7816 #endif
6796 " 7817 "
6797 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : 7818 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
6798 7819
6799 cat >>confdefs.h <<_ACEOF 7820 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 7821 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6801 _ACEOF 7822 _ACEOF
6802 7823
6808 #endif 7829 #endif
6809 #if HAVE_NET_IF_H 7830 #if HAVE_NET_IF_H
6810 #include <net/if.h> 7831 #include <net/if.h>
6811 #endif 7832 #endif
6812 " 7833 "
6813 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : 7834 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
6814 7835
6815 cat >>confdefs.h <<_ACEOF 7836 cat >>confdefs.h <<_ACEOF
6816 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 7837 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6817 _ACEOF 7838 _ACEOF
6818 7839
6824 #endif 7845 #endif
6825 #if HAVE_NET_IF_H 7846 #if HAVE_NET_IF_H
6826 #include <net/if.h> 7847 #include <net/if.h>
6827 #endif 7848 #endif
6828 " 7849 "
6829 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : 7850 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
6830 7851
6831 cat >>confdefs.h <<_ACEOF 7852 cat >>confdefs.h <<_ACEOF
6832 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 7853 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6833 _ACEOF 7854 _ACEOF
6834 7855
6840 #endif 7861 #endif
6841 #if HAVE_NET_IF_H 7862 #if HAVE_NET_IF_H
6842 #include <net/if.h> 7863 #include <net/if.h>
6843 #endif 7864 #endif
6844 " 7865 "
6845 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : 7866 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
6846 7867
6847 cat >>confdefs.h <<_ACEOF 7868 cat >>confdefs.h <<_ACEOF
6848 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 7869 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6849 _ACEOF 7870 _ACEOF
6850 7871
6856 #endif 7877 #endif
6857 #if HAVE_NET_IF_H 7878 #if HAVE_NET_IF_H
6858 #include <net/if.h> 7879 #include <net/if.h>
6859 #endif 7880 #endif
6860 " 7881 "
6861 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : 7882 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
6862 7883
6863 cat >>confdefs.h <<_ACEOF 7884 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 7885 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6865 _ACEOF 7886 _ACEOF
6866 7887
6885 $as_echo "no" >&6; } 7906 $as_echo "no" >&6; }
6886 fi 7907 fi
6887 7908
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6889 $as_echo_n "checking for working volatile... " >&6; } 7910 $as_echo_n "checking for working volatile... " >&6; }
6890 if test "${ac_cv_c_volatile+set}" = set; then : 7911 if ${ac_cv_c_volatile+:} false; then :
6891 $as_echo_n "(cached) " >&6 7912 $as_echo_n "(cached) " >&6
6892 else 7913 else
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */ 7915 /* end confdefs.h. */
6895 7916
6919 7940
6920 fi 7941 fi
6921 7942
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6923 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7944 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6924 if test "${ac_cv_c_const+set}" = set; then : 7945 if ${ac_cv_c_const+:} false; then :
6925 $as_echo_n "(cached) " >&6 7946 $as_echo_n "(cached) " >&6
6926 else 7947 else
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */ 7949 /* end confdefs.h. */
6929 7950
6999 8020
7000 fi 8021 fi
7001 8022
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7003 $as_echo_n "checking for void * support... " >&6; } 8024 $as_echo_n "checking for void * support... " >&6; }
7004 if test "${emacs_cv_void_star+set}" = set; then : 8025 if ${emacs_cv_void_star+:} false; then :
7005 $as_echo_n "(cached) " >&6 8026 $as_echo_n "(cached) " >&6
7006 else 8027 else
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */ 8029 /* end confdefs.h. */
7009 8030
7032 8053
7033 fi 8054 fi
7034 8055
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7036 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 8057 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7037 if test "${ac_cv_c_bigendian+set}" = set; then : 8058 if ${ac_cv_c_bigendian+:} false; then :
7038 $as_echo_n "(cached) " >&6 8059 $as_echo_n "(cached) " >&6
7039 else 8060 else
7040 ac_cv_c_bigendian=unknown 8061 ac_cv_c_bigendian=unknown
7041 # See if we're dealing with a universal compiler. 8062 # See if we're dealing with a universal compiler.
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 8280
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7261 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8282 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7262 set x ${MAKE-make} 8283 set x ${MAKE-make}
7263 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8284 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7264 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 8285 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7265 $as_echo_n "(cached) " >&6 8286 $as_echo_n "(cached) " >&6
7266 else 8287 else
7267 cat >conftest.make <<\_ACEOF 8288 cat >conftest.make <<\_ACEOF
7268 SHELL = /bin/sh 8289 SHELL = /bin/sh
7269 all: 8290 all:
7347 8368
7348 8369
7349 8370
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7351 $as_echo_n "checking for long file names... " >&6; } 8372 $as_echo_n "checking for long file names... " >&6; }
7352 if test "${ac_cv_sys_long_file_names+set}" = set; then : 8373 if ${ac_cv_sys_long_file_names+:} false; then :
7353 $as_echo_n "(cached) " >&6 8374 $as_echo_n "(cached) " >&6
7354 else 8375 else
7355 ac_cv_sys_long_file_names=yes 8376 ac_cv_sys_long_file_names=yes
7356 # Test for long file names in all the places we know might matter: 8377 # Test for long file names in all the places we know might matter:
7357 # . the current directory, where building will happen 8378 # . the current directory, where building will happen
7404 # The user explicitly disabled X. 8425 # The user explicitly disabled X.
7405 have_x=disabled 8426 have_x=disabled
7406 else 8427 else
7407 case $x_includes,$x_libraries in #( 8428 case $x_includes,$x_libraries in #(
7408 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 8429 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7409 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 8430 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7410 $as_echo_n "(cached) " >&6 8431 $as_echo_n "(cached) " >&6
7411 else 8432 else
7412 # One or both of the vars are not set, and there is no cached value. 8433 # One or both of the vars are not set, and there is no cached value.
7413 ac_x_includes=no ac_x_libraries=no 8434 ac_x_includes=no ac_x_libraries=no
7414 rm -f -r conftest.dir 8435 rm -f -r conftest.dir
7687 LIB_STANDARD= 8708 LIB_STANDARD=
7688 START_FILES= 8709 START_FILES=
7689 TEMACS_LDFLAGS2= 8710 TEMACS_LDFLAGS2=
7690 fi 8711 fi
7691 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 8712 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7692 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 8713 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
7693 HAVE_NS=yes 8714 HAVE_NS=yes
7694 else 8715 else
7695 as_fn_error $? "\`--with-ns' was specified, but the include 8716 as_fn_error $? "\`--with-ns' was specified, but the include
7696 files are missing or cannot be compiled." "$LINENO" 5 8717 files are missing or cannot be compiled." "$LINENO" 5
7697 fi 8718 fi
7769 if test "$window_system" = none && test "X$with_x" != "Xno"; then 8790 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7770 # Extract the first word of "X", so it can be a program name with args. 8791 # Extract the first word of "X", so it can be a program name with args.
7771 set dummy X; ac_word=$2 8792 set dummy X; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; } 8794 $as_echo_n "checking for $ac_word... " >&6; }
7774 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : 8795 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
7775 $as_echo_n "(cached) " >&6 8796 $as_echo_n "(cached) " >&6
7776 else 8797 else
7777 if test -n "$HAVE_XSERVER"; then 8798 if test -n "$HAVE_XSERVER"; then
7778 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. 8799 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7779 else 8800 else
7828 # Do the opsystem or machine files prohibit the use of the GNU malloc? 8849 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7829 # Assume not, until told otherwise. 8850 # Assume not, until told otherwise.
7830 GNU_MALLOC=yes 8851 GNU_MALLOC=yes
7831 doug_lea_malloc=yes 8852 doug_lea_malloc=yes
7832 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" 8853 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7833 if test "x$ac_cv_func_malloc_get_state" = x""yes; then : 8854 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
7834 8855
7835 else 8856 else
7836 doug_lea_malloc=no 8857 doug_lea_malloc=no
7837 fi 8858 fi
7838 8859
7839 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" 8860 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7840 if test "x$ac_cv_func_malloc_set_state" = x""yes; then : 8861 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
7841 8862
7842 else 8863 else
7843 doug_lea_malloc=no 8864 doug_lea_malloc=no
7844 fi 8865 fi
7845 8866
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7847 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 8868 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7848 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : 8869 if ${emacs_cv_var___after_morecore_hook+:} false; then :
7849 $as_echo_n "(cached) " >&6 8870 $as_echo_n "(cached) " >&6
7850 else 8871 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */ 8873 /* end confdefs.h. */
7853 extern void (* __after_morecore_hook)(); 8874 extern void (* __after_morecore_hook)();
7948 8969
7949 8970
7950 for ac_func in getpagesize 8971 for ac_func in getpagesize
7951 do : 8972 do :
7952 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 8973 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7953 if test "x$ac_cv_func_getpagesize" = x""yes; then : 8974 if test "x$ac_cv_func_getpagesize" = xyes; then :
7954 cat >>confdefs.h <<_ACEOF 8975 cat >>confdefs.h <<_ACEOF
7955 #define HAVE_GETPAGESIZE 1 8976 #define HAVE_GETPAGESIZE 1
7956 _ACEOF 8977 _ACEOF
7957 8978
7958 fi 8979 fi
7959 done 8980 done
7960 8981
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7962 $as_echo_n "checking for working mmap... " >&6; } 8983 $as_echo_n "checking for working mmap... " >&6; }
7963 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 8984 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7964 $as_echo_n "(cached) " >&6 8985 $as_echo_n "(cached) " >&6
7965 else 8986 else
7966 if test "$cross_compiling" = yes; then : 8987 if test "$cross_compiling" = yes; then :
7967 ac_cv_func_mmap_fixed_mapped=no 8988 ac_cv_func_mmap_fixed_mapped=no
7968 else 8989 else
8133 9154
8134 LIBS="$LIBS_SYSTEM $LIBS" 9155 LIBS="$LIBS_SYSTEM $LIBS"
8135 9156
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8137 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 9158 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8138 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 9159 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8139 $as_echo_n "(cached) " >&6 9160 $as_echo_n "(cached) " >&6
8140 else 9161 else
8141 ac_check_lib_save_LIBS=$LIBS 9162 ac_check_lib_save_LIBS=$LIBS
8142 LIBS="-ldnet $LIBS" 9163 LIBS="-ldnet $LIBS"
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 conftest$ac_exeext conftest.$ac_ext 9188 conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS 9189 LIBS=$ac_check_lib_save_LIBS
8169 fi 9190 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8171 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 9192 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8172 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 9193 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8173 cat >>confdefs.h <<_ACEOF 9194 cat >>confdefs.h <<_ACEOF
8174 #define HAVE_LIBDNET 1 9195 #define HAVE_LIBDNET 1
8175 _ACEOF 9196 _ACEOF
8176 9197
8177 LIBS="-ldnet $LIBS" 9198 LIBS="-ldnet $LIBS"
8179 fi 9200 fi
8180 9201
8181 9202
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8183 $as_echo_n "checking for main in -lXbsd... " >&6; } 9204 $as_echo_n "checking for main in -lXbsd... " >&6; }
8184 if test "${ac_cv_lib_Xbsd_main+set}" = set; then : 9205 if ${ac_cv_lib_Xbsd_main+:} false; then :
8185 $as_echo_n "(cached) " >&6 9206 $as_echo_n "(cached) " >&6
8186 else 9207 else
8187 ac_check_lib_save_LIBS=$LIBS 9208 ac_check_lib_save_LIBS=$LIBS
8188 LIBS="-lXbsd $LIBS" 9209 LIBS="-lXbsd $LIBS"
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 conftest$ac_exeext conftest.$ac_ext 9228 conftest$ac_exeext conftest.$ac_ext
8208 LIBS=$ac_check_lib_save_LIBS 9229 LIBS=$ac_check_lib_save_LIBS
8209 fi 9230 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8211 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } 9232 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8212 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : 9233 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
8213 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 9234 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8214 fi 9235 fi
8215 9236
8216 9237
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8218 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } 9239 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8219 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 9240 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
8220 $as_echo_n "(cached) " >&6 9241 $as_echo_n "(cached) " >&6
8221 else 9242 else
8222 ac_check_lib_save_LIBS=$LIBS 9243 ac_check_lib_save_LIBS=$LIBS
8223 LIBS="-lpthreads $LIBS" 9244 LIBS="-lpthreads $LIBS"
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 conftest$ac_exeext conftest.$ac_ext 9269 conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS 9270 LIBS=$ac_check_lib_save_LIBS
8250 fi 9271 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8252 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 9273 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8253 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : 9274 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
8254 cat >>confdefs.h <<_ACEOF 9275 cat >>confdefs.h <<_ACEOF
8255 #define HAVE_LIBPTHREADS 1 9276 #define HAVE_LIBPTHREADS 1
8256 _ACEOF 9277 _ACEOF
8257 9278
8258 LIBS="-lpthreads $LIBS" 9279 LIBS="-lpthreads $LIBS"
8275 9296
8276 case ${host_os} in 9297 case ${host_os} in
8277 aix*) 9298 aix*)
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8279 $as_echo_n "checking for -bbigtoc option... " >&6; } 9300 $as_echo_n "checking for -bbigtoc option... " >&6; }
8280 if test "${gdb_cv_bigtoc+set}" = set; then : 9301 if ${gdb_cv_bigtoc+:} false; then :
8281 $as_echo_n "(cached) " >&6 9302 $as_echo_n "(cached) " >&6
8282 else 9303 else
8283 9304
8284 case $GCC in 9305 case $GCC in
8285 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; 9306 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8449 fi 9470 fi
8450 9471
8451 if test "${window_system}" = "x11"; then 9472 if test "${window_system}" = "x11"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8453 $as_echo_n "checking X11 version 6... " >&6; } 9474 $as_echo_n "checking X11 version 6... " >&6; }
8454 if test "${emacs_cv_x11_version_6+set}" = set; then : 9475 if ${emacs_cv_x11_version_6+:} false; then :
8455 $as_echo_n "(cached) " >&6 9476 $as_echo_n "(cached) " >&6
8456 else 9477 else
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */ 9479 /* end confdefs.h. */
8459 #include <X11/Xlib.h> 9480 #include <X11/Xlib.h>
8514 9535
8515 # Extract the first word of "pkg-config", so it can be a program name with args. 9536 # Extract the first word of "pkg-config", so it can be a program name with args.
8516 set dummy pkg-config; ac_word=$2 9537 set dummy pkg-config; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; } 9539 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 9540 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8520 $as_echo_n "(cached) " >&6 9541 $as_echo_n "(cached) " >&6
8521 else 9542 else
8522 case $PKG_CONFIG in 9543 case $PKG_CONFIG in
8523 [\\/]* | ?:[\\/]*) 9544 [\\/]* | ?:[\\/]*)
8524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8625 9646
8626 # Extract the first word of "pkg-config", so it can be a program name with args. 9647 # Extract the first word of "pkg-config", so it can be a program name with args.
8627 set dummy pkg-config; ac_word=$2 9648 set dummy pkg-config; ac_word=$2
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 $as_echo_n "checking for $ac_word... " >&6; } 9650 $as_echo_n "checking for $ac_word... " >&6; }
8630 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 9651 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8631 $as_echo_n "(cached) " >&6 9652 $as_echo_n "(cached) " >&6
8632 else 9653 else
8633 case $PKG_CONFIG in 9654 case $PKG_CONFIG in
8634 [\\/]* | ?:[\\/]*) 9655 [\\/]* | ?:[\\/]*)
8635 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8724 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" 9745 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8725 LIBS="$IMAGEMAGICK_LIBS $LIBS" 9746 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8726 for ac_func in MagickExportImagePixels 9747 for ac_func in MagickExportImagePixels
8727 do : 9748 do :
8728 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels" 9749 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8729 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then : 9750 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
8730 cat >>confdefs.h <<_ACEOF 9751 cat >>confdefs.h <<_ACEOF
8731 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1 9752 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8732 _ACEOF 9753 _ACEOF
8733 9754
8734 fi 9755 fi
8750 9771
8751 # Extract the first word of "pkg-config", so it can be a program name with args. 9772 # Extract the first word of "pkg-config", so it can be a program name with args.
8752 set dummy pkg-config; ac_word=$2 9773 set dummy pkg-config; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; } 9775 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 9776 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8756 $as_echo_n "(cached) " >&6 9777 $as_echo_n "(cached) " >&6
8757 else 9778 else
8758 case $PKG_CONFIG in 9779 case $PKG_CONFIG in
8759 [\\/]* | ?:[\\/]*) 9780 [\\/]* | ?:[\\/]*)
8760 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9781 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8856 9877
8857 # Extract the first word of "pkg-config", so it can be a program name with args. 9878 # Extract the first word of "pkg-config", so it can be a program name with args.
8858 set dummy pkg-config; ac_word=$2 9879 set dummy pkg-config; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; } 9881 $as_echo_n "checking for $ac_word... " >&6; }
8861 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 9882 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8862 $as_echo_n "(cached) " >&6 9883 $as_echo_n "(cached) " >&6
8863 else 9884 else
8864 case $PKG_CONFIG in 9885 case $PKG_CONFIG in
8865 [\\/]* | ?:[\\/]*) 9886 [\\/]* | ?:[\\/]*)
8866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9887 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8961 LIBS="$GTK_LIBS $LIBS" 9982 LIBS="$GTK_LIBS $LIBS"
8962 GTK_COMPILES=no 9983 GTK_COMPILES=no
8963 for ac_func in gtk_main 9984 for ac_func in gtk_main
8964 do : 9985 do :
8965 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" 9986 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8966 if test "x$ac_cv_func_gtk_main" = x""yes; then : 9987 if test "x$ac_cv_func_gtk_main" = xyes; then :
8967 cat >>confdefs.h <<_ACEOF 9988 cat >>confdefs.h <<_ACEOF
8968 #define HAVE_GTK_MAIN 1 9989 #define HAVE_GTK_MAIN 1
8969 _ACEOF 9990 _ACEOF
8970 GTK_COMPILES=yes 9991 GTK_COMPILES=yes
8971 fi 9992 fi
9009 10030
9010 HAVE_GTK_FILE_SELECTION=no 10031 HAVE_GTK_FILE_SELECTION=no
9011 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default 10032 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9012 #include <gtk/gtk.h> 10033 #include <gtk/gtk.h>
9013 " 10034 "
9014 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : 10035 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
9015 HAVE_GTK_FILE_SELECTION=yes 10036 HAVE_GTK_FILE_SELECTION=yes
9016 else 10037 else
9017 HAVE_GTK_FILE_SELECTION=no 10038 HAVE_GTK_FILE_SELECTION=no
9018 fi 10039 fi
9019 10040
9020 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 10041 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9021 for ac_func in gtk_file_selection_new 10042 for ac_func in gtk_file_selection_new
9022 do : 10043 do :
9023 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" 10044 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9024 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : 10045 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
9025 cat >>confdefs.h <<_ACEOF 10046 cat >>confdefs.h <<_ACEOF
9026 #define HAVE_GTK_FILE_SELECTION_NEW 1 10047 #define HAVE_GTK_FILE_SELECTION_NEW 1
9027 _ACEOF 10048 _ACEOF
9028 10049
9029 fi 10050 fi
9033 10054
9034 HAVE_GTK_AND_PTHREAD=no 10055 HAVE_GTK_AND_PTHREAD=no
9035 for ac_header in pthread.h 10056 for ac_header in pthread.h
9036 do : 10057 do :
9037 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 10058 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9038 if test "x$ac_cv_header_pthread_h" = x""yes; then : 10059 if test "x$ac_cv_header_pthread_h" = xyes; then :
9039 cat >>confdefs.h <<_ACEOF 10060 cat >>confdefs.h <<_ACEOF
9040 #define HAVE_PTHREAD_H 1 10061 #define HAVE_PTHREAD_H 1
9041 _ACEOF 10062 _ACEOF
9042 10063
9043 fi 10064 fi
9045 done 10066 done
9046 10067
9047 if test "$ac_cv_header_pthread_h"; then 10068 if test "$ac_cv_header_pthread_h"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9049 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } 10070 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9050 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : 10071 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
9051 $as_echo_n "(cached) " >&6 10072 $as_echo_n "(cached) " >&6
9052 else 10073 else
9053 ac_check_lib_save_LIBS=$LIBS 10074 ac_check_lib_save_LIBS=$LIBS
9054 LIBS="-lpthread $LIBS" 10075 LIBS="-lpthread $LIBS"
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 conftest$ac_exeext conftest.$ac_ext 10100 conftest$ac_exeext conftest.$ac_ext
9080 LIBS=$ac_check_lib_save_LIBS 10101 LIBS=$ac_check_lib_save_LIBS
9081 fi 10102 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9083 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 10104 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9084 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : 10105 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
9085 HAVE_GTK_AND_PTHREAD=yes 10106 HAVE_GTK_AND_PTHREAD=yes
9086 fi 10107 fi
9087 10108
9088 fi 10109 fi
9089 if test "$HAVE_GTK_AND_PTHREAD" = yes; then 10110 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9122 10143
9123 # Extract the first word of "pkg-config", so it can be a program name with args. 10144 # Extract the first word of "pkg-config", so it can be a program name with args.
9124 set dummy pkg-config; ac_word=$2 10145 set dummy pkg-config; ac_word=$2
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9126 $as_echo_n "checking for $ac_word... " >&6; } 10147 $as_echo_n "checking for $ac_word... " >&6; }
9127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 10148 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9128 $as_echo_n "(cached) " >&6 10149 $as_echo_n "(cached) " >&6
9129 else 10150 else
9130 case $PKG_CONFIG in 10151 case $PKG_CONFIG in
9131 [\\/]* | ?:[\\/]*) 10152 [\\/]* | ?:[\\/]*)
9132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9217 $as_echo "#define HAVE_DBUS 1" >>confdefs.h 10238 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9218 10239
9219 for ac_func in dbus_watch_get_unix_fd 10240 for ac_func in dbus_watch_get_unix_fd
9220 do : 10241 do :
9221 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" 10242 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9222 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : 10243 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
9223 cat >>confdefs.h <<_ACEOF 10244 cat >>confdefs.h <<_ACEOF
9224 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 10245 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9225 _ACEOF 10246 _ACEOF
9226 10247
9227 fi 10248 fi
9239 10260
9240 # Extract the first word of "pkg-config", so it can be a program name with args. 10261 # Extract the first word of "pkg-config", so it can be a program name with args.
9241 set dummy pkg-config; ac_word=$2 10262 set dummy pkg-config; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; } 10264 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 10265 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9245 $as_echo_n "(cached) " >&6 10266 $as_echo_n "(cached) " >&6
9246 else 10267 else
9247 case $PKG_CONFIG in 10268 case $PKG_CONFIG in
9248 [\\/]* | ?:[\\/]*) 10269 [\\/]* | ?:[\\/]*)
9249 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10270 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9333 $as_echo "#define HAVE_GCONF 1" >>confdefs.h 10354 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9334 10355
9335 for ac_func in g_type_init 10356 for ac_func in g_type_init
9336 do : 10357 do :
9337 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init" 10358 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9338 if test "x$ac_cv_func_g_type_init" = x""yes; then : 10359 if test "x$ac_cv_func_g_type_init" = xyes; then :
9339 cat >>confdefs.h <<_ACEOF 10360 cat >>confdefs.h <<_ACEOF
9340 #define HAVE_G_TYPE_INIT 1 10361 #define HAVE_G_TYPE_INIT 1
9341 _ACEOF 10362 _ACEOF
9342 10363
9343 fi 10364 fi
9349 HAVE_LIBSELINUX=no 10370 HAVE_LIBSELINUX=no
9350 LIBSELINUX_LIBS= 10371 LIBSELINUX_LIBS=
9351 if test "${with_selinux}" = "yes"; then 10372 if test "${with_selinux}" = "yes"; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9353 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 10374 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9354 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : 10375 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
9355 $as_echo_n "(cached) " >&6 10376 $as_echo_n "(cached) " >&6
9356 else 10377 else
9357 ac_check_lib_save_LIBS=$LIBS 10378 ac_check_lib_save_LIBS=$LIBS
9358 LIBS="-lselinux $LIBS" 10379 LIBS="-lselinux $LIBS"
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 conftest$ac_exeext conftest.$ac_ext 10404 conftest$ac_exeext conftest.$ac_ext
9384 LIBS=$ac_check_lib_save_LIBS 10405 LIBS=$ac_check_lib_save_LIBS
9385 fi 10406 fi
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9387 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 10408 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9388 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : 10409 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
9389 HAVE_LIBSELINUX=yes 10410 HAVE_LIBSELINUX=yes
9390 else 10411 else
9391 HAVE_LIBSELINUX=no 10412 HAVE_LIBSELINUX=no
9392 fi 10413 fi
9393 10414
9407 10428
9408 # Extract the first word of "pkg-config", so it can be a program name with args. 10429 # Extract the first word of "pkg-config", so it can be a program name with args.
9409 set dummy pkg-config; ac_word=$2 10430 set dummy pkg-config; ac_word=$2
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 $as_echo_n "checking for $ac_word... " >&6; } 10432 $as_echo_n "checking for $ac_word... " >&6; }
9412 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 10433 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9413 $as_echo_n "(cached) " >&6 10434 $as_echo_n "(cached) " >&6
9414 else 10435 else
9415 case $PKG_CONFIG in 10436 case $PKG_CONFIG in
9416 [\\/]* | ?:[\\/]*) 10437 [\\/]* | ?:[\\/]*)
9417 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9509 LUCID_LIBW= 10530 LUCID_LIBW=
9510 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 10531 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9511 if test "$with_xaw3d" != no; then 10532 if test "$with_xaw3d" != no; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9513 $as_echo_n "checking for xaw3d... " >&6; } 10534 $as_echo_n "checking for xaw3d... " >&6; }
9514 if test "${emacs_cv_xaw3d+set}" = set; then : 10535 if ${emacs_cv_xaw3d+:} false; then :
9515 $as_echo_n "(cached) " >&6 10536 $as_echo_n "(cached) " >&6
9516 else 10537 else
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */ 10539 /* end confdefs.h. */
9519 10540
9551 else 10572 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; } 10574 $as_echo "no" >&6; }
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9555 $as_echo_n "checking for libXaw... " >&6; } 10576 $as_echo_n "checking for libXaw... " >&6; }
9556 if test "${emacs_cv_xaw+set}" = set; then : 10577 if ${emacs_cv_xaw+:} false; then :
9557 $as_echo_n "(cached) " >&6 10578 $as_echo_n "(cached) " >&6
9558 else 10579 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */ 10581 /* end confdefs.h. */
9561 10582
9597 10618
9598 LIBXTR6= 10619 LIBXTR6=
9599 if test "${USE_X_TOOLKIT}" != "none"; then 10620 if test "${USE_X_TOOLKIT}" != "none"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9601 $as_echo_n "checking X11 toolkit version... " >&6; } 10622 $as_echo_n "checking X11 toolkit version... " >&6; }
9602 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : 10623 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
9603 $as_echo_n "(cached) " >&6 10624 $as_echo_n "(cached) " >&6
9604 else 10625 else
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */ 10627 /* end confdefs.h. */
9607 #include <X11/Intrinsic.h> 10628 #include <X11/Intrinsic.h>
9648 else 10669 else
9649 LIBS="-lXt $LIBS" 10670 LIBS="-lXt $LIBS"
9650 fi 10671 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9652 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 10673 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9653 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : 10674 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
9654 $as_echo_n "(cached) " >&6 10675 $as_echo_n "(cached) " >&6
9655 else 10676 else
9656 ac_check_lib_save_LIBS=$LIBS 10677 ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lXmu $LIBS" 10678 LIBS="-lXmu $LIBS"
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 conftest$ac_exeext conftest.$ac_ext 10703 conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS 10704 LIBS=$ac_check_lib_save_LIBS
9684 fi 10705 fi
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9686 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 10707 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9687 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : 10708 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
9688 cat >>confdefs.h <<_ACEOF 10709 cat >>confdefs.h <<_ACEOF
9689 #define HAVE_LIBXMU 1 10710 #define HAVE_LIBXMU 1
9690 _ACEOF 10711 _ACEOF
9691 10712
9692 LIBS="-lXmu $LIBS" 10713 LIBS="-lXmu $LIBS"
9709 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 10730 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9710 if test "${HAVE_X11}" = "yes"; then 10731 if test "${HAVE_X11}" = "yes"; then
9711 if test "${USE_X_TOOLKIT}" != "none"; then 10732 if test "${USE_X_TOOLKIT}" != "none"; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9713 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 10734 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9714 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 10735 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9715 $as_echo_n "(cached) " >&6 10736 $as_echo_n "(cached) " >&6
9716 else 10737 else
9717 ac_check_lib_save_LIBS=$LIBS 10738 ac_check_lib_save_LIBS=$LIBS
9718 LIBS="-lXext $LIBS" 10739 LIBS="-lXext $LIBS"
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 conftest$ac_exeext conftest.$ac_ext 10764 conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS 10765 LIBS=$ac_check_lib_save_LIBS
9745 fi 10766 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9747 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 10768 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9748 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 10769 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9749 cat >>confdefs.h <<_ACEOF 10770 cat >>confdefs.h <<_ACEOF
9750 #define HAVE_LIBXEXT 1 10771 #define HAVE_LIBXEXT 1
9751 _ACEOF 10772 _ACEOF
9752 10773
9753 LIBS="-lXext $LIBS" 10774 LIBS="-lXext $LIBS"
9759 10780
9760 LIBXP= 10781 LIBXP=
9761 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 10782 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9763 $as_echo_n "checking for Motif version 2.1... " >&6; } 10784 $as_echo_n "checking for Motif version 2.1... " >&6; }
9764 if test "${emacs_cv_motif_version_2_1+set}" = set; then : 10785 if ${emacs_cv_motif_version_2_1+:} false; then :
9765 $as_echo_n "(cached) " >&6 10786 $as_echo_n "(cached) " >&6
9766 else 10787 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */ 10789 /* end confdefs.h. */
9769 #include <Xm/Xm.h> 10790 #include <Xm/Xm.h>
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9790 $as_echo "$emacs_cv_motif_version_2_1" >&6; } 10811 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9791 if test $emacs_cv_motif_version_2_1 = yes; then 10812 if test $emacs_cv_motif_version_2_1 = yes; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9793 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 10814 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9794 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : 10815 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
9795 $as_echo_n "(cached) " >&6 10816 $as_echo_n "(cached) " >&6
9796 else 10817 else
9797 ac_check_lib_save_LIBS=$LIBS 10818 ac_check_lib_save_LIBS=$LIBS
9798 LIBS="-lXp $LIBS" 10819 LIBS="-lXp $LIBS"
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 conftest$ac_exeext conftest.$ac_ext 10844 conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS 10845 LIBS=$ac_check_lib_save_LIBS
9825 fi 10846 fi
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9827 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 10848 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9828 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : 10849 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
9829 LIBXP=-lXp 10850 LIBXP=-lXp
9830 fi 10851 fi
9831 10852
9832 else 10853 else
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9834 $as_echo_n "checking for LessTif where some systems put it... " >&6; } 10855 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9835 if test "${emacs_cv_lesstif+set}" = set; then : 10856 if ${emacs_cv_lesstif+:} false; then :
9836 $as_echo_n "(cached) " >&6 10857 $as_echo_n "(cached) " >&6
9837 else 10858 else
9838 # We put this in CFLAGS temporarily to precede other -I options 10859 # We put this in CFLAGS temporarily to precede other -I options
9839 # that might be in CFLAGS temporarily. 10860 # that might be in CFLAGS temporarily.
9840 # We put this in CPPFLAGS where it precedes the other -I options. 10861 # We put this in CPPFLAGS where it precedes the other -I options.
9989 11010
9990 # Extract the first word of "pkg-config", so it can be a program name with args. 11011 # Extract the first word of "pkg-config", so it can be a program name with args.
9991 set dummy pkg-config; ac_word=$2 11012 set dummy pkg-config; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; } 11014 $as_echo_n "checking for $ac_word... " >&6; }
9994 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11015 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9995 $as_echo_n "(cached) " >&6 11016 $as_echo_n "(cached) " >&6
9996 else 11017 else
9997 case $PKG_CONFIG in 11018 case $PKG_CONFIG in
9998 [\\/]* | ?:[\\/]*) 11019 [\\/]* | ?:[\\/]*)
9999 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10091 11112
10092 # Extract the first word of "pkg-config", so it can be a program name with args. 11113 # Extract the first word of "pkg-config", so it can be a program name with args.
10093 set dummy pkg-config; ac_word=$2 11114 set dummy pkg-config; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; } 11116 $as_echo_n "checking for $ac_word... " >&6; }
10096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11117 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10097 $as_echo_n "(cached) " >&6 11118 $as_echo_n "(cached) " >&6
10098 else 11119 else
10099 case $PKG_CONFIG in 11120 case $PKG_CONFIG in
10100 [\\/]* | ?:[\\/]*) 11121 [\\/]* | ?:[\\/]*)
10101 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10183 ## Because xftfont.c uses XRenderQueryExtension, we also 11204 ## Because xftfont.c uses XRenderQueryExtension, we also
10184 ## need to link to -lXrender. 11205 ## need to link to -lXrender.
10185 HAVE_XRENDER=no 11206 HAVE_XRENDER=no
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10187 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 11208 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10188 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : 11209 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
10189 $as_echo_n "(cached) " >&6 11210 $as_echo_n "(cached) " >&6
10190 else 11211 else
10191 ac_check_lib_save_LIBS=$LIBS 11212 ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-lXrender $LIBS" 11213 LIBS="-lXrender $LIBS"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 conftest$ac_exeext conftest.$ac_ext 11238 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS 11239 LIBS=$ac_check_lib_save_LIBS
10219 fi 11240 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10221 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 11242 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10222 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : 11243 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
10223 HAVE_XRENDER=yes 11244 HAVE_XRENDER=yes
10224 fi 11245 fi
10225 11246
10226 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then 11247 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10227 OLD_CPPFLAGS="$CPPFLAGS" 11248 OLD_CPPFLAGS="$CPPFLAGS"
10230 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 11251 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10231 CFLAGS="$CFLAGS $XFT_CFLAGS" 11252 CFLAGS="$CFLAGS $XFT_CFLAGS"
10232 XFT_LIBS="-lXrender $XFT_LIBS" 11253 XFT_LIBS="-lXrender $XFT_LIBS"
10233 LIBS="$XFT_LIBS $LIBS" 11254 LIBS="$XFT_LIBS $LIBS"
10234 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 11255 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10235 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : 11256 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10237 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 11258 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10238 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : 11259 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
10239 $as_echo_n "(cached) " >&6 11260 $as_echo_n "(cached) " >&6
10240 else 11261 else
10241 ac_check_lib_save_LIBS=$LIBS 11262 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lXft $XFT_LIBS $LIBS" 11263 LIBS="-lXft $XFT_LIBS $LIBS"
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 conftest$ac_exeext conftest.$ac_ext 11288 conftest$ac_exeext conftest.$ac_ext
10268 LIBS=$ac_check_lib_save_LIBS 11289 LIBS=$ac_check_lib_save_LIBS
10269 fi 11290 fi
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10271 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 11292 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10272 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : 11293 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
10273 HAVE_XFT=yes 11294 HAVE_XFT=yes
10274 fi 11295 fi
10275 11296
10276 fi 11297 fi
10277 11298
10316 11337
10317 # Extract the first word of "pkg-config", so it can be a program name with args. 11338 # Extract the first word of "pkg-config", so it can be a program name with args.
10318 set dummy pkg-config; ac_word=$2 11339 set dummy pkg-config; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; } 11341 $as_echo_n "checking for $ac_word... " >&6; }
10321 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11342 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10322 $as_echo_n "(cached) " >&6 11343 $as_echo_n "(cached) " >&6
10323 else 11344 else
10324 case $PKG_CONFIG in 11345 case $PKG_CONFIG in
10325 [\\/]* | ?:[\\/]*) 11346 [\\/]* | ?:[\\/]*)
10326 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10409 11430
10410 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h 11431 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10411 11432
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10413 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 11434 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10414 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : 11435 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
10415 $as_echo_n "(cached) " >&6 11436 $as_echo_n "(cached) " >&6
10416 else 11437 else
10417 ac_check_lib_save_LIBS=$LIBS 11438 ac_check_lib_save_LIBS=$LIBS
10418 LIBS="-lotf $LIBS" 11439 LIBS="-lotf $LIBS"
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 conftest$ac_exeext conftest.$ac_ext 11464 conftest$ac_exeext conftest.$ac_ext
10444 LIBS=$ac_check_lib_save_LIBS 11465 LIBS=$ac_check_lib_save_LIBS
10445 fi 11466 fi
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10447 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 11468 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10448 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : 11469 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
10449 HAVE_OTF_GET_VARIATION_GLYPHS=yes 11470 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10450 else 11471 else
10451 HAVE_OTF_GET_VARIATION_GLYPHS=no 11472 HAVE_OTF_GET_VARIATION_GLYPHS=no
10452 fi 11473 fi
10453 11474
10468 11489
10469 # Extract the first word of "pkg-config", so it can be a program name with args. 11490 # Extract the first word of "pkg-config", so it can be a program name with args.
10470 set dummy pkg-config; ac_word=$2 11491 set dummy pkg-config; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; } 11493 $as_echo_n "checking for $ac_word... " >&6; }
10473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11494 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10474 $as_echo_n "(cached) " >&6 11495 $as_echo_n "(cached) " >&6
10475 else 11496 else
10476 case $PKG_CONFIG in 11497 case $PKG_CONFIG in
10477 [\\/]* | ?:[\\/]*) 11498 [\\/]* | ?:[\\/]*)
10478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11499 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10586 HAVE_XPM=no 11607 HAVE_XPM=no
10587 LIBXPM= 11608 LIBXPM=
10588 if test "${HAVE_X11}" = "yes"; then 11609 if test "${HAVE_X11}" = "yes"; then
10589 if test "${with_xpm}" != "no"; then 11610 if test "${with_xpm}" != "no"; then
10590 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 11611 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10591 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : 11612 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10593 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 11614 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10594 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : 11615 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
10595 $as_echo_n "(cached) " >&6 11616 $as_echo_n "(cached) " >&6
10596 else 11617 else
10597 ac_check_lib_save_LIBS=$LIBS 11618 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lXpm -lX11 $LIBS" 11619 LIBS="-lXpm -lX11 $LIBS"
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 conftest$ac_exeext conftest.$ac_ext 11644 conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS 11645 LIBS=$ac_check_lib_save_LIBS
10625 fi 11646 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10627 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 11648 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10628 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : 11649 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
10629 HAVE_XPM=yes 11650 HAVE_XPM=yes
10630 fi 11651 fi
10631 11652
10632 fi 11653 fi
10633 11654
10675 HAVE_JPEG=no 11696 HAVE_JPEG=no
10676 LIBJPEG= 11697 LIBJPEG=
10677 if test "${HAVE_X11}" = "yes"; then 11698 if test "${HAVE_X11}" = "yes"; then
10678 if test "${with_jpeg}" != "no"; then 11699 if test "${with_jpeg}" != "no"; then
10679 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 11700 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10680 if test "x$ac_cv_header_jerror_h" = x""yes; then : 11701 if test "x$ac_cv_header_jerror_h" = xyes; then :
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10682 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 11703 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10683 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : 11704 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
10684 $as_echo_n "(cached) " >&6 11705 $as_echo_n "(cached) " >&6
10685 else 11706 else
10686 ac_check_lib_save_LIBS=$LIBS 11707 ac_check_lib_save_LIBS=$LIBS
10687 LIBS="-ljpeg $LIBS" 11708 LIBS="-ljpeg $LIBS"
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 conftest$ac_exeext conftest.$ac_ext 11733 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS 11734 LIBS=$ac_check_lib_save_LIBS
10714 fi 11735 fi
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10716 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 11737 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10717 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : 11738 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
10718 HAVE_JPEG=yes 11739 HAVE_JPEG=yes
10719 fi 11740 fi
10720 11741
10721 fi 11742 fi
10722 11743
10771 done 11792 done
10772 11793
10773 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 11794 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10775 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } 11796 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10776 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : 11797 if ${ac_cv_lib_png_png_get_channels+:} false; then :
10777 $as_echo_n "(cached) " >&6 11798 $as_echo_n "(cached) " >&6
10778 else 11799 else
10779 ac_check_lib_save_LIBS=$LIBS 11800 ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-lpng -lz -lm $LIBS" 11801 LIBS="-lpng -lz -lm $LIBS"
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 conftest$ac_exeext conftest.$ac_ext 11826 conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS 11827 LIBS=$ac_check_lib_save_LIBS
10807 fi 11828 fi
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10809 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 11830 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10810 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : 11831 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
10811 HAVE_PNG=yes 11832 HAVE_PNG=yes
10812 fi 11833 fi
10813 11834
10814 fi 11835 fi
10815 fi 11836 fi
10827 HAVE_TIFF=no 11848 HAVE_TIFF=no
10828 LIBTIFF= 11849 LIBTIFF=
10829 if test "${HAVE_X11}" = "yes"; then 11850 if test "${HAVE_X11}" = "yes"; then
10830 if test "${with_tiff}" != "no"; then 11851 if test "${with_tiff}" != "no"; then
10831 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 11852 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10832 if test "x$ac_cv_header_tiffio_h" = x""yes; then : 11853 if test "x$ac_cv_header_tiffio_h" = xyes; then :
10833 tifflibs="-lz -lm" 11854 tifflibs="-lz -lm"
10834 # At least one tiff package requires the jpeg library. 11855 # At least one tiff package requires the jpeg library.
10835 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 11856 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10837 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 11858 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10838 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : 11859 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
10839 $as_echo_n "(cached) " >&6 11860 $as_echo_n "(cached) " >&6
10840 else 11861 else
10841 ac_check_lib_save_LIBS=$LIBS 11862 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-ltiff $tifflibs $LIBS" 11863 LIBS="-ltiff $tifflibs $LIBS"
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 conftest$ac_exeext conftest.$ac_ext 11888 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS 11889 LIBS=$ac_check_lib_save_LIBS
10869 fi 11890 fi
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10871 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 11892 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10872 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : 11893 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
10873 HAVE_TIFF=yes 11894 HAVE_TIFF=yes
10874 fi 11895 fi
10875 11896
10876 fi 11897 fi
10877 11898
10890 ### Use -lgif or -lungif if available, unless `--with-gif=no'. 11911 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10891 HAVE_GIF=no 11912 HAVE_GIF=no
10892 LIBGIF= 11913 LIBGIF=
10893 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 11914 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10894 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 11915 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10895 if test "x$ac_cv_header_gif_lib_h" = x""yes; then : 11916 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
10896 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 11917 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10897 # Earlier versions can crash Emacs. 11918 # Earlier versions can crash Emacs.
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10899 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 11920 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10900 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : 11921 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
10901 $as_echo_n "(cached) " >&6 11922 $as_echo_n "(cached) " >&6
10902 else 11923 else
10903 ac_check_lib_save_LIBS=$LIBS 11924 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lgif $LIBS" 11925 LIBS="-lgif $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 conftest$ac_exeext conftest.$ac_ext 11950 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS 11951 LIBS=$ac_check_lib_save_LIBS
10931 fi 11952 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10933 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 11954 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10934 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : 11955 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
10935 HAVE_GIF=yes 11956 HAVE_GIF=yes
10936 else 11957 else
10937 HAVE_GIF=maybe 11958 HAVE_GIF=maybe
10938 fi 11959 fi
10939 11960
10945 LIBGIF=-lgif 11966 LIBGIF=-lgif
10946 elif test "$HAVE_GIF" = maybe; then 11967 elif test "$HAVE_GIF" = maybe; then
10947 # If gif_lib.h but no libgif, try libungif. 11968 # If gif_lib.h but no libgif, try libungif.
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10949 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 11970 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10950 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : 11971 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
10951 $as_echo_n "(cached) " >&6 11972 $as_echo_n "(cached) " >&6
10952 else 11973 else
10953 ac_check_lib_save_LIBS=$LIBS 11974 ac_check_lib_save_LIBS=$LIBS
10954 LIBS="-lungif $LIBS" 11975 LIBS="-lungif $LIBS"
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 conftest$ac_exeext conftest.$ac_ext 12000 conftest$ac_exeext conftest.$ac_ext
10980 LIBS=$ac_check_lib_save_LIBS 12001 LIBS=$ac_check_lib_save_LIBS
10981 fi 12002 fi
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10983 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 12004 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10984 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : 12005 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
10985 HAVE_GIF=yes 12006 HAVE_GIF=yes
10986 else 12007 else
10987 HAVE_GIF=no 12008 HAVE_GIF=no
10988 fi 12009 fi
10989 12010
11026 HAVE_GPM=no 12047 HAVE_GPM=no
11027 LIBGPM= 12048 LIBGPM=
11028 MOUSE_SUPPORT= 12049 MOUSE_SUPPORT=
11029 if test "${with_gpm}" != "no"; then 12050 if test "${with_gpm}" != "no"; then
11030 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" 12051 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11031 if test "x$ac_cv_header_gpm_h" = x""yes; then : 12052 if test "x$ac_cv_header_gpm_h" = xyes; then :
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11033 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 12054 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11034 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : 12055 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
11035 $as_echo_n "(cached) " >&6 12056 $as_echo_n "(cached) " >&6
11036 else 12057 else
11037 ac_check_lib_save_LIBS=$LIBS 12058 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lgpm $LIBS" 12059 LIBS="-lgpm $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 conftest$ac_exeext conftest.$ac_ext 12084 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS 12085 LIBS=$ac_check_lib_save_LIBS
11065 fi 12086 fi
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11067 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 12088 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11068 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : 12089 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
11069 HAVE_GPM=yes 12090 HAVE_GPM=yes
11070 fi 12091 fi
11071 12092
11072 fi 12093 fi
11073 12094
11083 fi 12104 fi
11084 fi 12105 fi
11085 12106
11086 12107
11087 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 12108 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11088 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 12109 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
11089 12110
11090 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h 12111 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11091 12112
11092 fi 12113 fi
11093 12114
11128 ### Use session management (-lSM -lICE) if available 12149 ### Use session management (-lSM -lICE) if available
11129 HAVE_X_SM=no 12150 HAVE_X_SM=no
11130 LIBXSM= 12151 LIBXSM=
11131 if test "${HAVE_X11}" = "yes"; then 12152 if test "${HAVE_X11}" = "yes"; then
11132 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 12153 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11133 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 12154 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11135 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 12156 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11136 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : 12157 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
11137 $as_echo_n "(cached) " >&6 12158 $as_echo_n "(cached) " >&6
11138 else 12159 else
11139 ac_check_lib_save_LIBS=$LIBS 12160 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lSM -lICE $LIBS" 12161 LIBS="-lSM -lICE $LIBS"
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 conftest$ac_exeext conftest.$ac_ext 12186 conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_lib_save_LIBS 12187 LIBS=$ac_check_lib_save_LIBS
11167 fi 12188 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11169 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 12190 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11170 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : 12191 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
11171 HAVE_X_SM=yes 12192 HAVE_X_SM=yes
11172 fi 12193 fi
11173 12194
11174 fi 12195 fi
11175 12196
11196 12217
11197 # Extract the first word of "pkg-config", so it can be a program name with args. 12218 # Extract the first word of "pkg-config", so it can be a program name with args.
11198 set dummy pkg-config; ac_word=$2 12219 set dummy pkg-config; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; } 12221 $as_echo_n "checking for $ac_word... " >&6; }
11201 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12222 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11202 $as_echo_n "(cached) " >&6 12223 $as_echo_n "(cached) " >&6
11203 else 12224 else
11204 case $PKG_CONFIG in 12225 case $PKG_CONFIG in
11205 [\\/]* | ?:[\\/]*) 12226 [\\/]* | ?:[\\/]*)
11206 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11287 12308
11288 if test "${HAVE_LIBXML2}" = "yes"; then 12309 if test "${HAVE_LIBXML2}" = "yes"; then
11289 LIBS="$LIBXML2_LIBS $LIBS" 12310 LIBS="$LIBXML2_LIBS $LIBS"
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11291 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; } 12312 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11292 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then : 12313 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
11293 $as_echo_n "(cached) " >&6 12314 $as_echo_n "(cached) " >&6
11294 else 12315 else
11295 ac_check_lib_save_LIBS=$LIBS 12316 ac_check_lib_save_LIBS=$LIBS
11296 LIBS="-lxml2 $LIBS" 12317 LIBS="-lxml2 $LIBS"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 conftest$ac_exeext conftest.$ac_ext 12342 conftest$ac_exeext conftest.$ac_ext
11322 LIBS=$ac_check_lib_save_LIBS 12343 LIBS=$ac_check_lib_save_LIBS
11323 fi 12344 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11325 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; } 12346 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11326 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then : 12347 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
11327 HAVE_LIBXML2=yes 12348 HAVE_LIBXML2=yes
11328 else 12349 else
11329 HAVE_LIBXML2=no 12350 HAVE_LIBXML2=no
11330 fi 12351 fi
11331 12352
11343 12364
11344 12365
11345 # If netdb.h doesn't declare h_errno, we must declare it by hand. 12366 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11347 $as_echo_n "checking whether netdb declares h_errno... " >&6; } 12368 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11348 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : 12369 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
11349 $as_echo_n "(cached) " >&6 12370 $as_echo_n "(cached) " >&6
11350 else 12371 else
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */ 12373 /* end confdefs.h. */
11353 #include <netdb.h> 12374 #include <netdb.h>
11373 12394
11374 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 12395 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11375 12396
11376 fi 12397 fi
11377 12398
12399 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12400 if test "x$ac_cv_type_size_t" = xyes; then :
12401
12402 else
12403
12404 cat >>confdefs.h <<_ACEOF
12405 #define size_t unsigned int
12406 _ACEOF
12407
12408 fi
12409
11378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 12410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11379 # for constant arguments. Useless! 12411 # for constant arguments. Useless!
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11381 $as_echo_n "checking for working alloca.h... " >&6; } 12413 $as_echo_n "checking for working alloca.h... " >&6; }
11382 if test "${ac_cv_working_alloca_h+set}" = set; then : 12414 if ${ac_cv_working_alloca_h+:} false; then :
11383 $as_echo_n "(cached) " >&6 12415 $as_echo_n "(cached) " >&6
11384 else 12416 else
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */ 12418 /* end confdefs.h. */
11387 #include <alloca.h> 12419 #include <alloca.h>
11410 12442
11411 fi 12443 fi
11412 12444
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11414 $as_echo_n "checking for alloca... " >&6; } 12446 $as_echo_n "checking for alloca... " >&6; }
11415 if test "${ac_cv_func_alloca_works+set}" = set; then : 12447 if ${ac_cv_func_alloca_works+:} false; then :
11416 $as_echo_n "(cached) " >&6 12448 $as_echo_n "(cached) " >&6
11417 else 12449 else
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */ 12451 /* end confdefs.h. */
11420 #ifdef __GNUC__ 12452 #ifdef __GNUC__
11429 # else 12461 # else
11430 # ifdef _AIX 12462 # ifdef _AIX
11431 #pragma alloca 12463 #pragma alloca
11432 # else 12464 # else
11433 # ifndef alloca /* predefined by HP cc +Olibcalls */ 12465 # ifndef alloca /* predefined by HP cc +Olibcalls */
11434 char *alloca (); 12466 void *alloca (size_t);
11435 # endif 12467 # endif
11436 # endif 12468 # endif
11437 # endif 12469 # endif
11438 # endif 12470 # endif
11439 #endif 12471 #endif
11473 $as_echo "#define C_ALLOCA 1" >>confdefs.h 12505 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11474 12506
11475 12507
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11477 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 12509 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11478 if test "${ac_cv_os_cray+set}" = set; then : 12510 if ${ac_cv_os_cray+:} false; then :
11479 $as_echo_n "(cached) " >&6 12511 $as_echo_n "(cached) " >&6
11480 else 12512 else
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */ 12514 /* end confdefs.h. */
11483 #if defined CRAY && ! defined CRAY2 12515 #if defined CRAY && ! defined CRAY2
11514 done 12546 done
11515 fi 12547 fi
11516 12548
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11518 $as_echo_n "checking stack direction for C alloca... " >&6; } 12550 $as_echo_n "checking stack direction for C alloca... " >&6; }
11519 if test "${ac_cv_c_stack_direction+set}" = set; then : 12551 if ${ac_cv_c_stack_direction+:} false; then :
11520 $as_echo_n "(cached) " >&6 12552 $as_echo_n "(cached) " >&6
11521 else 12553 else
11522 if test "$cross_compiling" = yes; then : 12554 if test "$cross_compiling" = yes; then :
11523 ac_cv_c_stack_direction=0 12555 ac_cv_c_stack_direction=0
11524 else 12556 else
11571 12603
11572 # fmod, logb, and frexp are found in -lm on most systems. 12604 # fmod, logb, and frexp are found in -lm on most systems.
11573 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 12605 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11575 $as_echo_n "checking for sqrt in -lm... " >&6; } 12607 $as_echo_n "checking for sqrt in -lm... " >&6; }
11576 if test "${ac_cv_lib_m_sqrt+set}" = set; then : 12608 if ${ac_cv_lib_m_sqrt+:} false; then :
11577 $as_echo_n "(cached) " >&6 12609 $as_echo_n "(cached) " >&6
11578 else 12610 else
11579 ac_check_lib_save_LIBS=$LIBS 12611 ac_check_lib_save_LIBS=$LIBS
11580 LIBS="-lm $LIBS" 12612 LIBS="-lm $LIBS"
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 conftest$ac_exeext conftest.$ac_ext 12637 conftest$ac_exeext conftest.$ac_ext
11606 LIBS=$ac_check_lib_save_LIBS 12638 LIBS=$ac_check_lib_save_LIBS
11607 fi 12639 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11609 $as_echo "$ac_cv_lib_m_sqrt" >&6; } 12641 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11610 if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 12642 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
11611 cat >>confdefs.h <<_ACEOF 12643 cat >>confdefs.h <<_ACEOF
11612 #define HAVE_LIBM 1 12644 #define HAVE_LIBM 1
11613 _ACEOF 12645 _ACEOF
11614 12646
11615 LIBS="-lm $LIBS" 12647 LIBS="-lm $LIBS"
11619 12651
11620 # Check for mail-locking functions in a "mail" library. Probably this should 12652 # Check for mail-locking functions in a "mail" library. Probably this should
11621 # have the same check as for liblockfile below. 12653 # have the same check as for liblockfile below.
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11623 $as_echo_n "checking for maillock in -lmail... " >&6; } 12655 $as_echo_n "checking for maillock in -lmail... " >&6; }
11624 if test "${ac_cv_lib_mail_maillock+set}" = set; then : 12656 if ${ac_cv_lib_mail_maillock+:} false; then :
11625 $as_echo_n "(cached) " >&6 12657 $as_echo_n "(cached) " >&6
11626 else 12658 else
11627 ac_check_lib_save_LIBS=$LIBS 12659 ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-lmail $LIBS" 12660 LIBS="-lmail $LIBS"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 conftest$ac_exeext conftest.$ac_ext 12685 conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS 12686 LIBS=$ac_check_lib_save_LIBS
11655 fi 12687 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11657 $as_echo "$ac_cv_lib_mail_maillock" >&6; } 12689 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11658 if test "x$ac_cv_lib_mail_maillock" = x""yes; then : 12690 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
11659 have_mail=yes 12691 have_mail=yes
11660 else 12692 else
11661 have_mail=no 12693 have_mail=no
11662 fi 12694 fi
11663 12695
11670 else 12702 else
11671 LIBS_MAIL= 12703 LIBS_MAIL=
11672 fi 12704 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11674 $as_echo_n "checking for maillock in -llockfile... " >&6; } 12706 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11675 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : 12707 if ${ac_cv_lib_lockfile_maillock+:} false; then :
11676 $as_echo_n "(cached) " >&6 12708 $as_echo_n "(cached) " >&6
11677 else 12709 else
11678 ac_check_lib_save_LIBS=$LIBS 12710 ac_check_lib_save_LIBS=$LIBS
11679 LIBS="-llockfile $LIBS" 12711 LIBS="-llockfile $LIBS"
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 conftest$ac_exeext conftest.$ac_ext 12736 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS 12737 LIBS=$ac_check_lib_save_LIBS
11706 fi 12738 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11708 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 12740 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11709 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : 12741 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
11710 have_lockfile=yes 12742 have_lockfile=yes
11711 else 12743 else
11712 have_lockfile=no 12744 have_lockfile=no
11713 fi 12745 fi
11714 12746
11724 # (no liblockfile.a installed), ensure that we don't need to. 12756 # (no liblockfile.a installed), ensure that we don't need to.
11725 # Extract the first word of "liblockfile.so", so it can be a program name with args. 12757 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11726 set dummy liblockfile.so; ac_word=$2 12758 set dummy liblockfile.so; ac_word=$2
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; } 12760 $as_echo_n "checking for $ac_word... " >&6; }
11729 if test "${ac_cv_prog_liblockfile+set}" = set; then : 12761 if ${ac_cv_prog_liblockfile+:} false; then :
11730 $as_echo_n "(cached) " >&6 12762 $as_echo_n "(cached) " >&6
11731 else 12763 else
11732 if test -n "$liblockfile"; then 12764 if test -n "$liblockfile"; then
11733 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 12765 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11734 else 12766 else
11768 fi 12800 fi
11769 fi 12801 fi
11770 for ac_func in touchlock 12802 for ac_func in touchlock
11771 do : 12803 do :
11772 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" 12804 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11773 if test "x$ac_cv_func_touchlock" = x""yes; then : 12805 if test "x$ac_cv_func_touchlock" = xyes; then :
11774 cat >>confdefs.h <<_ACEOF 12806 cat >>confdefs.h <<_ACEOF
11775 #define HAVE_TOUCHLOCK 1 12807 #define HAVE_TOUCHLOCK 1
11776 _ACEOF 12808 _ACEOF
11777 12809
11778 fi 12810 fi
11779 done 12811 done
11780 12812
11781 for ac_header in maillock.h 12813 for ac_header in maillock.h
11782 do : 12814 do :
11783 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 12815 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11784 if test "x$ac_cv_header_maillock_h" = x""yes; then : 12816 if test "x$ac_cv_header_maillock_h" = xyes; then :
11785 cat >>confdefs.h <<_ACEOF 12817 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_MAILLOCK_H 1 12818 #define HAVE_MAILLOCK_H 1
11787 _ACEOF 12819 _ACEOF
11788 12820
11789 fi 12821 fi
11839 12871
11840 12872
11841 for ac_func in gethostname getdomainname dup2 \ 12873 for ac_func in gethostname getdomainname dup2 \
11842 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 12874 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11843 random lrand48 logb frexp fmod rint cbrt ftime setsid \ 12875 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11844 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 12876 strerror fpathconf select euidaccess getpagesize tzset setlocale \
11845 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \ 12877 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11846 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \ 12878 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11847 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 12879 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11848 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \ 12880 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11849 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 12881 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11860 done 12892 done
11861 12893
11862 12894
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
11864 $as_echo_n "checking for __builtin_unwind_init... " >&6; } 12896 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
11865 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then : 12897 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
11866 $as_echo_n "(cached) " >&6 12898 $as_echo_n "(cached) " >&6
11867 else 12899 else
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */ 12901 /* end confdefs.h. */
11870 12902
11893 fi 12925 fi
11894 12926
11895 for ac_header in sys/un.h 12927 for ac_header in sys/un.h
11896 do : 12928 do :
11897 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 12929 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11898 if test "x$ac_cv_header_sys_un_h" = x""yes; then : 12930 if test "x$ac_cv_header_sys_un_h" = xyes; then :
11899 cat >>confdefs.h <<_ACEOF 12931 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_SYS_UN_H 1 12932 #define HAVE_SYS_UN_H 1
11901 _ACEOF 12933 _ACEOF
11902 12934
11903 fi 12935 fi
11904 12936
11905 done 12937 done
11906 12938
11907 12939
11908 12940 ac_have_func=no # yes means we've found a way to get the load average.
12941
12942 # Make sure getloadavg.c is where it belongs, at configure-time.
12943 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12944 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12945
12946 ac_save_LIBS=$LIBS
12947
12948 # Check for getloadavg, but be sure not to touch the cache variable.
12949 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12950 if test "x$ac_cv_func_getloadavg" = xyes; then :
12951 exit 0
12952 else
12953 exit 1
12954 fi
12955 ) && ac_have_func=yes
12956
12957 # On HPUX9, an unprivileged user can get load averages through this function.
12958 for ac_func in pstat_getdynamic
12959 do :
12960 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12961 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
12962 cat >>confdefs.h <<_ACEOF
12963 #define HAVE_PSTAT_GETDYNAMIC 1
12964 _ACEOF
12965
12966 fi
12967 done
12968
12969
12970 # Solaris has libkstat which does not require root.
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12972 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12973 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12974 $as_echo_n "(cached) " >&6
12975 else
12976 ac_check_lib_save_LIBS=$LIBS
12977 LIBS="-lkstat $LIBS"
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980
12981 /* Override any GCC internal prototype to avoid an error.
12982 Use char because int might match the return type of a GCC
12983 builtin and then its argument prototype would still apply. */
12984 #ifdef __cplusplus
12985 extern "C"
12986 #endif
12987 char kstat_open ();
12988 int
12989 main ()
12990 {
12991 return kstat_open ();
12992 ;
12993 return 0;
12994 }
12995 _ACEOF
12996 if ac_fn_c_try_link "$LINENO"; then :
12997 ac_cv_lib_kstat_kstat_open=yes
12998 else
12999 ac_cv_lib_kstat_kstat_open=no
13000 fi
13001 rm -f core conftest.err conftest.$ac_objext \
13002 conftest$ac_exeext conftest.$ac_ext
13003 LIBS=$ac_check_lib_save_LIBS
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13006 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13007 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13008 cat >>confdefs.h <<_ACEOF
13009 #define HAVE_LIBKSTAT 1
13010 _ACEOF
13011
13012 LIBS="-lkstat $LIBS"
13013
13014 fi
13015
13016 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13017
13018 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13019 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13020 # to get the right answer into the cache.
13021 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13022 if test $ac_have_func = no; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13024 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13025 if ${ac_cv_lib_elf_elf_begin+:} false; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-lelf $LIBS"
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032
13033 /* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13036 #ifdef __cplusplus
13037 extern "C"
13038 #endif
13039 char elf_begin ();
13040 int
13041 main ()
13042 {
13043 return elf_begin ();
13044 ;
13045 return 0;
13046 }
13047 _ACEOF
13048 if ac_fn_c_try_link "$LINENO"; then :
13049 ac_cv_lib_elf_elf_begin=yes
13050 else
13051 ac_cv_lib_elf_elf_begin=no
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_lib_save_LIBS
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13058 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13059 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
13060 LIBS="-lelf $LIBS"
13061 fi
13062
13063 fi
13064 if test $ac_have_func = no; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13066 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13067 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
13068 $as_echo_n "(cached) " >&6
13069 else
13070 ac_check_lib_save_LIBS=$LIBS
13071 LIBS="-lkvm $LIBS"
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h. */
13074
13075 /* Override any GCC internal prototype to avoid an error.
13076 Use char because int might match the return type of a GCC
13077 builtin and then its argument prototype would still apply. */
13078 #ifdef __cplusplus
13079 extern "C"
13080 #endif
13081 char kvm_open ();
13082 int
13083 main ()
13084 {
13085 return kvm_open ();
13086 ;
13087 return 0;
13088 }
13089 _ACEOF
13090 if ac_fn_c_try_link "$LINENO"; then :
13091 ac_cv_lib_kvm_kvm_open=yes
13092 else
13093 ac_cv_lib_kvm_kvm_open=no
13094 fi
13095 rm -f core conftest.err conftest.$ac_objext \
13096 conftest$ac_exeext conftest.$ac_ext
13097 LIBS=$ac_check_lib_save_LIBS
13098 fi
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13100 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13101 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
13102 LIBS="-lkvm $LIBS"
13103 fi
13104
13105 # Check for the 4.4BSD definition of getloadavg.
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13107 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13108 if ${ac_cv_lib_util_getloadavg+:} false; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 ac_check_lib_save_LIBS=$LIBS
13112 LIBS="-lutil $LIBS"
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115
13116 /* Override any GCC internal prototype to avoid an error.
13117 Use char because int might match the return type of a GCC
13118 builtin and then its argument prototype would still apply. */
13119 #ifdef __cplusplus
13120 extern "C"
13121 #endif
13122 char getloadavg ();
13123 int
13124 main ()
13125 {
13126 return getloadavg ();
13127 ;
13128 return 0;
13129 }
13130 _ACEOF
13131 if ac_fn_c_try_link "$LINENO"; then :
13132 ac_cv_lib_util_getloadavg=yes
13133 else
13134 ac_cv_lib_util_getloadavg=no
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext \
13137 conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13139 fi
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13141 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13142 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
13143 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13144 fi
13145
13146 fi
13147
13148 if test $ac_have_func = no; then
13149 # There is a commonly available library for RS/6000 AIX.
13150 # Since it is not a standard part of AIX, it might be installed locally.
13151 ac_getloadavg_LIBS=$LIBS
13152 LIBS="-L/usr/local/lib $LIBS"
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13154 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13155 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13158 ac_check_lib_save_LIBS=$LIBS
13159 LIBS="-lgetloadavg $LIBS"
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13166 #ifdef __cplusplus
13167 extern "C"
13168 #endif
13169 char getloadavg ();
13170 int
13171 main ()
13172 {
13173 return getloadavg ();
13174 ;
13175 return 0;
13176 }
13177 _ACEOF
13178 if ac_fn_c_try_link "$LINENO"; then :
13179 ac_cv_lib_getloadavg_getloadavg=yes
13180 else
13181 ac_cv_lib_getloadavg_getloadavg=no
13182 fi
13183 rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13185 LIBS=$ac_check_lib_save_LIBS
13186 fi
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13188 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13189 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
13190 LIBS="-lgetloadavg $LIBS"
13191 else
13192 LIBS=$ac_getloadavg_LIBS
13193 fi
13194
13195 fi
13196
13197 # Make sure it is really in the library, if we think we found it,
13198 # otherwise set up the replacement function.
13199 for ac_func in getloadavg
13200 do :
13201 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13202 if test "x$ac_cv_func_getloadavg" = xyes; then :
13203 cat >>confdefs.h <<_ACEOF
13204 #define HAVE_GETLOADAVG 1
13205 _ACEOF
13206
13207 else
13208 case " $LIBOBJS " in
13209 *" getloadavg.$ac_objext "* ) ;;
13210 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13211 ;;
13212 esac
13213
13214
13215 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13216
13217 # Figure out what our getloadavg.c needs.
13218 ac_have_func=no
13219 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13220 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
13221 ac_have_func=yes
13222
13223 $as_echo "#define DGUX 1" >>confdefs.h
13224
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13226 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13227 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-ldgc $LIBS"
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply. */
13238 #ifdef __cplusplus
13239 extern "C"
13240 #endif
13241 char dg_sys_info ();
13242 int
13243 main ()
13244 {
13245 return dg_sys_info ();
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13251 ac_cv_lib_dgc_dg_sys_info=yes
13252 else
13253 ac_cv_lib_dgc_dg_sys_info=no
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 LIBS=$ac_check_lib_save_LIBS
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13260 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13261 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
13262 cat >>confdefs.h <<_ACEOF
13263 #define HAVE_LIBDGC 1
13264 _ACEOF
13265
13266 LIBS="-ldgc $LIBS"
13267
13268 fi
13269
13270 fi
13271
13272
13273
13274 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13275 if test "x$ac_cv_header_locale_h" = xyes; then :
13276
13277 fi
13278
13279
13280 for ac_func in setlocale
13281 do :
13282 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13283 if test "x$ac_cv_func_setlocale" = xyes; then :
13284 cat >>confdefs.h <<_ACEOF
13285 #define HAVE_SETLOCALE 1
13286 _ACEOF
13287
13288 fi
13289 done
13290
13291
13292 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13293 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13294 # Irix 4.0.5F has the header but not the library.
13295 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13296 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13297 ac_have_func=yes
13298
13299 $as_echo "#define SVR4 1" >>confdefs.h
13300
13301 fi
13302
13303 if test $ac_have_func = no; then
13304 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13305 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
13306 ac_have_func=yes
13307
13308 $as_echo "#define UMAX 1" >>confdefs.h
13309
13310
13311 $as_echo "#define UMAX4_3 1" >>confdefs.h
13312
13313 fi
13314
13315
13316 fi
13317
13318 if test $ac_have_func = no; then
13319 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13320 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
13321 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13322
13323 fi
13324
13325
13326 fi
13327
13328 if test $ac_have_func = no; then
13329 for ac_header in mach/mach.h
13330 do :
13331 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13332 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
13333 cat >>confdefs.h <<_ACEOF
13334 #define HAVE_MACH_MACH_H 1
13335 _ACEOF
13336
13337 fi
13338
13339 done
13340
13341 fi
13342
13343 for ac_header in nlist.h
13344 do :
13345 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13346 if test "x$ac_cv_header_nlist_h" = xyes; then :
13347 cat >>confdefs.h <<_ACEOF
13348 #define HAVE_NLIST_H 1
13349 _ACEOF
13350 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13351 "
13352 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
13353
13354 cat >>confdefs.h <<_ACEOF
13355 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13356 _ACEOF
13357
13358
13359 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13360
13361 fi
13362
13363
13364 fi
13365
13366 done
13367
13368 fi
13369 done
13370
13371
13372 # Some definitions of getloadavg require that the program be installed setgid.
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13374 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13375 if ${ac_cv_func_getloadavg_setgid+:} false; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13381 #ifdef LDAV_PRIVILEGED
13382 Yowza Am I SETGID yet
13383 #endif
13384 _ACEOF
13385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13386 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13387 ac_cv_func_getloadavg_setgid=yes
13388 else
13389 ac_cv_func_getloadavg_setgid=no
13390 fi
13391 rm -f conftest*
13392
13393 fi
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13395 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13396 if test $ac_cv_func_getloadavg_setgid = yes; then
13397 NEED_SETGID=true
13398
13399 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13400
13401 else
13402 NEED_SETGID=false
13403 fi
13404
13405 if test $ac_cv_func_getloadavg_setgid = yes; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13407 $as_echo_n "checking group of /dev/kmem... " >&6; }
13408 if ${ac_cv_group_kmem+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13412 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13413 # If we got an error (system does not support symlinks), try without -L.
13414 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13415 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13416 | sed -ne 's/[ ][ ]*/ /g;
13417 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13418 / /s/.* //;p;'`
13419
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13422 $as_echo "$ac_cv_group_kmem" >&6; }
13423 KMEM_GROUP=$ac_cv_group_kmem
13424 fi
13425 if test "x$ac_save_LIBS" = x; then
13426 GETLOADAVG_LIBS=$LIBS
13427 else
13428 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13429 fi
13430 LIBS=$ac_save_LIBS
13431
13432
13433
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13435 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13436 if ${ac_cv_sys_largefile_source+:} false; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 while :; do
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 #include <sys/types.h> /* for off_t */
13443 #include <stdio.h>
13444 int
13445 main ()
13446 {
13447 int (*fp) (FILE *, off_t, int) = fseeko;
13448 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13449 ;
13450 return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_link "$LINENO"; then :
13454 ac_cv_sys_largefile_source=no; break
13455 fi
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460 #define _LARGEFILE_SOURCE 1
13461 #include <sys/types.h> /* for off_t */
13462 #include <stdio.h>
13463 int
13464 main ()
13465 {
13466 int (*fp) (FILE *, off_t, int) = fseeko;
13467 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13468 ;
13469 return 0;
13470 }
13471 _ACEOF
13472 if ac_fn_c_try_link "$LINENO"; then :
13473 ac_cv_sys_largefile_source=1; break
13474 fi
13475 rm -f core conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477 ac_cv_sys_largefile_source=unknown
13478 break
13479 done
13480 fi
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13482 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13483 case $ac_cv_sys_largefile_source in #(
13484 no | unknown) ;;
13485 *)
13486 cat >>confdefs.h <<_ACEOF
13487 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13488 _ACEOF
13489 ;;
13490 esac
13491 rm -rf conftest*
13492
13493 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13494 # in glibc 2.1.3, but that breaks too many other things.
13495 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13496 if test $ac_cv_sys_largefile_source != unknown; then
13497
13498 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13499
13500 fi
13501
13502
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13504 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13505 if ${ac_cv_func_getpgrp_void+:} false; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 # Use it with a single arg.
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511 $ac_includes_default
13512 int
13513 main ()
13514 {
13515 getpgrp (0);
13516 ;
13517 return 0;
13518 }
13519 _ACEOF
13520 if ac_fn_c_try_compile "$LINENO"; then :
13521 ac_cv_func_getpgrp_void=no
13522 else
13523 ac_cv_func_getpgrp_void=yes
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13529 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13530 if test $ac_cv_func_getpgrp_void = yes; then
13531
13532 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13533
13534 fi
13535
13536
13537 # Configure gnulib.
13538
13539
13540
13541
13542 LIBC_FATAL_STDERR_=1
13543 export LIBC_FATAL_STDERR_
13544
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13547 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13548 if ${gl_cv_func_c99_strtold+:} false; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 /* On HP-UX before 11.23, strtold returns a struct instead of
13554 long double. Reject implementations like that, by requiring
13555 compatibility with the C99 prototype. */
13556 #include <stdlib.h>
13557 static long double (*p) (char const *, char **) = strtold;
13558 static long double
13559 test (char const *nptr, char **endptr)
13560 {
13561 long double r;
13562 r = strtold (nptr, endptr);
13563 return r;
13564 }
13565 int
13566 main ()
13567 {
13568 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13569 ;
13570 return 0;
13571 }
13572 _ACEOF
13573 if ac_fn_c_try_link "$LINENO"; then :
13574 gl_cv_func_c99_strtold=yes
13575 else
13576 gl_cv_func_c99_strtold=no
13577 fi
13578 rm -f core conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext conftest.$ac_ext
13580 fi
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13582 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13583 if test $gl_cv_func_c99_strtold = yes; then
13584
13585 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13586
13587 fi
13588
13589
13590 GNULIB_CHOWN=0;
13591 GNULIB_CLOSE=0;
13592 GNULIB_DUP2=0;
13593 GNULIB_DUP3=0;
13594 GNULIB_ENVIRON=0;
13595 GNULIB_EUIDACCESS=0;
13596 GNULIB_FACCESSAT=0;
13597 GNULIB_FCHDIR=0;
13598 GNULIB_FCHOWNAT=0;
13599 GNULIB_FSYNC=0;
13600 GNULIB_FTRUNCATE=0;
13601 GNULIB_GETCWD=0;
13602 GNULIB_GETDOMAINNAME=0;
13603 GNULIB_GETDTABLESIZE=0;
13604 GNULIB_GETGROUPS=0;
13605 GNULIB_GETHOSTNAME=0;
13606 GNULIB_GETLOGIN=0;
13607 GNULIB_GETLOGIN_R=0;
13608 GNULIB_GETPAGESIZE=0;
13609 GNULIB_GETUSERSHELL=0;
13610 GNULIB_LCHOWN=0;
13611 GNULIB_LINK=0;
13612 GNULIB_LINKAT=0;
13613 GNULIB_LSEEK=0;
13614 GNULIB_PIPE=0;
13615 GNULIB_PIPE2=0;
13616 GNULIB_PREAD=0;
13617 GNULIB_PWRITE=0;
13618 GNULIB_READLINK=0;
13619 GNULIB_READLINKAT=0;
13620 GNULIB_RMDIR=0;
13621 GNULIB_SLEEP=0;
13622 GNULIB_SYMLINK=0;
13623 GNULIB_SYMLINKAT=0;
13624 GNULIB_TTYNAME_R=0;
13625 GNULIB_UNISTD_H_GETOPT=0;
13626 GNULIB_UNISTD_H_SIGPIPE=0;
13627 GNULIB_UNLINK=0;
13628 GNULIB_UNLINKAT=0;
13629 GNULIB_USLEEP=0;
13630 GNULIB_WRITE=0;
13631 HAVE_CHOWN=1;
13632 HAVE_DUP2=1;
13633 HAVE_DUP3=1;
13634 HAVE_EUIDACCESS=1;
13635 HAVE_FACCESSAT=1;
13636 HAVE_FCHDIR=1;
13637 HAVE_FCHOWNAT=1;
13638 HAVE_FSYNC=1;
13639 HAVE_FTRUNCATE=1;
13640 HAVE_GETDTABLESIZE=1;
13641 HAVE_GETGROUPS=1;
13642 HAVE_GETHOSTNAME=1;
13643 HAVE_GETLOGIN=1;
13644 HAVE_GETPAGESIZE=1;
13645 HAVE_LCHOWN=1;
13646 HAVE_LINK=1;
13647 HAVE_LINKAT=1;
13648 HAVE_PIPE=1;
13649 HAVE_PIPE2=1;
13650 HAVE_PREAD=1;
13651 HAVE_PWRITE=1;
13652 HAVE_READLINK=1;
13653 HAVE_READLINKAT=1;
13654 HAVE_SLEEP=1;
13655 HAVE_SYMLINK=1;
13656 HAVE_SYMLINKAT=1;
13657 HAVE_UNLINKAT=1;
13658 HAVE_USLEEP=1;
13659 HAVE_DECL_ENVIRON=1;
13660 HAVE_DECL_FCHDIR=1;
13661 HAVE_DECL_GETDOMAINNAME=1;
13662 HAVE_DECL_GETLOGIN_R=1;
13663 HAVE_DECL_GETPAGESIZE=1;
13664 HAVE_DECL_GETUSERSHELL=1;
13665 HAVE_DECL_TTYNAME_R=1;
13666 HAVE_OS_H=0;
13667 HAVE_SYS_PARAM_H=0;
13668 REPLACE_CHOWN=0;
13669 REPLACE_CLOSE=0;
13670 REPLACE_DUP=0;
13671 REPLACE_DUP2=0;
13672 REPLACE_FCHOWNAT=0;
13673 REPLACE_GETCWD=0;
13674 REPLACE_GETDOMAINNAME=0;
13675 REPLACE_GETLOGIN_R=0;
13676 REPLACE_GETGROUPS=0;
13677 REPLACE_GETPAGESIZE=0;
13678 REPLACE_LCHOWN=0;
13679 REPLACE_LINK=0;
13680 REPLACE_LINKAT=0;
13681 REPLACE_LSEEK=0;
13682 REPLACE_PREAD=0;
13683 REPLACE_PWRITE=0;
13684 REPLACE_READLINK=0;
13685 REPLACE_RMDIR=0;
13686 REPLACE_SLEEP=0;
13687 REPLACE_SYMLINK=0;
13688 REPLACE_TTYNAME_R=0;
13689 REPLACE_UNLINK=0;
13690 REPLACE_UNLINKAT=0;
13691 REPLACE_USLEEP=0;
13692 REPLACE_WRITE=0;
13693 UNISTD_H_HAVE_WINSOCK2_H=0;
13694 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13695
13696
13697
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13700 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13701 if ${gl_cv_have_include_next+:} false; then :
13702 $as_echo_n "(cached) " >&6
13703 else
13704 rm -rf conftestd1a conftestd1b conftestd2
13705 mkdir conftestd1a conftestd1b conftestd2
13706 cat <<EOF > conftestd1a/conftest.h
13707 #define DEFINED_IN_CONFTESTD1
13708 #include_next <conftest.h>
13709 #ifdef DEFINED_IN_CONFTESTD2
13710 int foo;
13711 #else
13712 #error "include_next doesn't work"
13713 #endif
13714 EOF
13715 cat <<EOF > conftestd1b/conftest.h
13716 #define DEFINED_IN_CONFTESTD1
13717 #include <stdio.h>
13718 #include_next <conftest.h>
13719 #ifdef DEFINED_IN_CONFTESTD2
13720 int foo;
13721 #else
13722 #error "include_next doesn't work"
13723 #endif
13724 EOF
13725 cat <<EOF > conftestd2/conftest.h
13726 #ifndef DEFINED_IN_CONFTESTD1
13727 #error "include_next test doesn't work"
13728 #endif
13729 #define DEFINED_IN_CONFTESTD2
13730 EOF
13731 gl_save_CPPFLAGS="$CPPFLAGS"
13732 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 #include <conftest.h>
13736 _ACEOF
13737 if ac_fn_c_try_compile "$LINENO"; then :
13738 gl_cv_have_include_next=yes
13739 else
13740 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 #include <conftest.h>
13744 _ACEOF
13745 if ac_fn_c_try_compile "$LINENO"; then :
13746 gl_cv_have_include_next=buggy
13747 else
13748 gl_cv_have_include_next=no
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 CPPFLAGS="$gl_save_CPPFLAGS"
13755 rm -rf conftestd1a conftestd1b conftestd2
13756
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13759 $as_echo "$gl_cv_have_include_next" >&6; }
13760 PRAGMA_SYSTEM_HEADER=
13761 if test $gl_cv_have_include_next = yes; then
13762 INCLUDE_NEXT=include_next
13763 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13764 if test -n "$GCC"; then
13765 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13766 fi
13767 else
13768 if test $gl_cv_have_include_next = buggy; then
13769 INCLUDE_NEXT=include
13770 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13771 else
13772 INCLUDE_NEXT=include
13773 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13774 fi
13775 fi
13776
13777
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13780 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13781 if ${gl_cv_pragma_columns+:} false; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786
13787 #ifdef __TANDEM
13788 choke me
13789 #endif
13790
13791 _ACEOF
13792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13793 $EGREP "choke me" >/dev/null 2>&1; then :
13794 gl_cv_pragma_columns=yes
13795 else
13796 gl_cv_pragma_columns=no
13797 fi
13798 rm -f conftest*
13799
13800
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13803 $as_echo "$gl_cv_pragma_columns" >&6; }
13804 if test $gl_cv_pragma_columns = yes; then
13805 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13806 else
13807 PRAGMA_COLUMNS=
13808 fi
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823 if test $gl_cv_have_include_next = yes; then
13824 gl_cv_next_getopt_h='<'getopt.h'>'
13825 else
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13827 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13828 if ${gl_cv_next_getopt_h+:} false; then :
13829 $as_echo_n "(cached) " >&6
13830 else
13831
13832 if test $ac_cv_header_getopt_h = yes; then
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 #include <getopt.h>
13836
13837 _ACEOF
13838 case "$host_os" in
13839 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13840 *) gl_absname_cpp="$ac_cpp" ;;
13841 esac
13842 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13843 sed -n '\#/getopt.h#{
13844 s#.*"\(.*/getopt.h\)".*#\1#
13845 s#^/[^/]#//&#
13846 p
13847 q
13848 }'`'"'
13849 else
13850 gl_cv_next_getopt_h='<'getopt.h'>'
13851 fi
13852
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13855 $as_echo "$gl_cv_next_getopt_h" >&6; }
13856 fi
13857 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13858
13859 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13861 gl_next_as_first_directive='<'getopt.h'>'
13862 else
13863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13864 gl_next_as_first_directive=$gl_cv_next_getopt_h
13865 fi
13866 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13867
13868
13869
13870
13871 if test $ac_cv_header_getopt_h = yes; then
13872 HAVE_GETOPT_H=1
13873 else
13874 HAVE_GETOPT_H=0
13875 fi
13876
13877
13878 gl_replace_getopt=
13879
13880 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13881 for ac_header in getopt.h
13882 do :
13883 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13884 if test "x$ac_cv_header_getopt_h" = xyes; then :
13885 cat >>confdefs.h <<_ACEOF
13886 #define HAVE_GETOPT_H 1
13887 _ACEOF
13888
13889 else
13890 gl_replace_getopt=yes
13891 fi
13892
13893 done
13894
13895 fi
13896
13897 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13898 for ac_func in getopt_long_only
13899 do :
13900 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13901 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13902 cat >>confdefs.h <<_ACEOF
13903 #define HAVE_GETOPT_LONG_ONLY 1
13904 _ACEOF
13905
13906 else
13907 gl_replace_getopt=yes
13908 fi
13909 done
13910
13911 fi
13912
13913 if test -z "$gl_replace_getopt"; then
13914 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13915 "
13916 if test "x$ac_cv_have_decl_optreset" = xyes; then :
13917 ac_have_decl=1
13918 else
13919 ac_have_decl=0
13920 fi
13921
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_DECL_OPTRESET $ac_have_decl
13924 _ACEOF
13925 if test $ac_have_decl = 1; then :
13926
13927 else
13928 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13929 "
13930 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
13931 ac_have_decl=1
13932 else
13933 ac_have_decl=0
13934 fi
13935
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
13938 _ACEOF
13939
13940
13941 fi
13942
13943 fi
13944
13945 if test -z "$gl_replace_getopt"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13947 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13948 if ${gl_cv_func_getopt_posix+:} false; then :
13949 $as_echo_n "(cached) " >&6
13950 else
13951
13952 if test "$cross_compiling" = yes; then :
13953 case "$host_os" in
13954 mingw*) gl_cv_func_getopt_posix="guessing no";;
13955 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
13956 *) gl_cv_func_getopt_posix="guessing yes";;
13957 esac
13958
13959 else
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13962
13963 #include <unistd.h>
13964 #include <stdlib.h>
13965 #include <string.h>
13966
13967 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
13968 # define OPTIND_MIN 0
13969 #else
13970 # define OPTIND_MIN 1
13971 #endif
13972
13973 int
13974 main ()
13975 {
13976 {
13977 int argc = 0;
13978 char *argv[10];
13979 int c;
13980
13981 argv[argc++] = "program";
13982 argv[argc++] = "-a";
13983 argv[argc++] = "foo";
13984 argv[argc++] = "bar";
13985 argv[argc] = NULL;
13986 optind = OPTIND_MIN;
13987 opterr = 0;
13988
13989 c = getopt (argc, argv, "ab");
13990 if (!(c == 'a'))
13991 return 1;
13992 c = getopt (argc, argv, "ab");
13993 if (!(c == -1))
13994 return 2;
13995 if (!(optind == 2))
13996 return 3;
13997 }
13998 /* Some internal state exists at this point. */
13999 {
14000 int argc = 0;
14001 char *argv[10];
14002 int c;
14003
14004 argv[argc++] = "program";
14005 argv[argc++] = "donald";
14006 argv[argc++] = "-p";
14007 argv[argc++] = "billy";
14008 argv[argc++] = "duck";
14009 argv[argc++] = "-a";
14010 argv[argc++] = "bar";
14011 argv[argc] = NULL;
14012 optind = OPTIND_MIN;
14013 opterr = 0;
14014
14015 c = getopt (argc, argv, "+abp:q:");
14016 if (!(c == -1))
14017 return 4;
14018 if (!(strcmp (argv[0], "program") == 0))
14019 return 5;
14020 if (!(strcmp (argv[1], "donald") == 0))
14021 return 6;
14022 if (!(strcmp (argv[2], "-p") == 0))
14023 return 7;
14024 if (!(strcmp (argv[3], "billy") == 0))
14025 return 8;
14026 if (!(strcmp (argv[4], "duck") == 0))
14027 return 9;
14028 if (!(strcmp (argv[5], "-a") == 0))
14029 return 10;
14030 if (!(strcmp (argv[6], "bar") == 0))
14031 return 11;
14032 if (!(optind == 1))
14033 return 12;
14034 }
14035 /* Detect MacOS 10.5, AIX 7.1 bug. */
14036 {
14037 char *argv[3] = { "program", "-ab", NULL };
14038 optind = OPTIND_MIN;
14039 opterr = 0;
14040 if (getopt (2, argv, "ab:") != 'a')
14041 return 13;
14042 if (getopt (2, argv, "ab:") != '?')
14043 return 14;
14044 if (optopt != 'b')
14045 return 15;
14046 if (optind != 2)
14047 return 16;
14048 }
14049
14050 return 0;
14051 }
14052
14053 _ACEOF
14054 if ac_fn_c_try_run "$LINENO"; then :
14055 gl_cv_func_getopt_posix=yes
14056 else
14057 gl_cv_func_getopt_posix=no
14058 fi
14059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14060 conftest.$ac_objext conftest.beam conftest.$ac_ext
14061 fi
14062
14063
14064 fi
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14066 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14067 case "$gl_cv_func_getopt_posix" in
14068 *no) gl_replace_getopt=yes ;;
14069 esac
14070 fi
14071
14072 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14074 $as_echo_n "checking for working GNU getopt function... " >&6; }
14075 if ${gl_cv_func_getopt_gnu+:} false; then :
14076 $as_echo_n "(cached) " >&6
14077 else
14078 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14079 # optstring is necessary for programs like m4 that have POSIX-mandated
14080 # semantics for supporting options interspersed with files.
14081 # Also, since getopt_long is a GNU extension, we require optind=0.
14082 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14083 # so take care to revert to the correct (non-)export state.
14084 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14085 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14086 xx) gl_had_POSIXLY_CORRECT=exported ;;
14087 x) gl_had_POSIXLY_CORRECT=yes ;;
14088 *) gl_had_POSIXLY_CORRECT= ;;
14089 esac
14090 POSIXLY_CORRECT=1
14091 export POSIXLY_CORRECT
14092 if test "$cross_compiling" = yes; then :
14093 case $host_os:$ac_cv_have_decl_optreset in
14094 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14095 *:yes) gl_cv_func_getopt_gnu=no;;
14096 *) gl_cv_func_getopt_gnu=yes;;
14097 esac
14098
14099 else
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <getopt.h>
14103 #include <stddef.h>
14104 #include <string.h>
14105
14106 int
14107 main ()
14108 {
14109
14110 int result = 0;
14111 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14112 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14113 OSF/1 5.1, Solaris 10. */
14114 {
14115 char *myargv[3];
14116 myargv[0] = "conftest";
14117 myargv[1] = "-+";
14118 myargv[2] = 0;
14119 opterr = 0;
14120 if (getopt (2, myargv, "+a") != '?')
14121 result |= 1;
14122 }
14123 /* This code succeeds on glibc 2.8, mingw,
14124 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14125 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14126 {
14127 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14128
14129 optind = 1;
14130 if (getopt (4, argv, "p::") != 'p')
14131 result |= 2;
14132 else if (optarg != NULL)
14133 result |= 4;
14134 else if (getopt (4, argv, "p::") != -1)
14135 result |= 6;
14136 else if (optind != 2)
14137 result |= 8;
14138 }
14139 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14140 {
14141 char *argv[] = { "program", "foo", "-p", NULL };
14142 optind = 0;
14143 if (getopt (3, argv, "-p") != 1)
14144 result |= 16;
14145 else if (getopt (3, argv, "-p") != 'p')
14146 result |= 32;
14147 }
14148 /* This code fails on glibc 2.11. */
14149 {
14150 char *argv[] = { "program", "-b", "-a", NULL };
14151 optind = opterr = 0;
14152 if (getopt (3, argv, "+:a:b") != 'b')
14153 result |= 64;
14154 else if (getopt (3, argv, "+:a:b") != ':')
14155 result |= 64;
14156 }
14157 return result;
14158
14159 ;
14160 return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_run "$LINENO"; then :
14164 gl_cv_func_getopt_gnu=yes
14165 else
14166 gl_cv_func_getopt_gnu=no
14167 fi
14168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14169 conftest.$ac_objext conftest.beam conftest.$ac_ext
14170 fi
14171
14172 case $gl_had_POSIXLY_CORRECT in
14173 exported) ;;
14174 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14175 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14176 esac
14177
14178 fi
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14180 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14181 if test "$gl_cv_func_getopt_gnu" = "no"; then
14182 gl_replace_getopt=yes
14183 fi
14184 fi
14185
14186 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14187 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14188 ac_have_decl=1
14189 else
14190 ac_have_decl=0
14191 fi
14192
14193 cat >>confdefs.h <<_ACEOF
14194 #define HAVE_DECL_GETENV $ac_have_decl
14195 _ACEOF
14196
14197
14198
14199
14200
14201
14202 if test -n "$gl_replace_getopt"; then :
14203
14204
14205
14206 GETOPT_H=getopt.h
14207
14208 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14209
14210
14211
14212 GNULIB_UNISTD_H_GETOPT=1
14213
14214
14215
14216
14217
14218
14219
14220
14221 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14232
14233
14234
14235
14236
14237
14238 fi
14239
14240
14241
14242 GNULIB_MKTIME=0;
14243 GNULIB_NANOSLEEP=0;
14244 GNULIB_STRPTIME=0;
14245 GNULIB_TIMEGM=0;
14246 GNULIB_TIME_R=0;
14247 HAVE_DECL_LOCALTIME_R=1;
14248 HAVE_NANOSLEEP=1;
14249 HAVE_STRPTIME=1;
14250 HAVE_TIMEGM=1;
14251 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14252 REPLACE_MKTIME=GNULIB_PORTCHECK;
14253 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14254 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11909 14255
11910 14256
11911 14257
11912 14258
11913 for ac_func in $ac_func_list 14259 for ac_func in $ac_func_list
11923 done 14269 done
11924 14270
11925 14271
11926 14272
11927 14273
11928 14274 gl_cv_c_multiarch=no
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 #ifndef __APPLE_CC__
14278 not a universal capable compiler
14279 #endif
14280 typedef int dummy;
14281
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284
14285 arch=
14286 prev=
14287 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14288 if test -n "$prev"; then
14289 case $word in
14290 i?86 | x86_64 | ppc | ppc64)
14291 if test -z "$arch" || test "$arch" = "$word"; then
14292 arch="$word"
14293 else
14294 gl_cv_c_multiarch=yes
14295 fi
14296 ;;
14297 esac
14298 prev=
14299 else
14300 if test "x$word" = "x-arch"; then
14301 prev=arch
14302 fi
14303 fi
14304 done
14305
14306 fi
14307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308 if test $gl_cv_c_multiarch = yes; then
14309
14310 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14311
14312 APPLE_UNIVERSAL_BUILD=1
14313 else
14314 APPLE_UNIVERSAL_BUILD=0
14315 fi
14316
14317
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14319 $as_echo_n "checking for inline... " >&6; }
14320 if ${ac_cv_c_inline+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 ac_cv_c_inline=no
14324 for ac_kw in inline __inline__ __inline; do
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 #ifndef __cplusplus
14328 typedef int foo_t;
14329 static $ac_kw foo_t static_foo () {return 0; }
14330 $ac_kw foo_t foo () {return 0; }
14331 #endif
14332
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 ac_cv_c_inline=$ac_kw
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 test "$ac_cv_c_inline" != no && break
14339 done
14340
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14343 $as_echo "$ac_cv_c_inline" >&6; }
14344
14345 case $ac_cv_c_inline in
14346 inline | yes) ;;
14347 *)
14348 case $ac_cv_c_inline in
14349 no) ac_val=;;
14350 *) ac_val=$ac_cv_c_inline;;
14351 esac
14352 cat >>confdefs.h <<_ACEOF
14353 #ifndef __cplusplus
14354 #define inline $ac_val
14355 #endif
14356 _ACEOF
14357 ;;
14358 esac
14359
14360
14361 REPLACE_NULL=0;
14362 HAVE_WCHAR_T=1;
14363 STDDEF_H='';
14364
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14367 $as_echo_n "checking for wchar_t... " >&6; }
14368 if ${gt_cv_c_wchar_t+:} false; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 #include <stddef.h>
14374 wchar_t foo = (wchar_t)'\0';
14375 int
14376 main ()
14377 {
14378
14379 ;
14380 return 0;
14381 }
14382 _ACEOF
14383 if ac_fn_c_try_compile "$LINENO"; then :
14384 gt_cv_c_wchar_t=yes
14385 else
14386 gt_cv_c_wchar_t=no
14387 fi
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389 fi
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14391 $as_echo "$gt_cv_c_wchar_t" >&6; }
14392 if test $gt_cv_c_wchar_t = yes; then
14393
14394 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14395
14396 fi
14397
14398
14399
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14401 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14402 if ${ac_cv_c_restrict+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 ac_cv_c_restrict=no
14406 # The order here caters to the fact that C++ does not require restrict.
14407 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 typedef int * int_ptr;
14411 int foo (int_ptr $ac_kw ip) {
14412 return ip[0];
14413 }
14414 int
14415 main ()
14416 {
14417 int s[1];
14418 int * $ac_kw t = s;
14419 t[0] = 0;
14420 return foo(t)
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_compile "$LINENO"; then :
14426 ac_cv_c_restrict=$ac_kw
14427 fi
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 test "$ac_cv_c_restrict" != no && break
14430 done
14431
14432 fi
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14434 $as_echo "$ac_cv_c_restrict" >&6; }
14435
14436 case $ac_cv_c_restrict in
14437 restrict) ;;
14438 no) $as_echo "#define restrict /**/" >>confdefs.h
14439 ;;
14440 *) cat >>confdefs.h <<_ACEOF
14441 #define restrict $ac_cv_c_restrict
14442 _ACEOF
14443 ;;
14444 esac
14445
14446
14447
14448
14449
14450
14451
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14453 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14454 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 #include <time.h>
14460
14461 int
14462 main ()
14463 {
14464 static struct timespec x; x.tv_sec = x.tv_nsec;
14465 ;
14466 return 0;
14467 }
14468 _ACEOF
14469 if ac_fn_c_try_compile "$LINENO"; then :
14470 gl_cv_sys_struct_timespec_in_time_h=yes
14471 else
14472 gl_cv_sys_struct_timespec_in_time_h=no
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14477 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14478
14479 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14480 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14481 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14482 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14483 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14484 else
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14486 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14487 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14488 $as_echo_n "(cached) " >&6
14489 else
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <sys/time.h>
14493
14494 int
14495 main ()
14496 {
14497 static struct timespec x; x.tv_sec = x.tv_nsec;
14498 ;
14499 return 0;
14500 }
14501 _ACEOF
14502 if ac_fn_c_try_compile "$LINENO"; then :
14503 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14504 else
14505 gl_cv_sys_struct_timespec_in_sys_time_h=no
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14510 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14511 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14512 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14513 else
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14515 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14516 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14517 $as_echo_n "(cached) " >&6
14518 else
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521 #include <pthread.h>
14522
14523 int
14524 main ()
14525 {
14526 static struct timespec x; x.tv_sec = x.tv_nsec;
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_compile "$LINENO"; then :
14532 gl_cv_sys_struct_timespec_in_pthread_h=yes
14533 else
14534 gl_cv_sys_struct_timespec_in_pthread_h=no
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 fi
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14539 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14540 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14541 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14542 fi
14543 fi
14544 fi
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558 if test $gl_cv_have_include_next = yes; then
14559 gl_cv_next_time_h='<'time.h'>'
14560 else
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14562 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14563 if ${gl_cv_next_time_h+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566
14567 if test $ac_cv_header_time_h = yes; then
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570 #include <time.h>
14571
14572 _ACEOF
14573 case "$host_os" in
14574 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14575 *) gl_absname_cpp="$ac_cpp" ;;
14576 esac
14577 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14578 sed -n '\#/time.h#{
14579 s#.*"\(.*/time.h\)".*#\1#
14580 s#^/[^/]#//&#
14581 p
14582 q
14583 }'`'"'
14584 else
14585 gl_cv_next_time_h='<'time.h'>'
14586 fi
14587
14588 fi
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14590 $as_echo "$gl_cv_next_time_h" >&6; }
14591 fi
14592 NEXT_TIME_H=$gl_cv_next_time_h
14593
14594 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14596 gl_next_as_first_directive='<'time.h'>'
14597 else
14598 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14599 gl_next_as_first_directive=$gl_cv_next_time_h
14600 fi
14601 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14602
14603
14604
14605
14606
14607 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14608 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14609 ac_have_decl=1
14610 else
14611 ac_have_decl=0
14612 fi
14613
14614 cat >>confdefs.h <<_ACEOF
14615 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14616 _ACEOF
14617
14618
14619
14620
14621 if false; then
14622 GL_COND_LIBTOOL_TRUE=
14623 GL_COND_LIBTOOL_FALSE='#'
14624 else
14625 GL_COND_LIBTOOL_TRUE='#'
14626 GL_COND_LIBTOOL_FALSE=
14627 fi
14628
14629 gl_cond_libtool=false
14630 gl_libdeps=
14631 gl_ltlibdeps=
14632 gl_m4_base='m4'
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642 gl_source_base='lib'
14643 # Code from module arg-nonnull:
14644 # Code from module c++defs:
14645 # Code from module dtoastr:
14646
14647 # Code from module extensions:
14648 # Code from module getopt-gnu:
14649
14650
14651
14652
14653
14654
14655
14656 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14657
14658
14659 # Code from module getopt-posix:
14660
14661
14662
14663
14664
14665 if test -n "$gl_replace_getopt"; then :
14666
14667
14668
14669 GETOPT_H=getopt.h
14670
14671 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14672
14673
14674
14675 GNULIB_UNISTD_H_GETOPT=1
14676
14677
14678
14679
14680
14681
14682
14683
14684 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14695
14696
14697
14698
14699
14700
14701 fi
14702
14703
14704 # Code from module gettext-h:
14705
14706
14707 # Code from module include_next:
14708 # Code from module intprops:
14709 # Code from module mktime:
14710
14711
14712
14713
14714
14715 if test $APPLE_UNIVERSAL_BUILD = 1; then
14716 # A universal build on Apple MacOS X platforms.
14717 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14718 # But we need a configuration result that is valid in both modes.
14719 ac_cv_func_working_mktime=no
14720 fi
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11930 $as_echo_n "checking for working mktime... " >&6; } 14722 $as_echo_n "checking for working mktime... " >&6; }
11931 if test "${ac_cv_func_working_mktime+set}" = set; then : 14723 if ${ac_cv_func_working_mktime+:} false; then :
11932 $as_echo_n "(cached) " >&6 14724 $as_echo_n "(cached) " >&6
11933 else 14725 else
11934 if test "$cross_compiling" = yes; then : 14726 if test "$cross_compiling" = yes; then :
11935 ac_cv_func_working_mktime=no 14727 ac_cv_func_working_mktime=no
11936 else 14728 else
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */ 14730 /* end confdefs.h. */
11939 /* Test program from Paul Eggert and Tony Leneis. */ 14731 /* Test program from Paul Eggert and Tony Leneis. */
11940 #ifdef TIME_WITH_SYS_TIME
11941 # include <sys/time.h>
11942 # include <time.h>
11943 #else
11944 # ifdef HAVE_SYS_TIME_H
11945 # include <sys/time.h>
11946 # else
11947 # include <time.h>
11948 # endif
11949 #endif
11950
11951 #include <limits.h> 14732 #include <limits.h>
11952 #include <stdlib.h> 14733 #include <stdlib.h>
14734 #include <time.h>
11953 14735
11954 #ifdef HAVE_UNISTD_H 14736 #ifdef HAVE_UNISTD_H
11955 # include <unistd.h> 14737 # include <unistd.h>
11956 #endif 14738 #endif
11957 14739
11964 14746
11965 static time_t time_t_max; 14747 static time_t time_t_max;
11966 static time_t time_t_min; 14748 static time_t time_t_min;
11967 14749
11968 /* Values we'll use to set the TZ environment variable. */ 14750 /* Values we'll use to set the TZ environment variable. */
11969 static const char *tz_strings[] = { 14751 static char *tz_strings[] = {
11970 (const char *) 0, "TZ=GMT0", "TZ=JST-9", 14752 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11971 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 14753 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11972 }; 14754 };
11973 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 14755 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11974 14756
11975 /* Return 0 if mktime fails to convert a date in the spring-forward gap. 14757 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11982 14764
11983 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 14765 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11984 instead of "TZ=America/Vancouver" in order to detect the bug even 14766 instead of "TZ=America/Vancouver" in order to detect the bug even
11985 on systems that don't support the Olson extension, or don't have the 14767 on systems that don't support the Olson extension, or don't have the
11986 full zoneinfo tables installed. */ 14768 full zoneinfo tables installed. */
11987 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); 14769 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11988 14770
11989 tm.tm_year = 98; 14771 tm.tm_year = 98;
11990 tm.tm_mon = 3; 14772 tm.tm_mon = 3;
11991 tm.tm_mday = 5; 14773 tm.tm_mday = 5;
11992 tm.tm_hour = 2; 14774 tm.tm_hour = 2;
12005 14787
12006 static int 14788 static int
12007 mktime_test (time_t now) 14789 mktime_test (time_t now)
12008 { 14790 {
12009 return (mktime_test1 (now) 14791 return (mktime_test1 (now)
12010 && mktime_test1 ((time_t) (time_t_max - now)) 14792 && mktime_test1 ((time_t) (time_t_max - now))
12011 && mktime_test1 ((time_t) (time_t_min + now))); 14793 && mktime_test1 ((time_t) (time_t_min + now)));
12012 } 14794 }
12013 14795
12014 static int 14796 static int
12015 irix_6_4_bug () 14797 irix_6_4_bug ()
12016 { 14798 {
12036 now = mktime (&tm); 14818 now = mktime (&tm);
12037 if (now != (time_t) -1) 14819 if (now != (time_t) -1)
12038 { 14820 {
12039 struct tm *lt = localtime (&now); 14821 struct tm *lt = localtime (&now);
12040 if (! (lt 14822 if (! (lt
12041 && lt->tm_year == tm.tm_year 14823 && lt->tm_year == tm.tm_year
12042 && lt->tm_mon == tm.tm_mon 14824 && lt->tm_mon == tm.tm_mon
12043 && lt->tm_mday == tm.tm_mday 14825 && lt->tm_mday == tm.tm_mday
12044 && lt->tm_hour == tm.tm_hour 14826 && lt->tm_hour == tm.tm_hour
12045 && lt->tm_min == tm.tm_min 14827 && lt->tm_min == tm.tm_min
12046 && lt->tm_sec == tm.tm_sec 14828 && lt->tm_sec == tm.tm_sec
12047 && lt->tm_yday == tm.tm_yday 14829 && lt->tm_yday == tm.tm_yday
12048 && lt->tm_wday == tm.tm_wday 14830 && lt->tm_wday == tm.tm_wday
12049 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 14831 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12050 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 14832 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12051 return 0; 14833 return 0;
12052 } 14834 }
12053 return 1; 14835 return 1;
12054 } 14836 }
12055 14837
12056 static int 14838 static int
12070 14852
12071 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 14853 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12072 instead of "TZ=America/Vancouver" in order to detect the bug even 14854 instead of "TZ=America/Vancouver" in order to detect the bug even
12073 on systems that don't support the Olson extension, or don't have the 14855 on systems that don't support the Olson extension, or don't have the
12074 full zoneinfo tables installed. */ 14856 full zoneinfo tables installed. */
12075 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); 14857 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12076 14858
12077 t = mktime (&tm); 14859 t = mktime (&tm);
12078 14860
12079 /* Check that the result is either a failure, or close enough 14861 /* Check that the result is either a failure, or close enough
12080 to the correct answer that we can assume the discrepancy is 14862 to the correct answer that we can assume the discrepancy is
12081 due to leap seconds. */ 14863 due to leap seconds. */
12082 return (t == (time_t) -1 14864 return (t == (time_t) -1
12083 || (0 < t && answer - 120 <= t && t <= answer + 120)); 14865 || (0 < t && answer - 120 <= t && t <= answer + 120));
12084 } 14866 }
12085 14867
12086 int 14868 int
12087 main () 14869 main ()
12088 { 14870 {
14871 int result = 0;
12089 time_t t, delta; 14872 time_t t, delta;
12090 int i, j; 14873 int i, j;
12091 14874
12092 /* This test makes some buggy mktime implementations loop. 14875 /* This test makes some buggy mktime implementations loop.
12093 Give up after 60 seconds; a mktime slower than that 14876 Give up after 60 seconds; a mktime slower than that
12096 14879
12097 for (;;) 14880 for (;;)
12098 { 14881 {
12099 t = (time_t_max << 1) + 1; 14882 t = (time_t_max << 1) + 1;
12100 if (t <= time_t_max) 14883 if (t <= time_t_max)
12101 break; 14884 break;
12102 time_t_max = t; 14885 time_t_max = t;
12103 } 14886 }
12104 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; 14887 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12105 14888
12106 delta = time_t_max / 997; /* a suitable prime number */ 14889 delta = time_t_max / 997; /* a suitable prime number */
12107 for (i = 0; i < N_STRINGS; i++) 14890 for (i = 0; i < N_STRINGS; i++)
12108 { 14891 {
12109 if (tz_strings[i]) 14892 if (tz_strings[i])
12110 putenv ((char*) tz_strings[i]); 14893 putenv (tz_strings[i]);
12111 14894
12112 for (t = 0; t <= time_t_max - delta; t += delta) 14895 for (t = 0; t <= time_t_max - delta; t += delta)
12113 if (! mktime_test (t)) 14896 if (! mktime_test (t))
12114 return 1; 14897 result |= 1;
12115 if (! (mktime_test ((time_t) 1) 14898 if (! (mktime_test ((time_t) 1)
12116 && mktime_test ((time_t) (60 * 60)) 14899 && mktime_test ((time_t) (60 * 60))
12117 && mktime_test ((time_t) (60 * 60 * 24)))) 14900 && mktime_test ((time_t) (60 * 60 * 24))))
12118 return 1; 14901 result |= 2;
12119 14902
12120 for (j = 1; ; j <<= 1) 14903 for (j = 1; ; j <<= 1)
12121 if (! bigtime_test (j)) 14904 if (! bigtime_test (j))
12122 return 1; 14905 result |= 4;
12123 else if (INT_MAX / 2 < j) 14906 else if (INT_MAX / 2 < j)
12124 break; 14907 break;
12125 if (! bigtime_test (INT_MAX)) 14908 if (! bigtime_test (INT_MAX))
12126 return 1; 14909 result |= 8;
12127 } 14910 }
12128 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 14911 if (! irix_6_4_bug ())
14912 result |= 16;
14913 if (! spring_forward_gap ())
14914 result |= 32;
14915 if (! year_2050_test ())
14916 result |= 64;
14917 return result;
12129 } 14918 }
12130 _ACEOF 14919 _ACEOF
12131 if ac_fn_c_try_run "$LINENO"; then : 14920 if ac_fn_c_try_run "$LINENO"; then :
12132 ac_cv_func_working_mktime=yes 14921 ac_cv_func_working_mktime=yes
12133 else 14922 else
12139 14928
12140 fi 14929 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12142 $as_echo "$ac_cv_func_working_mktime" >&6; } 14931 $as_echo "$ac_cv_func_working_mktime" >&6; }
12143 if test $ac_cv_func_working_mktime = no; then 14932 if test $ac_cv_func_working_mktime = no; then
12144 case " $LIBOBJS " in 14933
12145 *" mktime.$ac_objext "* ) ;; 14934
12146 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 14935
12147 ;; 14936
12148 esac 14937
12149 14938
12150 fi 14939
12151 14940
12152 if test "$ac_cv_func_working_mktime" = no; then 14941 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
12153 14942
12154 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h 14943 fi
12155 14944
12156 fi 14945 if test $ac_cv_func_working_mktime = no; then
12157 14946 REPLACE_MKTIME=1
12158 ac_have_func=no # yes means we've found a way to get the load average. 14947
12159 14948
12160 # Make sure getloadavg.c is where it belongs, at configure-time. 14949
12161 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 14950 else
12162 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 14951 REPLACE_MKTIME=0
12163 14952 fi
12164 ac_save_LIBS=$LIBS 14953
12165 14954
12166 # Check for getloadavg, but be sure not to touch the cache variable. 14955
12167 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 14956
12168 if test "x$ac_cv_func_getloadavg" = x""yes; then : 14957 GNULIB_MKTIME=1
12169 exit 0 14958
12170 else 14959
12171 exit 1 14960
12172 fi 14961 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
12173 ) && ac_have_func=yes 14962
12174 14963
12175 # On HPUX9, an unprivileged user can get load averages through this function. 14964
12176 for ac_func in pstat_getdynamic 14965 # Code from module multiarch:
12177 do : 14966
12178 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 14967 # Code from module stddef:
12179 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : 14968
12180 cat >>confdefs.h <<_ACEOF 14969
12181 #define HAVE_PSTAT_GETDYNAMIC 1 14970
12182 _ACEOF 14971 if test $gt_cv_c_wchar_t = no; then
12183 14972 HAVE_WCHAR_T=0
12184 fi 14973 STDDEF_H=stddef.h
12185 done 14974 fi
12186 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12187 14976 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12188 # Solaris has libkstat which does not require root. 14977 if ${gl_cv_decl_null_works+:} false; then :
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12190 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12191 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12192 $as_echo_n "(cached) " >&6 14978 $as_echo_n "(cached) " >&6
12193 else 14979 else
12194 ac_check_lib_save_LIBS=$LIBS 14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 LIBS="-lkstat $LIBS"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */ 14981 /* end confdefs.h. */
12198 14982 #include <stddef.h>
12199 /* Override any GCC internal prototype to avoid an error. 14983 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12200 Use char because int might match the return type of a GCC 14984
12201 builtin and then its argument prototype would still apply. */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char kstat_open ();
12206 int 14985 int
12207 main () 14986 main ()
12208 { 14987 {
12209 return kstat_open (); 14988
12210 ; 14989 ;
12211 return 0; 14990 return 0;
12212 } 14991 }
12213 _ACEOF 14992 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then : 14993 if ac_fn_c_try_compile "$LINENO"; then :
12215 ac_cv_lib_kstat_kstat_open=yes 14994 gl_cv_decl_null_works=yes
12216 else 14995 else
12217 ac_cv_lib_kstat_kstat_open=no 14996 gl_cv_decl_null_works=no
12218 fi 14997 fi
12219 rm -f core conftest.err conftest.$ac_objext \ 14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220 conftest$ac_exeext conftest.$ac_ext 14999 fi
12221 LIBS=$ac_check_lib_save_LIBS 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12222 fi 15001 $as_echo "$gl_cv_decl_null_works" >&6; }
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 15002 if test $gl_cv_decl_null_works = no; then
12224 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 15003 REPLACE_NULL=1
12225 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : 15004 STDDEF_H=stddef.h
12226 cat >>confdefs.h <<_ACEOF 15005 fi
12227 #define HAVE_LIBKSTAT 1 15006 if test -n "$STDDEF_H"; then
12228 _ACEOF 15007
12229 15008
12230 LIBS="-lkstat $LIBS" 15009
12231 15010
12232 fi 15011
12233 15012
12234 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes 15013 if test $gl_cv_have_include_next = yes; then
12235 15014 gl_cv_next_stddef_h='<'stddef.h'>'
12236 # Some systems with -lutil have (and need) -lkvm as well, some do not. 15015 else
12237 # On Solaris, -lkvm requires nlist from -lelf, so check that first 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
12238 # to get the right answer into the cache. 15017 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
12239 # For kstat on solaris, we need libelf to force the definition of SVR4 below. 15018 if ${gl_cv_next_stddef_h+:} false; then :
12240 if test $ac_have_func = no; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12242 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12243 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12244 $as_echo_n "(cached) " >&6 15019 $as_echo_n "(cached) " >&6
12245 else 15020 else
12246 ac_check_lib_save_LIBS=$LIBS 15021
12247 LIBS="-lelf $LIBS" 15022 if test $ac_cv_header_stddef_h = yes; then
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */ 15024 /* end confdefs.h. */
12250 15025 #include <stddef.h>
12251 /* Override any GCC internal prototype to avoid an error. 15026
12252 Use char because int might match the return type of a GCC 15027 _ACEOF
12253 builtin and then its argument prototype would still apply. */ 15028 case "$host_os" in
12254 #ifdef __cplusplus 15029 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12255 extern "C" 15030 *) gl_absname_cpp="$ac_cpp" ;;
12256 #endif 15031 esac
12257 char elf_begin (); 15032 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15033 sed -n '\#/stddef.h#{
15034 s#.*"\(.*/stddef.h\)".*#\1#
15035 s#^/[^/]#//&#
15036 p
15037 q
15038 }'`'"'
15039 else
15040 gl_cv_next_stddef_h='<'stddef.h'>'
15041 fi
15042
15043 fi
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15045 $as_echo "$gl_cv_next_stddef_h" >&6; }
15046 fi
15047 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15048
15049 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15050 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15051 gl_next_as_first_directive='<'stddef.h'>'
15052 else
15053 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15054 gl_next_as_first_directive=$gl_cv_next_stddef_h
15055 fi
15056 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15057
15058
15059
15060 fi
15061
15062 # Code from module time:
15063
15064
15065
15066 # Code from module time_r:
15067
15068
15069
15070
15071
15072
15073
15074 if test $ac_cv_have_decl_localtime_r = no; then
15075 HAVE_DECL_LOCALTIME_R=0
15076 fi
15077
15078
15079 if test $ac_cv_func_localtime_r = yes; then
15080 HAVE_LOCALTIME_R=1
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15082 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15083 if ${gl_cv_time_r_posix+:} false; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15088 #include <time.h>
12258 int 15089 int
12259 main () 15090 main ()
12260 { 15091 {
12261 return elf_begin (); 15092 /* We don't need to append 'restrict's to the argument types,
15093 even though the POSIX signature has the 'restrict's,
15094 since C99 says they can't affect type compatibility. */
15095 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15096 if (ptr) return 0;
15097 /* Check the return type is a pointer.
15098 On HP-UX 10 it is 'int'. */
15099 *localtime_r (0, 0);
12262 ; 15100 ;
12263 return 0; 15101 return 0;
12264 } 15102 }
12265 _ACEOF 15103
12266 if ac_fn_c_try_link "$LINENO"; then : 15104 _ACEOF
12267 ac_cv_lib_elf_elf_begin=yes 15105 if ac_fn_c_try_compile "$LINENO"; then :
12268 else 15106 gl_cv_time_r_posix=yes
12269 ac_cv_lib_elf_elf_begin=no 15107 else
12270 fi 15108 gl_cv_time_r_posix=no
12271 rm -f core conftest.err conftest.$ac_objext \ 15109 fi
12272 conftest$ac_exeext conftest.$ac_ext 15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS 15111
12274 fi 15112 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
12276 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 15114 $as_echo "$gl_cv_time_r_posix" >&6; }
12277 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : 15115 if test $gl_cv_time_r_posix = yes; then
12278 LIBS="-lelf $LIBS" 15116 REPLACE_LOCALTIME_R=0
12279 fi 15117 else
12280 15118 REPLACE_LOCALTIME_R=1
12281 fi 15119 fi
12282 if test $ac_have_func = no; then 15120 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 15121 HAVE_LOCALTIME_R=0
12284 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } 15122 fi
12285 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : 15123 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15124
15125
15126
15127
15128
15129
15130
15131
15132 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15133
15134
15135 :
15136
15137 fi
15138
15139
15140
15141
15142 GNULIB_TIME_R=1
15143
15144
15145
15146 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
15147
15148
15149
15150 # Code from module unistd:
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161 if test $gl_cv_have_include_next = yes; then
15162 gl_cv_next_unistd_h='<'unistd.h'>'
15163 else
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15165 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15166 if ${gl_cv_next_unistd_h+:} false; then :
12286 $as_echo_n "(cached) " >&6 15167 $as_echo_n "(cached) " >&6
12287 else 15168 else
12288 ac_check_lib_save_LIBS=$LIBS 15169
12289 LIBS="-lkvm $LIBS" 15170 if test $ac_cv_header_unistd_h = yes; then
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */ 15172 /* end confdefs.h. */
12292 15173 #include <unistd.h>
12293 /* Override any GCC internal prototype to avoid an error. 15174
12294 Use char because int might match the return type of a GCC 15175 _ACEOF
12295 builtin and then its argument prototype would still apply. */ 15176 case "$host_os" in
12296 #ifdef __cplusplus 15177 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12297 extern "C" 15178 *) gl_absname_cpp="$ac_cpp" ;;
15179 esac
15180 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15181 sed -n '\#/unistd.h#{
15182 s#.*"\(.*/unistd.h\)".*#\1#
15183 s#^/[^/]#//&#
15184 p
15185 q
15186 }'`'"'
15187 else
15188 gl_cv_next_unistd_h='<'unistd.h'>'
15189 fi
15190
15191 fi
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15193 $as_echo "$gl_cv_next_unistd_h" >&6; }
15194 fi
15195 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15196
15197 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15199 gl_next_as_first_directive='<'unistd.h'>'
15200 else
15201 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15202 gl_next_as_first_directive=$gl_cv_next_unistd_h
15203 fi
15204 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15205
15206
15207
15208
15209
15210 if test $ac_cv_header_unistd_h = yes; then
15211 HAVE_UNISTD_H=1
15212 else
15213 HAVE_UNISTD_H=0
15214 fi
15215
15216
15217
15218 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
15219 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15221 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15222 if eval \${$as_gl_Symbol+:} false; then :
15223 $as_echo_n "(cached) " >&6
15224 else
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 #include <unistd.h>
15228 /* Some systems declare various items in the wrong headers. */
15229 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15230 # include <fcntl.h>
15231 # include <stdio.h>
15232 # include <stdlib.h>
15233 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15234 # include <io.h>
15235 # endif
12298 #endif 15236 #endif
12299 char kvm_open (); 15237
12300 int 15238 int
12301 main () 15239 main ()
12302 { 15240 {
12303 return kvm_open (); 15241 #undef $gl_func
15242 (void) $gl_func;
12304 ; 15243 ;
12305 return 0; 15244 return 0;
12306 } 15245 }
12307 _ACEOF 15246 _ACEOF
12308 if ac_fn_c_try_link "$LINENO"; then : 15247 if ac_fn_c_try_compile "$LINENO"; then :
12309 ac_cv_lib_kvm_kvm_open=yes 15248 eval "$as_gl_Symbol=yes"
12310 else 15249 else
12311 ac_cv_lib_kvm_kvm_open=no 15250 eval "$as_gl_Symbol=no"
12312 fi 15251 fi
12313 rm -f core conftest.err conftest.$ac_objext \ 15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314 conftest$ac_exeext conftest.$ac_ext 15253 fi
12315 LIBS=$ac_check_lib_save_LIBS 15254 eval ac_res=\$$as_gl_Symbol
12316 fi 15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 15256 $as_echo "$ac_res" >&6; }
12318 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 15257 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12319 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12320 LIBS="-lkvm $LIBS"
12321 fi
12322
12323 # Check for the 4.4BSD definition of getloadavg.
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12325 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12326 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lutil $LIBS"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char getloadavg ();
12341 int
12342 main ()
12343 {
12344 return getloadavg ();
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"; then :
12350 ac_cv_lib_util_getloadavg=yes
12351 else
12352 ac_cv_lib_util_getloadavg=no
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12359 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12360 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12361 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12362 fi
12363
12364 fi
12365
12366 if test $ac_have_func = no; then
12367 # There is a commonly available library for RS/6000 AIX.
12368 # Since it is not a standard part of AIX, it might be installed locally.
12369 ac_getloadavg_LIBS=$LIBS
12370 LIBS="-L/usr/local/lib $LIBS"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12372 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12373 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 ac_check_lib_save_LIBS=$LIBS
12377 LIBS="-lgetloadavg $LIBS"
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380
12381 /* Override any GCC internal prototype to avoid an error.
12382 Use char because int might match the return type of a GCC
12383 builtin and then its argument prototype would still apply. */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 char getloadavg ();
12388 int
12389 main ()
12390 {
12391 return getloadavg ();
12392 ;
12393 return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_link "$LINENO"; then :
12397 ac_cv_lib_getloadavg_getloadavg=yes
12398 else
12399 ac_cv_lib_getloadavg_getloadavg=no
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12403 LIBS=$ac_check_lib_save_LIBS
12404 fi
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12406 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12407 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12408 LIBS="-lgetloadavg $LIBS"
12409 else
12410 LIBS=$ac_getloadavg_LIBS
12411 fi
12412
12413 fi
12414
12415 # Make sure it is really in the library, if we think we found it,
12416 # otherwise set up the replacement function.
12417 for ac_func in getloadavg
12418 do :
12419 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12420 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12421 cat >>confdefs.h <<_ACEOF 15258 cat >>confdefs.h <<_ACEOF
12422 #define HAVE_GETLOADAVG 1 15259 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12423 _ACEOF 15260 _ACEOF
12424 15261
12425 else 15262 eval ac_cv_have_decl_$gl_func=yes
12426 case " $LIBOBJS " in 15263 fi
12427 *" getloadavg.$ac_objext "* ) ;; 15264 done
12428 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 15265
12429 ;; 15266
12430 esac 15267 # Code from module warn-on-use:
12431 15268 # End of code from modules
12432 15269
12433 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h 15270
12434 15271
12435 # Figure out what our getloadavg.c needs. 15272
12436 ac_have_func=no 15273
12437 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 15274
12438 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : 15275
12439 ac_have_func=yes 15276
12440 15277
12441 $as_echo "#define DGUX 1" >>confdefs.h 15278 gltests_libdeps=
12442 15279 gltests_ltlibdeps=
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 15280
12444 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 15281
12445 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : 15282
12446 $as_echo_n "(cached) " >&6 15283
12447 else 15284
12448 ac_check_lib_save_LIBS=$LIBS 15285
12449 LIBS="-ldgc $LIBS" 15286
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15287
12451 /* end confdefs.h. */ 15288
12452 15289 gl_source_base='tests'
12453 /* Override any GCC internal prototype to avoid an error. 15290 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
12454 Use char because int might match the return type of a GCC 15291
12455 builtin and then its argument prototype would still apply. */ 15292 gl_module_indicator_condition=$gltests_WITNESS
12456 #ifdef __cplusplus 15293
12457 extern "C" 15294
12458 #endif 15295
12459 char dg_sys_info (); 15296
12460 int 15297
12461 main () 15298
12462 { 15299
12463 return dg_sys_info (); 15300
12464 ; 15301
12465 return 0; 15302 LIBGNU_LIBDEPS="$gl_libdeps"
12466 } 15303
12467 _ACEOF 15304 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
12468 if ac_fn_c_try_link "$LINENO"; then : 15305
12469 ac_cv_lib_dgc_dg_sys_info=yes
12470 else
12471 ac_cv_lib_dgc_dg_sys_info=no
12472 fi
12473 rm -f core conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12475 LIBS=$ac_check_lib_save_LIBS
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12478 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12479 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12480 cat >>confdefs.h <<_ACEOF
12481 #define HAVE_LIBDGC 1
12482 _ACEOF
12483
12484 LIBS="-ldgc $LIBS"
12485
12486 fi
12487
12488 fi
12489
12490
12491
12492 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12493 if test "x$ac_cv_header_locale_h" = x""yes; then :
12494
12495 fi
12496
12497
12498 for ac_func in setlocale
12499 do :
12500 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12501 if test "x$ac_cv_func_setlocale" = x""yes; then :
12502 cat >>confdefs.h <<_ACEOF
12503 #define HAVE_SETLOCALE 1
12504 _ACEOF
12505
12506 fi
12507 done
12508
12509
12510 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12511 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12512 # Irix 4.0.5F has the header but not the library.
12513 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12514 ac_have_func=yes
12515
12516 $as_echo "#define SVR4 1" >>confdefs.h
12517
12518 fi
12519
12520 if test $ac_have_func = no; then
12521 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12522 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12523 ac_have_func=yes
12524
12525 $as_echo "#define UMAX 1" >>confdefs.h
12526
12527
12528 $as_echo "#define UMAX4_3 1" >>confdefs.h
12529
12530 fi
12531
12532
12533 fi
12534
12535 if test $ac_have_func = no; then
12536 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12537 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12538 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12539
12540 fi
12541
12542
12543 fi
12544
12545 if test $ac_have_func = no; then
12546 for ac_header in mach/mach.h
12547 do :
12548 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12549 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12550 cat >>confdefs.h <<_ACEOF
12551 #define HAVE_MACH_MACH_H 1
12552 _ACEOF
12553
12554 fi
12555
12556 done
12557
12558 fi
12559
12560 for ac_header in nlist.h
12561 do :
12562 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12563 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12564 cat >>confdefs.h <<_ACEOF
12565 #define HAVE_NLIST_H 1
12566 _ACEOF
12567 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12568 "
12569 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12570
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12573 _ACEOF
12574
12575
12576 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12577
12578 fi
12579
12580
12581 fi
12582
12583 done
12584
12585 fi
12586 done
12587
12588
12589 # Some definitions of getloadavg require that the program be installed setgid.
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12591 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12592 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12598 #ifdef LDAV_PRIVILEGED
12599 Yowza Am I SETGID yet
12600 #endif
12601 _ACEOF
12602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12603 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12604 ac_cv_func_getloadavg_setgid=yes
12605 else
12606 ac_cv_func_getloadavg_setgid=no
12607 fi
12608 rm -f conftest*
12609
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12612 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12613 if test $ac_cv_func_getloadavg_setgid = yes; then
12614 NEED_SETGID=true
12615
12616 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12617
12618 else
12619 NEED_SETGID=false
12620 fi
12621
12622 if test $ac_cv_func_getloadavg_setgid = yes; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12624 $as_echo_n "checking group of /dev/kmem... " >&6; }
12625 if test "${ac_cv_group_kmem+set}" = set; then :
12626 $as_echo_n "(cached) " >&6
12627 else
12628 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12629 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12630 # If we got an error (system does not support symlinks), try without -L.
12631 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12632 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12633 | sed -ne 's/[ ][ ]*/ /g;
12634 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12635 / /s/.* //;p;'`
12636
12637 fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12639 $as_echo "$ac_cv_group_kmem" >&6; }
12640 KMEM_GROUP=$ac_cv_group_kmem
12641 fi
12642 if test "x$ac_save_LIBS" = x; then
12643 GETLOADAVG_LIBS=$LIBS
12644 else
12645 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12646 fi
12647 LIBS=$ac_save_LIBS
12648
12649
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12652 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12653 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 while :; do
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #include <sys/types.h> /* for off_t */
12660 #include <stdio.h>
12661 int
12662 main ()
12663 {
12664 int (*fp) (FILE *, off_t, int) = fseeko;
12665 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12666 ;
12667 return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"; then :
12671 ac_cv_sys_largefile_source=no; break
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #define _LARGEFILE_SOURCE 1
12678 #include <sys/types.h> /* for off_t */
12679 #include <stdio.h>
12680 int
12681 main ()
12682 {
12683 int (*fp) (FILE *, off_t, int) = fseeko;
12684 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12685 ;
12686 return 0;
12687 }
12688 _ACEOF
12689 if ac_fn_c_try_link "$LINENO"; then :
12690 ac_cv_sys_largefile_source=1; break
12691 fi
12692 rm -f core conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694 ac_cv_sys_largefile_source=unknown
12695 break
12696 done
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12699 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12700 case $ac_cv_sys_largefile_source in #(
12701 no | unknown) ;;
12702 *)
12703 cat >>confdefs.h <<_ACEOF
12704 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12705 _ACEOF
12706 ;;
12707 esac
12708 rm -rf conftest*
12709
12710 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12711 # in glibc 2.1.3, but that breaks too many other things.
12712 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12713 if test $ac_cv_sys_largefile_source != unknown; then
12714
12715 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12716
12717 fi
12718
12719
12720 # Configure getopt.
12721 # getopt.m4 serial 10
12722
12723 # The getopt module assume you want GNU getopt, with getopt_long etc,
12724 # rather than vanilla POSIX getopt. This means your your code should
12725 # always include <getopt.h> for the getopt prototypes.
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737 # Prerequisites of lib/getopt*.
12738
12739
12740
12741
12742 GETOPT_H=
12743 for ac_header in getopt.h
12744 do :
12745 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12746 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12747 cat >>confdefs.h <<_ACEOF
12748 #define HAVE_GETOPT_H 1
12749 _ACEOF
12750
12751 else
12752 GETOPT_H=getopt.h
12753 fi
12754
12755 done
12756
12757 if test -z "$GETOPT_H"; then
12758 for ac_func in getopt_long_only
12759 do :
12760 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12761 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12762 cat >>confdefs.h <<_ACEOF
12763 #define HAVE_GETOPT_LONG_ONLY 1
12764 _ACEOF
12765
12766 else
12767 GETOPT_H=getopt.h
12768 fi
12769 done
12770
12771 fi
12772
12773 if test -z "$GETOPT_H"; then
12774 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12775 "
12776 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12777 GETOPT_H=getopt.h
12778 fi
12779
12780 fi
12781
12782 if test -z "$GETOPT_H"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12784 $as_echo_n "checking for working GNU getopt function... " >&6; }
12785 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test "$cross_compiling" = yes; then :
12789 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12790 "
12791 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12792 gl_cv_func_gnu_getopt=no
12793 else
12794 gl_cv_func_gnu_getopt=yes
12795 fi
12796
12797 else
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 #include <getopt.h>
12801 int
12802 main ()
12803 {
12804
12805 char *myargv[3];
12806 myargv[0] = "conftest";
12807 myargv[1] = "-+";
12808 myargv[2] = 0;
12809 return getopt (2, myargv, "+a") != '?';
12810
12811 ;
12812 return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_c_try_run "$LINENO"; then :
12816 gl_cv_func_gnu_getopt=yes
12817 else
12818 gl_cv_func_gnu_getopt=no
12819 fi
12820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12821 conftest.$ac_objext conftest.beam conftest.$ac_ext
12822 fi
12823
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12826 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12827 if test "$gl_cv_func_gnu_getopt" = "no"; then
12828 GETOPT_H=getopt.h
12829 fi
12830 fi
12831
12832
12833
12834 if test -n "$GETOPT_H"; then :
12835
12836
12837 GETOPT_H=getopt.h
12838
12839 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12840
12841
12842
12843 :
12844 GETOPTOBJS='getopt.o getopt1.o'
12845
12846 fi
12847
12848
12849
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12851 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12852 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 # Use it with a single arg.
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858 $ac_includes_default
12859 int
12860 main ()
12861 {
12862 getpgrp (0);
12863 ;
12864 return 0;
12865 }
12866 _ACEOF
12867 if ac_fn_c_try_compile "$LINENO"; then :
12868 ac_cv_func_getpgrp_void=no
12869 else
12870 ac_cv_func_getpgrp_void=yes
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873
12874 fi
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12876 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12877 if test $ac_cv_func_getpgrp_void = yes; then
12878
12879 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12880
12881 fi
12882 15306
12883 15307
12884 for ac_func in strftime 15308 for ac_func in strftime
12885 do : 15309 do :
12886 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 15310 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12887 if test "x$ac_cv_func_strftime" = x""yes; then : 15311 if test "x$ac_cv_func_strftime" = xyes; then :
12888 cat >>confdefs.h <<_ACEOF 15312 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_STRFTIME 1 15313 #define HAVE_STRFTIME 1
12890 _ACEOF 15314 _ACEOF
12891 15315
12892 else 15316 else
12893 # strftime is in -lintl on SCO UNIX. 15317 # strftime is in -lintl on SCO UNIX.
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12895 $as_echo_n "checking for strftime in -lintl... " >&6; } 15319 $as_echo_n "checking for strftime in -lintl... " >&6; }
12896 if test "${ac_cv_lib_intl_strftime+set}" = set; then : 15320 if ${ac_cv_lib_intl_strftime+:} false; then :
12897 $as_echo_n "(cached) " >&6 15321 $as_echo_n "(cached) " >&6
12898 else 15322 else
12899 ac_check_lib_save_LIBS=$LIBS 15323 ac_check_lib_save_LIBS=$LIBS
12900 LIBS="-lintl $LIBS" 15324 LIBS="-lintl $LIBS"
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 conftest$ac_exeext conftest.$ac_ext 15349 conftest$ac_exeext conftest.$ac_ext
12926 LIBS=$ac_check_lib_save_LIBS 15350 LIBS=$ac_check_lib_save_LIBS
12927 fi 15351 fi
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12929 $as_echo "$ac_cv_lib_intl_strftime" >&6; } 15353 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12930 if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 15354 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12931 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 15355 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12932 15356
12933 LIBS="-lintl $LIBS" 15357 LIBS="-lintl $LIBS"
12934 fi 15358 fi
12935 15359
12939 15363
12940 # UNIX98 PTYs. 15364 # UNIX98 PTYs.
12941 for ac_func in grantpt 15365 for ac_func in grantpt
12942 do : 15366 do :
12943 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 15367 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12944 if test "x$ac_cv_func_grantpt" = x""yes; then : 15368 if test "x$ac_cv_func_grantpt" = xyes; then :
12945 cat >>confdefs.h <<_ACEOF 15369 cat >>confdefs.h <<_ACEOF
12946 #define HAVE_GRANTPT 1 15370 #define HAVE_GRANTPT 1
12947 _ACEOF 15371 _ACEOF
12948 15372
12949 fi 15373 fi
12952 15376
12953 # PTY-related GNU extensions. 15377 # PTY-related GNU extensions.
12954 for ac_func in getpt 15378 for ac_func in getpt
12955 do : 15379 do :
12956 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" 15380 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12957 if test "x$ac_cv_func_getpt" = x""yes; then : 15381 if test "x$ac_cv_func_getpt" = xyes; then :
12958 cat >>confdefs.h <<_ACEOF 15382 cat >>confdefs.h <<_ACEOF
12959 #define HAVE_GETPT 1 15383 #define HAVE_GETPT 1
12960 _ACEOF 15384 _ACEOF
12961 15385
12962 fi 15386 fi
12969 # than to expect to find it in ncurses. 15393 # than to expect to find it in ncurses.
12970 # Also we need tputs and friends to be able to build at all. 15394 # Also we need tputs and friends to be able to build at all.
12971 have_tputs_et_al=true 15395 have_tputs_et_al=true
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12973 $as_echo_n "checking for library containing tputs... " >&6; } 15397 $as_echo_n "checking for library containing tputs... " >&6; }
12974 if test "${ac_cv_search_tputs+set}" = set; then : 15398 if ${ac_cv_search_tputs+:} false; then :
12975 $as_echo_n "(cached) " >&6 15399 $as_echo_n "(cached) " >&6
12976 else 15400 else
12977 ac_func_search_save_LIBS=$LIBS 15401 ac_func_search_save_LIBS=$LIBS
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */ 15403 /* end confdefs.h. */
13003 if ac_fn_c_try_link "$LINENO"; then : 15427 if ac_fn_c_try_link "$LINENO"; then :
13004 ac_cv_search_tputs=$ac_res 15428 ac_cv_search_tputs=$ac_res
13005 fi 15429 fi
13006 rm -f core conftest.err conftest.$ac_objext \ 15430 rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext 15431 conftest$ac_exeext
13008 if test "${ac_cv_search_tputs+set}" = set; then : 15432 if ${ac_cv_search_tputs+:} false; then :
13009 break 15433 break
13010 fi 15434 fi
13011 done 15435 done
13012 if test "${ac_cv_search_tputs+set}" = set; then : 15436 if ${ac_cv_search_tputs+:} false; then :
13013 15437
13014 else 15438 else
13015 ac_cv_search_tputs=no 15439 ac_cv_search_tputs=no
13016 fi 15440 fi
13017 rm conftest.$ac_ext 15441 rm conftest.$ac_ext
13066 ;; 15490 ;;
13067 15491
13068 freebsd) 15492 freebsd)
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5 15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13070 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; } 15494 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13071 if test "${emacs_cv_freebsd_terminfo+set}" = set; then : 15495 if ${emacs_cv_freebsd_terminfo+:} false; then :
13072 $as_echo_n "(cached) " >&6 15496 $as_echo_n "(cached) " >&6
13073 else 15497 else
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */ 15499 /* end confdefs.h. */
13076 #include <osreldate.h> 15500 #include <osreldate.h>
13208 # Do we need the Hesiod library to provide the support routines? 15632 # Do we need the Hesiod library to provide the support routines?
13209 LIBHESIOD= 15633 LIBHESIOD=
13210 if test "$with_hesiod" != no ; then 15634 if test "$with_hesiod" != no ; then
13211 # Don't set $LIBS here -- see comments above. FIXME which comments? 15635 # Don't set $LIBS here -- see comments above. FIXME which comments?
13212 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" 15636 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13213 if test "x$ac_cv_func_res_send" = x""yes; then : 15637 if test "x$ac_cv_func_res_send" = xyes; then :
13214 15638
13215 else 15639 else
13216 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" 15640 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13217 if test "x$ac_cv_func___res_send" = x""yes; then : 15641 if test "x$ac_cv_func___res_send" = xyes; then :
13218 15642
13219 else 15643 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13221 $as_echo_n "checking for res_send in -lresolv... " >&6; } 15645 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13222 if test "${ac_cv_lib_resolv_res_send+set}" = set; then : 15646 if ${ac_cv_lib_resolv_res_send+:} false; then :
13223 $as_echo_n "(cached) " >&6 15647 $as_echo_n "(cached) " >&6
13224 else 15648 else
13225 ac_check_lib_save_LIBS=$LIBS 15649 ac_check_lib_save_LIBS=$LIBS
13226 LIBS="-lresolv $LIBS" 15650 LIBS="-lresolv $LIBS"
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 conftest$ac_exeext conftest.$ac_ext 15675 conftest$ac_exeext conftest.$ac_ext
13252 LIBS=$ac_check_lib_save_LIBS 15676 LIBS=$ac_check_lib_save_LIBS
13253 fi 15677 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13255 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } 15679 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13256 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : 15680 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
13257 resolv=yes 15681 resolv=yes
13258 else 15682 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13260 $as_echo_n "checking for __res_send in -lresolv... " >&6; } 15684 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13261 if test "${ac_cv_lib_resolv___res_send+set}" = set; then : 15685 if ${ac_cv_lib_resolv___res_send+:} false; then :
13262 $as_echo_n "(cached) " >&6 15686 $as_echo_n "(cached) " >&6
13263 else 15687 else
13264 ac_check_lib_save_LIBS=$LIBS 15688 ac_check_lib_save_LIBS=$LIBS
13265 LIBS="-lresolv $LIBS" 15689 LIBS="-lresolv $LIBS"
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 conftest$ac_exeext conftest.$ac_ext 15714 conftest$ac_exeext conftest.$ac_ext
13291 LIBS=$ac_check_lib_save_LIBS 15715 LIBS=$ac_check_lib_save_LIBS
13292 fi 15716 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13294 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } 15718 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13295 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : 15719 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
13296 resolv=yes 15720 resolv=yes
13297 fi 15721 fi
13298 15722
13299 fi 15723 fi
13300 15724
13306 RESOLVLIB=-lresolv 15730 RESOLVLIB=-lresolv
13307 else 15731 else
13308 RESOLVLIB= 15732 RESOLVLIB=
13309 fi 15733 fi
13310 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" 15734 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13311 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : 15735 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
13312 15736
13313 else 15737 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13315 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 15739 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13316 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : 15740 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
13317 $as_echo_n "(cached) " >&6 15741 $as_echo_n "(cached) " >&6
13318 else 15742 else
13319 ac_check_lib_save_LIBS=$LIBS 15743 ac_check_lib_save_LIBS=$LIBS
13320 LIBS="-lhesiod $RESOLVLIB $LIBS" 15744 LIBS="-lhesiod $RESOLVLIB $LIBS"
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345 conftest$ac_exeext conftest.$ac_ext 15769 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS 15770 LIBS=$ac_check_lib_save_LIBS
13347 fi 15771 fi
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13349 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 15773 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13350 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : 15774 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
13351 hesiod=yes 15775 hesiod=yes
13352 else 15776 else
13353 : 15777 :
13354 fi 15778 fi
13355 15779
13384 KRB4LIB= 15808 KRB4LIB=
13385 15809
13386 if test "${with_kerberos}" != no; then 15810 if test "${with_kerberos}" != no; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13388 $as_echo_n "checking for com_err in -lcom_err... " >&6; } 15812 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13389 if test "${ac_cv_lib_com_err_com_err+set}" = set; then : 15813 if ${ac_cv_lib_com_err_com_err+:} false; then :
13390 $as_echo_n "(cached) " >&6 15814 $as_echo_n "(cached) " >&6
13391 else 15815 else
13392 ac_check_lib_save_LIBS=$LIBS 15816 ac_check_lib_save_LIBS=$LIBS
13393 LIBS="-lcom_err $LIBS" 15817 LIBS="-lcom_err $LIBS"
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 conftest$ac_exeext conftest.$ac_ext 15842 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS 15843 LIBS=$ac_check_lib_save_LIBS
13420 fi 15844 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13422 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } 15846 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13423 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : 15847 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13424 have_com_err=yes 15848 have_com_err=yes
13425 else 15849 else
13426 have_com_err=no 15850 have_com_err=no
13427 fi 15851 fi
13428 15852
13433 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h 15857 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13434 15858
13435 fi 15859 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13437 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 15861 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13438 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : 15862 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
13439 $as_echo_n "(cached) " >&6 15863 $as_echo_n "(cached) " >&6
13440 else 15864 else
13441 ac_check_lib_save_LIBS=$LIBS 15865 ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-lcrypto $LIBS" 15866 LIBS="-lcrypto $LIBS"
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 conftest$ac_exeext conftest.$ac_ext 15891 conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS 15892 LIBS=$ac_check_lib_save_LIBS
13469 fi 15893 fi
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13471 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 15895 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13472 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : 15896 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
13473 have_crypto=yes 15897 have_crypto=yes
13474 else 15898 else
13475 have_crypto=no 15899 have_crypto=no
13476 fi 15900 fi
13477 15901
13482 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 15906 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13483 15907
13484 fi 15908 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13486 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 15910 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13487 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : 15911 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
13488 $as_echo_n "(cached) " >&6 15912 $as_echo_n "(cached) " >&6
13489 else 15913 else
13490 ac_check_lib_save_LIBS=$LIBS 15914 ac_check_lib_save_LIBS=$LIBS
13491 LIBS="-lk5crypto $LIBS" 15915 LIBS="-lk5crypto $LIBS"
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 conftest$ac_exeext conftest.$ac_ext 15940 conftest$ac_exeext conftest.$ac_ext
13517 LIBS=$ac_check_lib_save_LIBS 15941 LIBS=$ac_check_lib_save_LIBS
13518 fi 15942 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13520 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 15944 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13521 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : 15945 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
13522 have_k5crypto=yes 15946 have_k5crypto=yes
13523 else 15947 else
13524 have_k5crypto=no 15948 have_k5crypto=no
13525 fi 15949 fi
13526 15950
13531 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h 15955 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13532 15956
13533 fi 15957 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13535 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 15959 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13536 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : 15960 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13537 $as_echo_n "(cached) " >&6 15961 $as_echo_n "(cached) " >&6
13538 else 15962 else
13539 ac_check_lib_save_LIBS=$LIBS 15963 ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lkrb5 $LIBS" 15964 LIBS="-lkrb5 $LIBS"
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 conftest$ac_exeext conftest.$ac_ext 15989 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS 15990 LIBS=$ac_check_lib_save_LIBS
13567 fi 15991 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13569 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 15993 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13570 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : 15994 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13571 have_krb5=yes 15995 have_krb5=yes
13572 else 15996 else
13573 have_krb5=no 15997 have_krb5=no
13574 fi 15998 fi
13575 15999
13581 16005
13582 fi 16006 fi
13583 if test "${with_kerberos5}" = no; then 16007 if test "${with_kerberos5}" = no; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13585 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 16009 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13586 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : 16010 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
13587 $as_echo_n "(cached) " >&6 16011 $as_echo_n "(cached) " >&6
13588 else 16012 else
13589 ac_check_lib_save_LIBS=$LIBS 16013 ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-ldes425 $LIBS" 16014 LIBS="-ldes425 $LIBS"
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 conftest$ac_exeext conftest.$ac_ext 16039 conftest$ac_exeext conftest.$ac_ext
13616 LIBS=$ac_check_lib_save_LIBS 16040 LIBS=$ac_check_lib_save_LIBS
13617 fi 16041 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13619 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 16043 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13620 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : 16044 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
13621 have_des425=yes 16045 have_des425=yes
13622 else 16046 else
13623 have_des425=no 16047 have_des425=no
13624 fi 16048 fi
13625 16049
13630 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h 16054 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13631 16055
13632 else 16056 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13634 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 16058 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13635 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : 16059 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
13636 $as_echo_n "(cached) " >&6 16060 $as_echo_n "(cached) " >&6
13637 else 16061 else
13638 ac_check_lib_save_LIBS=$LIBS 16062 ac_check_lib_save_LIBS=$LIBS
13639 LIBS="-ldes $LIBS" 16063 LIBS="-ldes $LIBS"
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 conftest$ac_exeext conftest.$ac_ext 16088 conftest$ac_exeext conftest.$ac_ext
13665 LIBS=$ac_check_lib_save_LIBS 16089 LIBS=$ac_check_lib_save_LIBS
13666 fi 16090 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13668 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 16092 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13669 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : 16093 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
13670 have_des=yes 16094 have_des=yes
13671 else 16095 else
13672 have_des=no 16096 have_des=no
13673 fi 16097 fi
13674 16098
13680 16104
13681 fi 16105 fi
13682 fi 16106 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13684 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 16108 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13685 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : 16109 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
13686 $as_echo_n "(cached) " >&6 16110 $as_echo_n "(cached) " >&6
13687 else 16111 else
13688 ac_check_lib_save_LIBS=$LIBS 16112 ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-lkrb4 $LIBS" 16113 LIBS="-lkrb4 $LIBS"
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 conftest$ac_exeext conftest.$ac_ext 16138 conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS 16139 LIBS=$ac_check_lib_save_LIBS
13716 fi 16140 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13718 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 16142 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13719 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : 16143 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
13720 have_krb4=yes 16144 have_krb4=yes
13721 else 16145 else
13722 have_krb4=no 16146 have_krb4=no
13723 fi 16147 fi
13724 16148
13729 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h 16153 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13730 16154
13731 else 16155 else
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13733 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 16157 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13734 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : 16158 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
13735 $as_echo_n "(cached) " >&6 16159 $as_echo_n "(cached) " >&6
13736 else 16160 else
13737 ac_check_lib_save_LIBS=$LIBS 16161 ac_check_lib_save_LIBS=$LIBS
13738 LIBS="-lkrb $LIBS" 16162 LIBS="-lkrb $LIBS"
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 conftest$ac_exeext conftest.$ac_ext 16187 conftest$ac_exeext conftest.$ac_ext
13764 LIBS=$ac_check_lib_save_LIBS 16188 LIBS=$ac_check_lib_save_LIBS
13765 fi 16189 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13767 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 16191 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13768 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : 16192 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
13769 have_krb=yes 16193 have_krb=yes
13770 else 16194 else
13771 have_krb=no 16195 have_krb=no
13772 fi 16196 fi
13773 16197
13783 16207
13784 if test "${with_kerberos5}" != no; then 16208 if test "${with_kerberos5}" != no; then
13785 for ac_header in krb5.h 16209 for ac_header in krb5.h
13786 do : 16210 do :
13787 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 16211 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13788 if test "x$ac_cv_header_krb5_h" = x""yes; then : 16212 if test "x$ac_cv_header_krb5_h" = xyes; then :
13789 cat >>confdefs.h <<_ACEOF 16213 cat >>confdefs.h <<_ACEOF
13790 #define HAVE_KRB5_H 1 16214 #define HAVE_KRB5_H 1
13791 _ACEOF 16215 _ACEOF
13792 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> 16216 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13793 " 16217 "
13794 if test "x$ac_cv_member_krb5_error_text" = x""yes; then : 16218 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
13795 16219
13796 cat >>confdefs.h <<_ACEOF 16220 cat >>confdefs.h <<_ACEOF
13797 #define HAVE_KRB5_ERROR_TEXT 1 16221 #define HAVE_KRB5_ERROR_TEXT 1
13798 _ACEOF 16222 _ACEOF
13799 16223
13800 16224
13801 fi 16225 fi
13802 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> 16226 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13803 " 16227 "
13804 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : 16228 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
13805 16229
13806 cat >>confdefs.h <<_ACEOF 16230 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_KRB5_ERROR_E_TEXT 1 16231 #define HAVE_KRB5_ERROR_E_TEXT 1
13808 _ACEOF 16232 _ACEOF
13809 16233
13816 16240
13817 else 16241 else
13818 for ac_header in des.h 16242 for ac_header in des.h
13819 do : 16243 do :
13820 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 16244 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_des_h" = x""yes; then : 16245 if test "x$ac_cv_header_des_h" = xyes; then :
13822 cat >>confdefs.h <<_ACEOF 16246 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_DES_H 1 16247 #define HAVE_DES_H 1
13824 _ACEOF 16248 _ACEOF
13825 16249
13826 else 16250 else
13827 for ac_header in kerberosIV/des.h 16251 for ac_header in kerberosIV/des.h
13828 do : 16252 do :
13829 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" 16253 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13830 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : 16254 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
13831 cat >>confdefs.h <<_ACEOF 16255 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_KERBEROSIV_DES_H 1 16256 #define HAVE_KERBEROSIV_DES_H 1
13833 _ACEOF 16257 _ACEOF
13834 16258
13835 else 16259 else
13836 for ac_header in kerberos/des.h 16260 for ac_header in kerberos/des.h
13837 do : 16261 do :
13838 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" 16262 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13839 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : 16263 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
13840 cat >>confdefs.h <<_ACEOF 16264 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_KERBEROS_DES_H 1 16265 #define HAVE_KERBEROS_DES_H 1
13842 _ACEOF 16266 _ACEOF
13843 16267
13844 fi 16268 fi
13854 done 16278 done
13855 16279
13856 for ac_header in krb.h 16280 for ac_header in krb.h
13857 do : 16281 do :
13858 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 16282 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13859 if test "x$ac_cv_header_krb_h" = x""yes; then : 16283 if test "x$ac_cv_header_krb_h" = xyes; then :
13860 cat >>confdefs.h <<_ACEOF 16284 cat >>confdefs.h <<_ACEOF
13861 #define HAVE_KRB_H 1 16285 #define HAVE_KRB_H 1
13862 _ACEOF 16286 _ACEOF
13863 16287
13864 else 16288 else
13865 for ac_header in kerberosIV/krb.h 16289 for ac_header in kerberosIV/krb.h
13866 do : 16290 do :
13867 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" 16291 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13868 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : 16292 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF 16293 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_KERBEROSIV_KRB_H 1 16294 #define HAVE_KERBEROSIV_KRB_H 1
13871 _ACEOF 16295 _ACEOF
13872 16296
13873 else 16297 else
13874 for ac_header in kerberos/krb.h 16298 for ac_header in kerberos/krb.h
13875 do : 16299 do :
13876 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" 16300 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13877 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : 16301 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
13878 cat >>confdefs.h <<_ACEOF 16302 cat >>confdefs.h <<_ACEOF
13879 #define HAVE_KERBEROS_KRB_H 1 16303 #define HAVE_KERBEROS_KRB_H 1
13880 _ACEOF 16304 _ACEOF
13881 16305
13882 fi 16306 fi
13893 16317
13894 fi 16318 fi
13895 for ac_header in com_err.h 16319 for ac_header in com_err.h
13896 do : 16320 do :
13897 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" 16321 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13898 if test "x$ac_cv_header_com_err_h" = x""yes; then : 16322 if test "x$ac_cv_header_com_err_h" = xyes; then :
13899 cat >>confdefs.h <<_ACEOF 16323 cat >>confdefs.h <<_ACEOF
13900 #define HAVE_COM_ERR_H 1 16324 #define HAVE_COM_ERR_H 1
13901 _ACEOF 16325 _ACEOF
13902 16326
13903 fi 16327 fi
13914 16338
13915 # Solaris requires -lintl if you want strerror (which calls dgettext) 16339 # Solaris requires -lintl if you want strerror (which calls dgettext)
13916 # to return localized messages. 16340 # to return localized messages.
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13918 $as_echo_n "checking for dgettext in -lintl... " >&6; } 16342 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13919 if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 16343 if ${ac_cv_lib_intl_dgettext+:} false; then :
13920 $as_echo_n "(cached) " >&6 16344 $as_echo_n "(cached) " >&6
13921 else 16345 else
13922 ac_check_lib_save_LIBS=$LIBS 16346 ac_check_lib_save_LIBS=$LIBS
13923 LIBS="-lintl $LIBS" 16347 LIBS="-lintl $LIBS"
13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 conftest$ac_exeext conftest.$ac_ext 16372 conftest$ac_exeext conftest.$ac_ext
13949 LIBS=$ac_check_lib_save_LIBS 16373 LIBS=$ac_check_lib_save_LIBS
13950 fi 16374 fi
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13952 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } 16376 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13953 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 16377 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
13954 cat >>confdefs.h <<_ACEOF 16378 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_LIBINTL 1 16379 #define HAVE_LIBINTL 1
13956 _ACEOF 16380 _ACEOF
13957 16381
13958 LIBS="-lintl $LIBS" 16382 LIBS="-lintl $LIBS"
13960 fi 16384 fi
13961 16385
13962 16386
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13964 $as_echo_n "checking whether localtime caches TZ... " >&6; } 16388 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13965 if test "${emacs_cv_localtime_cache+set}" = set; then : 16389 if ${emacs_cv_localtime_cache+:} false; then :
13966 $as_echo_n "(cached) " >&6 16390 $as_echo_n "(cached) " >&6
13967 else 16391 else
13968 if test x$ac_cv_func_tzset = xyes; then 16392 if test x$ac_cv_func_tzset = xyes; then
13969 if test "$cross_compiling" = yes; then : 16393 if test "$cross_compiling" = yes; then :
13970 # If we have tzset, assume the worst when cross-compiling. 16394 # If we have tzset, assume the worst when cross-compiling.
14019 16443
14020 if test "x$HAVE_TIMEVAL" = xyes; then 16444 if test "x$HAVE_TIMEVAL" = xyes; then
14021 for ac_func in gettimeofday 16445 for ac_func in gettimeofday
14022 do : 16446 do :
14023 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 16447 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14024 if test "x$ac_cv_func_gettimeofday" = x""yes; then : 16448 if test "x$ac_cv_func_gettimeofday" = xyes; then :
14025 cat >>confdefs.h <<_ACEOF 16449 cat >>confdefs.h <<_ACEOF
14026 #define HAVE_GETTIMEOFDAY 1 16450 #define HAVE_GETTIMEOFDAY 1
14027 _ACEOF 16451 _ACEOF
14028 16452
14029 fi 16453 fi
14030 done 16454 done
14031 16455
14032 if test $ac_cv_func_gettimeofday = yes; then 16456 if test $ac_cv_func_gettimeofday = yes; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14034 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 16458 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14035 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : 16459 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
14036 $as_echo_n "(cached) " >&6 16460 $as_echo_n "(cached) " >&6
14037 else 16461 else
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */ 16463 /* end confdefs.h. */
14040 16464
14074 fi 16498 fi
14075 fi 16499 fi
14076 16500
14077 ok_so_far=yes 16501 ok_so_far=yes
14078 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 16502 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14079 if test "x$ac_cv_func_socket" = x""yes; then : 16503 if test "x$ac_cv_func_socket" = xyes; then :
14080 16504
14081 else 16505 else
14082 ok_so_far=no 16506 ok_so_far=no
14083 fi 16507 fi
14084 16508
14085 if test $ok_so_far = yes; then 16509 if test $ok_so_far = yes; then
14086 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 16510 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14087 if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 16511 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
14088 16512
14089 else 16513 else
14090 ok_so_far=no 16514 ok_so_far=no
14091 fi 16515 fi
14092 16516
14093 16517
14094 fi 16518 fi
14095 if test $ok_so_far = yes; then 16519 if test $ok_so_far = yes; then
14096 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 16520 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14097 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 16521 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
14098 16522
14099 else 16523 else
14100 ok_so_far=no 16524 ok_so_far=no
14101 fi 16525 fi
14102 16526
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; } 16551 $as_echo "no" >&6; }
14128 fi 16552 fi
14129 16553
14130 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 16554 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14131 if test "x$ac_cv_type_pid_t" = x""yes; then : 16555 if test "x$ac_cv_type_pid_t" = xyes; then :
14132 16556
14133 else 16557 else
14134 16558
14135 cat >>confdefs.h <<_ACEOF 16559 cat >>confdefs.h <<_ACEOF
14136 #define pid_t int 16560 #define pid_t int
14139 fi 16563 fi
14140 16564
14141 for ac_header in vfork.h 16565 for ac_header in vfork.h
14142 do : 16566 do :
14143 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 16567 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14144 if test "x$ac_cv_header_vfork_h" = x""yes; then : 16568 if test "x$ac_cv_header_vfork_h" = xyes; then :
14145 cat >>confdefs.h <<_ACEOF 16569 cat >>confdefs.h <<_ACEOF
14146 #define HAVE_VFORK_H 1 16570 #define HAVE_VFORK_H 1
14147 _ACEOF 16571 _ACEOF
14148 16572
14149 fi 16573 fi
14163 done 16587 done
14164 16588
14165 if test "x$ac_cv_func_fork" = xyes; then 16589 if test "x$ac_cv_func_fork" = xyes; then
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14167 $as_echo_n "checking for working fork... " >&6; } 16591 $as_echo_n "checking for working fork... " >&6; }
14168 if test "${ac_cv_func_fork_works+set}" = set; then : 16592 if ${ac_cv_func_fork_works+:} false; then :
14169 $as_echo_n "(cached) " >&6 16593 $as_echo_n "(cached) " >&6
14170 else 16594 else
14171 if test "$cross_compiling" = yes; then : 16595 if test "$cross_compiling" = yes; then :
14172 ac_cv_func_fork_works=cross 16596 ac_cv_func_fork_works=cross
14173 else 16597 else
14216 fi 16640 fi
14217 ac_cv_func_vfork_works=$ac_cv_func_vfork 16641 ac_cv_func_vfork_works=$ac_cv_func_vfork
14218 if test "x$ac_cv_func_vfork" = xyes; then 16642 if test "x$ac_cv_func_vfork" = xyes; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14220 $as_echo_n "checking for working vfork... " >&6; } 16644 $as_echo_n "checking for working vfork... " >&6; }
14221 if test "${ac_cv_func_vfork_works+set}" = set; then : 16645 if ${ac_cv_func_vfork_works+:} false; then :
14222 $as_echo_n "(cached) " >&6 16646 $as_echo_n "(cached) " >&6
14223 else 16647 else
14224 if test "$cross_compiling" = yes; then : 16648 if test "$cross_compiling" = yes; then :
14225 ac_cv_func_vfork_works=cross 16649 ac_cv_func_vfork_works=cross
14226 else 16650 else
14352 fi 16776 fi
14353 16777
14354 16778
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14356 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 16780 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14357 if test "${emacs_cv_langinfo_codeset+set}" = set; then : 16781 if ${emacs_cv_langinfo_codeset+:} false; then :
14358 $as_echo_n "(cached) " >&6 16782 $as_echo_n "(cached) " >&6
14359 else 16783 else
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */ 16785 /* end confdefs.h. */
14362 #include <langinfo.h> 16786 #include <langinfo.h>
14384 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 16808 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14385 16809
14386 fi 16810 fi
14387 16811
14388 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16812 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14389 if test "x$ac_cv_type_size_t" = x""yes; then : 16813 if test "x$ac_cv_type_size_t" = xyes; then :
14390 16814
14391 cat >>confdefs.h <<_ACEOF 16815 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_SIZE_T 1 16816 #define HAVE_SIZE_T 1
14393 _ACEOF 16817 _ACEOF
14394 16818
14396 fi 16820 fi
14397 16821
14398 16822
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14400 $as_echo_n "checking for mbstate_t... " >&6; } 16824 $as_echo_n "checking for mbstate_t... " >&6; }
14401 if test "${ac_cv_type_mbstate_t+set}" = set; then : 16825 if ${ac_cv_type_mbstate_t+:} false; then :
14402 $as_echo_n "(cached) " >&6 16826 $as_echo_n "(cached) " >&6
14403 else 16827 else
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */ 16829 /* end confdefs.h. */
14406 $ac_includes_default 16830 $ac_includes_default
14430 16854
14431 $as_echo "#define mbstate_t int" >>confdefs.h 16855 $as_echo "#define mbstate_t int" >>confdefs.h
14432 16856
14433 fi 16857 fi
14434 16858
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14436 $as_echo_n "checking for C restrict keyword... " >&6; }
14437 if test "${emacs_cv_c_restrict+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 void fred (int *restrict x);
14443 int
14444 main ()
14445 {
14446
14447 ;
14448 return 0;
14449 }
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 emacs_cv_c_restrict=yes
14453 else
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 void fred (int *__restrict x);
14457 int
14458 main ()
14459 {
14460
14461 ;
14462 return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_compile "$LINENO"; then :
14466 emacs_cv_c_restrict=__restrict
14467 else
14468 emacs_cv_c_restrict=no
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14475 $as_echo "$emacs_cv_c_restrict" >&6; }
14476 case "$emacs_cv_c_restrict" in
14477 yes) emacs_restrict=restrict;;
14478 no) emacs_restrict="";;
14479 *) emacs_restrict="$emacs_cv_c_restrict";;
14480 esac
14481 if test "$emacs_restrict" != __restrict; then
14482
14483 cat >>confdefs.h <<_ACEOF
14484 #define __restrict $emacs_restrict
14485 _ACEOF
14486
14487 fi
14488
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14490 $as_echo_n "checking for C restricted array declarations... " >&6; } 16860 $as_echo_n "checking for C restricted array declarations... " >&6; }
14491 if test "${emacs_cv_c_restrict_arr+set}" = set; then : 16861 if ${emacs_cv_c_restrict_arr+:} false; then :
14492 $as_echo_n "(cached) " >&6 16862 $as_echo_n "(cached) " >&6
14493 else 16863 else
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */ 16865 /* end confdefs.h. */
14496 void fred (int x[__restrict]); 16866 void fred (int x[__restrict]);
15017 test "${prefix}" != NONE && 17387 test "${prefix}" != NONE &&
15018 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` 17388 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15019 test "${exec_prefix}" != NONE && 17389 test "${exec_prefix}" != NONE &&
15020 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` 17390 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15021 17391
15022 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile" 17392 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile"
15023 17393
15024 ac_config_commands="$ac_config_commands default" 17394 ac_config_commands="$ac_config_commands default"
15025 17395
15026 cat >confcache <<\_ACEOF 17396 cat >confcache <<\_ACEOF
15027 # This file is a shell script that caches the results of configure 17397 # This file is a shell script that caches the results of configure
15085 t end 17455 t end
15086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17456 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15087 :end' >>confcache 17457 :end' >>confcache
15088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17458 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15089 if test -w "$cache_file"; then 17459 if test -w "$cache_file"; then
15090 test "x$cache_file" != "x/dev/null" && 17460 if test "x$cache_file" != "x/dev/null"; then
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15092 $as_echo "$as_me: updating cache $cache_file" >&6;} 17462 $as_echo "$as_me: updating cache $cache_file" >&6;}
15093 cat confcache >$cache_file 17463 if test ! -f "$cache_file" || test -h "$cache_file"; then
17464 cat confcache >"$cache_file"
17465 else
17466 case $cache_file in #(
17467 */* | ?:*)
17468 mv -f confcache "$cache_file"$$ &&
17469 mv -f "$cache_file"$$ "$cache_file" ;; #(
17470 *)
17471 mv -f confcache "$cache_file" ;;
17472 esac
17473 fi
17474 fi
15094 else 17475 else
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15096 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17477 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15097 fi 17478 fi
15098 fi 17479 fi
15119 LIBOBJS=$ac_libobjs 17500 LIBOBJS=$ac_libobjs
15120 17501
15121 LTLIBOBJS=$ac_ltlibobjs 17502 LTLIBOBJS=$ac_ltlibobjs
15122 17503
15123 17504
15124 17505 if test -n "$EXEEXT"; then
15125 17506 am__EXEEXT_TRUE=
15126 : ${CONFIG_STATUS=./config.status} 17507 am__EXEEXT_FALSE='#'
17508 else
17509 am__EXEEXT_TRUE='#'
17510 am__EXEEXT_FALSE=
17511 fi
17512
17513 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17514 as_fn_error $? "conditional \"AMDEP\" was never defined.
17515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17516 fi
17517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17518 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17520 fi
17521
17522 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17523 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17525 fi
17526
17527 gl_libobjs=
17528 gl_ltlibobjs=
17529 if test -n "$gl_LIBOBJS"; then
17530 # Remove the extension.
17531 sed_drop_objext='s/\.o$//;s/\.obj$//'
17532 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17533 gl_libobjs="$gl_libobjs $i.$ac_objext"
17534 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17535 done
17536 fi
17537 gl_LIBOBJS=$gl_libobjs
17538
17539 gl_LTLIBOBJS=$gl_ltlibobjs
17540
17541
17542
17543 gltests_libobjs=
17544 gltests_ltlibobjs=
17545 if test -n "$gltests_LIBOBJS"; then
17546 # Remove the extension.
17547 sed_drop_objext='s/\.o$//;s/\.obj$//'
17548 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17549 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17550 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17551 done
17552 fi
17553 gltests_LIBOBJS=$gltests_libobjs
17554
17555 gltests_LTLIBOBJS=$gltests_ltlibobjs
17556
17557
17558
17559 : "${CONFIG_STATUS=./config.status}"
15127 ac_write_fail=0 17560 ac_write_fail=0
15128 ac_clean_files_save=$ac_clean_files 17561 ac_clean_files_save=$ac_clean_files
15129 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17562 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15131 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17564 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17655 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15223 # splitting by setting IFS to empty value.) 17656 # splitting by setting IFS to empty value.)
15224 IFS=" "" $as_nl" 17657 IFS=" "" $as_nl"
15225 17658
15226 # Find who we are. Look in the path if we contain no directory separator. 17659 # Find who we are. Look in the path if we contain no directory separator.
17660 as_myself=
15227 case $0 in #(( 17661 case $0 in #((
15228 *[\\/]* ) as_myself=$0 ;; 17662 *[\\/]* ) as_myself=$0 ;;
15229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230 for as_dir in $PATH 17664 for as_dir in $PATH
15231 do 17665 do
15529 # Save the log message, to keep $0 and so on meaningful, and to 17963 # Save the log message, to keep $0 and so on meaningful, and to
15530 # report actual input values of CONFIG_FILES etc. instead of their 17964 # report actual input values of CONFIG_FILES etc. instead of their
15531 # values after options handling. 17965 # values after options handling.
15532 ac_log=" 17966 ac_log="
15533 This file was extended by emacs $as_me 24.0.50, which was 17967 This file was extended by emacs $as_me 24.0.50, which was
15534 generated by GNU Autoconf 2.67. Invocation command line was 17968 generated by GNU Autoconf 2.68. Invocation command line was
15535 17969
15536 CONFIG_FILES = $CONFIG_FILES 17970 CONFIG_FILES = $CONFIG_FILES
15537 CONFIG_HEADERS = $CONFIG_HEADERS 17971 CONFIG_HEADERS = $CONFIG_HEADERS
15538 CONFIG_LINKS = $CONFIG_LINKS 17972 CONFIG_LINKS = $CONFIG_LINKS
15539 CONFIG_COMMANDS = $CONFIG_COMMANDS 17973 CONFIG_COMMANDS = $CONFIG_COMMANDS
15595 _ACEOF 18029 _ACEOF
15596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15597 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18031 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15598 ac_cs_version="\\ 18032 ac_cs_version="\\
15599 emacs config.status 24.0.50 18033 emacs config.status 24.0.50
15600 configured by $0, generated by GNU Autoconf 2.67, 18034 configured by $0, generated by GNU Autoconf 2.68,
15601 with options \\"\$ac_cs_config\\" 18035 with options \\"\$ac_cs_config\\"
15602 18036
15603 Copyright (C) 2010 Free Software Foundation, Inc. 18037 Copyright (C) 2010 Free Software Foundation, Inc.
15604 This config.status script is free software; the Free Software Foundation 18038 This config.status script is free software; the Free Software Foundation
15605 gives unlimited permission to copy, distribute and modify it." 18039 gives unlimited permission to copy, distribute and modify it."
15606 18040
15607 ac_pwd='$ac_pwd' 18041 ac_pwd='$ac_pwd'
15608 srcdir='$srcdir' 18042 srcdir='$srcdir'
15609 INSTALL='$INSTALL' 18043 INSTALL='$INSTALL'
18044 MKDIR_P='$MKDIR_P'
18045 AWK='$AWK'
15610 test -n "\$AWK" || AWK=awk 18046 test -n "\$AWK" || AWK=awk
15611 _ACEOF 18047 _ACEOF
15612 18048
15613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15614 # The default lists apply if the user does not specify any file. 18050 # The default lists apply if the user does not specify any file.
15711 _ACEOF 18147 _ACEOF
15712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15713 # 18149 #
15714 # INIT-COMMANDS 18150 # INIT-COMMANDS
15715 # 18151 #
18152 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15716 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS" 18153 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15717 18154
15718 _ACEOF 18155 _ACEOF
15719 18156
15720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15722 # Handling of arguments. 18159 # Handling of arguments.
15723 for ac_config_target in $ac_config_targets 18160 for ac_config_target in $ac_config_targets
15724 do 18161 do
15725 case $ac_config_target in 18162 case $ac_config_target in
15726 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; 18163 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18164 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15727 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18165 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18166 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15728 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;; 18167 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15729 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; 18168 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15730 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; 18169 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15731 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; 18170 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15732 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; 18171 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15759 # Hook for its removal unless debugging. 18198 # Hook for its removal unless debugging.
15760 # Note that there is a small window in which the directory will not be cleaned: 18199 # Note that there is a small window in which the directory will not be cleaned:
15761 # after its creation but before its name has been assigned to `$tmp'. 18200 # after its creation but before its name has been assigned to `$tmp'.
15762 $debug || 18201 $debug ||
15763 { 18202 {
15764 tmp= 18203 tmp= ac_tmp=
15765 trap 'exit_status=$? 18204 trap 'exit_status=$?
15766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18205 : "${ac_tmp:=$tmp}"
18206 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15767 ' 0 18207 ' 0
15768 trap 'as_fn_exit 1' 1 2 13 15 18208 trap 'as_fn_exit 1' 1 2 13 15
15769 } 18209 }
15770 # Create a (secure) tmp directory for tmp files. 18210 # Create a (secure) tmp directory for tmp files.
15771 18211
15772 { 18212 {
15773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18213 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15774 test -n "$tmp" && test -d "$tmp" 18214 test -d "$tmp"
15775 } || 18215 } ||
15776 { 18216 {
15777 tmp=./conf$$-$RANDOM 18217 tmp=./conf$$-$RANDOM
15778 (umask 077 && mkdir "$tmp") 18218 (umask 077 && mkdir "$tmp")
15779 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18219 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18220 ac_tmp=$tmp
15780 18221
15781 # Set up the scripts for CONFIG_FILES section. 18222 # Set up the scripts for CONFIG_FILES section.
15782 # No need to generate them if there are no CONFIG_FILES. 18223 # No need to generate them if there are no CONFIG_FILES.
15783 # This happens for instance with `./config.status config.h'. 18224 # This happens for instance with `./config.status config.h'.
15784 if test -n "$CONFIG_FILES"; then 18225 if test -n "$CONFIG_FILES"; then
15813 ac_cs_awk_cr='\\r' 18254 ac_cs_awk_cr='\\r'
15814 else 18255 else
15815 ac_cs_awk_cr=$ac_cr 18256 ac_cs_awk_cr=$ac_cr
15816 fi 18257 fi
15817 18258
15818 echo 'BEGIN {' >"$tmp/subs1.awk" && 18259 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15819 _ACEOF 18260 _ACEOF
15820 18261
15821 # Create commands to substitute file output variables. 18262 # Create commands to substitute file output variables.
15822 { 18263 {
15823 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 18264 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15824 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && 18265 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15825 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 18266 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15826 echo "_ACAWK" && 18267 echo "_ACAWK" &&
15827 echo "_ACEOF" 18268 echo "_ACEOF"
15828 } >conf$$files.sh && 18269 } >conf$$files.sh &&
15829 . ./conf$$files.sh || 18270 . ./conf$$files.sh ||
15852 fi 18293 fi
15853 done 18294 done
15854 rm -f conf$$subs.sh 18295 rm -f conf$$subs.sh
15855 18296
15856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15857 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 18298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15858 _ACEOF 18299 _ACEOF
15859 sed -n ' 18300 sed -n '
15860 h 18301 h
15861 s/^/S["/; s/!.*/"]=/ 18302 s/^/S["/; s/!.*/"]=/
15862 p 18303 p
15900 } 18341 }
15901 ' >>$CONFIG_STATUS || ac_write_fail=1 18342 ' >>$CONFIG_STATUS || ac_write_fail=1
15902 rm -f conf$$subs.awk 18343 rm -f conf$$subs.awk
15903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15904 _ACAWK 18345 _ACAWK
15905 cat >>"\$tmp/subs1.awk" <<_ACAWK && 18346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15906 for (key in S) S_is_set[key] = 1 18347 for (key in S) S_is_set[key] = 1
15907 FS = "" 18348 FS = ""
15908 \$ac_cs_awk_pipe_init 18349 \$ac_cs_awk_pipe_init
15909 } 18350 }
15910 { 18351 {
15938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15939 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18380 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15941 else 18382 else
15942 cat 18383 cat
15943 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 18384 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18385 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15945 _ACEOF 18386 _ACEOF
15946 18387
15947 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18388 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15948 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18389 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15972 18413
15973 # Set up the scripts for CONFIG_HEADERS section. 18414 # Set up the scripts for CONFIG_HEADERS section.
15974 # No need to generate them if there are no CONFIG_HEADERS. 18415 # No need to generate them if there are no CONFIG_HEADERS.
15975 # This happens for instance with `./config.status Makefile'. 18416 # This happens for instance with `./config.status Makefile'.
15976 if test -n "$CONFIG_HEADERS"; then 18417 if test -n "$CONFIG_HEADERS"; then
15977 cat >"$tmp/defines.awk" <<\_ACAWK || 18418 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15978 BEGIN { 18419 BEGIN {
15979 _ACEOF 18420 _ACEOF
15980 18421
15981 # Transform confdefs.h into an awk script `defines.awk', embedded as 18422 # Transform confdefs.h into an awk script `defines.awk', embedded as
15982 # here-document in config.status, that substitutes the proper values into 18423 # here-document in config.status, that substitutes the proper values into
15984 18425
15985 # Create a delimiter string that does not exist in confdefs.h, to ease 18426 # Create a delimiter string that does not exist in confdefs.h, to ease
15986 # handling of long lines. 18427 # handling of long lines.
15987 ac_delim='%!_!# ' 18428 ac_delim='%!_!# '
15988 for ac_last_try in false false :; do 18429 for ac_last_try in false false :; do
15989 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 18430 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15990 if test -z "$ac_t"; then 18431 if test -z "$ac_tt"; then
15991 break 18432 break
15992 elif $ac_last_try; then 18433 elif $ac_last_try; then
15993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18434 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15994 else 18435 else
15995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16105 :[FH]) 18546 :[FH])
16106 ac_file_inputs= 18547 ac_file_inputs=
16107 for ac_f 18548 for ac_f
16108 do 18549 do
16109 case $ac_f in 18550 case $ac_f in
16110 -) ac_f="$tmp/stdin";; 18551 -) ac_f="$ac_tmp/stdin";;
16111 *) # Look for the file first in the build tree, then in the source tree 18552 *) # Look for the file first in the build tree, then in the source tree
16112 # (if the path is not absolute). The absolute path cannot be DOS-style, 18553 # (if the path is not absolute). The absolute path cannot be DOS-style,
16113 # because $ac_f cannot contain `:'. 18554 # because $ac_f cannot contain `:'.
16114 test -f "$ac_f" || 18555 test -f "$ac_f" ||
16115 case $ac_f in 18556 case $ac_f in
16140 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16141 *) ac_sed_conf_input=$configure_input;; 18582 *) ac_sed_conf_input=$configure_input;;
16142 esac 18583 esac
16143 18584
16144 case $ac_tag in 18585 case $ac_tag in
16145 *:-:* | *:-) cat >"$tmp/stdin" \ 18586 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16147 esac 18588 esac
16148 ;; 18589 ;;
16149 esac 18590 esac
16150 18591
16215 18656
16216 case $INSTALL in 18657 case $INSTALL in
16217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16219 esac 18660 esac
18661 ac_MKDIR_P=$MKDIR_P
18662 case $MKDIR_P in
18663 [\\/$]* | ?:[\\/]* ) ;;
18664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18665 esac
16220 _ACEOF 18666 _ACEOF
16221 18667
16222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16223 # If the template does not know about datarootdir, expand it. 18669 # If the template does not know about datarootdir, expand it.
16224 # FIXME: This hack should be removed a few years after 2.60. 18670 # FIXME: This hack should be removed a few years after 2.60.
16269 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16270 s&@builddir@&$ac_builddir&;t t 18716 s&@builddir@&$ac_builddir&;t t
16271 s&@abs_builddir@&$ac_abs_builddir&;t t 18717 s&@abs_builddir@&$ac_abs_builddir&;t t
16272 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16273 s&@INSTALL@&$ac_INSTALL&;t t 18719 s&@INSTALL@&$ac_INSTALL&;t t
18720 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16274 $ac_datarootdir_hack 18721 $ac_datarootdir_hack
16275 " 18722 "
16276 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 18723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16277 if $ac_cs_awk_getline; then 18724 if $ac_cs_awk_getline; then
16278 $AWK -f "$tmp/subs.awk" 18725 $AWK -f "$ac_tmp/subs.awk"
16279 else 18726 else
16280 $AWK -f "$tmp/subs.awk" | $SHELL 18727 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16281 fi >$tmp/out \ 18728 fi \
16282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18729 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16283 18730
16284 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18731 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16285 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 18732 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 18733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18734 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16288 which seems to be undefined. Please make sure it is defined" >&5 18736 which seems to be undefined. Please make sure it is defined" >&5
16289 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18737 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16290 which seems to be undefined. Please make sure it is defined" >&2;} 18738 which seems to be undefined. Please make sure it is defined" >&2;}
16291 18739
16292 rm -f "$tmp/stdin" 18740 rm -f "$ac_tmp/stdin"
16293 case $ac_file in 18741 case $ac_file in
16294 -) cat "$tmp/out" && rm -f "$tmp/out";; 18742 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16295 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 18743 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16296 esac \ 18744 esac \
16297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16298 ;; 18746 ;;
16299 :H) 18747 :H)
16300 # 18748 #
16301 # CONFIG_HEADER 18749 # CONFIG_HEADER
16302 # 18750 #
16303 if test x"$ac_file" != x-; then 18751 if test x"$ac_file" != x-; then
16304 { 18752 {
16305 $as_echo "/* $configure_input */" \ 18753 $as_echo "/* $configure_input */" \
16306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 18754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16307 } >"$tmp/config.h" \ 18755 } >"$ac_tmp/config.h" \
16308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16309 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 18757 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16311 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18759 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16312 else 18760 else
16313 rm -f "$ac_file" 18761 rm -f "$ac_file"
16314 mv "$tmp/config.h" "$ac_file" \ 18762 mv "$ac_tmp/config.h" "$ac_file" \
16315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16316 fi 18764 fi
16317 else 18765 else
16318 $as_echo "/* $configure_input */" \ 18766 $as_echo "/* $configure_input */" \
16319 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 18767 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16320 || as_fn_error $? "could not create -" "$LINENO" 5 18768 || as_fn_error $? "could not create -" "$LINENO" 5
16321 fi 18769 fi
18770 # Compute "$ac_file"'s index in $config_headers.
18771 _am_arg="$ac_file"
18772 _am_stamp_count=1
18773 for _am_header in $config_headers :; do
18774 case $_am_header in
18775 $_am_arg | $_am_arg:* )
18776 break ;;
18777 * )
18778 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18779 esac
18780 done
18781 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18782 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18783 X"$_am_arg" : 'X\(//\)[^/]' \| \
18784 X"$_am_arg" : 'X\(//\)$' \| \
18785 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18786 $as_echo X"$_am_arg" |
18787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18788 s//\1/
18789 q
18790 }
18791 /^X\(\/\/\)[^/].*/{
18792 s//\1/
18793 q
18794 }
18795 /^X\(\/\/\)$/{
18796 s//\1/
18797 q
18798 }
18799 /^X\(\/\).*/{
18800 s//\1/
18801 q
18802 }
18803 s/.*/./; q'`/stamp-h$_am_stamp_count
16322 ;; 18804 ;;
16323 18805
16324 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18806 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16325 $as_echo "$as_me: executing $ac_file commands" >&6;} 18807 $as_echo "$as_me: executing $ac_file commands" >&6;}
16326 ;; 18808 ;;
16327 esac 18809 esac
16328 18810
16329 18811
16330 case $ac_file$ac_mode in 18812 case $ac_file$ac_mode in
18813 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18814 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18815 # are listed without --file. Let's play safe and only enable the eval
18816 # if we detect the quoting.
18817 case $CONFIG_FILES in
18818 *\'*) eval set x "$CONFIG_FILES" ;;
18819 *) set x $CONFIG_FILES ;;
18820 esac
18821 shift
18822 for mf
18823 do
18824 # Strip MF so we end up with the name of the file.
18825 mf=`echo "$mf" | sed -e 's/:.*$//'`
18826 # Check whether this is an Automake generated Makefile or not.
18827 # We used to match only the files named `Makefile.in', but
18828 # some people rename them; so instead we look at the file content.
18829 # Grep'ing the first line is not enough: some people post-process
18830 # each Makefile.in and add a new line on top of each file to say so.
18831 # Grep'ing the whole file is not good either: AIX grep has a line
18832 # limit of 2048, but all sed's we know have understand at least 4000.
18833 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18834 dirpart=`$as_dirname -- "$mf" ||
18835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18836 X"$mf" : 'X\(//\)[^/]' \| \
18837 X"$mf" : 'X\(//\)$' \| \
18838 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18839 $as_echo X"$mf" |
18840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18841 s//\1/
18842 q
18843 }
18844 /^X\(\/\/\)[^/].*/{
18845 s//\1/
18846 q
18847 }
18848 /^X\(\/\/\)$/{
18849 s//\1/
18850 q
18851 }
18852 /^X\(\/\).*/{
18853 s//\1/
18854 q
18855 }
18856 s/.*/./; q'`
18857 else
18858 continue
18859 fi
18860 # Extract the definition of DEPDIR, am__include, and am__quote
18861 # from the Makefile without running `make'.
18862 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18863 test -z "$DEPDIR" && continue
18864 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18865 test -z "am__include" && continue
18866 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18867 # When using ansi2knr, U may be empty or an underscore; expand it
18868 U=`sed -n 's/^U = //p' < "$mf"`
18869 # Find all dependency output files, they are included files with
18870 # $(DEPDIR) in their names. We invoke sed twice because it is the
18871 # simplest approach to changing $(DEPDIR) to its actual value in the
18872 # expansion.
18873 for file in `sed -n "
18874 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18875 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18876 # Make sure the directory exists.
18877 test -f "$dirpart/$file" && continue
18878 fdir=`$as_dirname -- "$file" ||
18879 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18880 X"$file" : 'X\(//\)[^/]' \| \
18881 X"$file" : 'X\(//\)$' \| \
18882 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18883 $as_echo X"$file" |
18884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18885 s//\1/
18886 q
18887 }
18888 /^X\(\/\/\)[^/].*/{
18889 s//\1/
18890 q
18891 }
18892 /^X\(\/\/\)$/{
18893 s//\1/
18894 q
18895 }
18896 /^X\(\/\).*/{
18897 s//\1/
18898 q
18899 }
18900 s/.*/./; q'`
18901 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18902 # echo "creating $dirpart/$file"
18903 echo '# dummy' > "$dirpart/$file"
18904 done
18905 done
18906 }
18907 ;;
16331 "default":C) 18908 "default":C)
16332 18909
16333 ### Make the necessary directories, if they don't exist. 18910 ### Make the necessary directories, if they don't exist.
16334 for dir in etc lisp ; do 18911 for dir in etc lisp ; do
16335 test -d ${dir} || mkdir ${dir} 18912 test -d ${dir} || mkdir ${dir}