2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
597 ac_subst_vars
='LTLIBOBJS
603 LD_SWITCH_SYSTEM_TEMACS
636 x_default_search_path
706 LD_SWITCH_X_SITE_AUX_RPATH
783 program_transform_name
794 ac_subst_files
='deps_frag
797 enable_option_checking
819 with_toolkit_scroll_bars
833 enable_ns_self_contained
835 enable_maintainer_mode
838 enable_use_lisp_union_type
844 ac_precious_vars
='build_alias
856 # Initialize some variables set by options.
858 ac_init_version
=false
859 ac_unrecognized_opts
=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name
=s
,x
,x
,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir
='${exec_prefix}/bin'
885 sbindir
='${exec_prefix}/sbin'
886 libexecdir
='${exec_prefix}/libexec'
887 datarootdir
='${prefix}/share'
888 datadir
='${datarootdir}'
889 sysconfdir
='${prefix}/etc'
890 sharedstatedir
='${prefix}/com'
891 localstatedir
='${prefix}/var'
892 includedir
='${prefix}/include'
893 oldincludedir
='/usr/include'
894 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir
='${datarootdir}/info'
900 libdir
='${exec_prefix}/lib'
901 localedir
='${datarootdir}/locale'
902 mandir
='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\
$ac_option
916 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
928 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
931 -build |
--build |
--buil |
--bui |
--bu)
932 ac_prev
=build_alias
;;
933 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
934 build_alias
=$ac_optarg ;;
936 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
937 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
938 ac_prev
=cache_file
;;
939 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
940 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
941 cache_file
=$ac_optarg ;;
944 cache_file
=config.cache
;;
946 -datadir |
--datadir |
--datadi |
--datad)
948 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
949 datadir
=$ac_optarg ;;
951 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
952 |
--dataroo |
--dataro |
--datar)
953 ac_prev
=datarootdir
;;
954 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
955 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
956 datarootdir
=$ac_optarg ;;
958 -disable-* |
--disable-*)
959 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
962 as_fn_error
"invalid feature name: $ac_useropt"
963 ac_useropt_orig
=$ac_useropt
964 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep
=', ';;
972 eval enable_
$ac_useropt=no
;;
974 -docdir |
--docdir |
--docdi |
--doc |
--do)
976 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
979 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
981 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
984 -enable-* |
--enable-*)
985 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
988 as_fn_error
"invalid feature name: $ac_useropt"
989 ac_useropt_orig
=$ac_useropt
990 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep
=', ';;
998 eval enable_
$ac_useropt=\
$ac_optarg ;;
1000 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1001 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1002 |
--exec |
--exe |
--ex)
1003 ac_prev
=exec_prefix
;;
1004 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1005 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1006 |
--exec=* |
--exe=* |
--ex=*)
1007 exec_prefix
=$ac_optarg ;;
1009 -gas |
--gas |
--ga |
--g)
1010 # Obsolete; use --with-gas.
1013 -help |
--help |
--hel |
--he |
-h)
1014 ac_init_help
=long
;;
1015 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1016 ac_init_help
=recursive
;;
1017 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1018 ac_init_help
=short
;;
1020 -host |
--host |
--hos |
--ho)
1021 ac_prev
=host_alias
;;
1022 -host=* |
--host=* |
--hos=* |
--ho=*)
1023 host_alias
=$ac_optarg ;;
1025 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1027 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1029 htmldir
=$ac_optarg ;;
1031 -includedir |
--includedir |
--includedi |
--included |
--include \
1032 |
--includ |
--inclu |
--incl |
--inc)
1033 ac_prev
=includedir
;;
1034 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1035 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1036 includedir
=$ac_optarg ;;
1038 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1040 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1041 infodir
=$ac_optarg ;;
1043 -libdir |
--libdir |
--libdi |
--libd)
1045 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1046 libdir
=$ac_optarg ;;
1048 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1049 |
--libexe |
--libex |
--libe)
1050 ac_prev
=libexecdir
;;
1051 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1052 |
--libexe=* |
--libex=* |
--libe=*)
1053 libexecdir
=$ac_optarg ;;
1055 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1056 ac_prev
=localedir
;;
1057 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1058 localedir
=$ac_optarg ;;
1060 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1061 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1062 ac_prev
=localstatedir
;;
1063 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1064 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1065 localstatedir
=$ac_optarg ;;
1067 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1069 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1070 mandir
=$ac_optarg ;;
1072 -nfp |
--nfp |
--nf)
1073 # Obsolete; use --without-fp.
1076 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1077 |
--no-cr |
--no-c |
-n)
1080 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1081 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1084 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1085 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1086 |
--oldin |
--oldi |
--old |
--ol |
--o)
1087 ac_prev
=oldincludedir
;;
1088 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1089 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1090 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1091 oldincludedir
=$ac_optarg ;;
1093 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1095 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1096 prefix
=$ac_optarg ;;
1098 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1099 |
--program-pre |
--program-pr |
--program-p)
1100 ac_prev
=program_prefix
;;
1101 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1102 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1103 program_prefix
=$ac_optarg ;;
1105 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1106 |
--program-suf |
--program-su |
--program-s)
1107 ac_prev
=program_suffix
;;
1108 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1109 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1110 program_suffix
=$ac_optarg ;;
1112 -program-transform-name |
--program-transform-name \
1113 |
--program-transform-nam |
--program-transform-na \
1114 |
--program-transform-n |
--program-transform- \
1115 |
--program-transform |
--program-transfor \
1116 |
--program-transfo |
--program-transf \
1117 |
--program-trans |
--program-tran \
1118 |
--progr-tra |
--program-tr |
--program-t)
1119 ac_prev
=program_transform_name
;;
1120 -program-transform-name=* |
--program-transform-name=* \
1121 |
--program-transform-nam=* |
--program-transform-na=* \
1122 |
--program-transform-n=* |
--program-transform-=* \
1123 |
--program-transform=* |
--program-transfor=* \
1124 |
--program-transfo=* |
--program-transf=* \
1125 |
--program-trans=* |
--program-tran=* \
1126 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1127 program_transform_name
=$ac_optarg ;;
1129 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1131 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1132 pdfdir
=$ac_optarg ;;
1134 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1136 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1139 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1140 |
-silent |
--silent |
--silen |
--sile |
--sil)
1143 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1145 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1147 sbindir
=$ac_optarg ;;
1149 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1150 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1151 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1153 ac_prev
=sharedstatedir
;;
1154 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1155 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1156 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1158 sharedstatedir
=$ac_optarg ;;
1160 -site |
--site |
--sit)
1162 -site=* |
--site=* |
--sit=*)
1165 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1167 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1168 srcdir
=$ac_optarg ;;
1170 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1171 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1172 ac_prev
=sysconfdir
;;
1173 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1174 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1175 sysconfdir
=$ac_optarg ;;
1177 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1178 ac_prev
=target_alias
;;
1179 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1180 target_alias
=$ac_optarg ;;
1182 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1185 -version |
--version |
--versio |
--versi |
--vers |
-V)
1186 ac_init_version
=: ;;
1189 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1192 as_fn_error
"invalid package name: $ac_useropt"
1193 ac_useropt_orig
=$ac_useropt
1194 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep
=', ';;
1202 eval with_
$ac_useropt=\
$ac_optarg ;;
1204 -without-* |
--without-*)
1205 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1208 as_fn_error
"invalid package name: $ac_useropt"
1209 ac_useropt_orig
=$ac_useropt
1210 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep
=', ';;
1218 eval with_
$ac_useropt=no
;;
1221 # Obsolete; use --with-x.
1224 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1225 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1226 ac_prev
=x_includes
;;
1227 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1228 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1229 x_includes
=$ac_optarg ;;
1231 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1232 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1233 ac_prev
=x_libraries
;;
1234 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1235 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1236 x_libraries
=$ac_optarg ;;
1238 -*) as_fn_error
"unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information."
1243 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1247 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1249 eval $ac_envvar=\
$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1263 if test -n "$ac_prev"; then
1264 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error
"missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1271 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 # Check all directory arguments for consistency.
1277 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val
=\$
$ac_var
1283 # Remove trailing slashes.
1286 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\
$ac_val;;
1289 # Be sure to have absolute directory names.
1291 [\\/$
]* | ?
:[\\/]* ) continue;;
1292 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1294 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target
=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x
; then
1306 if test "x$build_alias" = x
; then
1307 cross_compiling
=maybe
1308 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1318 test "$silent" = yes && exec 6>/dev
/null
1321 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di
=`ls -di .` &&
1323 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error
"working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error
"pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted
=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir
=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted
=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1365 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var
in $ac_precious_vars; do
1382 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1384 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1458 --x-includes=DIR X include files are
in DIR
1459 --x-libraries=DIR X library files are
in DIR
1462 --build=BUILD configure
for building on BUILD
[guessed
]
1463 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1474 --disable-option-checking ignore unrecognized
--enable/--with options
1475 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1476 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1477 --disable-ns-self-contained
1478 disable self contained build under NeXTstep
1479 --enable-asserts compile code with asserts enabled
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful
(and
1482 sometimes confusing
) to the casual installer
1483 --enable-locallisppath=PATH
1484 directories Emacs should search
for lisp files
1485 specific to this site
1486 --enable-checking[=LIST
]
1487 enable expensive run-time checks. With LIST
, enable
1488 only specific categories of checks. Categories are
:
1489 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1490 stringfreelist
, xmallocoverrun
, conslist
1491 --enable-use-lisp-union-type
1492 use a union
for the Lisp_Object data
type. This is
1493 only useful
for development
for catching certain
1495 --enable-profiling build emacs with profiling support. This might not
1496 work on all platforms
1497 --enable-autodepend automatically generate dependencies to .h-files.
1498 Requires GNU Make and Gcc. Enabled
if GNU Make and
1500 --disable-largefile omit support
for large files
1503 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1504 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1505 --without-pop don
't support POP mail retrieval with movemail
1506 --with-kerberos support Kerberos-authenticated POP
1507 --with-kerberos5 support Kerberos version 5 authenticated POP
1508 --with-hesiod support Hesiod to get the POP server host
1509 --with-mmdf support MMDF mailboxes
1510 --with-mail-unlink unlink, rather than empty, mail spool after reading
1511 --with-mailhost=HOSTNAME
1512 string giving default POP mail host
1513 --without-sound don't compile with sound support
1514 --without-sync-input process async input synchronously
1515 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1516 lucid or athena
, motif
, no
)
1517 --without-xpm don
't compile with XPM image support
1518 --without-jpeg don't compile with JPEG image support
1519 --without-tiff don
't compile with TIFF image support
1520 --without-gif don't compile with GIF image support
1521 --without-png don
't compile with PNG image support
1522 --without-rsvg don't compile with SVG image support
1523 --without-xml2 don
't compile with XML parsing support
1524 --without-imagemagick don't compile with ImageMagick image support
1525 --without-xft don
't use XFT for anti aliased fonts
1526 --without-libotf don't use libotf
for OpenType font support
1527 --without-m17n-flt don
't use m17n-flt for text shaping
1528 --without-toolkit-scroll-bars
1529 don't use Motif or Xaw3d scroll bars
1530 --without-xaw3d don
't use Xaw3d
1531 --without-xim don't use X11 XIM
1532 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1533 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1535 --without-dbus don't compile with D-Bus support
1536 --without-gconf don
't compile with GConf support
1537 --without-selinux don't compile with SELinux support
1538 --without-gnutls don
't use -lgnutls for SSL/TLS support
1539 --without-makeinfo don't require makeinfo
for building manuals
1540 --without-compress-info don
't compress the installed Info pages
1541 --with-pkg-config-prog=PATH
1542 path to pkg-config for finding GTK and librsvg
1543 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1544 /usr/lib, or /usr/lib64 on some platforms.
1545 --with-gnustep-conf=PATH
1546 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1547 or /etc/GNUstep/GNUstep.conf
1548 --with-x use the X Window System
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1559 XMKMF Path to xmkmf, Makefile generator for X Window System
1561 Use these variables to override the choices made by `configure' or to
help
1562 it to
find libraries and programs with nonstandard names
/locations.
1564 Report bugs to the package provider.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1578 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1580 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1585 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir
=$ac_pwd
1589 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir
=$ac_top_build_prefix
1594 .
) # We are building in place.
1596 ac_top_srcdir
=$ac_top_builddir_sub
1597 ac_abs_top_srcdir
=$ac_pwd ;;
1598 [\\/]* | ?
:[\\/]* ) # Absolute name.
1599 ac_srcdir
=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir
=$srcdir
1601 ac_abs_top_srcdir
=$srcdir ;;
1603 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 emacs configure
24.0.50
1628 generated by GNU Autoconf
2.65
1630 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1631 This configure
script is free software
; the Free Software Foundation
1632 gives unlimited permission to copy
, distribute and modify it.
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile
()
1646 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1647 rm -f conftest.
$ac_objext
1648 if { { ac_try
="$ac_compile"
1650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1689 *) ac_try_echo
=$ac_try;;
1691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1695 if test -s conftest.err
; then
1696 grep -v '^ *+' conftest.err
>conftest.er1
1697 cat conftest.er1
>&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest
$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest
$ac_exeext
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.
$ac_ext >&5
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1721 as_fn_set_status
$ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1731 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } >/dev/null && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1767 ac_fn_c_check_header_mongrel ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1791 ac_header_compiler=no
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1807 ac_header_preproc=no
1809 rm -f conftest.err conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1839 eval "$3=\$ac_header_compiler"
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1859 *) ac_try_echo
=$ac_try;;
1861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1908 if ac_fn_c_try_compile "$LINENO"; then :
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_decl LINENO SYMBOL VAR
1923 # ------------------------------------
1924 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1925 ac_fn_c_check_decl ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1929 $as_echo_n "checking whether $2 is declared... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1947 if ac_fn_c_try_compile "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_decl
1961 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1962 # ----------------------------------------------
1963 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1964 ac_fn_c_check_header_preproc ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 if ac_fn_c_try_cpp "$LINENO"; then :
1981 rm -f conftest.err conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_preproc
1990 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991 # ----------------------------------------------------
1992 # Tries to find if the field MEMBER exists in type AGGR, after including
1993 # INCLUDES, setting cache variable VAR accordingly.
1994 ac_fn_c_check_member ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998 $as_echo_n "checking for $2.$3... " >&6; }
1999 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2015 if ac_fn_c_try_compile "$LINENO"; then :
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2025 if (sizeof ac_aggr.$3)
2031 if ac_fn_c_try_compile "$LINENO"; then :
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_member
2047 # ac_fn_c_check_func LINENO FUNC VAR
2048 # ----------------------------------
2049 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2050 ac_fn_c_check_func ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2062 #define $2 innocuous_$2
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char $2 (); below.
2066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2067 <limits.h> exists even on freestanding compilers. */
2070 # include <limits.h>
2072 # include <assert.h>
2077 /* Override any GCC internal prototype to avoid an error.
2078 Use char because int might match the return type of a GCC
2079 builtin and then its argument prototype would still apply. */
2084 /* The GNU C library defines this for functions which it implements
2085 to always fail with ENOSYS. Some functions are actually named
2086 something starting with __ and the normal name is an alias. */
2087 #if defined __stub_$2 || defined __stub___$2
2099 if ac_fn_c_try_link "$LINENO"; then :
2104 rm -f core conftest.err conftest.$ac_objext \
2105 conftest$ac_exeext conftest.$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 } # ac_fn_c_check_func
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2124 $as_echo_n "(cached) " >&6
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2152 if ac_fn_c_try_compile "$LINENO"; then :
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 } # ac_fn_c_check_type
2167 cat >config.log <<_ACEOF
2168 This file contains any messages produced by compilers while
2169 running configure, to aid debugging if configure makes a mistake.
2171 It was created by emacs $as_me 24.0.50, which was
2172 generated by GNU Autoconf 2.65. Invocation command line was
2184 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2185 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2186 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2187 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2188 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2190 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2191 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2193 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2194 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2195 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2196 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2197 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2198 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2199 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 $as_echo "PATH: $as_dir"
2224 # Keep a trace of the command line.
2225 # Strip out --no-create and --no-recursion so they do not pile up.
2226 # Strip out --silent because we don't want to record it for future runs.
2227 # Also quote any args containing shell meta-characters.
2228 # Make two passes to allow for proper duplicate-argument suppression.
2232 ac_must_keep_next=false
2238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240 | -silent | --silent | --silen | --sile | --sil)
2243 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2246 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 as_fn_append ac_configure_args1 " '$ac_arg'"
2249 if test $ac_must_keep_next = true; then
2250 ac_must_keep_next=false # Got value, back to normal.
2253 *=* | --config-cache | -C | -disable-* | --disable-* \
2254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256 | -with-* | --with-* | -without-* | --without-* | --x)
2257 case "$ac_configure_args0 " in
2258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 -* ) ac_must_keep_next=true ;;
2264 as_fn_append ac_configure_args " '$ac_arg'"
2269 { ac_configure_args0=; unset ac_configure_args0;}
2270 { ac_configure_args1=; unset ac_configure_args1;}
2272 # When interrupted or exit'd, cleanup temporary files, and complete
2273 # config.log. We remove comments because anyway the quotes in there
2274 # would cause problems or look ugly.
2275 # WARNING: Use '\'' to represent an apostrophe within the trap.
2276 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277 trap 'exit_status=$?
2278 # Save into config.log some information that might help in debugging.
2283 ## ---------------- ##
2284 ## Cache variables. ##
2285 ## ---------------- ##
2288 # The following way of writing the cache mishandles newlines in values,
2290 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2291 eval ac_val=\$$ac_var
2295 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 _ | IFS | as_nl) ;; #(
2300 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2301 *) { eval $ac_var=; unset $ac_var;} ;;
2306 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2307 *${as_nl}ac_space=\ *)
2309 "s/'\''/'\''\\\\'\'''\''/g;
2310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2321 ## ----------------- ##
2322 ## Output variables. ##
2323 ## ----------------- ##
2326 for ac_var in $ac_subst_vars
2328 eval ac_val=\$$ac_var
2330 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 $as_echo "$ac_var='\''$ac_val'\''"
2336 if test -n "$ac_subst_files"; then
2338 ## ------------------- ##
2339 ## File substitutions. ##
2340 ## ------------------- ##
2343 for ac_var in $ac_subst_files
2345 eval ac_val=\$$ac_var
2347 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 $as_echo "$ac_var='\''$ac_val'\''"
2354 if test -s confdefs.h; then
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372 for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2380 $as_echo "/* confdefs.h */" > confdefs.h
2382 # Predefined preprocessor variables.
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2413 if test -n "$CONFIG_SITE"; then
2414 ac_site_file1=$CONFIG_SITE
2415 elif test "x$prefix" != xNONE; then
2416 ac_site_file1=$prefix/share/config.site
2417 ac_site_file2=$prefix/etc/config.site
2419 ac_site_file1=$ac_default_prefix/share/config.site
2420 ac_site_file2=$ac_default_prefix/etc/config.site
2422 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424 test "x$ac_site_file" = xNONE && continue
2425 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2433 if test -r "$cache_file"; then
2434 # Some versions of bash will fail to source /dev/null (special files
2435 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2436 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2438 $as_echo "$as_me: loading cache $cache_file" >&6;}
2440 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2441 *) . "./$cache_file";;
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2446 $as_echo "$as_me: creating cache $cache_file" >&6;}
2450 as_fn_append ac_header_list " stdlib.h"
2451 as_fn_append ac_header_list " unistd.h"
2452 as_fn_append ac_header_list " sys/param.h"
2453 as_fn_append ac_header_list " sys/time.h"
2454 as_fn_append ac_func_list " alarm"
2455 # Check that the precious variables saved in the cache have kept the same
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2466 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2470 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x
$ac_old_val`
2477 ac_new_val_w=`echo x
$ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2481 ac_cache_corrupted=:
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2527 test "$program_prefix" != NONE &&
2528 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.
2533 # By default was `s
,x
,x
', remove it if useless.
2534 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2535 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538 lispdir='${datadir}/emacs
/${version}/lisp
'
2539 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2540 '${datadir}/emacs
/site-lisp
'
2541 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2542 etcdir='${datadir}/emacs
/${version}/etc
'
2543 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2544 docdir='${datadir}/emacs
/${version}/etc
'
2545 gamedir='${localstatedir}/games
/emacs
'
2552 # Check whether --with-pop was given.
2553 if test "${with_pop+set}" = set; then :
2559 if test "$with_pop" = yes; then
2560 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2565 # Check whether --with-kerberos was given.
2566 if test "${with_kerberos+set}" = set; then :
2567 withval=$with_kerberos;
2572 if test "$with_kerberos" != no; then
2573 $as_echo "#define KERBEROS 1" >>confdefs.h
2578 # Check whether --with-kerberos5 was given.
2579 if test "${with_kerberos5+set}" = set; then :
2580 withval=$with_kerberos5;
2585 if test "${with_kerberos5}" != no; then
2586 if test "${with_kerberos}" = no; then
2588 $as_echo "#define KERBEROS 1" >>confdefs.h
2592 $as_echo "#define KERBEROS5 1" >>confdefs.h
2597 # Check whether --with-hesiod was given.
2598 if test "${with_hesiod+set}" = set; then :
2599 withval=$with_hesiod;
2604 if test "$with_hesiod" != no; then
2606 $as_echo "#define HESIOD 1" >>confdefs.h
2611 # Check whether --with-mmdf was given.
2612 if test "${with_mmdf+set}" = set; then :
2618 if test "$with_mmdf" != no; then
2620 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2625 # Check whether --with-mail-unlink was given.
2626 if test "${with_mail_unlink+set}" = set; then :
2627 withval=$with_mail_unlink;
2632 if test "$with_mail_unlink" != no; then
2634 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2639 # Check whether --with-mailhost was given.
2640 if test "${with_mailhost+set}" = set; then :
2641 withval=$with_mailhost;
2642 cat >>confdefs.h <<_ACEOF
2643 #define MAILHOST "$withval"
2650 # Check whether --with-sound was given.
2651 if test "${with_sound+set}" = set; then :
2652 withval=$with_sound;
2659 # Check whether --with-sync-input was given.
2660 if test "${with_sync_input+set}" = set; then :
2661 withval=$with_sync_input;
2666 if test "$with_sync_input" = yes; then
2668 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2673 # Check whether --with-x-toolkit was given.
2674 if test "${with_x_toolkit+set}" = set; then :
2675 withval=$with_x_toolkit; case "${withval}" in
2676 y | ye | yes ) val=gtk ;;
2678 l | lu | luc | luci | lucid ) val=lucid ;;
2679 a | at | ath | athe | athen | athena ) val=athena ;;
2680 m | mo | mot | moti | motif ) val=motif ;;
2681 g | gt | gtk ) val=gtk ;;
2684 as_fn_error "\`--with-x-toolkit=$withval' is invalid
;
2685 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif', \`gtk
' or
2686 \`gtk3'. \
`yes' and \`gtk
' are synonyms. \`athena' and \
`lucid' are synonyms." "$LINENO" 5
2695 # Check whether --with-xpm was given.
2696 if test "${with_xpm+set}" = set; then :
2703 # Check whether --with-jpeg was given.
2704 if test "${with_jpeg+set}" = set; then :
2711 # Check whether --with-tiff was given.
2712 if test "${with_tiff+set}" = set; then :
2719 # Check whether --with-gif was given.
2720 if test "${with_gif+set}" = set; then :
2727 # Check whether --with-png was given.
2728 if test "${with_png+set}" = set; then :
2735 # Check whether --with-rsvg was given.
2736 if test "${with_rsvg+set}" = set; then :
2743 # Check whether --with-xml2 was given.
2744 if test "${with_xml2+set}" = set; then :
2751 # Check whether --with-imagemagick was given.
2752 if test "${with_imagemagick+set}" = set; then :
2753 withval=$with_imagemagick;
2755 with_imagemagick=yes
2760 # Check whether --with-xft was given.
2761 if test "${with_xft+set}" = set; then :
2768 # Check whether --with-libotf was given.
2769 if test "${with_libotf+set}" = set; then :
2770 withval=$with_libotf;
2776 # Check whether --with-m17n-flt was given.
2777 if test "${with_m17n_flt+set}" = set; then :
2778 withval=$with_m17n_flt;
2785 # Check whether --with-toolkit-scroll-bars was given.
2786 if test "${with_toolkit_scroll_bars+set}" = set; then :
2787 withval=$with_toolkit_scroll_bars;
2789 with_toolkit_scroll_bars=yes
2793 # Check whether --with-xaw3d was given.
2794 if test "${with_xaw3d+set}" = set; then :
2795 withval=$with_xaw3d;
2801 # Check whether --with-xim was given.
2802 if test "${with_xim+set}" = set; then :
2809 # Check whether --with-ns was given.
2810 if test "${with_ns+set}" = set; then :
2818 # Check whether --with-gpm was given.
2819 if test "${with_gpm+set}" = set; then :
2826 # Check whether --with-dbus was given.
2827 if test "${with_dbus+set}" = set; then :
2834 # Check whether --with-gconf was given.
2835 if test "${with_gconf+set}" = set; then :
2836 withval=$with_gconf;
2842 # Check whether --with-selinux was given.
2843 if test "${with_selinux+set}" = set; then :
2844 withval=$with_selinux;
2850 # Check whether --with-gnutls was given.
2851 if test "${with_gnutls+set}" = set; then :
2852 withval=$with_gnutls;
2858 ## For the times when you want to build Emacs but don't have
2859 ## a suitable makeinfo, and can live without the manuals.
2861 # Check whether --with-makeinfo was given.
2862 if test "${with_makeinfo+set}" = set; then :
2863 withval=$with_makeinfo;
2869 ## This is an option because I do not know if all info/man support
2870 ## compressed files, nor how to test if they do so.
2872 # Check whether --with-compress-info was given.
2873 if test "${with_compress_info+set}" = set; then :
2874 withval=$with_compress_info;
2876 with_compress_info=yes
2879 if test $with_compress_info = yes; then
2887 # Check whether --with-pkg-config-prog was given.
2888 if test "${with_pkg_config_prog+set}" = set; then :
2889 withval=$with_pkg_config_prog;
2892 if test "X${with_pkg_config_prog}" != X; then
2893 if test "${with_pkg_config_prog}" != yes; then
2894 PKG_CONFIG="${with_pkg_config_prog}"
2900 # Check whether --with-crt-dir was given.
2901 if test "${with_crt_dir+set}" = set; then :
2902 withval=$with_crt_dir;
2905 CRT_DIR="${with_crt_dir}"
2908 # Check whether --with-gnustep-conf was given.
2909 if test "${with_gnustep_conf+set}" = set; then :
2910 withval=$with_gnustep_conf;
2913 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2914 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2915 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2916 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2918 # Check whether --enable-ns-self-contained was given.
2919 if test "${enable_ns_self_contained+set}" = set; then :
2920 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2922 EN_NS_SELF_CONTAINED=yes
2926 # Check whether --enable-asserts was given.
2927 if test "${enable_asserts+set}" = set; then :
2928 enableval=$enable_asserts; USE_XASSERTS=$enableval
2934 # Check whether --enable-maintainer-mode was given.
2935 if test "${enable_maintainer_mode+set}" = set; then :
2936 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2938 USE_MAINTAINER_MODE=no
2941 if test $USE_MAINTAINER_MODE = yes; then
2948 # Check whether --enable-locallisppath was given.
2949 if test "${enable_locallisppath+set}" = set; then :
2950 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2952 elif test "${enableval}" != "yes"; then
2953 locallisppath=${enableval}
2958 # Check whether --enable-checking was given.
2959 if test "${enable_checking+set}" = set; then :
2960 enableval=$enable_checking; ac_checking_flags="${enableval}"
2963 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2964 for check in $ac_checking_flags
2967 # these set all the flags to specific states
2968 yes) ac_enable_checking=1 ;;
2969 no) ac_enable_checking= ;
2970 ac_gc_check_stringbytes= ;
2971 ac_gc_check_string_overrun= ;
2972 ac_gc_check_string_free_list= ;
2973 ac_xmalloc_overrun= ;
2974 ac_gc_check_cons_list= ;;
2975 all) ac_enable_checking=1 ;
2976 ac_gc_check_stringbytes=1 ;
2977 ac_gc_check_string_overrun=1 ;
2978 ac_gc_check_string_free_list=1 ;
2979 ac_xmalloc_overrun=1 ;
2980 ac_gc_check_cons_list=1 ;;
2981 # these enable particular checks
2982 stringbytes) ac_gc_check_stringbytes=1 ;;
2983 stringoverrun) ac_gc_check_string_overrun=1 ;;
2984 stringfreelist) ac_gc_check_string_free_list=1 ;;
2985 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2986 conslist) ac_gc_check_cons_list=1 ;;
2987 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2992 if test x$ac_enable_checking != x ; then
2994 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2997 if test x$ac_gc_check_stringbytes != x ; then
2999 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3002 if test x$ac_gc_check_stringoverrun != x ; then
3004 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3007 if test x$ac_gc_check_string_free_list != x ; then
3009 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3012 if test x$ac_xmalloc_overrun != x ; then
3014 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3017 if test x$ac_gc_check_cons_list != x ; then
3019 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3023 # Check whether --enable-use-lisp-union-type was given.
3024 if test "${enable_use_lisp_union_type+set}" = set; then :
3025 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3027 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3034 # Check whether --enable-profiling was given.
3035 if test "${enable_profiling+set}" = set; then :
3036 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3039 if test x$ac_enable_profiling != x ; then
3040 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3041 PROFILING_LDFLAGS="-pg"
3049 # Check whether --enable-autodepend was given.
3050 if test "${enable_autodepend+set}" = set; then :
3051 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3053 ac_enable_autodepend=yes
3057 #### Make srcdir absolute, if it isn't already. It's important to
3058 #### avoid running the path through pwd unnecessarily, since pwd can
3059 #### give you automounter prefixes, which can go away. We do all this
3060 #### so Emacs can find its files when run uninstalled.
3061 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3066 ## We may be able to use the $PWD environment variable to make this
3067 ## absolute. But sometimes PWD is inaccurate.
3068 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3069 ## but that tested only for a well-formed and valid PWD,
3070 ## it did not object when PWD was well-formed and valid but just wrong.
3071 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
3075 srcdir="`(cd ${srcdir}; pwd)`"
3078 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3081 #### Check if the source directory already has a configured system in it.
3082 if test `pwd` != `(cd ${srcdir} && pwd)` \
3083 && test -f "${srcdir}/src/config.h" ; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3085 as a build directory right now; it has been configured in its own
3086 right. To configure in another directory as well, you MUST
3087 use GNU make. If you do not have GNU make, then you must
3088 now do \`make distclean' in ${srcdir},
3089 and
then run
$0 again.
" >&5
3090 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
3091 as a build directory right now; it has been configured in its own
3092 right. To configure in another directory as well, you MUST
3093 use GNU make. If you do not have GNU make, then you must
3094 now do \`make distclean
' in ${srcdir},
3095 and then run $0 again." >&2;}
3098 #### Given the configuration name, set machfile and opsysfile to the
3099 #### names of the m/*.h and s/*.h files we should use.
3101 ### Canonicalize the configuration name.
3104 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3105 for ac_t in install-sh install.sh shtool; do
3106 if test -f "$ac_dir/$ac_t"; then
3108 ac_install_sh="$ac_aux_dir/$ac_t -c"
3113 if test -z "$ac_aux_dir"; then
3114 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's
source tree is
in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3122 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3123 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3126 # Make sure we can run config.sub.
3127 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3128 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3131 $as_echo_n "checking build system type... " >&6; }
3132 if test "${ac_cv_build+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3135 ac_build_alias
=$build_alias
3136 test "x$ac_build_alias" = x
&&
3137 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3138 test "x$ac_build_alias" = x
&&
3139 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3140 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3141 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3145 $as_echo "$ac_cv_build" >&6; }
3146 case $ac_cv_build in
3148 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3151 ac_save_IFS
=$IFS; IFS
='-'
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3161 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3165 $as_echo_n "checking host system type... " >&6; }
3166 if test "${ac_cv_host+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3169 if test "x$host_alias" = x
; then
3170 ac_cv_host
=$ac_cv_build
3172 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3173 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3178 $as_echo "$ac_cv_host" >&6; }
3181 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3184 ac_save_IFS
=$IFS; IFS
='-'
3190 # Remember, the first character of IFS is used to create $*,
3191 # except with old shells:
3194 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3198 configuration
=${host_alias-${build_alias-$host}}
3202 ### If you add support for a new configuration, add code to this
3203 ### switch statement to recognize your configuration name and select
3204 ### the appropriate operating system and machine description files.
3206 ### You would hope that you could choose an m/*.h file pretty much
3207 ### based on the machine portion of the configuration name, and an s/*.h
3208 ### file based on the operating system portion. However, it turns out
3209 ### that each m/*.h file is pretty manufacturer-specific - for
3210 ### example mips.h is MIPS
3211 ### So we basically have to have a special case for each
3212 ### configuration name.
3214 ### As far as handling version numbers on operating systems is
3215 ### concerned, make sure things will fail in a fixable way. If
3216 ### /etc/MACHINES doesn't say anything about version numbers, be
3217 ### prepared to handle anything reasonably. If version numbers
3218 ### matter, be sure /etc/MACHINES says something about it.
3220 machine
='' opsys
='' unported
=no
3221 case "${canonical}" in
3226 case "${canonical}" in
3227 alpha
*) machine
=alpha
;;
3228 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3229 arm
*) machine
=arm
;;
3230 ia64-
*) machine
=ia64
;;
3231 i
[3456]86-*) machine
=intel386
;;
3232 powerpc-
*) machine
=macppc
;;
3233 sparc-
*) machine
=sparc
;;
3234 sparc64-
*) machine
=sparc
;;
3238 ## FreeBSD kernel + glibc based userland
3241 case "${canonical}" in
3242 alpha
*) machine
=alpha
;;
3243 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3244 ia64-
*) machine
=ia64
;;
3245 i
[3456]86-*) machine
=intel386
;;
3246 powerpc-
*) machine
=macppc
;;
3247 sparc-
*) machine
=sparc
;;
3248 sparc64-
*) machine
=sparc
;;
3255 case "${canonical}" in
3256 alpha
*) machine
=alpha
;;
3257 x86_64-
*) machine
=amdx86-64
;;
3258 arm-
*) machine
=arm
;;
3259 hppa-
*) machine
=hp800
;;
3260 i
[3456]86-*) machine
=intel386
;;
3261 m68k-
*) machine
=m68k
;;
3262 powerpc-
*) machine
=macppc
;;
3263 mips-
*) machine
=mips
;;
3264 mipse
[bl
]-*) machine
=mips
;;
3265 sparc
*-) machine
=sparc
;;
3266 vax-
*) machine
=vax
;;
3273 case "${canonical}" in
3274 alpha
*) machine
=alpha
;;
3275 x86_64-
*) machine
=amdx86-64
;;
3276 arm-
*) machine
=arm
;;
3277 hppa-
*) machine
=hp800
;;
3278 i386-
*) machine
=intel386
;;
3279 powerpc-
*) machine
=macppc
;;
3280 sparc
*) machine
=sparc
;;
3281 vax-
*) machine
=vax
;;
3285 alpha
*-*-linux-gnu* )
3286 machine
=alpha opsys
=gnu-linux
3290 machine
=arm opsys
=gnu-linux
3293 ## Apple Darwin / Mac OS X
3295 case "${canonical}" in
3296 i
[3456]86-* ) machine
=intel386
;;
3297 powerpc-
* ) machine
=macppc
;;
3298 x86_64-
* ) machine
=amdx86-64
;;
3302 # Define CPP as follows to make autoconf work correctly.
3303 CPP
="${CC-cc} -E -no-cpp-precomp"
3304 # Use fink packages if available.
3305 if test -d /sw
/include
&& test -d /sw
/lib
; then
3306 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3307 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3308 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3312 ## HP 9000 series 700 and 800, running HP/UX
3313 hppa
*-hp-hpux10.2
* )
3314 machine
=hp800 opsys
=hpux10-20
3316 hppa
*-hp-hpux1[1-9]* )
3317 machine
=hp800 opsys
=hpux11
3318 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3321 hppa
*-*-linux-gnu* )
3322 machine
=hp800 opsys
=gnu-linux
3327 machine
=ibms390 opsys
=gnu-linux
3329 s390x-
*-linux-gnu* )
3330 machine
=ibms390x opsys
=gnu-linux
3332 rs6000-ibm-aix4.
[23]* )
3333 machine
=ibmrs6000 opsys
=aix4-2
3335 powerpc-ibm-aix4.
[23]* )
3336 machine
=ibmrs6000 opsys
=aix4-2
3338 rs6000-ibm-aix
[56]* )
3339 machine
=ibmrs6000 opsys
=aix4-2
3341 powerpc-ibm-aix
[56]* )
3342 machine
=ibmrs6000 opsys
=aix4-2
3345 ## Macintosh PowerPC
3346 powerpc
*-*-linux-gnu* )
3347 machine
=macppc opsys
=gnu-linux
3350 ## Silicon Graphics machines
3353 machine
=iris4d opsys
=irix6-5
3354 # Without defining _LANGUAGE_C, things get masked out in the headers
3355 # so that, for instance, grepping for `free' in stdlib.h fails and
3356 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3357 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3358 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3362 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3363 machine
=sparc opsys
=gnu-linux
3367 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3368 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3369 case "${canonical}" in
3370 i
[3456]86-*-* ) machine
=intel386
;;
3371 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3372 sparc
* ) machine
=sparc
;;
3375 case "${canonical}" in
3376 *-sunos5.6
* |
*-solaris2.6
* )
3378 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3381 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3383 emacs_check_sunpro_c
=yes
3384 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3386 *-sunos5* |
*-solaris* )
3388 emacs_check_sunpro_c
=yes
3389 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3392 ## Watch out for a compiler that we know will not work.
3393 case "${canonical}" in
3394 *-solaris* |
*-sunos5* )
3395 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3396 ## /usr/ucb/cc doesn't work;
3397 ## we should find some other compiler that does work.
3407 machine
=ia64 opsys
=gnu-linux
3410 ## Intel 386 machines where we don't care about the manufacturer.
3413 case "${canonical}" in
3414 *-cygwin ) opsys
=cygwin
;;
3415 *-darwin* ) opsys
=darwin
3416 CPP
="${CC-cc} -E -no-cpp-precomp"
3418 *-linux-gnu* ) opsys
=gnu-linux
;;
3419 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3420 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3421 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3422 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3426 ## m68k Linux-based GNU system
3428 machine
=m68k opsys
=gnu-linux
3431 ## Mips Linux-based GNU system
3432 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3433 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3434 machine
=mips opsys
=gnu-linux
3437 ## AMD x86-64 Linux-based GNU system
3438 x86_64-
*-linux-gnu* )
3439 machine
=amdx86-64 opsys
=gnu-linux
3442 ## Tensilica Xtensa Linux-based GNU system
3443 xtensa
*-*-linux-gnu* )
3444 machine
=xtensa opsys
=gnu-linux
3447 ## SuperH Linux-based GNU system
3448 sh
[34]*-*-linux-gnu* )
3449 machine
=sh3 opsys
=gnu-linux
3457 ### If the code above didn't choose an operating system, just choose
3458 ### an operating system based on the configuration name. You really
3459 ### only want to use this when you have no idea what the right
3460 ### operating system is; if you know what operating systems a machine
3461 ### runs, it's cleaner to make it explicit in the case statement
3463 if test x
"${opsys}" = x
; then
3464 case "${canonical}" in
3465 *-gnu* ) opsys
=gnu
;;
3474 if test $unported = yes; then
3475 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3476 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3479 machfile
="m/${machine}.h"
3480 opsysfile
="s/${opsys}.h"
3483 #### Choose a compiler.
3484 test -n "$CC" && cc_specified
=yes
3486 # Save the value of CFLAGS that the user specified.
3487 SPECIFIED_CFLAGS
="$CFLAGS"
3490 ac_cpp
='$CPP $CPPFLAGS'
3491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC
="$CC" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc
; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC
="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x
; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned
=yes ;;
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC
="$CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc
; ac_word
=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC
="$CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected
=yes
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy
$ac_cv_prog_CC
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3667 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog
in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC
="$CC" # Let the user override the test.
3697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir
=.
3702 for ac_exec_ext
in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3727 if test -z "$CC"; then
3729 for ac_prog
in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy
$ac_prog; ac_word
=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir
=.
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC
="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3771 if test "x$ac_ct_CC" = x
; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned
=yes ;;
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error
"no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 for ac_option
in --version -v -V -qversion; do
3797 { { ac_try
="$ac_compiler $ac_option >&5"
3799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806 if test -s conftest.err; then
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3812 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3834 $as_echo_n "checking whether the C compiler works... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841 for ac_file in $ac_files
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850 if { { ac_try="$ac_link_default"
3852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3853 *) ac_try_echo
=$ac_try;;
3855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3866 for ac_file
in $ac_files ''
3868 test -f "$ac_file" ||
continue
3870 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3873 # We found the default executable, but exeext='' is most
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3879 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3891 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3896 if test -z "$ac_file"; then :
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.
$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status
77
3905 as_fn_error
"C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909 $as_echo "yes" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3912 $as_echo_n "checking for C compiler default output file name... " >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3914 $as_echo "$ac_file" >&6; }
3915 ac_exeext
=$ac_cv_exeext
3917 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3918 ac_clean_files
=$ac_clean_files_save
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3920 $as_echo_n "checking for suffix of executables... " >&6; }
3921 if { { ac_try
="$ac_link"
3923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_link") 2>&5
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; then :
3932 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3933 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3934 # work properly (i.e., refer to `conftest.exe'), while it won't with
3936 for ac_file
in conftest.exe conftest conftest.
*; do
3937 test -f "$ac_file" ||
continue
3939 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3940 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3949 See \`config.log' for more details." "$LINENO" 5; }
3951 rm -f conftest conftest
$ac_cv_exeext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3953 $as_echo "$ac_cv_exeext" >&6; }
3955 rm -f conftest.
$ac_ext
3956 EXEEXT
=$ac_cv_exeext
3958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3964 FILE *f = fopen ("conftest.out", "w");
3965 return ferror (f) || fclose (f) != 0;
3971 ac_clean_files
="$ac_clean_files conftest.out"
3972 # Check that the compiler produces executables we can run. If not, either
3973 # the compiler is broken, or we cross compile.
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3975 $as_echo_n "checking whether we are cross compiling... " >&6; }
3976 if test "$cross_compiling" != yes; then
3977 { { ac_try
="$ac_link"
3979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }
3988 if { ac_try='./conftest$ac_cv_exeext'
3989 { { case "(($ac_try" in
3990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3991 *) ac_try_echo
=$ac_try;;
3993 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 $as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_try") 2>&5
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }; }; then
4001 if test "$cross_compiling" = maybe
; then
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006 as_fn_error
"cannot run C compiled programs.
4007 If you meant to cross compile, use \`--host'.
4008 See \`config.log' for more details." "$LINENO" 5; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4013 $as_echo "$cross_compiling" >&6; }
4015 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4016 ac_clean_files
=$ac_clean_files_save
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4018 $as_echo_n "checking for suffix of object files... " >&6; }
4019 if test "${ac_cv_objext+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4033 rm -f conftest.o conftest.obj
4034 if { { ac_try
="$ac_compile"
4036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_compile") 2>&5
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; then :
4045 for ac_file in conftest.o conftest.obj conftest.*; do
4046 test -f "$ac_file" || continue;
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4054 $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error "cannot compute suffix of object files
: cannot compile
4060 See \
`config.log' for more details." "$LINENO" 5; }
4062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4065 $as_echo "$ac_cv_objext" >&6; }
4066 OBJEXT=$ac_cv_objext
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4069 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4070 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4097 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4098 if test $ac_compiler_gnu = yes; then
4103 ac_test_CFLAGS=${CFLAGS+set}
4104 ac_save_CFLAGS=$CFLAGS
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4106 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4107 if test "${ac_cv_prog_cc_g+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4110 ac_save_c_werror_flag=$ac_c_werror_flag
4111 ac_c_werror_flag=yes
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 if ac_fn_c_try_compile "$LINENO"; then :
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4140 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_c_werror_flag=$ac_save_c_werror_flag
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4156 if ac_fn_c_try_compile "$LINENO"; then :
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 ac_c_werror_flag=$ac_save_c_werror_flag
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4167 $as_echo "$ac_cv_prog_cc_g" >&6; }
4168 if test "$ac_test_CFLAGS" = set; then
4169 CFLAGS=$ac_save_CFLAGS
4170 elif test $ac_cv_prog_cc_g = yes; then
4171 if test "$GCC" = yes; then
4177 if test "$GCC" = yes; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4184 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4185 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4188 ac_cv_prog_cc_c89=no
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4194 #include <sys/types.h>
4195 #include <sys/stat.h>
4196 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4197 struct buf { int x; };
4198 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4199 static char *e (p, i)
4205 static char *f (char * (*g) (char **, int), char **p, ...)
4210 s = g (p, va_arg (v,int));
4215 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4216 function prototypes and stuff, but not '\xHH' hex character constants.
4217 These don't provoke an error unfortunately, instead are silently treated
4218 as 'x'. The following induces an error, until -std is added to get
4219 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4220 array size at least. It's necessary to write '\x00'==0 to get something
4221 that's true only with -std. */
4222 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4224 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4225 inside strings and character constants. */
4227 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4229 int test (int i, double x);
4230 struct s1 {int (*f) (int a);};
4231 struct s2 {int (*f) (double a);};
4232 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4238 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4243 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4244 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4246 CC="$ac_save_CC $ac_arg"
4247 if ac_fn_c_try_compile "$LINENO"; then :
4248 ac_cv_prog_cc_c89=$ac_arg
4250 rm -f core conftest.err conftest.$ac_objext
4251 test "x$ac_cv_prog_cc_c89" != "xno" && break
4253 rm -f conftest.$ac_ext
4258 case "x$ac_cv_prog_cc_c89" in
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4261 $as_echo "none needed" >&6; } ;;
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4264 $as_echo "unsupported" >&6; } ;;
4266 CC="$CC $ac_cv_prog_cc_c89"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4268 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4270 if test "x$ac_cv_prog_cc_c89" != xno; then :
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 # On Suns, sometimes $CPP names a directory.
4282 if test -n "$CPP" && test -d "$CPP"; then
4286 ## If not using gcc, and on Solaris, and no CPP specified, see if
4287 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4288 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4289 test x"$CPP" = x; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4291 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4293 if test "${emacs_cv_sunpro_c+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4310 if ac_fn_c_try_link "$LINENO"; then :
4311 emacs_cv_sunpro_c=yes
4313 emacs_cv_sunpro_c=no
4315 rm -f core conftest.err conftest.$ac_objext \
4316 conftest$ac_exeext conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4320 $as_echo "$emacs_cv_sunpro_c" >&6; }
4322 if test x"$emacs_cv_sunpro_c" = xyes; then
4323 NON_GNU_CPP="$CC -E -Xs"
4327 #### Some systems specify a CPP to use unless we are using GCC.
4328 #### Now that we know whether we are using GCC, we can decide whether
4329 #### to use that one.
4330 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4335 #### Some systems specify a CC to use unless we are using GCC.
4336 #### Now that we know whether we are using GCC, we can decide whether
4337 #### to use that one.
4338 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4339 test x$cc_specified != xyes
4344 if test x$GCC = xyes; then
4345 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4347 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4356 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4361 if test -z "$CPP"; then
4362 if test "${ac_cv_prog_CPP+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4365 # Double quotes because CPP needs to be expanded
4366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369 for ac_c_preproc_warn_flag in '' yes
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4380 # include <limits.h>
4382 # include <assert.h>
4386 if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: fails on valid input.
4392 rm -f conftest.err conftest.$ac_ext
4394 # OK, works on sane cases. Now check whether nonexistent headers
4395 # can be detected and how.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #include <ac_nonexistent.h>
4400 if ac_fn_c_try_cpp "$LINENO"; then :
4401 # Broken: success on invalid input.
4404 # Passes both tests.
4408 rm -f conftest.err conftest.$ac_ext
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.
$ac_ext
4413 if $ac_preproc_ok; then :
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4426 $as_echo "$CPP" >&6; }
4428 for ac_c_preproc_warn_flag
in '' yes
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4439 # include <limits.h>
4441 # include <assert.h>
4445 if ac_fn_c_try_cpp
"$LINENO"; then :
4448 # Broken: fails on valid input.
4451 rm -f conftest.err conftest.
$ac_ext
4453 # OK, works on sane cases. Now check whether nonexistent headers
4454 # can be detected and how.
4455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #include <ac_nonexistent.h>
4459 if ac_fn_c_try_cpp
"$LINENO"; then :
4460 # Broken: success on invalid input.
4463 # Passes both tests.
4467 rm -f conftest.err conftest.
$ac_ext
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.
$ac_ext
4472 if $ac_preproc_ok; then :
4475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4478 See \`config.log' for more details." "$LINENO" 5; }
4482 ac_cpp
='$CPP $CPPFLAGS'
4483 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490 if test "${ac_cv_path_GREP+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4493 if test -z "$GREP"; then
4494 ac_path_GREP_found
=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4497 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4500 test -z "$as_dir" && as_dir
=.
4501 for ac_prog
in grep ggrep
; do
4502 for ac_exec_ext
in '' $ac_executable_extensions; do
4503 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4504 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4509 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4512 $as_echo_n 0123456789 >"conftest.in"
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4520 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4521 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP
="$ac_path_GREP"
4525 ac_path_GREP_max
=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4530 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4533 $ac_path_GREP_found && break 3
4538 if test -z "$ac_cv_path_GREP"; then
4539 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542 ac_cv_path_GREP
=$GREP
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP
="$ac_cv_path_GREP"
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if test "${ac_cv_path_EGREP+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4556 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4557 then ac_cv_path_EGREP
="$GREP -E"
4559 if test -z "$EGREP"; then
4560 ac_path_EGREP_found
=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4563 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4566 test -z "$as_dir" && as_dir
=.
4567 for ac_prog
in egrep; do
4568 for ac_exec_ext
in '' $ac_executable_extensions; do
4569 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4570 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572 # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4575 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4578 $as_echo_n 0123456789 >"conftest.in"
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'EGREP' >> "conftest.nl"
4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4586 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4587 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP
="$ac_path_EGREP"
4591 ac_path_EGREP_max
=$ac_count
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4596 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4599 $ac_path_EGREP_found && break 3
4604 if test -z "$ac_cv_path_EGREP"; then
4605 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608 ac_cv_path_EGREP
=$EGREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614 $as_echo "$ac_cv_path_EGREP" >&6; }
4615 EGREP
="$ac_cv_path_EGREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4619 $as_echo_n "checking for ANSI C header files... " >&6; }
4620 if test "${ac_cv_header_stdc+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4638 if ac_fn_c_try_compile
"$LINENO"; then :
4639 ac_cv_header_stdc
=yes
4641 ac_cv_header_stdc
=no
4643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4645 if test $ac_cv_header_stdc = yes; then
4646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "memchr" >/dev
/null
2>&1; then :
4656 ac_cv_header_stdc
=no
4662 if test $ac_cv_header_stdc = yes; then
4663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 $EGREP "free" >/dev
/null
2>&1; then :
4673 ac_cv_header_stdc
=no
4679 if test $ac_cv_header_stdc = yes; then
4680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4681 if test "$cross_compiling" = yes; then :
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4688 #if ((' ' & 0x0FF) == 0x020)
4689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 # define ISLOWER(c) \
4693 (('a' <= (c) && (c) <= 'i') \
4694 || ('j' <= (c) && (c) <= 'r') \
4695 || ('s' <= (c) && (c) <= 'z'))
4696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4704 for (i = 0; i < 256; i++)
4705 if (XOR (islower (i), ISLOWER (i))
4706 || toupper (i) != TOUPPER (i))
4711 if ac_fn_c_try_run
"$LINENO"; then :
4714 ac_cv_header_stdc
=no
4716 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4717 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4723 $as_echo "$ac_cv_header_stdc" >&6; }
4724 if test $ac_cv_header_stdc = yes; then
4726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4732 inttypes.h stdint.h unistd.h
4734 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4737 eval as_val
=\$
$as_ac_Header
4738 if test "x$as_val" = x
""yes; then :
4739 cat >>confdefs.h
<<_ACEOF
4740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4750 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4757 if test "$MINIX" = yes; then
4759 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4765 $as_echo "#define _MINIX 1" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4771 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4772 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4778 # define __EXTENSIONS__ 1
4779 $ac_includes_default
4788 if ac_fn_c_try_compile
"$LINENO"; then :
4789 ac_cv_safe_to_define___extensions__
=yes
4791 ac_cv_safe_to_define___extensions__
=no
4793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4796 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4797 test $ac_cv_safe_to_define___extensions__ = yes &&
4798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4800 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4802 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4804 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4806 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4810 ### Use -Wno-pointer-sign if the compiler supports it
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4812 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4813 SAVE_CFLAGS
="$CFLAGS"
4814 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4826 if ac_fn_c_try_compile
"$LINENO"; then :
4831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4832 if test $has_option = yes; then
4833 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4836 $as_echo "$has_option" >&6; }
4837 CFLAGS
="$SAVE_CFLAGS"
4841 ### Use -Wdeclaration-after-statement if the compiler supports it
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4843 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4844 SAVE_CFLAGS
="$CFLAGS"
4845 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4857 if ac_fn_c_try_compile
"$LINENO"; then :
4862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4863 if test $has_option = yes; then
4864 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4867 $as_echo "$has_option" >&6; }
4868 CFLAGS
="$SAVE_CFLAGS"
4872 ### Use -Wold-style-definition if the compiler supports it
4873 # This can be removed when conversion to standard C is finished.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4875 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4876 SAVE_CFLAGS
="$CFLAGS"
4877 CFLAGS
="$CFLAGS -Wold-style-definition"
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4889 if ac_fn_c_try_compile
"$LINENO"; then :
4894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4895 if test $has_option = yes; then
4896 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4899 $as_echo "$has_option" >&6; }
4900 CFLAGS
="$SAVE_CFLAGS"
4904 ### Use -Wimplicit-function-declaration if the compiler supports it
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4906 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4907 SAVE_CFLAGS
="$CFLAGS"
4908 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4920 if ac_fn_c_try_compile
"$LINENO"; then :
4925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4926 if test $has_option = yes; then
4927 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4930 $as_echo "$has_option" >&6; }
4931 CFLAGS
="$SAVE_CFLAGS"
4938 #### Some other nice autoconf tests.
4941 ac_cpp
='$CPP $CPPFLAGS'
4942 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4946 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4947 # On Suns, sometimes $CPP names a directory.
4948 if test -n "$CPP" && test -d "$CPP"; then
4951 if test -z "$CPP"; then
4952 if test "${ac_cv_prog_CPP+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4955 # Double quotes because CPP needs to be expanded
4956 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4959 for ac_c_preproc_warn_flag
in '' yes
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4970 # include <limits.h>
4972 # include <assert.h>
4976 if ac_fn_c_try_cpp
"$LINENO"; then :
4979 # Broken: fails on valid input.
4982 rm -f conftest.err conftest.
$ac_ext
4984 # OK, works on sane cases. Now check whether nonexistent headers
4985 # can be detected and how.
4986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <ac_nonexistent.h>
4990 if ac_fn_c_try_cpp
"$LINENO"; then :
4991 # Broken: success on invalid input.
4994 # Passes both tests.
4998 rm -f conftest.err conftest.
$ac_ext
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.
$ac_ext
5003 if $ac_preproc_ok; then :
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5016 $as_echo "$CPP" >&6; }
5018 for ac_c_preproc_warn_flag
in '' yes
5020 # Use a header file that comes with gcc, so configuring glibc
5021 # with a fresh cross-compiler works.
5022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 # <limits.h> exists even on freestanding compilers.
5024 # On the NeXT, cc -E runs the code through the compiler's parser,
5025 # not just through cpp. "Syntax error" is here to catch this case.
5026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5029 # include <limits.h>
5031 # include <assert.h>
5035 if ac_fn_c_try_cpp
"$LINENO"; then :
5038 # Broken: fails on valid input.
5041 rm -f conftest.err conftest.
$ac_ext
5043 # OK, works on sane cases. Now check whether nonexistent headers
5044 # can be detected and how.
5045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <ac_nonexistent.h>
5049 if ac_fn_c_try_cpp
"$LINENO"; then :
5050 # Broken: success on invalid input.
5053 # Passes both tests.
5057 rm -f conftest.err conftest.
$ac_ext
5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061 rm -f conftest.err conftest.
$ac_ext
5062 if $ac_preproc_ok; then :
5065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5067 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5068 See \`config.log' for more details." "$LINENO" 5; }
5072 ac_cpp
='$CPP $CPPFLAGS'
5073 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5077 # Find a good install program. We prefer a C program (faster),
5078 # so one script is as good as another. But avoid the broken or
5079 # incompatible versions:
5080 # SysV /etc/install, /usr/sbin/install
5081 # SunOS /usr/etc/install
5082 # IRIX /sbin/install
5084 # AmigaOS /C/install, which installs bootblocks on floppy discs
5085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5088 # OS/2's system install, which has a completely different semantic
5089 # ./install, which can be erroneously created by make from ./install.sh.
5090 # Reject install programs that cannot install multiple files.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5092 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5093 if test -z "$INSTALL"; then
5094 if test "${ac_cv_path_install+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir
=.
5102 # Account for people who put trailing slashes in PATH elements.
5103 case $as_dir/ in #((
5104 .
/ | .
// |
/[cC
]/* | \
5105 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5106 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5109 # OSF1 and SCO ODT 3.0 have their own names for install.
5110 # Don't use installbsd from OSF since it installs stuff as root
5112 for ac_prog
in ginstall scoinst
install; do
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5115 if test $ac_prog = install &&
5116 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5117 # AIX install. It has an incompatible calling convention.
5119 elif test $ac_prog = install &&
5120 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5121 # program-specific install script used by HP pwplus--don't use.
5124 rm -rf conftest.one conftest.two conftest.dir
5125 echo one
> conftest.one
5126 echo two
> conftest.two
5128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5129 test -s conftest.one
&& test -s conftest.two
&&
5130 test -s conftest.dir
/conftest.one
&&
5131 test -s conftest.dir
/conftest.two
5133 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5146 rm -rf conftest.one conftest.two conftest.dir
5149 if test "${ac_cv_path_install+set}" = set; then
5150 INSTALL
=$ac_cv_path_install
5152 # As a last resort, use the slow shell script. Don't cache a
5153 # value for INSTALL within a source directory, because that will
5154 # break other packages using the cache if that directory is
5155 # removed, or if the value is a relative name.
5156 INSTALL
=$ac_install_sh
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5160 $as_echo "$INSTALL" >&6; }
5162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5163 # It thinks the first close brace ends the variable substitution.
5164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5168 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5170 if test "x$RANLIB" = x
; then
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5173 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 if test -n "$RANLIB"; then
5180 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 RANLIB
=$ac_cv_prog_RANLIB
5200 if test -n "$RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5202 $as_echo "$RANLIB" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test -z "$ac_cv_prog_RANLIB"; then
5211 ac_ct_RANLIB
=$RANLIB
5212 # Extract the first word of "ranlib", so it can be a program name with args.
5213 set dummy ranlib
; ac_word
=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5219 if test -n "$ac_ct_RANLIB"; then
5220 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir
=.
5227 for ac_exec_ext
in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5240 if test -n "$ac_ct_RANLIB"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5242 $as_echo "$ac_ct_RANLIB" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_ct_RANLIB" = x
; then
5251 case $cross_compiling:$ac_tool_warned in
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned
=yes ;;
5257 RANLIB
=$ac_ct_RANLIB
5260 RANLIB
="$ac_cv_prog_RANLIB"
5265 ## Although we're running on an amd64 kernel, we're actually compiling for
5266 ## the x86 architecture. The user should probably have provided an
5267 ## explicit --build to `configure', but if everything else than the kernel
5268 ## is running in i386 mode, we can help them out.
5269 if test "$machine" = "amdx86-64"; then
5270 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5271 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5275 if test "$ac_cv_have_decl_i386" = "yes"; then
5276 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5278 machfile
="m/${machine}.h"
5282 # Extract the first word of "install-info", so it can be a program name with args.
5283 set dummy install-info
; ac_word
=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 case $INSTALL_INFO in
5291 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5298 test -z "$as_dir" && as_dir
=.
5299 for ac_exec_ext
in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5313 if test -n "$INSTALL_INFO"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5315 $as_echo "$INSTALL_INFO" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5322 # Extract the first word of "install-info", so it can be a program name with args.
5323 set dummy install-info
; ac_word
=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5329 case $INSTALL_INFO in
5331 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 for as_dir
in /usr
/sbin
5338 test -z "$as_dir" && as_dir
=.
5339 for ac_exec_ext
in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5353 if test -n "$INSTALL_INFO"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5355 $as_echo "$INSTALL_INFO" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 # Extract the first word of "install-info", so it can be a program name with args.
5363 set dummy install-info
; ac_word
=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5369 case $INSTALL_INFO in
5371 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5378 test -z "$as_dir" && as_dir
=.
5379 for ac_exec_ext
in '' $ac_executable_extensions; do
5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5381 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5393 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5394 if test -n "$INSTALL_INFO"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5396 $as_echo "$INSTALL_INFO" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 # Extract the first word of "gzip", so it can be a program name with args.
5404 set dummy
gzip; ac_word
=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5412 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir
=.
5420 for ac_exec_ext
in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5434 if test -n "$GZIP_PROG"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5436 $as_echo "$GZIP_PROG" >&6; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5445 ## Need makeinfo >= 4.6 (?) to build the manuals.
5446 # Extract the first word of "makeinfo", so it can be a program name with args.
5447 set dummy makeinfo
; ac_word
=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5455 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir
=.
5463 for ac_exec_ext
in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5477 MAKEINFO
=$ac_cv_path_MAKEINFO
5478 if test -n "$MAKEINFO"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5480 $as_echo "$MAKEINFO" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5487 if test "$MAKEINFO" != "no" && \
5488 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5492 ## Makeinfo is unusual. For a released Emacs, the manuals are
5493 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5494 ## therefore in the category of "special tools" not normally required, which
5495 ## configure does not have to check for (eg autoconf itself).
5496 ## In a Bazaar checkout on the other hand, the manuals are not included.
5497 ## So makeinfo is a requirement to build from Bazaar, and configure
5498 ## should test for it as it does for any other build requirement.
5499 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5500 ## with pre-built manuals, from a Bazaar checkout.
5501 if test "$MAKEINFO" = "no"; then
5502 if test "x${with_makeinfo}" = "xno"; then
5504 elif test ! -e $srcdir/info
/emacs
; then
5505 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5506 source tree does not seem to have pre-built manuals in the \`info' directory.
5507 Either install a suitable version of makeinfo, or re-run configure
5508 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5513 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5515 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5518 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5520 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5524 late_LDFLAGS
=$LDFLAGS
5525 if test "$GCC" = yes; then
5526 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5528 LDFLAGS
="$LDFLAGS -znocombreloc"
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5532 $as_echo_n "checking for -znocombreloc... " >&6; }
5533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5537 if ac_fn_c_try_link
"$LINENO"; then :
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5539 $as_echo "yes" >&6; }
5541 LDFLAGS
=$late_LDFLAGS
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5545 rm -f core conftest.err conftest.
$ac_objext \
5546 conftest
$ac_exeext conftest.
$ac_ext
5549 # The value of CPP is a quoted variable reference, so we need to do this
5550 # to get its actual value...
5551 CPP
=`eval "echo $CPP"`
5559 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5566 UNEXEC_OBJ
=unexelf.o
5568 # MSDOS uses unexcoff.o
5569 # MSWindows uses unexw32.o
5571 UNEXEC_OBJ
=unexaix.o
5577 UNEXEC_OBJ
=unexmacosx.o
5580 UNEXEC_OBJ
=unexhp9k800.o
5583 # Use the Solaris dldump() function, called from unexsol.c, to dump
5584 # emacs, instead of the generic ELF dump code found in unexelf.c.
5585 # The resulting binary has a complete symbol table, and is better
5586 # for debugging and other observability tools (debuggers, pstack, etc).
5588 # If you encounter a problem using dldump(), please consider sending
5589 # a message to the OpenSolaris tools-linking mailing list:
5590 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5592 # It is likely that dldump() works with older Solaris too, but this has
5593 # not been tested, so for now this change is for Solaris 10 or newer.
5594 UNEXEC_OBJ
=unexsol.o
5601 ## Let `ld' find image libs and similar things in /usr/local/lib.
5602 ## The system compiler, GCC, has apparently been modified to not
5603 ## look there, contrary to what a stock GCC would do.
5604 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5608 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5609 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5613 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5617 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5618 ## otherwise Emacs dumps core on elf systems.
5619 LD_SWITCH_SYSTEM
="-Z"
5624 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5626 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5627 ## which has not been defined yet. When this was handled with cpp,
5628 ## it was expanded to null when configure sourced the s/*.h file.
5629 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5630 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5631 ## (or somesuch), but because it is supposed to go at the _front_
5632 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5633 ## Compare with the gnu-linux case below, which added to the end
5634 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5635 ## LD_SWITCH_SYSTEM_TEMACS.
5638 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5639 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5644 if test "$machine" = "alpha"; then
5645 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5646 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5650 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5651 ## With ELF, make sure that all common symbols get allocated to in the
5652 ## data section. Otherwise, the dump of temacs may miss variables in
5653 ## the shared library that have been initialized. For example, with
5654 ## GNU libc, __malloc_initialized would normally be resolved to the
5655 ## shared library's .bss section, which is fatal.
5656 if test "x$GCC" = "xyes"; then
5657 C_SWITCH_MACHINE
="-fno-common"
5659 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5662 UNEXEC_OBJ
=unexalpha.o
5670 ## Some programs in src produce warnings saying certain subprograms
5671 ## are too complex and need a MAXMEM value greater than 2000 for
5672 ## additional optimization. --nils@exp-math.uni-essen.de
5673 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5674 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5675 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5676 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5682 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5683 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5685 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5687 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5689 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5691 ## Motif needs -lgen.
5692 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5697 ### Make sure subsequent tests use flags consistent with the build flags.
5699 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5700 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5702 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5707 # Check whether --enable-largefile was given.
5708 if test "${enable_largefile+set}" = set; then :
5709 enableval
=$enable_largefile;
5712 if test "$enable_largefile" != no
; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5715 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5716 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5719 ac_cv_sys_largefile_CC
=no
5720 if test "$GCC" != yes; then
5723 # IRIX 6.2 and later do not support large files by default,
5724 # so use the C compiler's -n32 option if that helps.
5725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5744 if ac_fn_c_try_compile
"$LINENO"; then :
5747 rm -f core conftest.err conftest.
$ac_objext
5749 if ac_fn_c_try_compile
"$LINENO"; then :
5750 ac_cv_sys_largefile_CC
=' -n32'; break
5752 rm -f core conftest.err conftest.
$ac_objext
5756 rm -f conftest.
$ac_ext
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5760 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5761 if test "$ac_cv_sys_largefile_CC" != no
; then
5762 CC
=$CC$ac_cv_sys_largefile_CC
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5766 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5767 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 /* Check that off_t can represent 2**63 - 1 correctly.
5775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5776 since some C++ compilers masquerading as C compilers
5777 incorrectly reject 9223372036854775807. */
5778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5780 && LARGE_OFF_T % 2147483647 == 1)
5790 if ac_fn_c_try_compile
"$LINENO"; then :
5791 ac_cv_sys_file_offset_bits
=no
; break
5793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #define _FILE_OFFSET_BITS 64
5797 #include <sys/types.h>
5798 /* Check that off_t can represent 2**63 - 1 correctly.
5799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5800 since some C++ compilers masquerading as C compilers
5801 incorrectly reject 9223372036854775807. */
5802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5804 && LARGE_OFF_T % 2147483647 == 1)
5814 if ac_fn_c_try_compile
"$LINENO"; then :
5815 ac_cv_sys_file_offset_bits
=64; break
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5818 ac_cv_sys_file_offset_bits
=unknown
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5823 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5824 case $ac_cv_sys_file_offset_bits in #(
5827 cat >>confdefs.h
<<_ACEOF
5828 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5833 if test $ac_cv_sys_file_offset_bits = unknown
; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5835 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5836 if test "${ac_cv_sys_large_files+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <sys/types.h>
5843 /* Check that off_t can represent 2**63 - 1 correctly.
5844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5845 since some C++ compilers masquerading as C compilers
5846 incorrectly reject 9223372036854775807. */
5847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5849 && LARGE_OFF_T % 2147483647 == 1)
5859 if ac_fn_c_try_compile
"$LINENO"; then :
5860 ac_cv_sys_large_files
=no
; break
5862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #define _LARGE_FILES 1
5866 #include <sys/types.h>
5867 /* Check that off_t can represent 2**63 - 1 correctly.
5868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5869 since some C++ compilers masquerading as C compilers
5870 incorrectly reject 9223372036854775807. */
5871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5873 && LARGE_OFF_T % 2147483647 == 1)
5883 if ac_fn_c_try_compile
"$LINENO"; then :
5884 ac_cv_sys_large_files
=1; break
5886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5887 ac_cv_sys_large_files
=unknown
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5892 $as_echo "$ac_cv_sys_large_files" >&6; }
5893 case $ac_cv_sys_large_files in #(
5896 cat >>confdefs.h
<<_ACEOF
5897 #define _LARGE_FILES $ac_cv_sys_large_files
5907 ## If user specified a crt-dir, use that unconditionally.
5908 if test "X$CRT_DIR" = "X"; then
5910 case "$canonical" in
5911 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5912 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5913 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5914 ## For anything else (eg /usr/lib32), it is up the user to specify
5915 ## the location (bug#5655).
5916 ## Test for crtn.o, not just the directory, because sometimes the
5917 ## directory exists but does not have the relevant files (bug#1287).
5918 ## FIXME better to test for binary compatibility somehow.
5919 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5922 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5926 hpux10-20
) CRT_DIR
=/lib
;;
5929 ## Default is /usr/lib.
5930 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5934 ## Some platforms don't use any of these files, so it is not
5935 ## appropriate to put this test outside the if block.
5936 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5937 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5950 START_FILES
='pre-crt0.o'
5953 ## Adding -lm confuses the dynamic linker, so omit it.
5955 START_FILES
='pre-crt0.o'
5958 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5959 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5961 gnu-linux | gnu-kfreebsd
)
5962 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5963 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5965 hpux10-20 | hpux11
)
5967 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5970 if test -f $CRT_DIR/crti.o
; then
5971 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5972 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5974 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5975 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5986 if test "${with_sound}" != "no"; then
5987 # Sound support for GNU/Linux and the free BSDs.
5988 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5990 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5992 eval as_val
=\$
$as_ac_Header
5993 if test "x$as_val" = x
""yes; then :
5994 cat >>confdefs.h
<<_ACEOF
5995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997 have_sound_header
=yes
6002 # Emulation library used on NetBSD.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6004 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6005 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6008 ac_check_lib_save_LIBS
=$LIBS
6009 LIBS
="-lossaudio $LIBS"
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6013 /* Override any GCC internal prototype to avoid an error.
6014 Use char because int might match the return type of a GCC
6015 builtin and then its argument prototype would still apply. */
6023 return _oss_ioctl ();
6028 if ac_fn_c_try_link
"$LINENO"; then :
6029 ac_cv_lib_ossaudio__oss_ioctl
=yes
6031 ac_cv_lib_ossaudio__oss_ioctl
=no
6033 rm -f core conftest.err conftest.
$ac_objext \
6034 conftest
$ac_exeext conftest.
$ac_ext
6035 LIBS
=$ac_check_lib_save_LIBS
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6038 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6039 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
6048 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6052 # Extract the first word of "pkg-config", so it can be a program name with args.
6053 set dummy pkg-config
; ac_word
=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6061 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir
=.
6069 for ac_exec_ext
in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6083 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6084 if test -n "$PKG_CONFIG"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6086 $as_echo "$PKG_CONFIG" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6094 if test "$PKG_CONFIG" = "no" ; then
6097 PKG_CONFIG_MIN_VERSION
=0.9.0
6098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6100 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6102 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6104 $as_echo "yes" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6108 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6109 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6111 $as_echo "$ALSA_CFLAGS" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6114 $as_echo_n "checking ALSA_LIBS... " >&6; }
6115 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6117 $as_echo "$ALSA_LIBS" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6123 ## If we have a custom action on failure, don't print errors, but
6124 ## do set a variable so people can do so.
6125 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6137 if test $succeeded = yes; then
6143 if test $HAVE_ALSA = yes; then
6144 SAVE_CFLAGS
="$CFLAGS"
6145 SAVE_LDFLAGS
="$LDFLAGS"
6146 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6147 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 #include <asoundlib.h>
6154 snd_lib_error_set_handler (0);
6159 if ac_fn_c_try_compile
"$LINENO"; then :
6160 emacs_alsa_normal
=yes
6162 emacs_alsa_normal
=no
6164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6165 if test "$emacs_alsa_normal" != yes; then
6166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 #include <alsa/asoundlib.h>
6172 snd_lib_error_set_handler (0);
6177 if ac_fn_c_try_compile
"$LINENO"; then :
6178 emacs_alsa_subdir
=yes
6180 emacs_alsa_subdir
=no
6182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6183 if test "$emacs_alsa_subdir" != yes; then
6184 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6186 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6189 CFLAGS
="$SAVE_CFLAGS"
6190 LDFLAGS
="$SAVE_LDFLAGS"
6191 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6192 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6194 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6198 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
6200 gnu-linux|freebsd|netbsd
)
6202 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6211 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6212 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6213 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6214 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6215 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
6217 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6219 eval as_val
=\$
$as_ac_Header
6220 if test "x$as_val" = x
""yes; then :
6221 cat >>confdefs.h
<<_ACEOF
6222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6231 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <sys/personality.h>
6238 personality (PER_LINUX32)
6243 if ac_fn_c_try_compile
"$LINENO"; then :
6244 emacs_cv_personality_linux32
=yes
6246 emacs_cv_personality_linux32
=no
6248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6250 $as_echo "$emacs_cv_personality_linux32" >&6; }
6252 if test $emacs_cv_personality_linux32 = yes; then
6254 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6258 for ac_header
in term.h
6260 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6261 if test "x$ac_cv_header_term_h" = x
""yes; then :
6262 cat >>confdefs.h
<<_ACEOF
6263 #define HAVE_TERM_H 1
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6271 $as_echo_n "checking for ANSI C header files... " >&6; }
6272 if test "${ac_cv_header_stdc+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6290 if ac_fn_c_try_compile
"$LINENO"; then :
6291 ac_cv_header_stdc
=yes
6293 ac_cv_header_stdc
=no
6295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6297 if test $ac_cv_header_stdc = yes; then
6298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6305 $EGREP "memchr" >/dev
/null
2>&1; then :
6308 ac_cv_header_stdc
=no
6314 if test $ac_cv_header_stdc = yes; then
6315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "free" >/dev
/null
2>&1; then :
6325 ac_cv_header_stdc
=no
6331 if test $ac_cv_header_stdc = yes; then
6332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6333 if test "$cross_compiling" = yes; then :
6336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6340 #if ((' ' & 0x0FF) == 0x020)
6341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6344 # define ISLOWER(c) \
6345 (('a' <= (c) && (c) <= 'i') \
6346 || ('j' <= (c) && (c) <= 'r') \
6347 || ('s' <= (c) && (c) <= 'z'))
6348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6356 for (i = 0; i < 256; i++)
6357 if (XOR (islower (i), ISLOWER (i))
6358 || toupper (i) != TOUPPER (i))
6363 if ac_fn_c_try_run
"$LINENO"; then :
6366 ac_cv_header_stdc
=no
6368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6369 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6375 $as_echo "$ac_cv_header_stdc" >&6; }
6376 if test $ac_cv_header_stdc = yes; then
6378 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6383 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6384 if test "${ac_cv_header_time+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 #include <sys/types.h>
6390 #include <sys/time.h>
6396 if ((struct tm *) 0)
6402 if ac_fn_c_try_compile
"$LINENO"; then :
6403 ac_cv_header_time
=yes
6405 ac_cv_header_time
=no
6407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6410 $as_echo "$ac_cv_header_time" >&6; }
6411 if test $ac_cv_header_time = yes; then
6413 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6417 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6418 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6424 cat >>confdefs.h
<<_ACEOF
6425 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6428 if test $ac_cv_have_decl_sys_siglist != yes; then
6429 # For Tru64, at least:
6430 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6431 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6437 cat >>confdefs.h
<<_ACEOF
6438 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6441 if test $ac_cv_have_decl___sys_siglist = yes; then
6443 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6448 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6449 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <sys/types.h>
6455 #include <sys/wait.h>
6457 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6460 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6468 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6473 if ac_fn_c_try_compile
"$LINENO"; then :
6474 ac_cv_header_sys_wait_h
=yes
6476 ac_cv_header_sys_wait_h
=no
6478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6481 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6482 if test $ac_cv_header_sys_wait_h = yes; then
6484 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6490 $as_echo_n "checking for struct utimbuf... " >&6; }
6491 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #ifdef TIME_WITH_SYS_TIME
6497 #include <sys/time.h>
6500 #ifdef HAVE_SYS_TIME_H
6501 #include <sys/time.h>
6512 static struct utimbuf x; x.actime = x.modtime;
6517 if ac_fn_c_try_compile
"$LINENO"; then :
6518 emacs_cv_struct_utimbuf
=yes
6520 emacs_cv_struct_utimbuf
=no
6522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6525 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6526 if test $emacs_cv_struct_utimbuf = yes; then
6528 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6533 $as_echo_n "checking return type of signal handlers... " >&6; }
6534 if test "${ac_cv_type_signal+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <sys/types.h>
6545 return *(signal (0, 0)) (0) == 1;
6550 if ac_fn_c_try_compile
"$LINENO"; then :
6551 ac_cv_type_signal
=int
6553 ac_cv_type_signal
=void
6555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6558 $as_echo "$ac_cv_type_signal" >&6; }
6560 cat >>confdefs.h
<<_ACEOF
6561 #define RETSIGTYPE $ac_cv_type_signal
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6567 $as_echo_n "checking for speed_t... " >&6; }
6568 if test "${emacs_cv_speed_t+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <termios.h>
6582 if ac_fn_c_try_compile
"$LINENO"; then :
6583 emacs_cv_speed_t
=yes
6587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6590 $as_echo "$emacs_cv_speed_t" >&6; }
6591 if test $emacs_cv_speed_t = yes; then
6593 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6598 $as_echo_n "checking for struct timeval... " >&6; }
6599 if test "${emacs_cv_struct_timeval+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604 #ifdef TIME_WITH_SYS_TIME
6605 #include <sys/time.h>
6608 #ifdef HAVE_SYS_TIME_H
6609 #include <sys/time.h>
6617 static struct timeval x; x.tv_sec = x.tv_usec;
6622 if ac_fn_c_try_compile
"$LINENO"; then :
6623 emacs_cv_struct_timeval
=yes
6625 emacs_cv_struct_timeval
=no
6627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6630 $as_echo "$emacs_cv_struct_timeval" >&6; }
6631 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6632 if test $emacs_cv_struct_timeval = yes; then
6634 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6639 $as_echo_n "checking for struct exception... " >&6; }
6640 if test "${emacs_cv_struct_exception+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6649 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6654 if ac_fn_c_try_compile
"$LINENO"; then :
6655 emacs_cv_struct_exception
=yes
6657 emacs_cv_struct_exception
=no
6659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6662 $as_echo "$emacs_cv_struct_exception" >&6; }
6663 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6664 if test $emacs_cv_struct_exception != yes; then
6666 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6670 for ac_header
in sys
/socket.h
6672 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6673 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6674 cat >>confdefs.h
<<_ACEOF
6675 #define HAVE_SYS_SOCKET_H 1
6682 for ac_header
in net
/if.h
6684 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6685 #if HAVE_SYS_SOCKET_H
6686 #include <sys/socket.h>
6689 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6690 cat >>confdefs.h
<<_ACEOF
6691 #define HAVE_NET_IF_H 1
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6700 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6701 if test "${ac_cv_struct_tm+set}" = set; then :
6702 $as_echo_n "(cached) " >&6
6704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #include <sys/types.h>
6713 int *p = &tm.tm_sec;
6719 if ac_fn_c_try_compile
"$LINENO"; then :
6720 ac_cv_struct_tm
=time.h
6722 ac_cv_struct_tm
=sys
/time.h
6724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6727 $as_echo "$ac_cv_struct_tm" >&6; }
6728 if test $ac_cv_struct_tm = sys
/time.h
; then
6730 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6734 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6735 #include <$ac_cv_struct_tm>
6738 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6740 cat >>confdefs.h
<<_ACEOF
6741 #define HAVE_STRUCT_TM_TM_ZONE 1
6747 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6749 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6752 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6754 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6760 cat >>confdefs.h
<<_ACEOF
6761 #define HAVE_DECL_TZNAME $ac_have_decl
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6765 $as_echo_n "checking for tzname... " >&6; }
6766 if test "${ac_cv_var_tzname+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6772 #if !HAVE_DECL_TZNAME
6773 extern char *tzname[];
6779 return tzname[0][0];
6784 if ac_fn_c_try_link
"$LINENO"; then :
6785 ac_cv_var_tzname
=yes
6789 rm -f core conftest.err conftest.
$ac_objext \
6790 conftest
$ac_exeext conftest.
$ac_ext
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6793 $as_echo "$ac_cv_var_tzname" >&6; }
6794 if test $ac_cv_var_tzname = yes; then
6796 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6801 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6803 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6805 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6809 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6810 #if HAVE_SYS_SOCKET_H
6811 #include <sys/socket.h>
6817 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6819 cat >>confdefs.h
<<_ACEOF
6820 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6825 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6826 #if HAVE_SYS_SOCKET_H
6827 #include <sys/socket.h>
6833 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6835 cat >>confdefs.h
<<_ACEOF
6836 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6841 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6842 #if HAVE_SYS_SOCKET_H
6843 #include <sys/socket.h>
6849 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6851 cat >>confdefs.h
<<_ACEOF
6852 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6857 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6858 #if HAVE_SYS_SOCKET_H
6859 #include <sys/socket.h>
6865 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6867 cat >>confdefs.h
<<_ACEOF
6868 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6873 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6874 #if HAVE_SYS_SOCKET_H
6875 #include <sys/socket.h>
6881 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6883 cat >>confdefs.h
<<_ACEOF
6884 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6893 $as_echo_n "checking for function prototypes... " >&6; }
6894 if test "$ac_cv_prog_cc_c89" != no
; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6898 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6901 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6909 $as_echo_n "checking for working volatile... " >&6; }
6910 if test "${ac_cv_c_volatile+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6921 int * volatile y = (int *) 0;
6927 if ac_fn_c_try_compile
"$LINENO"; then :
6928 ac_cv_c_volatile
=yes
6932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6935 $as_echo "$ac_cv_c_volatile" >&6; }
6936 if test $ac_cv_c_volatile = no
; then
6938 $as_echo "#define volatile /**/" >>confdefs.h
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6943 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6944 if test "${ac_cv_c_const+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6953 /* FIXME: Include the comments suggested by Paul. */
6955 /* Ultrix mips cc rejects this. */
6956 typedef int charset[2];
6958 /* SunOS 4.1.1 cc rejects this. */
6959 char const *const *pcpcc;
6961 /* NEC SVR4.0.2 mips cc rejects this. */
6962 struct point {int x, y;};
6963 static struct point const zero = {0,0};
6964 /* AIX XL C 1.02.0.0 rejects this.
6965 It does not let you subtract one const X* pointer from another in
6966 an arm of an if-expression whose if-part is not a constant
6968 const char *g = "string";
6969 pcpcc = &g + (g ? g-g : 0);
6970 /* HPUX 7.0 cc rejects these. */
6972 ppc = (char**) pcpcc;
6973 pcpcc = (char const *const *) ppc;
6974 { /* SCO 3.2v4 cc rejects this. */
6976 char const *s = 0 ? (char *) 0 : (char const *) 0;
6981 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6983 const int *foo = &x[0];
6986 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6987 typedef const int *iptr;
6991 { /* AIX XL C 1.02.0.0 rejects this saying
6992 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6993 struct s { int j; const int *ap[3]; };
6994 struct s *b; b->j = 5;
6996 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7000 return !cs[0] && !zero.x;
7007 if ac_fn_c_try_compile
"$LINENO"; then :
7012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7015 $as_echo "$ac_cv_c_const" >&6; }
7016 if test $ac_cv_c_const = no
; then
7018 $as_echo "#define const /**/" >>confdefs.h
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
7023 $as_echo_n "checking for void * support... " >&6; }
7024 if test "${emacs_cv_void_star+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7038 if ac_fn_c_try_compile
"$LINENO"; then :
7039 emacs_cv_void_star
=yes
7041 emacs_cv_void_star
=no
7043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7046 $as_echo "$emacs_cv_void_star" >&6; }
7047 if test $emacs_cv_void_star = yes; then
7048 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7051 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7056 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7057 if test "${ac_cv_c_bigendian+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7060 ac_cv_c_bigendian
=unknown
7061 # See if we're dealing with a universal compiler.
7062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #ifndef __APPLE_CC__
7065 not a universal capable compiler
7070 if ac_fn_c_try_compile
"$LINENO"; then :
7072 # Check for potential -arch flags. It is not universal unless
7073 # there are at least two -arch flags with different values.
7076 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7077 if test -n "$ac_prev"; then
7079 i?
86 | x86_64 | ppc | ppc64
)
7080 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7083 ac_cv_c_bigendian
=universal
7089 elif test "x$ac_word" = "x-arch"; then
7094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7095 if test $ac_cv_c_bigendian = unknown
; then
7096 # See if sys/param.h defines the BYTE_ORDER macro.
7097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #include <sys/types.h>
7100 #include <sys/param.h>
7105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7106 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7115 if ac_fn_c_try_compile
"$LINENO"; then :
7116 # It does; now see whether it defined to BIG_ENDIAN or not.
7117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/param.h>
7125 #if BYTE_ORDER != BIG_ENDIAN
7133 if ac_fn_c_try_compile
"$LINENO"; then :
7134 ac_cv_c_bigendian
=yes
7136 ac_cv_c_bigendian
=no
7138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7142 if test $ac_cv_c_bigendian = unknown
; then
7143 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7151 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7159 if ac_fn_c_try_compile
"$LINENO"; then :
7160 # It does; now see whether it defined to _BIG_ENDIAN or not.
7161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7176 if ac_fn_c_try_compile
"$LINENO"; then :
7177 ac_cv_c_bigendian
=yes
7179 ac_cv_c_bigendian
=no
7181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7185 if test $ac_cv_c_bigendian = unknown
; then
7186 # Compile a test program.
7187 if test "$cross_compiling" = yes; then :
7188 # Try to guess by grepping values from an object file.
7189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 short int ascii_mm[] =
7192 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7193 short int ascii_ii[] =
7194 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7195 int use_ascii (int i) {
7196 return ascii_mm[i] + ascii_ii[i];
7198 short int ebcdic_ii[] =
7199 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7200 short int ebcdic_mm[] =
7201 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7202 int use_ebcdic (int i) {
7203 return ebcdic_mm[i] + ebcdic_ii[i];
7210 return use_ascii (foo) == use_ebcdic (foo);
7215 if ac_fn_c_try_compile
"$LINENO"; then :
7216 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7217 ac_cv_c_bigendian
=yes
7219 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7220 if test "$ac_cv_c_bigendian" = unknown
; then
7221 ac_cv_c_bigendian
=no
7223 # finding both strings is unlikely to happen, but who knows?
7224 ac_cv_c_bigendian
=unknown
7228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 $ac_includes_default
7237 /* Are we little or big endian? From Harbison&Steele. */
7241 char c[sizeof (long int)];
7244 return u.c[sizeof (long int) - 1] == 1;
7250 if ac_fn_c_try_run
"$LINENO"; then :
7251 ac_cv_c_bigendian
=no
7253 ac_cv_c_bigendian
=yes
7255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7262 $as_echo "$ac_cv_c_bigendian" >&6; }
7263 case $ac_cv_c_bigendian in #(
7265 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7271 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7275 as_fn_error
"unknown endianness
7276 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7281 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7283 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7284 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7285 $as_echo_n "(cached) " >&6
7287 cat >conftest.
make <<\_ACEOF
7290 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7293 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7295 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7297 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7301 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7303 $as_echo "yes" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7308 SET_MAKE
="MAKE=${MAKE-make}"
7315 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7317 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7319 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7320 if test "x$testval" != x
; then
7323 ac_enable_autodepend
=no
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7326 $as_echo "$HAVE_GNU_MAKE" >&6; }
7327 if test $HAVE_GNU_MAKE = yes; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7329 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7330 SAVE_CFLAGS
="$CFLAGS"
7331 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7343 if ac_fn_c_try_compile
"$LINENO"; then :
7346 ac_enable_autodepend
=no
7348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7349 CFLAGS
="$SAVE_CFLAGS"
7350 test -f deps.d || ac_enable_autodepend
=no
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7353 $as_echo "$ac_enable_autodepend" >&6; }
7355 if test $ac_enable_autodepend = yes; then
7356 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7357 ## In parallel builds, another make might create depdir between
7358 ## the first test and mkdir, so stick another test on the end.
7359 ## Or use mkinstalldirs? mkdir -p is not portable.
7360 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7361 deps_frag
=autodeps.mk
7364 deps_frag
=$srcdir/src
/$deps_frag
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7371 $as_echo_n "checking for long file names... " >&6; }
7372 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7375 ac_cv_sys_long_file_names
=yes
7376 # Test for long file names in all the places we know might matter:
7377 # . the current directory, where building will happen
7378 # $prefix/lib where we will be installing things
7379 # $exec_prefix/lib likewise
7380 # $TMPDIR if set, where it might want to write temporary files
7381 # /tmp where it might want to write temporary files
7384 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7385 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7386 # in the usual case where exec_prefix is '${prefix}'.
7388 . |
/* | ?
:[\\/]*) ;; #(
7391 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7392 ac_xdir
=$ac_dir/cf$$
7393 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7394 ac_tf1
=$ac_xdir/conftest9012345
7395 ac_tf2
=$ac_xdir/conftest9012346
7396 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7397 ac_cv_sys_long_file_names
=no
7398 rm -f -r "$ac_xdir" 2>/dev
/null
7399 test $ac_cv_sys_long_file_names = no
&& break
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7403 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7404 if test $ac_cv_sys_long_file_names = yes; then
7406 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7411 #### Choose a window system.
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7414 $as_echo_n "checking for X... " >&6; }
7417 # Check whether --with-x was given.
7418 if test "${with_x+set}" = set; then :
7422 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7423 if test "x$with_x" = xno
; then
7424 # The user explicitly disabled X.
7427 case $x_includes,$x_libraries in #(
7428 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7429 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7432 # One or both of the vars are not set, and there is no cached value.
7433 ac_x_includes
=no ac_x_libraries
=no
7434 rm -f -r conftest.dir
7435 if mkdir conftest.dir
; then
7437 cat >Imakefile
<<'_ACEOF'
7439 @echo incroot='${INCROOT}'
7441 @echo usrlibdir='${USRLIBDIR}'
7443 @echo libdir='${LIBDIR}'
7445 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7447 for ac_var
in incroot usrlibdir libdir
; do
7448 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7450 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7451 for ac_extension
in a so sl dylib la dll
; do
7452 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7453 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7454 ac_im_usrlibdir
=$ac_im_libdir; break
7457 # Screen out bogus values from the imake configuration. They are
7458 # bogus both because they are the default anyway, and because
7459 # using them would break gcc on systems where it needs fixed includes.
7460 case $ac_im_incroot in
7461 /usr
/include
) ac_x_includes
= ;;
7462 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7464 case $ac_im_usrlibdir in
7465 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7466 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7470 rm -f -r conftest.dir
7473 # Standard set of common directories for X headers.
7474 # Check X11 before X11Rn because it is often a symlink to the current release.
7488 /usr/local/X11/include
7489 /usr/local/X11R7/include
7490 /usr/local/X11R6/include
7491 /usr/local/X11R5/include
7492 /usr/local/X11R4/include
7494 /usr/local/include/X11
7495 /usr/local/include/X11R7
7496 /usr/local/include/X11R6
7497 /usr/local/include/X11R5
7498 /usr/local/include/X11R4
7502 /usr/XFree86/include/X11
7506 /usr/unsupported/include
7508 /usr/local/x11r5/include
7509 /usr/lpp/Xamples/include
7511 /usr/openwin/include
7512 /usr/openwin/share/include'
7514 if test "$ac_x_includes" = no
; then
7515 # Guess where to find include files, by looking for Xlib.h.
7516 # First, try using that file with no special directory specified.
7517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <X11/Xlib.h>
7521 if ac_fn_c_try_cpp
"$LINENO"; then :
7522 # We can compile using X headers with no special include directory.
7525 for ac_dir
in $ac_x_header_dirs; do
7526 if test -r "$ac_dir/X11/Xlib.h"; then
7527 ac_x_includes
=$ac_dir
7532 rm -f conftest.err conftest.
$ac_ext
7533 fi # $ac_x_includes = no
7535 if test "$ac_x_libraries" = no
; then
7536 # Check for the libraries.
7537 # See if we find them without any special options.
7538 # Don't add to $LIBS permanently.
7541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <X11/Xlib.h>
7552 if ac_fn_c_try_link
"$LINENO"; then :
7554 # We can link X programs with no special library path.
7558 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7560 # Don't even attempt the hair of trying to link an X program!
7561 for ac_extension
in a so sl dylib la dll
; do
7562 if test -r "$ac_dir/libX11.$ac_extension"; then
7563 ac_x_libraries
=$ac_dir
7569 rm -f core conftest.err conftest.
$ac_objext \
7570 conftest
$ac_exeext conftest.
$ac_ext
7571 fi # $ac_x_libraries = no
7573 case $ac_x_includes,$ac_x_libraries in #(
7575 # Didn't find X, or a directory has "'" in its name.
7576 ac_cv_have_x
="have_x=no";; #(
7578 # Record where we found X for the cache.
7579 ac_cv_have_x
="have_x=yes\
7580 ac_x_includes='$ac_x_includes'\
7581 ac_x_libraries='$ac_x_libraries'"
7587 eval "$ac_cv_have_x"
7590 if test "$have_x" != yes; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7592 $as_echo "$have_x" >&6; }
7595 # If each of the values was on the command line, it overrides each guess.
7596 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7597 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7598 # Update the cache value to reflect the command line values.
7599 ac_cv_have_x
="have_x=yes\
7600 ac_x_includes='$x_includes'\
7601 ac_x_libraries='$x_libraries'"
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7603 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7606 if test "$no_x" = yes; then
7612 ## Workaround for bug in autoconf <= 2.62.
7613 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7614 ## No need to do anything special for these standard directories.
7615 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7617 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7621 LD_SWITCH_X_SITE_AUX
=
7622 LD_SWITCH_X_SITE_AUX_RPATH
=
7623 if test "${x_libraries}" != NONE
; then
7624 if test -n "${x_libraries}"; then
7625 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7626 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7627 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7629 x_default_search_path
=""
7630 x_search_path
=${x_libraries}
7631 if test -z "${x_search_path}"; then
7632 x_search_path
=/usr
/lib
7634 for x_library
in `echo ${x_search_path}: | \
7635 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7637 ${x_library}/X11/%L/%T/%N%C%S:\
7638 ${x_library}/X11/%l/%T/%N%C%S:\
7639 ${x_library}/X11/%T/%N%C%S:\
7640 ${x_library}/X11/%L/%T/%N%S:\
7641 ${x_library}/X11/%l/%T/%N%S:\
7642 ${x_library}/X11/%T/%N%S"
7643 if test x
"${x_default_search_path}" = x
; then
7644 x_default_search_path
=${x_search_path}
7646 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7653 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7654 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7657 if test x
"${x_includes}" = x
; then
7658 bitmapdir
=/usr
/include
/X11
/bitmaps
7660 # accumulate include directories that have X11 bitmap subdirectories
7662 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7663 if test -d "${bmd}/X11/bitmaps"; then
7664 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7666 if test -d "${bmd}/bitmaps"; then
7667 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7670 if test ${bmd_acc} != "dummyval"; then
7671 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7678 tmp_CPPFLAGS
="$CPPFLAGS"
7679 tmp_CFLAGS
="$CFLAGS"
7680 CPPFLAGS
="$CPPFLAGS -x objective-c"
7681 CFLAGS
="$CFLAGS -x objective-c"
7682 TEMACS_LDFLAGS2
="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7683 if test "${with_ns}" != no
; then
7684 if test "${opsys}" = darwin
; then
7686 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7687 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
7688 ns_appresdir
=${ns_appdir}Contents
/Resources
7689 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7690 elif test -f $GNUSTEP_CONFIG_FILE; then
7692 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7693 ns_appbindir
=${ns_appdir}
7694 ns_appresdir
=${ns_appdir}Resources
7695 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7696 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7697 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7698 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7699 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7700 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7701 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7702 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7703 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7704 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7705 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7706 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7711 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7712 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7715 as_fn_error
"\`--with-ns' was specified, but the include
7716 files are missing or cannot be compiled." "$LINENO" 5
7720 NS_HAVE_NSINTEGER
=yes
7721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <Foundation/NSObjCRuntime.h>
7732 if ac_fn_c_try_compile
"$LINENO"; then :
7733 ns_have_nsinteger
=yes
7735 ns_have_nsinteger
=no
7737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7738 if test $ns_have_nsinteger = no
; then
7739 NS_HAVE_NSINTEGER
=no
7747 if test "${HAVE_NS}" = yes; then
7748 window_system
=nextstep
7750 # set up packaging dirs
7751 exec_prefix
=${ns_appbindir}
7752 libexecdir
=${ns_appbindir}/libexec
7753 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7754 prefix
=${ns_appresdir}
7756 ns_frag
=$srcdir/src
/ns.mk
7757 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7758 NS_SUPPORT
="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7760 CFLAGS
="$tmp_CFLAGS"
7761 CPPFLAGS
="$tmp_CPPFLAGS"
7767 case "${window_system}" in
7771 case "${with_x_toolkit}" in
7772 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7773 motif
) USE_X_TOOLKIT
=MOTIF
;;
7775 USE_X_TOOLKIT
=none
;;
7776 gtk3
) with_gtk3
=yes
7777 USE_X_TOOLKIT
=none
;;
7778 no
) USE_X_TOOLKIT
=none
;;
7779 * ) USE_X_TOOLKIT
=maybe
;;
7789 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7790 # Extract the first word of "X", so it can be a program name with args.
7791 set dummy X
; ac_word
=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7797 if test -n "$HAVE_XSERVER"; then
7798 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7804 test -z "$as_dir" && as_dir
=.
7805 for ac_exec_ext
in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_HAVE_XSERVER
="true"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7818 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7819 if test -n "$HAVE_XSERVER"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7821 $as_echo "$HAVE_XSERVER" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test "$HAVE_XSERVER" = true ||
7829 test -n "$DISPLAY" ||
7830 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7831 as_fn_error
"You seem to be running X, but no X development libraries
7832 were found. You should install the relevant development files for X
7833 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7834 sure you have development files for image handling, i.e.
7835 tiff, gif, jpeg, png and xpm.
7836 If you are sure you want Emacs compiled without X window support, pass
7838 to configure." "$LINENO" 5
7842 ### If we're using X11, we should use the X menu package.
7845 yes ) HAVE_MENUS
=yes ;;
7848 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7849 # Assume not, until told otherwise.
7852 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7853 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7859 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7860 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7867 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7868 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 extern void (* __after_morecore_hook)();
7877 __after_morecore_hook = 0
7882 if ac_fn_c_try_link
"$LINENO"; then :
7883 emacs_cv_var___after_morecore_hook
=yes
7885 emacs_cv_var___after_morecore_hook
=no
7887 rm -f core conftest.err conftest.
$ac_objext \
7888 conftest
$ac_exeext conftest.
$ac_ext
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7891 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7892 if test $emacs_cv_var___after_morecore_hook = no
; then
7899 ## darwin ld insists on the use of malloc routines in the System framework.
7900 darwin|sol2-10
) system_malloc
=yes ;;
7903 if test "${system_malloc}" = "yes"; then
7905 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7909 (The GNU allocators don't work with this system configuration.)"
7913 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7914 VMLIMIT_OBJ
=vm-limit.o
7919 if test "$doug_lea_malloc" = "yes" ; then
7920 if test "$GNU_MALLOC" = yes ; then
7922 (Using Doug Lea's new malloc from the GNU C Library.)"
7925 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7928 ## Use mmap directly for allocating larger buffers.
7929 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7930 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7931 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7933 gnu
*) REL_ALLOC
=no
;;
7937 if test x
"${REL_ALLOC}" = x
; then
7938 REL_ALLOC
=${GNU_MALLOC}
7941 use_mmap_for_buffers
=no
7943 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
7949 for ac_header
in $ac_header_list
7951 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7952 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7954 eval as_val
=\$
$as_ac_Header
7955 if test "x$as_val" = x
""yes; then :
7956 cat >>confdefs.h
<<_ACEOF
7957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7971 for ac_func
in getpagesize
7973 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7974 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7975 cat >>confdefs.h
<<_ACEOF
7976 #define HAVE_GETPAGESIZE 1
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7983 $as_echo_n "checking for working mmap... " >&6; }
7984 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 if test "$cross_compiling" = yes; then :
7988 ac_cv_func_mmap_fixed_mapped
=no
7990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992 $ac_includes_default
7993 /* malloc might have been renamed as rpl_malloc. */
7996 /* Thanks to Mike Haertel and Jim Avera for this test.
7997 Here is a matrix of mmap possibilities:
7998 mmap private not fixed
7999 mmap private fixed at somewhere currently unmapped
8000 mmap private fixed at somewhere already mapped
8001 mmap shared not fixed
8002 mmap shared fixed at somewhere currently unmapped
8003 mmap shared fixed at somewhere already mapped
8004 For private mappings, we should verify that changes cannot be read()
8005 back from the file, nor mmap's back from the file at a different
8006 address. (There have been systems where private was not correctly
8007 implemented like the infamous i386 svr4.0, and systems where the
8008 VM page cache was not coherent with the file system buffer cache
8009 like early versions of FreeBSD and possibly contemporary NetBSD.)
8010 For shared mappings, we should conversely verify that changes get
8011 propagated back to all the places they're supposed to be.
8013 Grep wants private fixed already mapped.
8014 The main things grep needs to know about mmap are:
8015 * does it exist and is it safe to write into the mmap'd area
8016 * how to use it (BSD variants) */
8019 #include <sys/mman.h>
8021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8025 /* This mess was copied from the GNU getpagesize.h. */
8026 #ifndef HAVE_GETPAGESIZE
8027 # ifdef _SC_PAGESIZE
8028 # define getpagesize() sysconf(_SC_PAGESIZE)
8029 # else /* no _SC_PAGESIZE */
8030 # ifdef HAVE_SYS_PARAM_H
8031 # include <sys/param.h>
8032 # ifdef EXEC_PAGESIZE
8033 # define getpagesize() EXEC_PAGESIZE
8034 # else /* no EXEC_PAGESIZE */
8036 # define getpagesize() NBPG * CLSIZE
8039 # endif /* no CLSIZE */
8040 # else /* no NBPG */
8042 # define getpagesize() NBPC
8043 # else /* no NBPC */
8045 # define getpagesize() PAGESIZE
8046 # endif /* PAGESIZE */
8047 # endif /* no NBPC */
8048 # endif /* no NBPG */
8049 # endif /* no EXEC_PAGESIZE */
8050 # else /* no HAVE_SYS_PARAM_H */
8051 # define getpagesize() 8192 /* punt totally */
8052 # endif /* no HAVE_SYS_PARAM_H */
8053 # endif /* no _SC_PAGESIZE */
8055 #endif /* no HAVE_GETPAGESIZE */
8060 char *data, *data2, *data3;
8065 pagesize = getpagesize ();
8067 /* First, make a file with some known garbage in it. */
8068 data = (char *) malloc (pagesize);
8071 for (i = 0; i < pagesize; ++i)
8072 *(data + i) = rand ();
8074 fd = creat ("conftest.mmap", 0600);
8077 if (write (fd, data, pagesize) != pagesize)
8081 /* Next, check that the tail of a page is zero-filled. File must have
8082 non-zero length, otherwise we risk SIGBUS for entire page. */
8083 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8087 if (write (fd2, cdata2, 1) != 1)
8089 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8090 if (data2 == MAP_FAILED)
8092 for (i = 0; i < pagesize; ++i)
8096 if (munmap (data2, pagesize))
8099 /* Next, try to mmap the file at a fixed address which already has
8100 something else allocated at it. If we can, also make sure that
8101 we see the same garbage. */
8102 fd = open ("conftest.mmap", O_RDWR);
8105 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8106 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8108 for (i = 0; i < pagesize; ++i)
8109 if (*(data + i) != *(data2 + i))
8112 /* Finally, make sure that changes to the mapped area do not
8113 percolate back to the file as seen by read(). (This is a bug on
8114 some variants of i386 svr4.0.) */
8115 for (i = 0; i < pagesize; ++i)
8116 *(data2 + i) = *(data2 + i) + 1;
8117 data3 = (char *) malloc (pagesize);
8120 if (read (fd, data3, pagesize) != pagesize)
8122 for (i = 0; i < pagesize; ++i)
8123 if (*(data + i) != *(data3 + i))
8129 if ac_fn_c_try_run
"$LINENO"; then :
8130 ac_cv_func_mmap_fixed_mapped
=yes
8132 ac_cv_func_mmap_fixed_mapped
=no
8134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8135 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8140 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8141 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8143 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8146 rm -f conftest.mmap conftest.txt
8148 if test $use_mmap_for_buffers = yes; then
8150 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8155 LIBS
="$LIBS_SYSTEM $LIBS"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8158 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8159 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8162 ac_check_lib_save_LIBS
=$LIBS
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8167 /* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8177 return dnet_ntoa ();
8182 if ac_fn_c_try_link
"$LINENO"; then :
8183 ac_cv_lib_dnet_dnet_ntoa
=yes
8185 ac_cv_lib_dnet_dnet_ntoa
=no
8187 rm -f core conftest.err conftest.
$ac_objext \
8188 conftest
$ac_exeext conftest.
$ac_ext
8189 LIBS
=$ac_check_lib_save_LIBS
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8192 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8193 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
8194 cat >>confdefs.h
<<_ACEOF
8195 #define HAVE_LIBDNET 1
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8204 $as_echo_n "checking for main in -lXbsd... " >&6; }
8205 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8208 ac_check_lib_save_LIBS
=$LIBS
8210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8222 if ac_fn_c_try_link
"$LINENO"; then :
8223 ac_cv_lib_Xbsd_main
=yes
8225 ac_cv_lib_Xbsd_main
=no
8227 rm -f core conftest.err conftest.
$ac_objext \
8228 conftest
$ac_exeext conftest.
$ac_ext
8229 LIBS
=$ac_check_lib_save_LIBS
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8232 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8233 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
8234 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8239 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8240 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8243 ac_check_lib_save_LIBS
=$LIBS
8244 LIBS
="-lpthreads $LIBS"
8245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8248 /* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8263 if ac_fn_c_try_link
"$LINENO"; then :
8264 ac_cv_lib_pthreads_cma_open
=yes
8266 ac_cv_lib_pthreads_cma_open
=no
8268 rm -f core conftest.err conftest.
$ac_objext \
8269 conftest
$ac_exeext conftest.
$ac_ext
8270 LIBS
=$ac_check_lib_save_LIBS
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8273 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8274 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
8275 cat >>confdefs.h
<<_ACEOF
8276 #define HAVE_LIBPTHREADS 1
8279 LIBS
="-lpthreads $LIBS"
8284 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8285 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8286 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8287 ## added to LIBS in configure would never contain the pthreads part,
8288 ## but the value used in Makefiles might. FIXME?
8290 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8291 ## be harmless on older versions of X where it happens to exist.
8292 test "$opsys" = "aix4-2" && \
8293 test $ac_cv_lib_pthreads_cma_open = yes && \
8294 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8300 $as_echo_n "checking for -bbigtoc option... " >&6; }
8301 if test "${gdb_cv_bigtoc+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8306 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8307 *) gdb_cv_bigtoc
=-bbigtoc ;;
8310 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8322 if ac_fn_c_try_link
"$LINENO"; then :
8327 rm -f core conftest.err conftest.
$ac_objext \
8328 conftest
$ac_exeext conftest.
$ac_ext
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8332 $as_echo "$gdb_cv_bigtoc" >&6; }
8336 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8337 # used for the tests that follow. We set them back to REAL_CFLAGS and
8338 # REAL_CPPFLAGS later on.
8340 REAL_CFLAGS
="$CFLAGS"
8341 REAL_CPPFLAGS
="$CPPFLAGS"
8343 if test "${HAVE_X11}" = "yes"; then
8344 DEFS
="$C_SWITCH_X_SITE $DEFS"
8345 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8347 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8348 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8350 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8351 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8352 # but it's more convenient here to set LD_RUN_PATH
8353 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8354 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8355 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8359 if test "${opsys}" = "gnu-linux"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8361 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8368 XOpenDisplay ("foo");
8373 if ac_fn_c_try_link
"$LINENO"; then :
8374 xlinux_first_failure
=no
8376 xlinux_first_failure
=yes
8378 rm -f core conftest.err conftest.
$ac_objext \
8379 conftest
$ac_exeext conftest.
$ac_ext
8380 if test "${xlinux_first_failure}" = "yes"; then
8381 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8382 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8383 OLD_CPPFLAGS
="$CPPFLAGS"
8385 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8386 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8387 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8388 LIBS
="$LIBS -b i486-linuxaout"
8389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8395 XOpenDisplay ("foo");
8400 if ac_fn_c_try_link
"$LINENO"; then :
8401 xlinux_second_failure
=no
8403 xlinux_second_failure
=yes
8405 rm -f core conftest.err conftest.
$ac_objext \
8406 conftest
$ac_exeext conftest.
$ac_ext
8407 if test "${xlinux_second_failure}" = "yes"; then
8408 # If we get the same failure with -b, there is no use adding -b.
8409 # So take it out. This plays safe.
8410 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8411 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8412 CPPFLAGS
="$OLD_CPPFLAGS"
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8418 $as_echo "yes" >&6; }
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8427 # header files included from there.
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8429 $as_echo_n "checking for Xkb... " >&6; }
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <X11/Xlib.h>
8433 #include <X11/XKBlib.h>
8437 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8442 if ac_fn_c_try_link
"$LINENO"; then :
8447 rm -f core conftest.err conftest.
$ac_objext \
8448 conftest
$ac_exeext conftest.
$ac_ext
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8450 $as_echo "$emacs_xkb" >&6; }
8451 if test $emacs_xkb = yes; then
8453 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8457 for ac_func
in XrmSetDatabase XScreenResourceString \
8458 XScreenNumberOfScreen XSetWMProtocols
8460 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8461 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8462 eval as_val
=\$
$as_ac_var
8463 if test "x$as_val" = x
""yes; then :
8464 cat >>confdefs.h
<<_ACEOF
8465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8473 if test "${window_system}" = "x11"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8475 $as_echo_n "checking X11 version 6... " >&6; }
8476 if test "${emacs_cv_x11_version_6+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <X11/Xlib.h>
8485 #if XlibSpecificationRelease < 6
8493 if ac_fn_c_try_link
"$LINENO"; then :
8494 emacs_cv_x11_version_6
=yes
8496 emacs_cv_x11_version_6
=no
8498 rm -f core conftest.err conftest.
$ac_objext \
8499 conftest
$ac_exeext conftest.
$ac_ext
8502 if test $emacs_cv_x11_version_6 = yes; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8504 $as_echo "6 or newer" >&6; }
8506 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8509 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8511 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8516 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8522 $as_echo "before 6" >&6; }
8527 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8529 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8530 if test "${with_rsvg}" != "no"; then
8531 RSVG_REQUIRED
=2.11.0
8532 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8537 # Extract the first word of "pkg-config", so it can be a program name with args.
8538 set dummy pkg-config
; ac_word
=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8546 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir
=.
8554 for ac_exec_ext
in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8568 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8569 if test -n "$PKG_CONFIG"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8571 $as_echo "$PKG_CONFIG" >&6; }
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8579 if test "$PKG_CONFIG" = "no" ; then
8582 PKG_CONFIG_MIN_VERSION
=0.9.0
8583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8585 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8587 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8589 $as_echo "yes" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8593 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8594 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8596 $as_echo "$RSVG_CFLAGS" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8599 $as_echo_n "checking RSVG_LIBS... " >&6; }
8600 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8602 $as_echo "$RSVG_LIBS" >&6; }
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8608 ## If we have a custom action on failure, don't print errors, but
8609 ## do set a variable so people can do so.
8610 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8622 if test $succeeded = yes; then
8631 if test $HAVE_RSVG = yes; then
8633 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8635 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8636 LIBS
="$RSVG_LIBS $LIBS"
8642 if test "${HAVE_X11}" = "yes"; then
8643 if test "${with_imagemagick}" != "no"; then
8644 IMAGEMAGICK_MODULE
="Wand"
8648 # Extract the first word of "pkg-config", so it can be a program name with args.
8649 set dummy pkg-config
; ac_word
=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8657 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8664 test -z "$as_dir" && as_dir
=.
8665 for ac_exec_ext
in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8679 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8680 if test -n "$PKG_CONFIG"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8682 $as_echo "$PKG_CONFIG" >&6; }
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8690 if test "$PKG_CONFIG" = "no" ; then
8693 PKG_CONFIG_MIN_VERSION
=0.9.0
8694 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8696 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8698 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8700 $as_echo "yes" >&6; }
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8704 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8705 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8707 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8710 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8711 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8713 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 IMAGEMAGICK_CFLAGS
=""
8719 ## If we have a custom action on failure, don't print errors, but
8720 ## do set a variable so people can do so.
8721 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8733 if test $succeeded = yes; then
8734 HAVE_IMAGEMAGICK
=yes
8742 if test $HAVE_IMAGEMAGICK = yes; then
8744 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8746 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
8747 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
8748 for ac_func
in MagickExportImagePixels
8750 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8751 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
8752 cat >>confdefs.h
<<_ACEOF
8753 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8765 if test "${with_gtk3}" = "yes"; then
8768 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8773 # Extract the first word of "pkg-config", so it can be a program name with args.
8774 set dummy pkg-config
; ac_word
=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8782 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8789 test -z "$as_dir" && as_dir
=.
8790 for ac_exec_ext
in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8800 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8804 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8805 if test -n "$PKG_CONFIG"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8807 $as_echo "$PKG_CONFIG" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8815 if test "$PKG_CONFIG" = "no" ; then
8818 PKG_CONFIG_MIN_VERSION
=0.9.0
8819 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8821 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8823 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8825 $as_echo "yes" >&6; }
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8829 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8830 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8832 $as_echo "$GTK_CFLAGS" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8835 $as_echo_n "checking GTK_LIBS... " >&6; }
8836 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8838 $as_echo "$GTK_LIBS" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8844 ## If we have a custom action on failure, don't print errors, but
8845 ## do set a variable so people can do so.
8846 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8858 if test $succeeded = yes; then
8864 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8865 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8869 if test "$pkg_check_gtk" != "yes"; then
8871 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8874 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8879 # Extract the first word of "pkg-config", so it can be a program name with args.
8880 set dummy pkg-config
; ac_word
=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8888 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8895 test -z "$as_dir" && as_dir
=.
8896 for ac_exec_ext
in '' $ac_executable_extensions; do
8897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8910 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8911 if test -n "$PKG_CONFIG"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8913 $as_echo "$PKG_CONFIG" >&6; }
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8921 if test "$PKG_CONFIG" = "no" ; then
8924 PKG_CONFIG_MIN_VERSION
=0.9.0
8925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8927 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8929 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8931 $as_echo "yes" >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8935 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8936 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8938 $as_echo "$GTK_CFLAGS" >&6; }
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8941 $as_echo_n "checking GTK_LIBS... " >&6; }
8942 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8944 $as_echo "$GTK_LIBS" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8950 ## If we have a custom action on failure, don't print errors, but
8951 ## do set a variable so people can do so.
8952 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8964 if test $succeeded = yes; then
8970 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8971 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8977 if test x
"$pkg_check_gtk" = xyes
; then
8981 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8982 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8983 LIBS
="$GTK_LIBS $LIBS"
8985 for ac_func
in gtk_main
8987 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8988 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8989 cat >>confdefs.h
<<_ACEOF
8990 #define HAVE_GTK_MAIN 1
8996 if test "${GTK_COMPILES}" != "yes"; then
8997 if test "$USE_X_TOOLKIT" != "maybe"; then
8998 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
9003 $as_echo "#define USE_GTK 1" >>confdefs.h
9007 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
9011 closing open displays. This is no problem if you just use
9012 one display, but if you use more than one and close one of them
9013 Emacs may crash." >&5
9014 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
9015 closing open displays. This is no problem if you just use
9016 one display, but if you use more than one and close one of them
9017 Emacs may crash." >&2;}
9026 if test "${HAVE_GTK}" = "yes"; then
9028 if test "$with_toolkit_scroll_bars" != no
; then
9029 with_toolkit_scroll_bars
=yes
9032 HAVE_GTK_FILE_SELECTION
=no
9033 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
9034 #include <gtk/gtk.h>
9036 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
9037 HAVE_GTK_FILE_SELECTION
=yes
9039 HAVE_GTK_FILE_SELECTION
=no
9042 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9043 for ac_func
in gtk_file_selection_new
9045 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9046 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
9047 cat >>confdefs.h
<<_ACEOF
9048 #define HAVE_GTK_FILE_SELECTION_NEW 1
9056 HAVE_GTK_AND_PTHREAD
=no
9057 for ac_header
in pthread.h
9059 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9060 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
9061 cat >>confdefs.h
<<_ACEOF
9062 #define HAVE_PTHREAD_H 1
9069 if test "$ac_cv_header_pthread_h"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9071 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9072 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9075 ac_check_lib_save_LIBS
=$LIBS
9076 LIBS
="-lpthread $LIBS"
9077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9080 /* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9086 char pthread_self ();
9090 return pthread_self ();
9095 if ac_fn_c_try_link
"$LINENO"; then :
9096 ac_cv_lib_pthread_pthread_self
=yes
9098 ac_cv_lib_pthread_pthread_self
=no
9100 rm -f core conftest.err conftest.
$ac_objext \
9101 conftest
$ac_exeext conftest.
$ac_ext
9102 LIBS
=$ac_check_lib_save_LIBS
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9105 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9106 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
9107 HAVE_GTK_AND_PTHREAD
=yes
9111 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9112 case "${canonical}" in
9114 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
9117 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9121 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
9122 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9123 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9124 gtk_orientable_set_orientation
9126 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9127 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9128 eval as_val
=\$
$as_ac_var
9129 if test "x$as_val" = x
""yes; then :
9130 cat >>confdefs.h
<<_ACEOF
9131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9142 if test "${with_dbus}" = "yes"; then
9146 # Extract the first word of "pkg-config", so it can be a program name with args.
9147 set dummy pkg-config
; ac_word
=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9155 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9162 test -z "$as_dir" && as_dir
=.
9163 for ac_exec_ext
in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9177 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9178 if test -n "$PKG_CONFIG"; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9180 $as_echo "$PKG_CONFIG" >&6; }
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183 $as_echo "no" >&6; }
9188 if test "$PKG_CONFIG" = "no" ; then
9191 PKG_CONFIG_MIN_VERSION
=0.9.0
9192 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9194 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9196 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9198 $as_echo "yes" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9202 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9203 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9205 $as_echo "$DBUS_CFLAGS" >&6; }
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9208 $as_echo_n "checking DBUS_LIBS... " >&6; }
9209 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9211 $as_echo "$DBUS_LIBS" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9217 ## If we have a custom action on failure, don't print errors, but
9218 ## do set a variable so people can do so.
9219 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9226 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9227 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9231 if test $succeeded = yes; then
9237 if test "$HAVE_DBUS" = yes; then
9238 LIBS
="$LIBS $DBUS_LIBS"
9240 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9242 for ac_func
in dbus_watch_get_unix_fd
9244 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9245 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
9246 cat >>confdefs.h
<<_ACEOF
9247 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9259 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9263 # Extract the first word of "pkg-config", so it can be a program name with args.
9264 set dummy pkg-config
; ac_word
=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9272 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9279 test -z "$as_dir" && as_dir
=.
9280 for ac_exec_ext
in '' $ac_executable_extensions; do
9281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9282 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9294 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9295 if test -n "$PKG_CONFIG"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9297 $as_echo "$PKG_CONFIG" >&6; }
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9305 if test "$PKG_CONFIG" = "no" ; then
9308 PKG_CONFIG_MIN_VERSION
=0.9.0
9309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9311 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9313 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9315 $as_echo "yes" >&6; }
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9319 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9320 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9322 $as_echo "$GCONF_CFLAGS" >&6; }
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9325 $as_echo_n "checking GCONF_LIBS... " >&6; }
9326 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9328 $as_echo "$GCONF_LIBS" >&6; }
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 $as_echo "no" >&6; }
9334 ## If we have a custom action on failure, don't print errors, but
9335 ## do set a variable so people can do so.
9336 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9348 if test $succeeded = yes; then
9354 if test "$HAVE_GCONF" = yes; then
9356 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9363 if test "${with_selinux}" = "yes"; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9365 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9366 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9367 $as_echo_n "(cached) " >&6
9369 ac_check_lib_save_LIBS
=$LIBS
9370 LIBS
="-lselinux $LIBS"
9371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9374 /* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9380 char lgetfilecon ();
9384 return lgetfilecon ();
9389 if ac_fn_c_try_link
"$LINENO"; then :
9390 ac_cv_lib_selinux_lgetfilecon
=yes
9392 ac_cv_lib_selinux_lgetfilecon
=no
9394 rm -f core conftest.err conftest.
$ac_objext \
9395 conftest
$ac_exeext conftest.
$ac_ext
9396 LIBS
=$ac_check_lib_save_LIBS
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9399 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9400 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
9406 if test "$HAVE_LIBSELINUX" = yes; then
9408 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9410 LIBSELINUX_LIBS
=-lselinux
9416 if test "${with_gnutls}" = "yes" ; then
9420 # Extract the first word of "pkg-config", so it can be a program name with args.
9421 set dummy pkg-config
; ac_word
=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9429 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9436 test -z "$as_dir" && as_dir
=.
9437 for ac_exec_ext
in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9451 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9452 if test -n "$PKG_CONFIG"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9454 $as_echo "$PKG_CONFIG" >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9462 if test "$PKG_CONFIG" = "no" ; then
9465 PKG_CONFIG_MIN_VERSION
=0.9.0
9466 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9468 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9470 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9472 $as_echo "yes" >&6; }
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9476 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9477 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9479 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9482 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9483 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9485 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9491 ## If we have a custom action on failure, don't print errors, but
9492 ## do set a variable so people can do so.
9493 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9500 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9501 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9505 if test $succeeded = yes; then
9511 if test "${HAVE_GNUTLS}" = "yes"; then
9512 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9521 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9522 if test "$with_xaw3d" != no
; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9524 $as_echo_n "checking for xaw3d... " >&6; }
9525 if test "${emacs_cv_xaw3d+set}" = set; then :
9526 $as_echo_n "(cached) " >&6
9528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9531 #include <X11/Intrinsic.h>
9532 #include <X11/Xaw3d/Simple.h>
9541 if ac_fn_c_try_link
"$LINENO"; then :
9546 rm -f core conftest.err conftest.
$ac_objext \
9547 conftest
$ac_exeext conftest.
$ac_ext
9553 if test $emacs_cv_xaw3d = yes; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9555 $as_echo "yes; using Lucid toolkit" >&6; }
9560 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9566 $as_echo_n "checking for libXaw... " >&6; }
9567 if test "${emacs_cv_xaw+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9573 #include <X11/Intrinsic.h>
9574 #include <X11/Xaw/Simple.h>
9583 if ac_fn_c_try_link
"$LINENO"; then :
9588 rm -f core conftest.err conftest.
$ac_objext \
9589 conftest
$ac_exeext conftest.
$ac_ext
9592 if test $emacs_cv_xaw = yes; then
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9594 $as_echo "yes; using Lucid toolkit" >&6; }
9597 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9598 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9601 $as_echo "no; do not use toolkit by default" >&6; }
9607 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9610 if test "${USE_X_TOOLKIT}" != "none"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9612 $as_echo_n "checking X11 toolkit version... " >&6; }
9613 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618 #include <X11/Intrinsic.h>
9622 #if XtSpecificationRelease < 6
9630 if ac_fn_c_try_link
"$LINENO"; then :
9631 emacs_cv_x11_toolkit_version_6
=yes
9633 emacs_cv_x11_toolkit_version_6
=no
9635 rm -f core conftest.err conftest.
$ac_objext \
9636 conftest
$ac_exeext conftest.
$ac_ext
9639 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9640 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9642 $as_echo "6 or newer" >&6; }
9644 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9646 LIBXTR6
="-lSM -lICE"
9648 ## Use libw.a along with X11R6 Xt.
9649 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9653 $as_echo "before 6" >&6; }
9657 if test x
$HAVE_X11XTR6 = xyes
; then
9658 LIBS
="-lXt -lSM -lICE $LIBS"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9663 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9664 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9667 ac_check_lib_save_LIBS
=$LIBS
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9672 /* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9678 char XmuConvertStandardSelection ();
9682 return XmuConvertStandardSelection ();
9687 if ac_fn_c_try_link
"$LINENO"; then :
9688 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9690 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9692 rm -f core conftest.err conftest.
$ac_objext \
9693 conftest
$ac_exeext conftest.
$ac_ext
9694 LIBS
=$ac_check_lib_save_LIBS
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9697 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9698 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9699 cat >>confdefs.h
<<_ACEOF
9700 #define HAVE_LIBXMU 1
9707 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9713 ## These machines don't supply Xmu.
9715 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9720 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9721 if test "${HAVE_X11}" = "yes"; then
9722 if test "${USE_X_TOOLKIT}" != "none"; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9724 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9725 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9728 ac_check_lib_save_LIBS
=$LIBS
9730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9733 /* Override any GCC internal prototype to avoid an error.
9734 Use char because int might match the return type of a GCC
9735 builtin and then its argument prototype would still apply. */
9739 char XShapeQueryExtension ();
9743 return XShapeQueryExtension ();
9748 if ac_fn_c_try_link
"$LINENO"; then :
9749 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9751 ac_cv_lib_Xext_XShapeQueryExtension
=no
9753 rm -f core conftest.err conftest.
$ac_objext \
9754 conftest
$ac_exeext conftest.
$ac_ext
9755 LIBS
=$ac_check_lib_save_LIBS
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9758 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9759 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9760 cat >>confdefs.h
<<_ACEOF
9761 #define HAVE_LIBXEXT 1
9772 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9774 $as_echo_n "checking for Motif version 2.1... " >&6; }
9775 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9776 $as_echo_n "(cached) " >&6
9778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9784 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9787 Motif version prior to 2.1.
9793 if ac_fn_c_try_compile
"$LINENO"; then :
9794 emacs_cv_motif_version_2_1
=yes
9796 emacs_cv_motif_version_2_1
=no
9798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9801 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9802 if test $emacs_cv_motif_version_2_1 = yes; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9804 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9805 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9808 ac_check_lib_save_LIBS
=$LIBS
9810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9813 /* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9819 char XpCreateContext ();
9823 return XpCreateContext ();
9828 if ac_fn_c_try_link
"$LINENO"; then :
9829 ac_cv_lib_Xp_XpCreateContext
=yes
9831 ac_cv_lib_Xp_XpCreateContext
=no
9833 rm -f core conftest.err conftest.
$ac_objext \
9834 conftest
$ac_exeext conftest.
$ac_ext
9835 LIBS
=$ac_check_lib_save_LIBS
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9838 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9839 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9845 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9846 if test "${emacs_cv_lesstif+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9849 # We put this in CFLAGS temporarily to precede other -I options
9850 # that might be in CFLAGS temporarily.
9851 # We put this in CPPFLAGS where it precedes the other -I options.
9852 OLD_CPPFLAGS
=$CPPFLAGS
9854 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9855 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9867 if ac_fn_c_try_compile
"$LINENO"; then :
9868 emacs_cv_lesstif
=yes
9872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9875 $as_echo "$emacs_cv_lesstif" >&6; }
9876 if test $emacs_cv_lesstif = yes; then
9877 # Make sure this -I option remains in CPPFLAGS after it is set
9878 # back to REAL_CPPFLAGS.
9879 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9880 # have those other -I options anyway. Ultimately, having this
9881 # directory ultimately in CPPFLAGS will be enough.
9882 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9883 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9886 CPPFLAGS
=$OLD_CPPFLAGS
9892 USE_TOOLKIT_SCROLL_BARS
=no
9893 if test "${with_toolkit_scroll_bars}" != "no"; then
9894 if test "${USE_X_TOOLKIT}" != "none"; then
9895 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9896 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9899 USE_TOOLKIT_SCROLL_BARS
=yes
9900 elif test "${HAVE_XAW3D}" = "yes"; then
9901 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9903 USE_TOOLKIT_SCROLL_BARS
=yes
9905 elif test "${HAVE_GTK}" = "yes"; then
9906 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9908 USE_TOOLKIT_SCROLL_BARS
=yes
9909 elif test "${HAVE_NS}" = "yes"; then
9910 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9912 USE_TOOLKIT_SCROLL_BARS
=yes
9916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9919 #include <X11/Xlib.h>
9920 #include <X11/Xresource.h>
9929 if ac_fn_c_try_compile
"$LINENO"; then :
9932 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9940 if test "${with_xim}" != "no"; then
9942 $as_echo "#define USE_XIM 1" >>confdefs.h
9947 if test "${HAVE_XIM}" != "no"; then
9949 if test "$GCC" = yes; then
9950 CFLAGS
="$CFLAGS --pedantic-errors"
9952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9955 #include <X11/Xlib.h>
9956 #include <X11/Xresource.h>
9965 XPointer *client_data;
9967 /* If we're not using GCC, it's probably not XFree86, and this is
9968 probably right, but we can't use something like --pedantic-errors. */
9969 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9970 char*, XIMProc, XPointer*);
9972 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9978 if ac_fn_c_try_compile
"$LINENO"; then :
9979 emacs_cv_arg6_star
=yes
9981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9982 if test "$emacs_cv_arg6_star" = yes; then
9983 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9986 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9992 ### Start of font-backend (under any platform) section.
9993 # (nothing here yet -- this is a placeholder)
9994 ### End of font-backend (under any platform) section.
9996 ### Start of font-backend (under X11) section.
9997 if test "${HAVE_X11}" = "yes"; then
10001 # Extract the first word of "pkg-config", so it can be a program name with args.
10002 set dummy pkg-config
; ac_word
=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10006 $as_echo_n "(cached) " >&6
10008 case $PKG_CONFIG in
10010 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10014 for as_dir
in $PATH
10017 test -z "$as_dir" && as_dir
=.
10018 for ac_exec_ext
in '' $ac_executable_extensions; do
10019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10020 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10032 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10033 if test -n "$PKG_CONFIG"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10035 $as_echo "$PKG_CONFIG" >&6; }
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10043 if test "$PKG_CONFIG" = "no" ; then
10046 PKG_CONFIG_MIN_VERSION
=0.9.0
10047 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10049 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10051 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10053 $as_echo "yes" >&6; }
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10057 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10058 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10060 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10063 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10064 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10066 $as_echo "$FONTCONFIG_LIBS" >&6; }
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 FONTCONFIG_CFLAGS
=""
10072 ## If we have a custom action on failure, don't print errors, but
10073 ## do set a variable so people can do so.
10074 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10081 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10082 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10086 if test $succeeded = yes; then
10093 ## Use -lXft if available, unless `--with-xft=no'.
10095 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
10098 if test "x${with_xft}" != "xno"; then
10103 # Extract the first word of "pkg-config", so it can be a program name with args.
10104 set dummy pkg-config
; ac_word
=$2
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10106 $as_echo_n "checking for $ac_word... " >&6; }
10107 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10110 case $PKG_CONFIG in
10112 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10116 for as_dir
in $PATH
10119 test -z "$as_dir" && as_dir
=.
10120 for ac_exec_ext
in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10134 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10135 if test -n "$PKG_CONFIG"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10137 $as_echo "$PKG_CONFIG" >&6; }
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10145 if test "$PKG_CONFIG" = "no" ; then
10148 PKG_CONFIG_MIN_VERSION
=0.9.0
10149 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10151 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10153 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10155 $as_echo "yes" >&6; }
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10159 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10160 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10162 $as_echo "$XFT_CFLAGS" >&6; }
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10165 $as_echo_n "checking XFT_LIBS... " >&6; }
10166 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10168 $as_echo "$XFT_LIBS" >&6; }
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10174 ## If we have a custom action on failure, don't print errors, but
10175 ## do set a variable so people can do so.
10176 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10183 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10184 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10188 if test $succeeded = yes; then
10194 ## Because xftfont.c uses XRenderQueryExtension, we also
10195 ## need to link to -lXrender.
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10198 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10199 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10202 ac_check_lib_save_LIBS
=$LIBS
10203 LIBS
="-lXrender $LIBS"
10204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10213 char XRenderQueryExtension ();
10217 return XRenderQueryExtension ();
10222 if ac_fn_c_try_link
"$LINENO"; then :
10223 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
10225 ac_cv_lib_Xrender_XRenderQueryExtension
=no
10227 rm -f core conftest.err conftest.
$ac_objext \
10228 conftest
$ac_exeext conftest.
$ac_ext
10229 LIBS
=$ac_check_lib_save_LIBS
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10232 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10233 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
10237 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
10238 OLD_CPPFLAGS
="$CPPFLAGS"
10239 OLD_CFLAGS
="$CFLAGS"
10241 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
10242 CFLAGS
="$CFLAGS $XFT_CFLAGS"
10243 XFT_LIBS
="-lXrender $XFT_LIBS"
10244 LIBS
="$XFT_LIBS $LIBS"
10245 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10246 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10248 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10249 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10252 ac_check_lib_save_LIBS
=$LIBS
10253 LIBS
="-lXft $XFT_LIBS $LIBS"
10254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10263 char XftFontOpen ();
10267 return XftFontOpen ();
10272 if ac_fn_c_try_link
"$LINENO"; then :
10273 ac_cv_lib_Xft_XftFontOpen
=yes
10275 ac_cv_lib_Xft_XftFontOpen
=no
10277 rm -f core conftest.err conftest.
$ac_objext \
10278 conftest
$ac_exeext conftest.
$ac_ext
10279 LIBS
=$ac_check_lib_save_LIBS
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10282 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10283 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
10291 if test "${HAVE_XFT}" = "yes"; then
10293 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10296 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
10298 CPPFLAGS
="$OLD_CPPFLAGS"
10299 CFLAGS
="$OLD_CFLAGS"
10301 fi # "${HAVE_XFT}" = "yes"
10302 fi # "$HAVE_XFT" != no
10303 fi # "x${with_xft}" != "xno"
10305 if test "$HAVE_XFT" != "yes"; then
10311 ## We used to allow building with FreeType and without Xft.
10312 ## However, the ftx font backend driver is not in good shape.
10313 if test "${HAVE_XFT}" = "yes"; then
10320 if test "${HAVE_FREETYPE}" = "yes"; then
10322 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10324 if test "${with_libotf}" != "no"; then
10328 # Extract the first word of "pkg-config", so it can be a program name with args.
10329 set dummy pkg-config
; ac_word
=$2
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331 $as_echo_n "checking for $ac_word... " >&6; }
10332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
10335 case $PKG_CONFIG in
10337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10341 for as_dir
in $PATH
10344 test -z "$as_dir" && as_dir
=.
10345 for ac_exec_ext
in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10360 if test -n "$PKG_CONFIG"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10362 $as_echo "$PKG_CONFIG" >&6; }
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10370 if test "$PKG_CONFIG" = "no" ; then
10373 PKG_CONFIG_MIN_VERSION
=0.9.0
10374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10376 $as_echo_n "checking for libotf... " >&6; }
10378 if $PKG_CONFIG --exists "libotf" 2>&5; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10380 $as_echo "yes" >&6; }
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10384 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10385 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10387 $as_echo "$LIBOTF_CFLAGS" >&6; }
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10390 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10391 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10393 $as_echo "$LIBOTF_LIBS" >&6; }
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10396 $as_echo "no" >&6; }
10399 ## If we have a custom action on failure, don't print errors, but
10400 ## do set a variable so people can do so.
10401 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10413 if test $succeeded = yes; then
10419 if test "$HAVE_LIBOTF" = "yes"; then
10421 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10424 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10425 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10426 $as_echo_n "(cached) " >&6
10428 ac_check_lib_save_LIBS
=$LIBS
10430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10433 /* Override any GCC internal prototype to avoid an error.
10434 Use char because int might match the return type of a GCC
10435 builtin and then its argument prototype would still apply. */
10439 char OTF_get_variation_glyphs ();
10443 return OTF_get_variation_glyphs ();
10448 if ac_fn_c_try_link
"$LINENO"; then :
10449 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
10451 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
10453 rm -f core conftest.err conftest.
$ac_objext \
10454 conftest
$ac_exeext conftest.
$ac_ext
10455 LIBS
=$ac_check_lib_save_LIBS
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10458 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10459 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
10460 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
10462 HAVE_OTF_GET_VARIATION_GLYPHS
=no
10465 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10467 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10475 if test "${HAVE_LIBOTF}" = yes; then
10476 if test "${with_m17n_flt}" != "no"; then
10480 # Extract the first word of "pkg-config", so it can be a program name with args.
10481 set dummy pkg-config
; ac_word
=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10487 case $PKG_CONFIG in
10489 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10493 for as_dir
in $PATH
10496 test -z "$as_dir" && as_dir
=.
10497 for ac_exec_ext
in '' $ac_executable_extensions; do
10498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10499 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10511 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10512 if test -n "$PKG_CONFIG"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10514 $as_echo "$PKG_CONFIG" >&6; }
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10522 if test "$PKG_CONFIG" = "no" ; then
10525 PKG_CONFIG_MIN_VERSION
=0.9.0
10526 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10528 $as_echo_n "checking for m17n-flt... " >&6; }
10530 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10532 $as_echo "yes" >&6; }
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10536 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10537 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10539 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10542 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10543 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10545 $as_echo "$M17N_FLT_LIBS" >&6; }
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10551 ## If we have a custom action on failure, don't print errors, but
10552 ## do set a variable so people can do so.
10553 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10560 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10561 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10565 if test $succeeded = yes; then
10571 if test "$HAVE_M17N_FLT" = "yes"; then
10573 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10585 ### End of font-backend (under X11) section.
10596 ### Use -lXpm if available, unless `--with-xpm=no'.
10599 if test "${HAVE_X11}" = "yes"; then
10600 if test "${with_xpm}" != "no"; then
10601 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10602 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10604 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10605 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10608 ac_check_lib_save_LIBS
=$LIBS
10609 LIBS
="-lXpm -lX11 $LIBS"
10610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10613 /* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10619 char XpmReadFileToPixmap ();
10623 return XpmReadFileToPixmap ();
10628 if ac_fn_c_try_link
"$LINENO"; then :
10629 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10631 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10633 rm -f core conftest.err conftest.
$ac_objext \
10634 conftest
$ac_exeext conftest.
$ac_ext
10635 LIBS
=$ac_check_lib_save_LIBS
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10638 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10639 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10646 if test "${HAVE_XPM}" = "yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10648 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 #include "X11/xpm.h"
10652 #ifndef XpmReturnAllocPixels
10653 no_return_alloc_pixels
10657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10658 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10666 if test "${HAVE_XPM}" = "yes"; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10668 $as_echo "yes" >&6; }
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10676 if test "${HAVE_XPM}" = "yes"; then
10678 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10685 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10688 if test "${HAVE_X11}" = "yes"; then
10689 if test "${with_jpeg}" != "no"; then
10690 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10691 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10693 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10694 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10695 $as_echo_n "(cached) " >&6
10697 ac_check_lib_save_LIBS
=$LIBS
10698 LIBS
="-ljpeg $LIBS"
10699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10708 char jpeg_destroy_compress ();
10712 return jpeg_destroy_compress ();
10717 if ac_fn_c_try_link
"$LINENO"; then :
10718 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10720 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10722 rm -f core conftest.err conftest.
$ac_objext \
10723 conftest
$ac_exeext conftest.
$ac_ext
10724 LIBS
=$ac_check_lib_save_LIBS
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10727 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10728 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10737 if test "${HAVE_JPEG}" = "yes"; then
10738 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #include <jpeglib.h>
10743 version=JPEG_LIB_VERSION
10746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10747 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10748 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10752 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10758 if test "${HAVE_JPEG}" = "yes"; then
10764 ### Use -lpng if available, unless `--with-png=no'.
10767 if test "${HAVE_X11}" = "yes"; then
10768 if test "${with_png}" != "no"; then
10769 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10770 # in /usr/include/libpng.
10771 for ac_header
in png.h libpng
/png.h
10773 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10774 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10775 eval as_val
=\$
$as_ac_Header
10776 if test "x$as_val" = x
""yes; then :
10777 cat >>confdefs.h
<<_ACEOF
10778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10785 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10787 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10788 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10791 ac_check_lib_save_LIBS
=$LIBS
10792 LIBS
="-lpng -lz -lm $LIBS"
10793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 /* Override any GCC internal prototype to avoid an error.
10797 Use char because int might match the return type of a GCC
10798 builtin and then its argument prototype would still apply. */
10802 char png_get_channels ();
10806 return png_get_channels ();
10811 if ac_fn_c_try_link
"$LINENO"; then :
10812 ac_cv_lib_png_png_get_channels
=yes
10814 ac_cv_lib_png_png_get_channels
=no
10816 rm -f core conftest.err conftest.
$ac_objext \
10817 conftest
$ac_exeext conftest.
$ac_ext
10818 LIBS
=$ac_check_lib_save_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10821 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10822 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10829 if test "${HAVE_PNG}" = "yes"; then
10831 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10833 LIBPNG
="-lpng -lz -lm"
10838 ### Use -ltiff if available, unless `--with-tiff=no'.
10841 if test "${HAVE_X11}" = "yes"; then
10842 if test "${with_tiff}" != "no"; then
10843 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10844 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10846 # At least one tiff package requires the jpeg library.
10847 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10849 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10850 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10853 ac_check_lib_save_LIBS
=$LIBS
10854 LIBS
="-ltiff $tifflibs $LIBS"
10855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 /* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10864 char TIFFGetVersion ();
10868 return TIFFGetVersion ();
10873 if ac_fn_c_try_link
"$LINENO"; then :
10874 ac_cv_lib_tiff_TIFFGetVersion
=yes
10876 ac_cv_lib_tiff_TIFFGetVersion
=no
10878 rm -f core conftest.err conftest.
$ac_objext \
10879 conftest
$ac_exeext conftest.
$ac_ext
10880 LIBS
=$ac_check_lib_save_LIBS
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10883 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10884 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10893 if test "${HAVE_TIFF}" = "yes"; then
10895 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10902 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10905 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10906 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10907 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10908 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10909 # Earlier versions can crash Emacs.
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10911 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10912 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10915 ac_check_lib_save_LIBS
=$LIBS
10917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10926 char EGifPutExtensionLast ();
10930 return EGifPutExtensionLast ();
10935 if ac_fn_c_try_link
"$LINENO"; then :
10936 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10938 ac_cv_lib_gif_EGifPutExtensionLast
=no
10940 rm -f core conftest.err conftest.
$ac_objext \
10941 conftest
$ac_exeext conftest.
$ac_ext
10942 LIBS
=$ac_check_lib_save_LIBS
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10945 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10946 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10956 if test "$HAVE_GIF" = yes; then
10958 elif test "$HAVE_GIF" = maybe
; then
10959 # If gif_lib.h but no libgif, try libungif.
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10961 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10962 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10965 ac_check_lib_save_LIBS
=$LIBS
10966 LIBS
="-lungif $LIBS"
10967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10976 char EGifPutExtensionLast ();
10980 return EGifPutExtensionLast ();
10985 if ac_fn_c_try_link
"$LINENO"; then :
10986 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10988 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10990 rm -f core conftest.err conftest.
$ac_objext \
10991 conftest
$ac_exeext conftest.
$ac_ext
10992 LIBS
=$ac_check_lib_save_LIBS
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10995 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10996 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
11002 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
11005 if test "${HAVE_GIF}" = "yes"; then
11007 $as_echo "#define HAVE_GIF 1" >>confdefs.h
11013 if test "${HAVE_X11}" = "yes"; then
11016 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
11017 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
11018 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
11019 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
11020 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
11021 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
11022 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
11023 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
11024 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
11025 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
11027 if test "X${MISSING}" != X
; then
11028 as_fn_error
"The following required libraries were not found:
11030 Maybe some development libraries/packages are missing?
11031 If you don't want to link with them give
11033 as options to configure" "$LINENO" 5
11037 ### Use -lgpm if available, unless `--with-gpm=no'.
11041 if test "${with_gpm}" != "no"; then
11042 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11043 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11045 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11046 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
11049 ac_check_lib_save_LIBS
=$LIBS
11051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11064 return Gpm_Open ();
11069 if ac_fn_c_try_link
"$LINENO"; then :
11070 ac_cv_lib_gpm_Gpm_Open
=yes
11072 ac_cv_lib_gpm_Gpm_Open
=no
11074 rm -f core conftest.err conftest.
$ac_objext \
11075 conftest
$ac_exeext conftest.
$ac_ext
11076 LIBS
=$ac_check_lib_save_LIBS
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11079 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11080 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
11088 if test "${HAVE_GPM}" = "yes"; then
11090 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11093 ## May be reset below.
11094 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
11099 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11100 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
11102 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11109 ### Use NeXTstep API to implement GUI.
11110 if test "${HAVE_NS}" = "yes"; then
11112 $as_echo "#define HAVE_NS 1" >>confdefs.h
11114 if test "${NS_IMPL_COCOA}" = "yes"; then
11116 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11120 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11122 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11124 # See also .m.o rule in Makefile.in */
11125 # FIXME: are all these flags really needed? Document here why. */
11126 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
11127 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11129 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11131 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11134 # We also have mouse menus.
11140 ### Use session management (-lSM -lICE) if available
11143 if test "${HAVE_X11}" = "yes"; then
11144 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11145 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11147 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11148 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11151 ac_check_lib_save_LIBS
=$LIBS
11152 LIBS
="-lSM -lICE $LIBS"
11153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11162 char SmcOpenConnection ();
11166 return SmcOpenConnection ();
11171 if ac_fn_c_try_link
"$LINENO"; then :
11172 ac_cv_lib_SM_SmcOpenConnection
=yes
11174 ac_cv_lib_SM_SmcOpenConnection
=no
11176 rm -f core conftest.err conftest.
$ac_objext \
11177 conftest
$ac_exeext conftest.
$ac_ext
11178 LIBS
=$ac_check_lib_save_LIBS
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11181 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11182 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
11190 if test "${HAVE_X_SM}" = "yes"; then
11192 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11194 LIBXSM
="-lSM -lICE"
11197 *) LIBS
="$LIBXSM $LIBS" ;;
11203 ### Use libxml (-lxml2) if available
11204 if test "${with_xml2}" != "no"; then
11205 ### I'm not sure what the version number should be, so I just guessed.
11209 # Extract the first word of "pkg-config", so it can be a program name with args.
11210 set dummy pkg-config
; ac_word
=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11216 case $PKG_CONFIG in
11218 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11222 for as_dir
in $PATH
11225 test -z "$as_dir" && as_dir
=.
11226 for ac_exec_ext
in '' $ac_executable_extensions; do
11227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11228 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11240 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11241 if test -n "$PKG_CONFIG"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11243 $as_echo "$PKG_CONFIG" >&6; }
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11251 if test "$PKG_CONFIG" = "no" ; then
11254 PKG_CONFIG_MIN_VERSION
=0.9.0
11255 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11257 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11259 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261 $as_echo "yes" >&6; }
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11265 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11266 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11268 $as_echo "$LIBXML2_CFLAGS" >&6; }
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11271 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11272 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11274 $as_echo "$LIBXML2_LIBS" >&6; }
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11280 ## If we have a custom action on failure, don't print errors, but
11281 ## do set a variable so people can do so.
11282 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11289 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11290 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11294 if test $succeeded = yes; then
11300 if test "${HAVE_LIBXML2}" = "yes"; then
11301 LIBS
="$LIBXML2_LIBS $LIBS"
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11303 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11304 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11307 ac_check_lib_save_LIBS
=$LIBS
11308 LIBS
="-lxml2 $LIBS"
11309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11318 char htmlReadMemory ();
11322 return htmlReadMemory ();
11327 if ac_fn_c_try_link
"$LINENO"; then :
11328 ac_cv_lib_xml2_htmlReadMemory
=yes
11330 ac_cv_lib_xml2_htmlReadMemory
=no
11332 rm -f core conftest.err conftest.
$ac_objext \
11333 conftest
$ac_exeext conftest.
$ac_ext
11334 LIBS
=$ac_check_lib_save_LIBS
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11337 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11338 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
11344 if test "${HAVE_LIBXML2}" = "yes"; then
11346 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11357 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11359 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11360 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11374 if ac_fn_c_try_link
"$LINENO"; then :
11375 emacs_cv_netdb_declares_h_errno
=yes
11377 emacs_cv_netdb_declares_h_errno
=no
11379 rm -f core conftest.err conftest.
$ac_objext \
11380 conftest
$ac_exeext conftest.
$ac_ext
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11383 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11384 if test $emacs_cv_netdb_declares_h_errno = yes; then
11386 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11390 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11391 # for constant arguments. Useless!
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11393 $as_echo_n "checking for working alloca.h... " >&6; }
11394 if test "${ac_cv_working_alloca_h+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399 #include <alloca.h>
11403 char *p = (char *) alloca (2 * sizeof (int));
11409 if ac_fn_c_try_link
"$LINENO"; then :
11410 ac_cv_working_alloca_h
=yes
11412 ac_cv_working_alloca_h
=no
11414 rm -f core conftest.err conftest.
$ac_objext \
11415 conftest
$ac_exeext conftest.
$ac_ext
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11418 $as_echo "$ac_cv_working_alloca_h" >&6; }
11419 if test $ac_cv_working_alloca_h = yes; then
11421 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11426 $as_echo_n "checking for alloca... " >&6; }
11427 if test "${ac_cv_func_alloca_works+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11433 # define alloca __builtin_alloca
11436 # include <malloc.h>
11437 # define alloca _alloca
11439 # ifdef HAVE_ALLOCA_H
11440 # include <alloca.h>
11445 # ifndef alloca /* predefined by HP cc +Olibcalls */
11456 char *p = (char *) alloca (1);
11462 if ac_fn_c_try_link
"$LINENO"; then :
11463 ac_cv_func_alloca_works
=yes
11465 ac_cv_func_alloca_works
=no
11467 rm -f core conftest.err conftest.
$ac_objext \
11468 conftest
$ac_exeext conftest.
$ac_ext
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11471 $as_echo "$ac_cv_func_alloca_works" >&6; }
11473 if test $ac_cv_func_alloca_works = yes; then
11475 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11478 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11479 # that cause trouble. Some versions do not even contain alloca or
11480 # contain a buggy version. If you still want to use their alloca,
11481 # use ar to extract alloca.o from them instead of compiling alloca.c.
11483 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11485 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11489 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11490 if test "${ac_cv_os_cray+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495 #if defined CRAY && ! defined CRAY2
11502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11503 $EGREP "webecray" >/dev
/null
2>&1; then :
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11512 $as_echo "$ac_cv_os_cray" >&6; }
11513 if test $ac_cv_os_cray = yes; then
11514 for ac_func
in _getb67 GETB67 getb67
; do
11515 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11517 eval as_val
=\$
$as_ac_var
11518 if test "x$as_val" = x
""yes; then :
11520 cat >>confdefs.h
<<_ACEOF
11521 #define CRAY_STACKSEG_END $ac_func
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11531 $as_echo_n "checking stack direction for C alloca... " >&6; }
11532 if test "${ac_cv_c_stack_direction+set}" = set; then :
11533 $as_echo_n "(cached) " >&6
11535 if test "$cross_compiling" = yes; then :
11536 ac_cv_c_stack_direction
=0
11538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540 $ac_includes_default
11542 find_stack_direction ()
11544 static char *addr = 0;
11549 return find_stack_direction ();
11552 return (&dummy > addr) ? 1 : -1;
11558 return find_stack_direction () < 0;
11561 if ac_fn_c_try_run
"$LINENO"; then :
11562 ac_cv_c_stack_direction
=1
11564 ac_cv_c_stack_direction
=-1
11566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11572 $as_echo "$ac_cv_c_stack_direction" >&6; }
11573 cat >>confdefs.h
<<_ACEOF
11574 #define STACK_DIRECTION $ac_cv_c_stack_direction
11581 if test x
"$ac_cv_func_alloca_works" != xyes
; then
11582 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
11585 # fmod, logb, and frexp are found in -lm on most systems.
11586 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11588 $as_echo_n "checking for sqrt in -lm... " >&6; }
11589 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11590 $as_echo_n "(cached) " >&6
11592 ac_check_lib_save_LIBS
=$LIBS
11594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11597 /* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11612 if ac_fn_c_try_link
"$LINENO"; then :
11613 ac_cv_lib_m_sqrt
=yes
11615 ac_cv_lib_m_sqrt
=no
11617 rm -f core conftest.err conftest.
$ac_objext \
11618 conftest
$ac_exeext conftest.
$ac_ext
11619 LIBS
=$ac_check_lib_save_LIBS
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11622 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11623 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
11624 cat >>confdefs.h
<<_ACEOF
11625 #define HAVE_LIBM 1
11633 # Check for mail-locking functions in a "mail" library. Probably this should
11634 # have the same check as for liblockfile below.
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11636 $as_echo_n "checking for maillock in -lmail... " >&6; }
11637 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11640 ac_check_lib_save_LIBS
=$LIBS
11641 LIBS
="-lmail $LIBS"
11642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11655 return maillock ();
11660 if ac_fn_c_try_link
"$LINENO"; then :
11661 ac_cv_lib_mail_maillock
=yes
11663 ac_cv_lib_mail_maillock
=no
11665 rm -f core conftest.err conftest.
$ac_objext \
11666 conftest
$ac_exeext conftest.
$ac_ext
11667 LIBS
=$ac_check_lib_save_LIBS
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11670 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11671 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
11677 if test $have_mail = yes; then
11679 LIBS
="$LIBS_MAIL $LIBS"
11681 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11687 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11688 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
11691 ac_check_lib_save_LIBS
=$LIBS
11692 LIBS
="-llockfile $LIBS"
11693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11694 /* end confdefs.h. */
11696 /* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
11706 return maillock ();
11711 if ac_fn_c_try_link
"$LINENO"; then :
11712 ac_cv_lib_lockfile_maillock
=yes
11714 ac_cv_lib_lockfile_maillock
=no
11716 rm -f core conftest.err conftest.
$ac_objext \
11717 conftest
$ac_exeext conftest.
$ac_ext
11718 LIBS
=$ac_check_lib_save_LIBS
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11721 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11722 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
11728 if test $have_lockfile = yes; then
11729 LIBS_MAIL
=-llockfile
11730 LIBS
="$LIBS_MAIL $LIBS"
11732 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11735 # If we have the shared liblockfile, assume we must use it for mail
11736 # locking (e.g. Debian). If we couldn't link against liblockfile
11737 # (no liblockfile.a installed), ensure that we don't need to.
11738 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11739 set dummy liblockfile.so
; ac_word
=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11745 if test -n "$liblockfile"; then
11746 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11749 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11750 for as_dir
in $as_dummy
11753 test -z "$as_dir" && as_dir
=.
11754 for ac_exec_ext
in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_prog_liblockfile
="yes"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11767 liblockfile
=$ac_cv_prog_liblockfile
11768 if test -n "$liblockfile"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11770 $as_echo "$liblockfile" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11777 if test $ac_cv_prog_liblockfile = yes; then
11778 as_fn_error
"Shared liblockfile found but can't link against it.
11779 This probably means that movemail could lose mail.
11780 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11783 for ac_func
in touchlock
11785 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11786 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11787 cat >>confdefs.h
<<_ACEOF
11788 #define HAVE_TOUCHLOCK 1
11794 for ac_header
in maillock.h
11796 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11797 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11798 cat >>confdefs.h
<<_ACEOF
11799 #define HAVE_MAILLOCK_H 1
11808 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11809 ## interlock access to the mail spool. The alternative is a lock file named
11810 ## /usr/spool/mail/$USER.lock.
11813 aix4-2
) mail_lock
="lockf" ;;
11815 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11817 ## On GNU/Linux systems, both methods are used by various mail programs.
11818 ## I assume most people are using newer mailers that have heard of flock.
11819 ## Change this if you need to.
11820 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11821 ## configure gets the right answers, and that means *NOT* using flock.
11822 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11823 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11824 ## Debian maintainer hasn't provided a clean fix for Emacs.
11825 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11826 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11827 ## correct logic. -- fx
11828 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11829 ## liblockfile is a Free Software replacement for libmail, used on
11830 ## Debian systems and elsewhere. -rfr.
11833 if test $have_mail = yes ||
test $have_lockfile = yes; then
11834 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11840 case "$mail_lock" in
11842 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11846 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11849 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11854 for ac_func
in gethostname getdomainname dup2 \
11855 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11856 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11857 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11858 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11859 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11860 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11861 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11862 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11863 cfmakeraw cfsetspeed isnan copysign __executable_start
11865 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11866 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11867 eval as_val
=\$
$as_ac_var
11868 if test "x$as_val" = x
""yes; then :
11869 cat >>confdefs.h
<<_ACEOF
11870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11877 for ac_header
in sys
/un.h
11879 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11880 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11881 cat >>confdefs.h
<<_ACEOF
11882 #define HAVE_SYS_UN_H 1
11895 for ac_func
in $ac_func_list
11897 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11899 eval as_val
=\$
$as_ac_var
11900 if test "x$as_val" = x
""yes; then :
11901 cat >>confdefs.h
<<_ACEOF
11902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11913 $as_echo_n "checking for working mktime... " >&6; }
11914 if test "${ac_cv_func_working_mktime+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
11917 if test "$cross_compiling" = yes; then :
11918 ac_cv_func_working_mktime
=no
11920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 /* Test program from Paul Eggert and Tony Leneis. */
11923 #ifdef TIME_WITH_SYS_TIME
11924 # include <sys/time.h>
11927 # ifdef HAVE_SYS_TIME_H
11928 # include <sys/time.h>
11934 #include <limits.h>
11935 #include <stdlib.h>
11937 #ifdef HAVE_UNISTD_H
11938 # include <unistd.h>
11942 # define alarm(X) /* empty */
11945 /* Work around redefinition to rpl_putenv by other config tests. */
11948 static time_t time_t_max;
11949 static time_t time_t_min;
11951 /* Values we'll use to set the TZ environment variable. */
11952 static char *tz_strings[] = {
11953 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11954 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11956 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11958 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11959 Based on a problem report from Andreas Jaeger. */
11961 spring_forward_gap ()
11963 /* glibc (up to about 1998-10-07) failed this test. */
11966 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11967 instead of "TZ=America/Vancouver" in order to detect the bug even
11968 on systems that don't support the Olson extension, or don't have the
11969 full zoneinfo tables installed. */
11970 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11979 return mktime (&tm) != (time_t) -1;
11987 return ! (lt = localtime (&now)) || mktime (lt) == now;
11994 return (mktime_test1 (now)
11995 && mktime_test1 ((time_t) (time_t_max - now))
11996 && mktime_test1 ((time_t) (time_t_min + now)));
12002 /* Based on code from Ariel Faigon. */
12012 return tm.tm_mon == 2 && tm.tm_mday == 31;
12021 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
12022 now = mktime (&tm);
12023 if (now != (time_t) -1)
12025 struct tm *lt = localtime (&now);
12027 && lt->tm_year == tm.tm_year
12028 && lt->tm_mon == tm.tm_mon
12029 && lt->tm_mday == tm.tm_mday
12030 && lt->tm_hour == tm.tm_hour
12031 && lt->tm_min == tm.tm_min
12032 && lt->tm_sec == tm.tm_sec
12033 && lt->tm_yday == tm.tm_yday
12034 && lt->tm_wday == tm.tm_wday
12035 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12036 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12045 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12046 ignoring leap seconds. */
12047 unsigned long int answer = 2527315200UL;
12051 tm.tm_year = 2050 - 1900;
12054 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12057 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12058 instead of "TZ=America/Vancouver" in order to detect the bug even
12059 on systems that don't support the Olson extension, or don't have the
12060 full zoneinfo tables installed. */
12061 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
12065 /* Check that the result is either a failure, or close enough
12066 to the correct answer that we can assume the discrepancy is
12067 due to leap seconds. */
12068 return (t == (time_t) -1
12069 || (0 < t && answer - 120 <= t && t <= answer + 120));
12078 /* This test makes some buggy mktime implementations loop.
12079 Give up after 60 seconds; a mktime slower than that
12080 isn't worth using anyway. */
12085 t = (time_t_max << 1) + 1;
12086 if (t <= time_t_max)
12090 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12092 delta = time_t_max / 997; /* a suitable prime number */
12093 for (i = 0; i < N_STRINGS; i++)
12096 putenv (tz_strings[i]);
12098 for (t = 0; t <= time_t_max - delta; t += delta)
12099 if (! mktime_test (t))
12101 if (! (mktime_test ((time_t) 1)
12102 && mktime_test ((time_t) (60 * 60))
12103 && mktime_test ((time_t) (60 * 60 * 24))))
12106 for (j = 1; ; j <<= 1)
12107 if (! bigtime_test (j))
12109 else if (INT_MAX / 2 < j)
12111 if (! bigtime_test (INT_MAX))
12114 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12117 if ac_fn_c_try_run
"$LINENO"; then :
12118 ac_cv_func_working_mktime
=yes
12120 ac_cv_func_working_mktime
=no
12122 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12123 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12128 $as_echo "$ac_cv_func_working_mktime" >&6; }
12129 if test $ac_cv_func_working_mktime = no
; then
12130 case " $LIBOBJS " in
12131 *" mktime.$ac_objext "* ) ;;
12132 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
12138 if test "$ac_cv_func_working_mktime" = no
; then
12140 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12144 ac_have_func
=no
# yes means we've found a way to get the load average.
12146 # Make sure getloadavg.c is where it belongs, at configure-time.
12147 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12148 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12152 # Check for getloadavg, but be sure not to touch the cache variable.
12153 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12154 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12159 ) && ac_have_func
=yes
12161 # On HPUX9, an unprivileged user can get load averages through this function.
12162 for ac_func
in pstat_getdynamic
12164 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12165 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
12166 cat >>confdefs.h
<<_ACEOF
12167 #define HAVE_PSTAT_GETDYNAMIC 1
12174 # Solaris has libkstat which does not require root.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12176 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12177 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12180 ac_check_lib_save_LIBS
=$LIBS
12181 LIBS
="-lkstat $LIBS"
12182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12191 char kstat_open ();
12195 return kstat_open ();
12200 if ac_fn_c_try_link
"$LINENO"; then :
12201 ac_cv_lib_kstat_kstat_open
=yes
12203 ac_cv_lib_kstat_kstat_open
=no
12205 rm -f core conftest.err conftest.
$ac_objext \
12206 conftest
$ac_exeext conftest.
$ac_ext
12207 LIBS
=$ac_check_lib_save_LIBS
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12210 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12211 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
12212 cat >>confdefs.h
<<_ACEOF
12213 #define HAVE_LIBKSTAT 1
12216 LIBS
="-lkstat $LIBS"
12220 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12222 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12223 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12224 # to get the right answer into the cache.
12225 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12226 if test $ac_have_func = no
; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12228 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12229 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12232 ac_check_lib_save_LIBS
=$LIBS
12234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12247 return elf_begin ();
12252 if ac_fn_c_try_link
"$LINENO"; then :
12253 ac_cv_lib_elf_elf_begin
=yes
12255 ac_cv_lib_elf_elf_begin
=no
12257 rm -f core conftest.err conftest.
$ac_objext \
12258 conftest
$ac_exeext conftest.
$ac_ext
12259 LIBS
=$ac_check_lib_save_LIBS
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12262 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12263 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
12268 if test $ac_have_func = no
; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12270 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12271 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12274 ac_check_lib_save_LIBS
=$LIBS
12276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 /* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12289 return kvm_open ();
12294 if ac_fn_c_try_link
"$LINENO"; then :
12295 ac_cv_lib_kvm_kvm_open
=yes
12297 ac_cv_lib_kvm_kvm_open
=no
12299 rm -f core conftest.err conftest.
$ac_objext \
12300 conftest
$ac_exeext conftest.
$ac_ext
12301 LIBS
=$ac_check_lib_save_LIBS
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12304 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12305 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
12309 # Check for the 4.4BSD definition of getloadavg.
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12311 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12312 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12315 ac_check_lib_save_LIBS
=$LIBS
12316 LIBS
="-lutil $LIBS"
12317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h. */
12320 /* Override any GCC internal prototype to avoid an error.
12321 Use char because int might match the return type of a GCC
12322 builtin and then its argument prototype would still apply. */
12326 char getloadavg ();
12330 return getloadavg ();
12335 if ac_fn_c_try_link
"$LINENO"; then :
12336 ac_cv_lib_util_getloadavg
=yes
12338 ac_cv_lib_util_getloadavg
=no
12340 rm -f core conftest.err conftest.
$ac_objext \
12341 conftest
$ac_exeext conftest.
$ac_ext
12342 LIBS
=$ac_check_lib_save_LIBS
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12345 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12346 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
12347 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12352 if test $ac_have_func = no
; then
12353 # There is a commonly available library for RS/6000 AIX.
12354 # Since it is not a standard part of AIX, it might be installed locally.
12355 ac_getloadavg_LIBS
=$LIBS
12356 LIBS
="-L/usr/local/lib $LIBS"
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12358 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12359 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12362 ac_check_lib_save_LIBS
=$LIBS
12363 LIBS
="-lgetloadavg $LIBS"
12364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12367 /* Override any GCC internal prototype to avoid an error.
12368 Use char because int might match the return type of a GCC
12369 builtin and then its argument prototype would still apply. */
12373 char getloadavg ();
12377 return getloadavg ();
12382 if ac_fn_c_try_link
"$LINENO"; then :
12383 ac_cv_lib_getloadavg_getloadavg
=yes
12385 ac_cv_lib_getloadavg_getloadavg
=no
12387 rm -f core conftest.err conftest.
$ac_objext \
12388 conftest
$ac_exeext conftest.
$ac_ext
12389 LIBS
=$ac_check_lib_save_LIBS
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12392 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12393 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
12394 LIBS
="-lgetloadavg $LIBS"
12396 LIBS
=$ac_getloadavg_LIBS
12401 # Make sure it is really in the library, if we think we found it,
12402 # otherwise set up the replacement function.
12403 for ac_func
in getloadavg
12405 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12406 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
12407 cat >>confdefs.h
<<_ACEOF
12408 #define HAVE_GETLOADAVG 1
12412 case " $LIBOBJS " in
12413 *" getloadavg.$ac_objext "* ) ;;
12414 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12419 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12421 # Figure out what our getloadavg.c needs.
12423 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12424 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
12427 $as_echo "#define DGUX 1" >>confdefs.h
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12430 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12431 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12434 ac_check_lib_save_LIBS
=$LIBS
12436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12445 char dg_sys_info ();
12449 return dg_sys_info ();
12454 if ac_fn_c_try_link
"$LINENO"; then :
12455 ac_cv_lib_dgc_dg_sys_info
=yes
12457 ac_cv_lib_dgc_dg_sys_info
=no
12459 rm -f core conftest.err conftest.
$ac_objext \
12460 conftest
$ac_exeext conftest.
$ac_ext
12461 LIBS
=$ac_check_lib_save_LIBS
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12464 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12465 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
12466 cat >>confdefs.h
<<_ACEOF
12467 #define HAVE_LIBDGC 1
12478 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12479 if test "x$ac_cv_header_locale_h" = x
""yes; then :
12484 for ac_func
in setlocale
12486 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
12487 if test "x$ac_cv_func_setlocale" = x
""yes; then :
12488 cat >>confdefs.h
<<_ACEOF
12489 #define HAVE_SETLOCALE 1
12496 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12497 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12498 # Irix 4.0.5F has the header but not the library.
12499 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12502 $as_echo "#define SVR4 1" >>confdefs.h
12506 if test $ac_have_func = no
; then
12507 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12508 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
12511 $as_echo "#define UMAX 1" >>confdefs.h
12514 $as_echo "#define UMAX4_3 1" >>confdefs.h
12521 if test $ac_have_func = no
; then
12522 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12523 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
12524 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
12531 if test $ac_have_func = no
; then
12532 for ac_header
in mach
/mach.h
12534 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12535 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
12536 cat >>confdefs.h
<<_ACEOF
12537 #define HAVE_MACH_MACH_H 1
12546 for ac_header
in nlist.h
12548 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12549 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
12550 cat >>confdefs.h
<<_ACEOF
12551 #define HAVE_NLIST_H 1
12553 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12555 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
12557 cat >>confdefs.h
<<_ACEOF
12558 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12562 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12575 # Some definitions of getloadavg require that the program be installed setgid.
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12577 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12578 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12584 #ifdef LDAV_PRIVILEGED
12585 Yowza Am I SETGID yet
12588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12589 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
12590 ac_cv_func_getloadavg_setgid
=yes
12592 ac_cv_func_getloadavg_setgid
=no
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12598 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12599 if test $ac_cv_func_getloadavg_setgid = yes; then
12602 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12608 if test $ac_cv_func_getloadavg_setgid = yes; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12610 $as_echo_n "checking group of /dev/kmem... " >&6; }
12611 if test "${ac_cv_group_kmem+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12614 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12615 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12616 # If we got an error (system does not support symlinks), try without -L.
12617 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12618 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
12619 | sed -ne 's/[ ][ ]*/ /g;
12620 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12625 $as_echo "$ac_cv_group_kmem" >&6; }
12626 KMEM_GROUP
=$ac_cv_group_kmem
12628 if test "x$ac_save_LIBS" = x
; then
12629 GETLOADAVG_LIBS
=$LIBS
12631 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12638 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12639 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645 #include <sys/types.h> /* for off_t */
12650 int (*fp) (FILE *, off_t, int) = fseeko;
12651 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12656 if ac_fn_c_try_link
"$LINENO"; then :
12657 ac_cv_sys_largefile_source
=no
; break
12659 rm -f core conftest.err conftest.
$ac_objext \
12660 conftest
$ac_exeext conftest.
$ac_ext
12661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12663 #define _LARGEFILE_SOURCE 1
12664 #include <sys/types.h> /* for off_t */
12669 int (*fp) (FILE *, off_t, int) = fseeko;
12670 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12675 if ac_fn_c_try_link
"$LINENO"; then :
12676 ac_cv_sys_largefile_source
=1; break
12678 rm -f core conftest.err conftest.
$ac_objext \
12679 conftest
$ac_exeext conftest.
$ac_ext
12680 ac_cv_sys_largefile_source
=unknown
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12685 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12686 case $ac_cv_sys_largefile_source in #(
12689 cat >>confdefs.h
<<_ACEOF
12690 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12696 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12697 # in glibc 2.1.3, but that breaks too many other things.
12698 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12699 if test $ac_cv_sys_largefile_source != unknown
; then
12701 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12706 # Configure getopt.
12707 # getopt.m4 serial 10
12709 # The getopt module assume you want GNU getopt, with getopt_long etc,
12710 # rather than vanilla POSIX getopt. This means your your code should
12711 # always include <getopt.h> for the getopt prototypes.
12723 # Prerequisites of lib/getopt*.
12729 for ac_header
in getopt.h
12731 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12732 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
12733 cat >>confdefs.h
<<_ACEOF
12734 #define HAVE_GETOPT_H 1
12743 if test -z "$GETOPT_H"; then
12744 for ac_func
in getopt_long_only
12746 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12747 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
12748 cat >>confdefs.h
<<_ACEOF
12749 #define HAVE_GETOPT_LONG_ONLY 1
12759 if test -z "$GETOPT_H"; then
12760 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12762 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
12768 if test -z "$GETOPT_H"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12770 $as_echo_n "checking for working GNU getopt function... " >&6; }
12771 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12772 $as_echo_n "(cached) " >&6
12774 if test "$cross_compiling" = yes; then :
12775 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12777 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12778 gl_cv_func_gnu_getopt
=no
12780 gl_cv_func_gnu_getopt
=yes
12784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <getopt.h>
12792 myargv[0] = "conftest";
12795 return getopt (2, myargv, "+a") != '?';
12801 if ac_fn_c_try_run
"$LINENO"; then :
12802 gl_cv_func_gnu_getopt
=yes
12804 gl_cv_func_gnu_getopt
=no
12806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12812 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12813 if test "$gl_cv_func_gnu_getopt" = "no"; then
12820 if test -n "$GETOPT_H"; then :
12825 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12830 GETOPTOBJS
='getopt.o getopt1.o'
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12837 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12838 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12841 # Use it with a single arg.
12842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12844 $ac_includes_default
12853 if ac_fn_c_try_compile
"$LINENO"; then :
12854 ac_cv_func_getpgrp_void
=no
12856 ac_cv_func_getpgrp_void
=yes
12858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12862 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12863 if test $ac_cv_func_getpgrp_void = yes; then
12865 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12870 for ac_func
in strftime
12872 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12873 if test "x$ac_cv_func_strftime" = x
""yes; then :
12874 cat >>confdefs.h
<<_ACEOF
12875 #define HAVE_STRFTIME 1
12879 # strftime is in -lintl on SCO UNIX.
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12881 $as_echo_n "checking for strftime in -lintl... " >&6; }
12882 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12885 ac_check_lib_save_LIBS
=$LIBS
12886 LIBS
="-lintl $LIBS"
12887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12890 /* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
12900 return strftime ();
12905 if ac_fn_c_try_link
"$LINENO"; then :
12906 ac_cv_lib_intl_strftime
=yes
12908 ac_cv_lib_intl_strftime
=no
12910 rm -f core conftest.err conftest.
$ac_objext \
12911 conftest
$ac_exeext conftest.
$ac_ext
12912 LIBS
=$ac_check_lib_save_LIBS
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12915 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12916 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12917 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12919 LIBS
="-lintl $LIBS"
12927 for ac_func
in grantpt
12929 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12930 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12931 cat >>confdefs.h
<<_ACEOF
12932 #define HAVE_GRANTPT 1
12939 # PTY-related GNU extensions.
12940 for ac_func
in getpt
12942 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12943 if test "x$ac_cv_func_getpt" = x
""yes; then :
12944 cat >>confdefs.h
<<_ACEOF
12945 #define HAVE_GETPT 1
12952 # Check this now, so that we will NOT find the above functions in ncurses.
12953 # That is because we have not set up to link ncurses in lib-src.
12954 # It's better to believe a function is not available
12955 # than to expect to find it in ncurses.
12956 # Also we need tputs and friends to be able to build at all.
12957 have_tputs_et_al
=true
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12959 $as_echo_n "checking for library containing tputs... " >&6; }
12960 if test "${ac_cv_search_tputs+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12963 ac_func_search_save_LIBS
=$LIBS
12964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12967 /* Override any GCC internal prototype to avoid an error.
12968 Use char because int might match the return type of a GCC
12969 builtin and then its argument prototype would still apply. */
12982 for ac_lib
in '' ncurses terminfo termcap
; do
12983 if test -z "$ac_lib"; then
12984 ac_res
="none required"
12987 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12989 if ac_fn_c_try_link
"$LINENO"; then :
12990 ac_cv_search_tputs
=$ac_res
12992 rm -f core conftest.err conftest.
$ac_objext \
12994 if test "${ac_cv_search_tputs+set}" = set; then :
12998 if test "${ac_cv_search_tputs+set}" = set; then :
13001 ac_cv_search_tputs
=no
13003 rm conftest.
$ac_ext
13004 LIBS
=$ac_func_search_save_LIBS
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13007 $as_echo "$ac_cv_search_tputs" >&6; }
13008 ac_res
=$ac_cv_search_tputs
13009 if test "$ac_res" != no
; then :
13010 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13013 have_tputs_et_al
=false
13016 if test "$have_tputs_et_al" != true
; then
13017 as_fn_error
"I couldn't find termcap functions (tputs and friends).
13018 Maybe some development libraries/packages are missing? Try installing
13019 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13021 # Must define this when any termcap library is found.
13023 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13025 ## FIXME This was the cpp logic, but I am not sure it is right.
13026 ## The above test has not necessarily found libncurses.
13027 HAVE_LIBNCURSES
=yes
13029 ## Use terminfo instead of termcap?
13030 ## Note only system files NOT using terminfo are:
13031 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13032 ## darwin|gnu without ncurses.
13036 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13037 ## hpux10-20: Use the system provided termcap(3) library.
13038 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13039 ## is necessary. Otherwise Emacs dumps core when run -nw.
13040 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
13042 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13043 ## The ncurses library has been moved out of the System framework in
13044 ## Mac OS X 10.2. So if configure detects it, set the command-line
13045 ## option to use it.
13047 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13048 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13050 LIBS_TERMCAP
="-lncurses"
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13056 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13057 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062 #include <osreldate.h>
13066 #if __FreeBSD_version < 400000
13074 if ac_fn_c_try_link
"$LINENO"; then :
13075 emacs_cv_freebsd_terminfo
=yes
13077 emacs_cv_freebsd_terminfo
=no
13079 rm -f core conftest.err conftest.
$ac_objext \
13080 conftest
$ac_exeext conftest.
$ac_ext
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13085 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13087 if test $emacs_cv_freebsd_terminfo = yes; then
13089 LIBS_TERMCAP
="-lncurses"
13091 LIBS_TERMCAP
="-ltermcap"
13096 if test $ac_cv_search_tputs = -lterminfo; then
13098 LIBS_TERMCAP
="-lterminfo"
13100 LIBS_TERMCAP
="-ltermcap"
13107 ## hpux: Make sure we get select from libc rather than from libcurses
13108 ## because libcurses on HPUX 10.10 has a broken version of select.
13109 ## We used to use -lc -lcurses, but this may be cleaner.
13110 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13112 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13114 ## Must use system termcap, if we use any termcap. It does special things.
13115 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
13118 TERMCAP_OBJ
=tparam.o
13119 if test $TERMINFO = yes; then
13121 $as_echo "#define TERMINFO 1" >>confdefs.h
13124 ## Default used to be -ltermcap. Add a case above if need something else.
13125 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
13127 TERMCAP_OBJ
=terminfo.o
13133 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137 #include <netinet/in.h>
13138 #include <arpa/nameser.h>
13139 #include <resolv.h>
13148 if ac_fn_c_try_link
"$LINENO"; then :
13153 rm -f core conftest.err conftest.
$ac_objext \
13154 conftest
$ac_exeext conftest.
$ac_ext
13155 if test "$have_res_init" = no
; then
13157 LIBS
="$LIBS -lresolv"
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13159 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162 #include <netinet/in.h>
13163 #include <arpa/nameser.h>
13164 #include <resolv.h>
13173 if ac_fn_c_try_link
"$LINENO"; then :
13178 rm -f core conftest.err conftest.
$ac_objext \
13179 conftest
$ac_exeext conftest.
$ac_ext
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13181 $as_echo "$have_res_init" >&6; }
13182 if test "$have_res_init" = yes ; then
13188 if test "$have_res_init" = yes; then
13190 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13194 # Do we need the Hesiod library to provide the support routines?
13196 if test "$with_hesiod" != no
; then
13197 # Don't set $LIBS here -- see comments above. FIXME which comments?
13198 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13199 if test "x$ac_cv_func_res_send" = x
""yes; then :
13202 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13203 if test "x$ac_cv_func___res_send" = x
""yes; then :
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13207 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13208 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13209 $as_echo_n "(cached) " >&6
13211 ac_check_lib_save_LIBS
=$LIBS
13212 LIBS
="-lresolv $LIBS"
13213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13216 /* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13226 return res_send ();
13231 if ac_fn_c_try_link
"$LINENO"; then :
13232 ac_cv_lib_resolv_res_send
=yes
13234 ac_cv_lib_resolv_res_send
=no
13236 rm -f core conftest.err conftest.
$ac_objext \
13237 conftest
$ac_exeext conftest.
$ac_ext
13238 LIBS
=$ac_check_lib_save_LIBS
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13241 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13242 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13246 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13247 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
13250 ac_check_lib_save_LIBS
=$LIBS
13251 LIBS
="-lresolv $LIBS"
13252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13255 /* Override any GCC internal prototype to avoid an error.
13256 Use char because int might match the return type of a GCC
13257 builtin and then its argument prototype would still apply. */
13261 char __res_send ();
13265 return __res_send ();
13270 if ac_fn_c_try_link
"$LINENO"; then :
13271 ac_cv_lib_resolv___res_send
=yes
13273 ac_cv_lib_resolv___res_send
=no
13275 rm -f core conftest.err conftest.
$ac_objext \
13276 conftest
$ac_exeext conftest.
$ac_ext
13277 LIBS
=$ac_check_lib_save_LIBS
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13280 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13281 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13291 if test "$resolv" = yes ; then
13296 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13297 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13301 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13302 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13305 ac_check_lib_save_LIBS
=$LIBS
13306 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13310 /* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
13316 char hes_getmailhost ();
13320 return hes_getmailhost ();
13325 if ac_fn_c_try_link
"$LINENO"; then :
13326 ac_cv_lib_hesiod_hes_getmailhost
=yes
13328 ac_cv_lib_hesiod_hes_getmailhost
=no
13330 rm -f core conftest.err conftest.
$ac_objext \
13331 conftest
$ac_exeext conftest.
$ac_ext
13332 LIBS
=$ac_check_lib_save_LIBS
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13335 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13336 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13345 if test x
"$hesiod" = xyes
; then
13347 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13354 # Do we need libresolv (due to res_init or Hesiod)?
13355 if test "$resolv" = yes ; then
13357 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13365 # These tell us which Kerberos-related libraries to use.
13372 if test "${with_kerberos}" != no
; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13374 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13375 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13378 ac_check_lib_save_LIBS
=$LIBS
13379 LIBS
="-lcom_err $LIBS"
13380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13383 /* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13398 if ac_fn_c_try_link
"$LINENO"; then :
13399 ac_cv_lib_com_err_com_err
=yes
13401 ac_cv_lib_com_err_com_err
=no
13403 rm -f core conftest.err conftest.
$ac_objext \
13404 conftest
$ac_exeext conftest.
$ac_ext
13405 LIBS
=$ac_check_lib_save_LIBS
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13408 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13409 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13415 if test $have_com_err = yes; then
13416 COM_ERRLIB
=-lcom_err
13417 LIBS
="$COM_ERRLIB $LIBS"
13419 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13423 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13424 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13427 ac_check_lib_save_LIBS
=$LIBS
13428 LIBS
="-lcrypto $LIBS"
13429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13432 /* Override any GCC internal prototype to avoid an error.
13433 Use char because int might match the return type of a GCC
13434 builtin and then its argument prototype would still apply. */
13438 char mit_des_cbc_encrypt ();
13442 return mit_des_cbc_encrypt ();
13447 if ac_fn_c_try_link
"$LINENO"; then :
13448 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13450 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13452 rm -f core conftest.err conftest.
$ac_objext \
13453 conftest
$ac_exeext conftest.
$ac_ext
13454 LIBS
=$ac_check_lib_save_LIBS
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13457 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13458 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13464 if test $have_crypto = yes; then
13466 LIBS
="$CRYPTOLIB $LIBS"
13468 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13472 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13473 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13476 ac_check_lib_save_LIBS
=$LIBS
13477 LIBS
="-lk5crypto $LIBS"
13478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13481 /* Override any GCC internal prototype to avoid an error.
13482 Use char because int might match the return type of a GCC
13483 builtin and then its argument prototype would still apply. */
13487 char mit_des_cbc_encrypt ();
13491 return mit_des_cbc_encrypt ();
13496 if ac_fn_c_try_link
"$LINENO"; then :
13497 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13499 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13501 rm -f core conftest.err conftest.
$ac_objext \
13502 conftest
$ac_exeext conftest.
$ac_ext
13503 LIBS
=$ac_check_lib_save_LIBS
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13506 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13507 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13513 if test $have_k5crypto = yes; then
13514 CRYPTOLIB
=-lk5crypto
13515 LIBS
="$CRYPTOLIB $LIBS"
13517 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13521 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13522 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13525 ac_check_lib_save_LIBS
=$LIBS
13526 LIBS
="-lkrb5 $LIBS"
13527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13536 char krb5_init_context ();
13540 return krb5_init_context ();
13545 if ac_fn_c_try_link
"$LINENO"; then :
13546 ac_cv_lib_krb5_krb5_init_context
=yes
13548 ac_cv_lib_krb5_krb5_init_context
=no
13550 rm -f core conftest.err conftest.
$ac_objext \
13551 conftest
$ac_exeext conftest.
$ac_ext
13552 LIBS
=$ac_check_lib_save_LIBS
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13555 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13556 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13562 if test $have_krb5=yes; then
13564 LIBS
="$KRB5LIB $LIBS"
13566 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13569 if test "${with_kerberos5}" = no
; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13571 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13572 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13573 $as_echo_n "(cached) " >&6
13575 ac_check_lib_save_LIBS
=$LIBS
13576 LIBS
="-ldes425 $LIBS"
13577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13580 /* Override any GCC internal prototype to avoid an error.
13581 Use char because int might match the return type of a GCC
13582 builtin and then its argument prototype would still apply. */
13586 char des_cbc_encrypt ();
13590 return des_cbc_encrypt ();
13595 if ac_fn_c_try_link
"$LINENO"; then :
13596 ac_cv_lib_des425_des_cbc_encrypt
=yes
13598 ac_cv_lib_des425_des_cbc_encrypt
=no
13600 rm -f core conftest.err conftest.
$ac_objext \
13601 conftest
$ac_exeext conftest.
$ac_ext
13602 LIBS
=$ac_check_lib_save_LIBS
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13605 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13606 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13612 if test $have_des425 = yes; then
13614 LIBS
="$DESLIB $LIBS"
13616 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13620 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13621 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13624 ac_check_lib_save_LIBS
=$LIBS
13626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13629 /* Override any GCC internal prototype to avoid an error.
13630 Use char because int might match the return type of a GCC
13631 builtin and then its argument prototype would still apply. */
13635 char des_cbc_encrypt ();
13639 return des_cbc_encrypt ();
13644 if ac_fn_c_try_link
"$LINENO"; then :
13645 ac_cv_lib_des_des_cbc_encrypt
=yes
13647 ac_cv_lib_des_des_cbc_encrypt
=no
13649 rm -f core conftest.err conftest.
$ac_objext \
13650 conftest
$ac_exeext conftest.
$ac_ext
13651 LIBS
=$ac_check_lib_save_LIBS
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13654 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13655 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
13661 if test $have_des = yes; then
13663 LIBS
="$DESLIB $LIBS"
13665 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13670 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13671 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13672 $as_echo_n "(cached) " >&6
13674 ac_check_lib_save_LIBS
=$LIBS
13675 LIBS
="-lkrb4 $LIBS"
13676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13685 char krb_get_cred ();
13689 return krb_get_cred ();
13694 if ac_fn_c_try_link
"$LINENO"; then :
13695 ac_cv_lib_krb4_krb_get_cred
=yes
13697 ac_cv_lib_krb4_krb_get_cred
=no
13699 rm -f core conftest.err conftest.
$ac_objext \
13700 conftest
$ac_exeext conftest.
$ac_ext
13701 LIBS
=$ac_check_lib_save_LIBS
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13704 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13705 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13711 if test $have_krb4 = yes; then
13713 LIBS
="$KRB4LIB $LIBS"
13715 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13719 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13720 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13723 ac_check_lib_save_LIBS
=$LIBS
13725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13728 /* Override any GCC internal prototype to avoid an error.
13729 Use char because int might match the return type of a GCC
13730 builtin and then its argument prototype would still apply. */
13734 char krb_get_cred ();
13738 return krb_get_cred ();
13743 if ac_fn_c_try_link
"$LINENO"; then :
13744 ac_cv_lib_krb_krb_get_cred
=yes
13746 ac_cv_lib_krb_krb_get_cred
=no
13748 rm -f core conftest.err conftest.
$ac_objext \
13749 conftest
$ac_exeext conftest.
$ac_ext
13750 LIBS
=$ac_check_lib_save_LIBS
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13753 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13754 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
13760 if test $have_krb = yes; then
13762 LIBS
="$KRB4LIB $LIBS"
13764 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13770 if test "${with_kerberos5}" != no
; then
13771 for ac_header
in krb5.h
13773 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13774 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13775 cat >>confdefs.h
<<_ACEOF
13776 #define HAVE_KRB5_H 1
13778 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13780 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13782 cat >>confdefs.h
<<_ACEOF
13783 #define HAVE_KRB5_ERROR_TEXT 1
13788 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13790 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13792 cat >>confdefs.h
<<_ACEOF
13793 #define HAVE_KRB5_ERROR_E_TEXT 1
13804 for ac_header
in des.h
13806 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13807 if test "x$ac_cv_header_des_h" = x
""yes; then :
13808 cat >>confdefs.h
<<_ACEOF
13809 #define HAVE_DES_H 1
13813 for ac_header
in kerberosIV
/des.h
13815 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13816 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13817 cat >>confdefs.h
<<_ACEOF
13818 #define HAVE_KERBEROSIV_DES_H 1
13822 for ac_header
in kerberos
/des.h
13824 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13825 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13826 cat >>confdefs.h
<<_ACEOF
13827 #define HAVE_KERBEROS_DES_H 1
13842 for ac_header
in krb.h
13844 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13845 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13846 cat >>confdefs.h
<<_ACEOF
13847 #define HAVE_KRB_H 1
13851 for ac_header
in kerberosIV
/krb.h
13853 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13854 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13855 cat >>confdefs.h
<<_ACEOF
13856 #define HAVE_KERBEROSIV_KRB_H 1
13860 for ac_header
in kerberos
/krb.h
13862 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13863 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13864 cat >>confdefs.h
<<_ACEOF
13865 #define HAVE_KERBEROS_KRB_H 1
13881 for ac_header
in com_err.h
13883 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13884 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13885 cat >>confdefs.h
<<_ACEOF
13886 #define HAVE_COM_ERR_H 1
13901 # Solaris requires -lintl if you want strerror (which calls dgettext)
13902 # to return localized messages.
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13904 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13905 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13908 ac_check_lib_save_LIBS
=$LIBS
13909 LIBS
="-lintl $LIBS"
13910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13923 return dgettext ();
13928 if ac_fn_c_try_link
"$LINENO"; then :
13929 ac_cv_lib_intl_dgettext
=yes
13931 ac_cv_lib_intl_dgettext
=no
13933 rm -f core conftest.err conftest.
$ac_objext \
13934 conftest
$ac_exeext conftest.
$ac_ext
13935 LIBS
=$ac_check_lib_save_LIBS
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13938 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13939 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13940 cat >>confdefs.h
<<_ACEOF
13941 #define HAVE_LIBINTL 1
13944 LIBS
="-lintl $LIBS"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13950 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13951 if test "${emacs_cv_localtime_cache+set}" = set; then :
13952 $as_echo_n "(cached) " >&6
13954 if test x
$ac_cv_func_tzset = xyes
; then
13955 if test "$cross_compiling" = yes; then :
13956 # If we have tzset, assume the worst when cross-compiling.
13957 emacs_cv_localtime_cache
=yes
13959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13962 extern char **environ;
13966 for (to = from = environ; (*to = *from); from++)
13967 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13970 char TZ_GMT0[] = "TZ=GMT0";
13971 char TZ_PST8[] = "TZ=PST8";
13974 time_t now = time ((time_t *) 0);
13975 int hour_GMT0, hour_unset;
13976 if (putenv (TZ_GMT0) != 0)
13978 hour_GMT0 = localtime (&now)->tm_hour;
13980 hour_unset = localtime (&now)->tm_hour;
13981 if (putenv (TZ_PST8) != 0)
13983 if (localtime (&now)->tm_hour == hour_GMT0)
13986 if (localtime (&now)->tm_hour != hour_unset)
13991 if ac_fn_c_try_run
"$LINENO"; then :
13992 emacs_cv_localtime_cache
=no
13994 emacs_cv_localtime_cache
=yes
13996 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13997 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14001 # If we lack tzset, report that localtime does not cache TZ,
14002 # since we can't invalidate the cache if we don't have tzset.
14003 emacs_cv_localtime_cache
=no
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14007 $as_echo "$emacs_cv_localtime_cache" >&6; }
14008 if test $emacs_cv_localtime_cache = yes; then
14010 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14014 if test "x$HAVE_TIMEVAL" = xyes
; then
14015 for ac_func
in gettimeofday
14017 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14018 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
14019 cat >>confdefs.h
<<_ACEOF
14020 #define HAVE_GETTIMEOFDAY 1
14026 if test $ac_cv_func_gettimeofday = yes; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14028 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14029 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14030 $as_echo_n "(cached) " >&6
14032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14035 #ifdef TIME_WITH_SYS_TIME
14036 #include <sys/time.h>
14039 #ifdef HAVE_SYS_TIME_H
14040 #include <sys/time.h>
14048 struct timeval time;
14049 gettimeofday (&time, 0);
14054 if ac_fn_c_try_compile
"$LINENO"; then :
14055 emacs_cv_gettimeofday_two_arguments
=yes
14057 emacs_cv_gettimeofday_two_arguments
=no
14059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14062 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14063 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14065 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14072 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14073 if test "x$ac_cv_func_socket" = x
""yes; then :
14079 if test $ok_so_far = yes; then
14080 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14081 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14089 if test $ok_so_far = yes; then
14090 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14091 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14099 if test $ok_so_far = yes; then
14101 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14105 for ac_header
in sys
/ioctl.h
14107 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14108 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
14109 cat >>confdefs.h
<<_ACEOF
14110 #define HAVE_SYS_IOCTL_H 1
14118 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14120 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14125 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14126 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14128 $as_echo "yes" >&6; }
14130 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14137 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14138 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14142 cat >>confdefs.h
<<_ACEOF
14148 for ac_header
in vfork.h
14150 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14151 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14152 cat >>confdefs.h
<<_ACEOF
14153 #define HAVE_VFORK_H 1
14160 for ac_func
in fork vfork
14162 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14163 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14164 eval as_val
=\$
$as_ac_var
14165 if test "x$as_val" = x
""yes; then :
14166 cat >>confdefs.h
<<_ACEOF
14167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14173 if test "x$ac_cv_func_fork" = xyes
; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14175 $as_echo_n "checking for working fork... " >&6; }
14176 if test "${ac_cv_func_fork_works+set}" = set; then :
14177 $as_echo_n "(cached) " >&6
14179 if test "$cross_compiling" = yes; then :
14180 ac_cv_func_fork_works
=cross
14182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184 $ac_includes_default
14189 /* By Ruediger Kuhlmann. */
14190 return fork () < 0;
14196 if ac_fn_c_try_run
"$LINENO"; then :
14197 ac_cv_func_fork_works
=yes
14199 ac_cv_func_fork_works
=no
14201 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14202 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14207 $as_echo "$ac_cv_func_fork_works" >&6; }
14210 ac_cv_func_fork_works
=$ac_cv_func_fork
14212 if test "x$ac_cv_func_fork_works" = xcross
; then
14214 *-*-amigaos* |
*-*-msdosdjgpp*)
14215 # Override, as these systems have only a dummy fork() stub
14216 ac_cv_func_fork_works
=no
14219 ac_cv_func_fork_works
=yes
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14223 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14225 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14226 if test "x$ac_cv_func_vfork" = xyes
; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14228 $as_echo_n "checking for working vfork... " >&6; }
14229 if test "${ac_cv_func_vfork_works+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14232 if test "$cross_compiling" = yes; then :
14233 ac_cv_func_vfork_works
=cross
14235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14237 /* Thanks to Paul Eggert for this test. */
14238 $ac_includes_default
14239 #include <sys/wait.h>
14240 #ifdef HAVE_VFORK_H
14241 # include <vfork.h>
14243 /* On some sparc systems, changes by the child to local and incoming
14244 argument registers are propagated back to the parent. The compiler
14245 is told about this with #include <vfork.h>, but some compilers
14246 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14247 static variable whose address is put into a register that is
14248 clobbered by the vfork. */
14251 sparc_address_test (int arg)
14253 sparc_address_test (arg) int arg;
14256 static pid_t child;
14274 pid_t parent = getpid ();
14277 sparc_address_test (0);
14282 /* Here is another test for sparc vfork register problems. This
14283 test uses lots of local variables, at least as many local
14284 variables as main has allocated so far including compiler
14285 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14286 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14287 reuse the register of parent for one of the local variables,
14288 since it will think that parent can't possibly be used any more
14289 in this routine. Assigning to the local variable will thus
14290 munge parent in the parent process. */
14292 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14293 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14294 /* Convince the compiler that p..p7 are live; otherwise, it might
14295 use the same hardware register for all 8 local variables. */
14296 if (p != p1 || p != p2 || p != p3 || p != p4
14297 || p != p5 || p != p6 || p != p7)
14300 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14301 from child file descriptors. If the child closes a descriptor
14302 before it execs or exits, this munges the parent's descriptor
14303 as well. Test for this by closing stdout in the child. */
14304 _exit(close(fileno(stdout)) != 0);
14309 while (wait(&status) != child)
14312 /* Was there some problem with vforking? */
14315 /* Did the child fail? (This shouldn't happen.) */
14318 /* Did the vfork/compiler bug occur? */
14319 || parent != getpid()
14321 /* Did the file descriptor bug occur? */
14322 || fstat(fileno(stdout), &st) != 0
14327 if ac_fn_c_try_run
"$LINENO"; then :
14328 ac_cv_func_vfork_works
=yes
14330 ac_cv_func_vfork_works
=no
14332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14338 $as_echo "$ac_cv_func_vfork_works" >&6; }
14341 if test "x$ac_cv_func_fork_works" = xcross
; then
14342 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14344 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14347 if test "x$ac_cv_func_vfork_works" = xyes
; then
14349 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14353 $as_echo "#define vfork fork" >>confdefs.h
14356 if test "x$ac_cv_func_fork_works" = xyes
; then
14358 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14364 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14365 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370 #include <langinfo.h>
14374 char* cs = nl_langinfo(CODESET);
14379 if ac_fn_c_try_link
"$LINENO"; then :
14380 emacs_cv_langinfo_codeset
=yes
14382 emacs_cv_langinfo_codeset
=no
14384 rm -f core conftest.err conftest.
$ac_objext \
14385 conftest
$ac_exeext conftest.
$ac_ext
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14389 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14390 if test $emacs_cv_langinfo_codeset = yes; then
14392 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14396 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14397 if test "x$ac_cv_type_size_t" = x
""yes; then :
14399 cat >>confdefs.h
<<_ACEOF
14400 #define HAVE_SIZE_T 1
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14408 $as_echo_n "checking for mbstate_t... " >&6; }
14409 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 $ac_includes_default
14415 # include <wchar.h>
14419 mbstate_t x; return sizeof x;
14424 if ac_fn_c_try_compile
"$LINENO"; then :
14425 ac_cv_type_mbstate_t
=yes
14427 ac_cv_type_mbstate_t
=no
14429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14432 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14433 if test $ac_cv_type_mbstate_t = yes; then
14435 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14439 $as_echo "#define mbstate_t int" >>confdefs.h
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14444 $as_echo_n "checking for C restrict keyword... " >&6; }
14445 if test "${emacs_cv_c_restrict+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450 void fred (int *restrict x);
14459 if ac_fn_c_try_compile
"$LINENO"; then :
14460 emacs_cv_c_restrict
=yes
14462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14464 void fred (int *__restrict x);
14473 if ac_fn_c_try_compile
"$LINENO"; then :
14474 emacs_cv_c_restrict
=__restrict
14476 emacs_cv_c_restrict
=no
14478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14483 $as_echo "$emacs_cv_c_restrict" >&6; }
14484 case "$emacs_cv_c_restrict" in
14485 yes) emacs_restrict
=restrict
;;
14486 no
) emacs_restrict
="";;
14487 *) emacs_restrict
="$emacs_cv_c_restrict";;
14489 if test "$emacs_restrict" != __restrict
; then
14491 cat >>confdefs.h
<<_ACEOF
14492 #define __restrict $emacs_restrict
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14498 $as_echo_n "checking for C restricted array declarations... " >&6; }
14499 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504 void fred (int x[__restrict]);
14513 if ac_fn_c_try_compile
"$LINENO"; then :
14514 emacs_cv_c_restrict_arr
=yes
14516 emacs_cv_c_restrict_arr
=no
14518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14521 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14522 if test "$emacs_cv_c_restrict_arr" = yes; then
14524 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14530 # Set up the CFLAGS for real compilation, so we can substitute it.
14531 CFLAGS
="$REAL_CFLAGS"
14532 CPPFLAGS
="$REAL_CPPFLAGS"
14534 ## Hack to detect a buggy GCC version.
14535 if test "x$GCC" = xyes \
14536 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14537 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14538 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14539 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14542 #### Find out which version of Emacs this is.
14543 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14544 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14545 if test x
"${version}" = x
; then
14546 as_fn_error
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14548 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14550 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14553 ### Specify what sort of things we'll be editing into Makefile and config.h.
14554 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14578 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14579 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14580 ## end of LIBX_BASE, but nothing ever set it.
14585 ## Used in lwlib/Makefile.in.
14598 cat >>confdefs.h <<_ACEOF
14599 #define EMACS_CONFIGURATION "${canonical}"
14603 cat >>confdefs.h <<_ACEOF
14604 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14608 cat >>confdefs.h <<_ACEOF
14609 #define config_machfile "${machfile}"
14613 cat >>confdefs.h <<_ACEOF
14614 #define config_opsysfile "${opsysfile}"
14621 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14623 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14626 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14628 if test "$HAVE_XFT" = "yes"; then
14629 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14630 elif test "$HAVE_FREETYPE" = "yes"; then
14631 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14641 if test "${USE_X_TOOLKIT}" != "none" ; then
14642 WIDGET_OBJ
=widget.o
14644 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14646 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14648 $as_echo "#define USE_LUCID 1" >>confdefs.h
14650 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14652 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14657 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14658 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14662 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14663 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14664 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14668 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14669 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14672 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14678 case "$USE_X_TOOLKIT" in
14679 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14680 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14681 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14685 if test "$USE_X_TOOLKIT" = "none"; then
14686 LIBXT_OTHER
="\$(LIBXSM)"
14687 OLDXMENU_TARGET
="really-oldXMenu"
14689 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14690 OLDXMENU_TARGET
="really-lwlib"
14694 ## The X Menu stuff is present in the X10 distribution, but missing
14695 ## from X11. If we have X10, just use the installed library;
14696 ## otherwise, use our own copy.
14697 if test "${HAVE_X11}" = "yes" ; then
14699 $as_echo "#define HAVE_X11 1" >>confdefs.h
14702 if test "$USE_X_TOOLKIT" = "none"; then
14703 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
14705 OLDXMENU
="\${lwlibdir}liblw.a"
14707 LIBXMENU
="\$(OLDXMENU)"
14708 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14709 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14711 ## For a syntactically valid Makefile; not actually used for anything.
14712 ## See comments in src/Makefile.in.
14714 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14715 if test "${HAVE_X_WINDOWS}" = "yes"; then
14724 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14737 if test "${HAVE_MENUS}" = "yes" ; then
14739 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14743 if test "${GNU_MALLOC}" = "yes" ; then
14745 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14750 if test "${REL_ALLOC}" = "yes" ; then
14752 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14755 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14759 if test "$opsys" = "cygwin"; then
14760 CYGWIN_OBJ
="sheap.o"
14761 ## Cygwin differs because of its unexec().
14763 POST_ALLOC_OBJ
=lastfile.o
14766 PRE_ALLOC_OBJ
=lastfile.o
14775 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14778 ## The -headerpad option tells ld (see man page) to leave room at the
14779 ## end of the header for adding load commands. Needed for dumping.
14780 ## 0x690 is the total size of 30 segment load commands (at 56
14781 ## each); under Cocoa 31 commands are required.
14782 if test "$HAVE_NS" = "yes"; then
14783 libs_nsgui
="-framework AppKit"
14784 headerpad_extra
=6C8
14787 headerpad_extra
=690
14789 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14791 ## This is here because src/Makefile.in did some extra fiddling around
14792 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14793 ## #ifndef LD_SWITCH_SYSTEM
14794 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14795 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14796 ## not using gcc, darwin system not on an alpha (ie darwin, since
14797 ## darwin + alpha does not occur).
14798 ## Because this was done in src/Makefile.in, the resulting part of
14799 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14800 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14801 ## rather than LD_SWITCH_SYSTEM.
14802 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14803 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14806 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14807 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14808 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14809 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14810 ## had different values in configure (in ac_link) and src/Makefile.in.
14811 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14812 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14814 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14817 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14818 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14827 ## gnu: GNU needs its own crt0.
14828 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14830 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14831 ## library search parth, i.e. it won't search /usr/lib for libc and
14832 ## friends. Using -nostartfiles instead avoids this problem, and
14833 ## will also work on earlier NetBSD releases.
14834 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
14836 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14837 ## MkLinux/LinuxPPC needs this.
14838 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14841 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
14847 if test "x$ORDINARY_LINK" = "xyes"; then
14851 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14854 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14855 ## freebsd, gnu-* not on macppc|ibms390x.
14856 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14858 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14859 ## places that are difficult to figure out at make time. Fortunately,
14860 ## these same versions allow you to pass arbitrary flags on to the
14861 ## linker, so there is no reason not to use it as a linker.
14863 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14864 ## searching for libraries in its internal directories, so we have to
14865 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14866 LD_FIRSTFLAG
="-nostdlib"
14869 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14870 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
14875 ## FIXME? The logic here is not precisely the same as that above.
14876 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14877 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14879 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14882 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14885 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14886 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14887 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14888 if test "$machine" = "arm"; then
14891 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14892 ## immediately undefine it again and redefine it to empty.
14893 ## Was the C_SWITCH_X_SITE part really necessary?
14894 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14899 ## Ask GCC where to find libgcc.a.
14900 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14907 ## If we're using X11/GNUstep, define some consequences.
14908 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14910 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14913 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14915 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14916 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
14918 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14919 test "$HAVE_X_WINDOWS" = "yes" && \
14920 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14930 #### Report on what we decided to do.
14931 #### Report GTK as a toolkit, even if it doesn't use Xt.
14932 #### It makes printing result more understandable as using GTK sets
14933 #### toolkit_scroll_bars to yes by default.
14934 if test "${HAVE_GTK}" = "yes"; then
14939 Configured for \`${canonical}'.
14941 Where should the build process find the source code? ${srcdir}
14942 What operating system and machine description files should Emacs use?
14943 \`${opsysfile}' and \`${machfile}'
14944 What compiler should emacs be built with? ${CC} ${CFLAGS}
14945 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14946 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14947 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14948 What window system should Emacs use? ${window_system}
14949 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14951 if test -n "${x_includes}"; then
14952 echo " Where do we find X Windows header files? ${x_includes}"
14954 echo " Where do we find X Windows header files? Standard dirs"
14956 if test -n "${x_libraries}"; then
14957 echo " Where do we find X Windows libraries? ${x_libraries}"
14959 echo " Where do we find X Windows libraries? Standard dirs"
14962 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14963 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14964 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14965 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14966 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14967 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14968 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14969 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14971 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14972 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14973 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14974 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14975 echo " Does Emacs use -lgnutls (BROKEN)? ${HAVE_GNUTLS}"
14976 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14978 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14979 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14980 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14981 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14983 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14986 if test $USE_XASSERTS = yes; then
14987 echo " Compiling with asserts turned on."
14988 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14993 if test "$HAVE_NS" = "yes"; then
14995 echo "You must run \"make install\" in order to test the built application.
14996 The installed application will go to nextstep/Emacs.app and can be
14997 run or moved from there."
14998 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14999 echo "The application will be fully self-contained."
15001 echo "The lisp resources for the application will be installed under ${prefix}.
15002 You may need to run \"make install\" with sudo. The application will fail
15003 to run if these resources are not installed."
15008 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
15009 echo "D-Bus integration has been tested for GNU/Linux only."
15014 # Remove any trailing slashes in these variables.
15015 test "${prefix}" != NONE
&&
15016 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15017 test "${exec_prefix}" != NONE
&&
15018 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15020 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"
15022 ac_config_commands
="$ac_config_commands default"
15024 cat >confcache
<<\_ACEOF
15025 # This file is a shell script that caches the results of configure
15026 # tests run on this system so they can be shared between configure
15027 # scripts and configure runs, see configure's option --config-cache.
15028 # It is not useful on other systems. If it contains results you don't
15029 # want to keep, you may remove or edit it.
15031 # config.status only pays attention to the cache file if you give it
15032 # the --recheck option to rerun configure.
15034 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15035 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15036 # following values.
15040 # The following way of writing the cache mishandles newlines in values,
15041 # but we know of no workaround that is simple, portable, and efficient.
15042 # So, we kill variables containing newlines.
15043 # Ultrix sh set writes to stderr and can't be redirected directly,
15044 # and sets the high bit in the cache file unless we assign to the vars.
15046 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15047 eval ac_val
=\$
$ac_var
15051 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15055 _ | IFS | as_nl
) ;; #(
15056 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15057 *) { eval $ac_var=; unset $ac_var;} ;;
15063 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15064 *${as_nl}ac_space
=\
*)
15065 # `set' does not quote correctly, so add quotes: double-quote
15066 # substitution turns \\\\ into \\, and sed turns \\ into \.
15069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15072 # `set' quotes correctly as required by POSIX, so do not add quotes.
15073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15084 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15086 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15087 if test -w "$cache_file"; then
15088 test "x$cache_file" != "x/dev/null" &&
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15090 $as_echo "$as_me: updating cache $cache_file" >&6;}
15091 cat confcache
>$cache_file
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15094 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15099 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15100 # Let make expand exec_prefix.
15101 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15103 DEFS
=-DHAVE_CONFIG_H
15107 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15108 # 1. Remove the extension, and $U if already installed.
15109 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15110 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15111 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15112 # will be set to the directory where LIBOBJS objects are built.
15113 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15114 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15116 LIBOBJS
=$ac_libobjs
15118 LTLIBOBJS
=$ac_ltlibobjs
15123 : ${CONFIG_STATUS=./config.status}
15125 ac_clean_files_save
=$ac_clean_files
15126 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15128 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15130 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15132 # Generated by $as_me.
15133 # Run this file to recreate the current configuration.
15134 # Compiler output produced by configure, useful for debugging
15135 # configure, is in config.log if it exists.
15138 ac_cs_recheck=false
15141 SHELL=\${CONFIG_SHELL-$SHELL}
15144 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15145 ## -------------------- ##
15146 ## M4sh Initialization. ##
15147 ## -------------------- ##
15149 # Be more Bourne compatible
15150 DUALCASE
=1; export DUALCASE
# for MKS sh
15151 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15154 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15155 # is contrary to our usage. Disable this feature.
15156 alias -g '${1+"$@"}'='"$@"'
15157 setopt NO_GLOB_SUBST
15159 case `(set -o) 2>/dev/null` in #(
15171 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15172 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15173 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15175 # Prefer a ksh shell builtin over an external printf program on Solaris,
15176 # but without wasting forks for bash or zsh.
15177 if test -z "$BASH_VERSION$ZSH_VERSION" \
15178 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15179 as_echo='print
-r --'
15180 as_echo_n='print
-rn --'
15181 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15182 as_echo='printf %s
\n'
15183 as_echo_n='printf %s
'
15185 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15186 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15187 as_echo_n='/usr
/ucb
/echo -n'
15189 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15190 as_echo_n_body='eval
15194 expr "X$arg" : "X\\(.*\\)$as_nl";
15195 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15197 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15199 export as_echo_n_body
15200 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15202 export as_echo_body
15203 as_echo='sh
-c $as_echo_body as_echo
'
15206 # The user is always right.
15207 if test "${PATH_SEPARATOR+set}" != set; then
15209 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15210 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15217 # We need space, tab and new line, in precisely that order. Quoting is
15218 # there to prevent editors from complaining about space-tab.
15219 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15220 # splitting by setting IFS to empty value.)
15223 # Find who we are. Look in the path if we contain no directory separator.
15225 *[\\/]* ) as_myself=$0 ;;
15226 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15227 for as_dir in $PATH
15230 test -z "$as_dir" && as_dir=.
15231 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15237 # We did not find ourselves, most probably we were run as `sh COMMAND'
15238 # in which case we are not to be found in the path.
15239 if test "x$as_myself" = x
; then
15242 if test ! -f "$as_myself"; then
15243 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15247 # Unset variables that we do not need and which cause bugs (e.g. in
15248 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15249 # suppresses any "Segmentation fault" message there. '((' could
15250 # trigger a bug in pdksh 5.2.14.
15251 for as_var
in BASH_ENV ENV MAIL MAILPATH
15252 do eval test x\
${$as_var+set} = xset \
15253 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15266 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15269 # as_fn_error ERROR [LINENO LOG_FD]
15270 # ---------------------------------
15271 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15272 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15273 # script with status $?, using 1 if that was 0.
15276 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15278 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15279 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15281 $as_echo "$as_me: error: $1" >&2
15282 as_fn_exit
$as_status
15286 # as_fn_set_status STATUS
15287 # -----------------------
15288 # Set $? to STATUS, without forking.
15289 as_fn_set_status
()
15292 } # as_fn_set_status
15294 # as_fn_exit STATUS
15295 # -----------------
15296 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15300 as_fn_set_status
$1
15306 # Portably unset VAR.
15309 { eval $1=; unset $1;}
15311 as_unset
=as_fn_unset
15312 # as_fn_append VAR VALUE
15313 # ----------------------
15314 # Append the text in VALUE to the end of the definition contained in VAR. Take
15315 # advantage of any shell optimizations that allow amortized linear growth over
15316 # repeated appends, instead of the typical quadratic growth present in naive
15318 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15319 eval 'as_fn_append ()
15330 # as_fn_arith ARG...
15331 # ------------------
15332 # Perform arithmetic evaluation on the ARGs, and store the result in the
15333 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15334 # must be portable across $(()) and expr.
15335 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15336 eval 'as_fn_arith ()
15343 as_val
=`expr "$@" || test $? -eq 1`
15348 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15349 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15355 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15356 as_basename
=basename
15361 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15367 as_me
=`$as_basename -- "$0" ||
15368 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15369 X"$0" : 'X\(//\)$' \| \
15370 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15372 sed '/^.*\/\([^/][^/]*\)\/*$/{
15386 # Avoid depending upon Character Ranges.
15387 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15388 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15389 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15390 as_cr_digits
='0123456789'
15391 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15393 ECHO_C
= ECHO_N
= ECHO_T
=
15394 case `echo -n x` in #(((((
15396 case `echo 'xy\c'` in
15397 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15399 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15406 rm -f conf$$ conf$$.exe conf$$.
file
15407 if test -d conf$$.dir
; then
15408 rm -f conf$$.dir
/conf$$.
file
15411 mkdir conf$$.dir
2>/dev
/null
15413 if (echo >conf$$.
file) 2>/dev
/null
; then
15414 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15416 # ... but there are two gotchas:
15417 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15418 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15419 # In both cases, we have to default to `cp -p'.
15420 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15422 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15430 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15431 rmdir conf$$.dir
2>/dev
/null
15436 # Create "$as_dir" as a directory, including parents if necessary.
15441 -*) as_dir
=.
/$as_dir;;
15443 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15447 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15448 *) as_qdir
=$as_dir;;
15450 as_dirs
="'$as_qdir' $as_dirs"
15451 as_dir
=`$as_dirname -- "$as_dir" ||
15452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15453 X"$as_dir" : 'X\(//\)[^/]' \| \
15454 X"$as_dir" : 'X\(//\)$' \| \
15455 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15456 $as_echo X"$as_dir" |
15457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15461 /^X\(\/\/\)[^/].*/{
15474 test -d "$as_dir" && break
15476 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15477 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15481 if mkdir
-p .
2>/dev
/null
; then
15482 as_mkdir_p
='mkdir -p "$as_dir"'
15484 test -d .
/-p && rmdir .
/-p
15488 if test -x / >/dev
/null
2>&1; then
15489 as_test_x
='test -x'
15491 if ls -dL / >/dev
/null
2>&1; then
15498 if test -d "$1"; then
15504 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15505 ???[sx]*):;;*)false;;esac;fi
15509 as_executable_p
=$as_test_x
15511 # Sed expression to map a string onto a valid CPP name.
15512 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15514 # Sed expression to map a string onto a valid variable name.
15515 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15519 ## ----------------------------------- ##
15520 ## Main body of $CONFIG_STATUS script. ##
15521 ## ----------------------------------- ##
15523 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15526 # Save the log message, to keep $0 and so on meaningful, and to
15527 # report actual input values of CONFIG_FILES etc. instead of their
15528 # values after options handling.
15530 This file was extended by emacs $as_me 24.0.50, which was
15531 generated by GNU Autoconf 2.65. Invocation command line was
15533 CONFIG_FILES = $CONFIG_FILES
15534 CONFIG_HEADERS = $CONFIG_HEADERS
15535 CONFIG_LINKS = $CONFIG_LINKS
15536 CONFIG_COMMANDS = $CONFIG_COMMANDS
15539 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15544 case $ac_config_files in *"
15545 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15548 case $ac_config_headers in *"
15549 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 # Files that config.status was made for.
15555 config_files="$ac_config_files"
15556 config_headers="$ac_config_headers"
15557 config_commands="$ac_config_commands"
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15563 \`$as_me' instantiates files and other configuration actions
15564 from templates according to the current configuration. Unless the files
15565 and actions are specified as TAGs, all are instantiated by default.
15567 Usage: $0 [OPTION]... [TAG]...
15569 -h, --help print this help, then exit
15570 -V, --version print version number and configuration settings, then exit
15571 --config print configuration, then exit
15572 -q, --quiet, --silent
15573 do not print progress messages
15574 -d, --debug don't remove temporary files
15575 --recheck update $as_me by reconfiguring in the same conditions
15576 --file=FILE[:TEMPLATE]
15577 instantiate the configuration file FILE
15578 --header=FILE[:TEMPLATE]
15579 instantiate the configuration header FILE
15581 Configuration files:
15584 Configuration headers:
15587 Configuration commands:
15590 Report bugs to the package provider."
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15596 emacs config.status 24.0.50
15597 configured by $0, generated by GNU Autoconf 2.65,
15598 with options \\"\$ac_cs_config\\"
15600 Copyright (C) 2009 Free Software Foundation, Inc.
15601 This config.status script is free software; the Free Software Foundation
15602 gives unlimited permission to copy, distribute and modify it."
15607 test -n "\$AWK" || AWK=awk
15610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15611 # The default lists apply if the user does not specify any file.
15617 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15618 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15629 # Handling of the options.
15630 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15632 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15633 $as_echo "$ac_cs_version"; exit ;;
15634 --config |
--confi |
--conf |
--con |
--co |
--c )
15635 $as_echo "$ac_cs_config"; exit ;;
15636 --debug |
--debu |
--deb |
--de |
--d |
-d )
15638 --file |
--fil |
--fi |
--f )
15641 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15643 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15644 ac_need_defaults
=false
;;
15645 --header |
--heade |
--head |
--hea )
15648 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15650 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15651 ac_need_defaults
=false
;;
15653 # Conflict between --help and --header
15654 as_fn_error
"ambiguous option: \`$1'
15655 Try \`$0 --help' for more information.";;
15656 --help |
--hel |
-h )
15657 $as_echo "$ac_cs_usage"; exit ;;
15658 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15659 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15662 # This is an error.
15663 -*) as_fn_error
"unrecognized option: \`$1'
15664 Try \`$0 --help' for more information." ;;
15666 *) as_fn_append ac_config_targets
" $1"
15667 ac_need_defaults
=false
;;
15673 ac_configure_extra_args
=
15675 if $ac_cs_silent; then
15677 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15682 if \$ac_cs_recheck; then
15683 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15686 CONFIG_SHELL='$SHELL'
15687 export CONFIG_SHELL
15692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15697 ## Running $as_me. ##
15703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15707 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15713 # Handling of arguments.
15714 for ac_config_target
in $ac_config_targets
15716 case $ac_config_target in
15717 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15718 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15719 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15720 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15721 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15722 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15723 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15724 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15725 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15726 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15727 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15728 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15729 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15731 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15736 # If the user did not use the arguments to specify the items to instantiate,
15737 # then the envvar interface is used. Set only those that are not.
15738 # We use the long form for the default assignment because of an extremely
15739 # bizarre bug on SunOS 4.1.3.
15740 if $ac_need_defaults; then
15741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15746 # Have a temporary directory for convenience. Make it in the build tree
15747 # simply because there is no reason against having it here, and in addition,
15748 # creating and moving files from /tmp can sometimes cause problems.
15749 # Hook for its removal unless debugging.
15750 # Note that there is a small window in which the directory will not be cleaned:
15751 # after its creation but before its name has been assigned to `$tmp'.
15755 trap 'exit_status=$?
15756 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15758 trap 'as_fn_exit 1' 1 2 13 15
15760 # Create a (secure) tmp directory for tmp files.
15763 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15764 test -n "$tmp" && test -d "$tmp"
15767 tmp
=.
/conf$$
-$RANDOM
15768 (umask 077 && mkdir
"$tmp")
15769 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15771 # Set up the scripts for CONFIG_FILES section.
15772 # No need to generate them if there are no CONFIG_FILES.
15773 # This happens for instance with `./config.status config.h'.
15774 if test -n "$CONFIG_FILES"; then
15776 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15777 ac_cs_awk_getline
=:
15778 ac_cs_awk_pipe_init
=
15779 ac_cs_awk_read_file
='
15780 while ((getline aline < (F[key])) > 0)
15783 ac_cs_awk_pipe_fini
=
15785 ac_cs_awk_getline
=false
15786 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15787 ac_cs_awk_read_file
='
15789 print "cat " F[key] " &&"
15790 '$ac_cs_awk_pipe_init
15791 # The final `:' finishes the AND list.
15792 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15794 ac_cr
=`echo X | tr X '\015'`
15795 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15796 # But we know of no other shell where ac_cr would be empty at this
15797 # point, so we can use a bashism as a fallback.
15798 if test "x$ac_cr" = x
; then
15799 eval ac_cr
=\$
\'\\r
\'
15801 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15802 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15805 ac_cs_awk_cr
=$ac_cr
15808 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15811 # Create commands to substitute file output variables.
15813 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15814 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15815 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15818 } >conf$
$files.sh
&&
15819 . .
/conf$
$files.sh ||
15820 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15821 rm -f conf$
$files.sh
15824 echo "cat >conf$$subs.awk <<_ACEOF" &&
15825 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15827 } >conf$$subs.sh ||
15828 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15829 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15831 for ac_last_try in false false false false false :; do
15832 . ./conf$$subs.sh ||
15833 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15835 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15836 if test $ac_delim_n = $ac_delim_num; then
15838 elif $ac_last_try; then
15839 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15841 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15844 rm -f conf$$subs.sh
15846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15851 s/^/S["/; s
/!.
*/"]=/
15861 s/\(.\{148\}\)..*/\1/
15863 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15868 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15875 s/\(.\{148\}\)..*/\1/
15877 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15881 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15886 ' <conf$$subs.awk | sed '
15891 ' >>$CONFIG_STATUS || ac_write_fail=1
15892 rm -f conf$$subs.awk
15893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15895 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15896 for (key in S) S_is_set[key] = 1
15898 \$ac_cs_awk_pipe_init
15902 nfields = split(line, field, "@
")
15904 len = length(field[1])
15905 for (i = 2; i < nfields; i++) {
15907 keylen = length(key)
15908 if (S_is_set[key]) {
15910 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15911 len += length(value) + length(field[++i])
15916 if (nfields == 3 && !substed) {
15918 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15919 \$ac_cs_awk_read_file
15925 \$ac_cs_awk_pipe_fini
15928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15929 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15930 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15933 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15934 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15937 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15938 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15939 # trailing colons and then remove the whole line if VPATH becomes empty
15940 # (actually we leave an empty line to preserve line numbers).
15941 if test "x
$srcdir" = x.; then
15942 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15943 s/:*\$(srcdir):*/:/
15944 s/:*\${srcdir}:*/:/
15946 s/^\([^=]*=[ ]*\):*/\1/
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953 fi # test -n "$CONFIG_FILES"
15955 # Set up the scripts for CONFIG_HEADERS section.
15956 # No need to generate them if there are no CONFIG_HEADERS.
15957 # This happens for instance with `./config.status Makefile'.
15958 if test -n "$CONFIG_HEADERS"; then
15959 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15963 # Transform confdefs.h into an awk script `defines.awk', embedded as
15964 # here-document in config.status, that substitutes the proper values into
15965 # config.h.in to produce config.h.
15967 # Create a delimiter string that does not exist in confdefs.h, to ease
15968 # handling of long lines.
15970 for ac_last_try in false false :; do
15971 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15972 if test -z "$ac_t"; then
15974 elif $ac_last_try; then
15975 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15977 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15981 # For the awk script, D is an array of macro values keyed by name,
15982 # likewise P contains macro parameters if any. Preserve backslash
15983 # newline sequences.
15985 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15987 s/.\{148\}/&'"$ac_delim"'/g
15990 s/^[ ]*#[ ]*define[ ][ ]*/ /
15997 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15999 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16003 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16004 D["\
1"]=" \
3\\\\\\n
"\\/p
16006 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16011 s/.\{148\}/&'"$ac_delim"'/g
16016 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16019 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16021 ' <confdefs.h | sed '
16022 s/'"$ac_delim"'/"\\\
16023 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16026 for (key in D) D_is_set[key] = 1
16029 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16031 split(line, arg, " ")
16032 if (arg[1] == "#") {
16036 defundef
= substr
(arg
[1], 2)
16039 split(mac1
, mac2
, "(") #)
16041 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16042 if (D_is_set
[macro
]) {
16043 # Preserve the white space surrounding the "#".
16044 print prefix
"define", macro P
[macro
] D
[macro
]
16047 # Replace #undef with comments. This is necessary, for example,
16048 # in the case of _POSIX_SOURCE, which is predefined and required
16049 # on some systems where configure will not decide to define it.
16050 if (defundef
== "undef") {
16051 print
"/*", prefix defundef
, macro
, "*/"
16059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16060 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16061 fi # test -n "$CONFIG_HEADERS"
16064 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16069 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16071 case $ac_mode$ac_tag in
16073 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16074 :[FH
]-) ac_tag
=-:-;;
16075 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16092 -) ac_f
="$tmp/stdin";;
16093 *) # Look for the file first in the build tree, then in the source tree
16094 # (if the path is not absolute). The absolute path cannot be DOS-style,
16095 # because $ac_f cannot contain `:'.
16099 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16101 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16103 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16104 as_fn_append ac_file_inputs
" '$ac_f'"
16107 # Let's still pretend it is `configure' which instantiates (i.e., don't
16108 # use $as_me), people would be surprised to read:
16109 # /* config.h. Generated by config.status. */
16110 configure_input
='Generated from '`
16111 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16113 if test x
"$ac_file" != x-
; then
16114 configure_input
="$ac_file. $configure_input"
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16116 $as_echo "$as_me: creating $ac_file" >&6;}
16118 # Neutralize special characters interpreted by sed in replacement strings.
16119 case $configure_input in #(
16120 *\
&* |
*\|
* |
*\\* )
16121 ac_sed_conf_input
=`$as_echo "$configure_input" |
16122 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16123 *) ac_sed_conf_input
=$configure_input;;
16127 *:-:* |
*:-) cat >"$tmp/stdin" \
16128 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16133 ac_dir
=`$as_dirname -- "$ac_file" ||
16134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16135 X"$ac_file" : 'X\(//\)[^/]' \| \
16136 X"$ac_file" : 'X\(//\)$' \| \
16137 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16138 $as_echo X"$ac_file" |
16139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16143 /^X\(\/\/\)[^/].*/{
16156 as_dir
="$ac_dir"; as_fn_mkdir_p
16160 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16162 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16163 # A ".." for each directory in $ac_dir_suffix.
16164 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16165 case $ac_top_builddir_sub in
16166 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16167 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16170 ac_abs_top_builddir
=$ac_pwd
16171 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16172 # for backward compatibility:
16173 ac_top_builddir
=$ac_top_build_prefix
16176 .
) # We are building in place.
16178 ac_top_srcdir
=$ac_top_builddir_sub
16179 ac_abs_top_srcdir
=$ac_pwd ;;
16180 [\\/]* | ?
:[\\/]* ) # Absolute name.
16181 ac_srcdir
=$srcdir$ac_dir_suffix;
16182 ac_top_srcdir
=$srcdir
16183 ac_abs_top_srcdir
=$srcdir ;;
16184 *) # Relative name.
16185 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16186 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16187 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16189 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16199 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16200 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16205 # If the template does not know about datarootdir, expand it.
16206 # FIXME: This hack should be removed a few years after 2.60.
16207 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16218 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16219 *datarootdir
*) ac_datarootdir_seen
=yes;;
16220 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16222 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16225 ac_datarootdir_hack='
16226 s&@datadir@&$datadir&g
16227 s&@docdir@&$docdir&g
16228 s&@infodir@&$infodir&g
16229 s&@localedir@&$localedir&g
16230 s&@mandir@&$mandir&g
16231 s&\\\${datarootdir}&$datarootdir&g' ;;
16235 # Neutralize VPATH when `$srcdir' = `.'.
16236 # Shell code in configure.ac might set extrasub.
16237 # FIXME: do we really want to maintain this feature?
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 ac_sed_extra="$ac_vpsub
16242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16244 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16245 s|@configure_input@|
$ac_sed_conf_input|
;t t
16246 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16247 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16248 s
&@srcdir@
&$ac_srcdir&;t t
16249 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16250 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16251 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16252 s
&@builddir@
&$ac_builddir&;t t
16253 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16254 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16255 s
&@INSTALL@
&$ac_INSTALL&;t t
16256 $ac_datarootdir_hack
16258 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16259 if $ac_cs_awk_getline; then
16260 $AWK -f "$tmp/subs.
awk"
16262 $AWK -f "$tmp/subs.
awk" | $SHELL
16264 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16266 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16267 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16268 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16270 which seems to be undefined. Please make sure it is defined." >&5
16271 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16272 which seems to be undefined. Please make sure it is defined." >&2;}
16276 -) cat "$tmp/out" && rm -f "$tmp/out";;
16277 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16279 || as_fn_error "could not create $ac_file" "$LINENO" 5
16285 if test x"$ac_file" != x-; then
16287 $as_echo "/* $configure_input */" \
16288 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16289 } >"$tmp/config.h" \
16290 || as_fn_error "could not create $ac_file" "$LINENO" 5
16291 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16293 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16296 mv "$tmp/config.h" "$ac_file" \
16297 || as_fn_error "could not create $ac_file" "$LINENO" 5
16300 $as_echo "/* $configure_input */" \
16301 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16302 || as_fn_error "could not create -" "$LINENO" 5
16306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16307 $as_echo "$as_me: executing $ac_file commands" >&6;}
16312 case $ac_file$ac_mode in
16315 ### Make the necessary directories, if they don't exist.
16316 for dir
in etc lisp
; do
16317 test -d ${dir} || mkdir
${dir}
16320 echo creating src
/epaths.h
16321 ${MAKE-make} epaths-force
16323 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
16324 echo creating src
/.gdbinit
16325 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
16336 ac_clean_files
=$ac_clean_files_save
16338 test $ac_write_fail = 0 ||
16339 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16342 # configure is writing to config.log, and then calls config.status.
16343 # config.status does its own redirection, appending to config.log.
16344 # Unfortunately, on DOS this fails, as config.log is still kept open
16345 # by configure, so config.status won't be able to write to it; its
16346 # output is simply discarded. So we exec the FD to /dev/null,
16347 # effectively closing config.log, so it can be properly (re)opened and
16348 # appended to by config.status. When coming back to configure, we
16349 # need to make the FD available again.
16350 if test "$no_create" != yes; then
16352 ac_config_status_args
=
16353 test "$silent" = yes &&
16354 ac_config_status_args
="$ac_config_status_args --quiet"
16356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16359 # would make configure fail if this is the last instruction.
16360 $ac_cs_success || as_fn_exit $?
16362 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16364 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}