2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 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, 2010 Free Software
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev
/null
; then :
181 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
186 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir
=.
193 for as_base
in sh bash ksh sh5
; do
194 # Try only shells that exist, to save several forks.
195 as_shell
=$as_dir/$as_base
196 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
198 CONFIG_SHELL
=$as_shell as_have_required
=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
209 CONFIG_SHELL
=$SHELL as_have_required
=yes
214 if test "x$CONFIG_SHELL" != x
; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
224 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL
=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE
= GREP_OPTIONS
=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir
=.
/$as_dir;;
293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs
="'$as_qdir' $as_dirs"
301 as_dir
=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
362 as_val
=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status
=$1; test $as_status -eq 0 && as_status
=1
376 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit
$as_status
383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
402 as_me
=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits
='0123456789'
426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
429 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
430 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x
"$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C
= ECHO_N
= ECHO_T
=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
473 rm -f conf$$ conf$$.exe conf$$.
file
474 if test -d conf$$.dir
; then
475 rm -f conf$$.dir
/conf$$.
file
478 mkdir conf$$.dir
2>/dev
/null
480 if (echo >conf$$.
file) 2>/dev
/null
; then
481 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
489 elif ln conf$$.
file conf$$
2>/dev
/null
; then
497 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
498 rmdir conf$$.dir
2>/dev
/null
500 if mkdir
-p .
2>/dev
/null
; then
501 as_mkdir_p
='mkdir -p "$as_dir"'
503 test -d .
/-p && rmdir .
/-p
507 if test -x / >/dev
/null
2>&1; then
510 if ls -dL / >/dev
/null
2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p
=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix
=/usr
/local
550 ac_config_libobj_dir
=.
557 # Identity of this package.
559 PACKAGE_TARNAME
='emacs'
560 PACKAGE_VERSION
='24.0.50'
561 PACKAGE_STRING
='emacs 24.0.50'
565 ac_unique_file
="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default
="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_config_libobj_dir
=src
604 gl_getopt_required
=POSIX
605 gl_getopt_required
=POSIX
607 ac_subst_vars
='gltests_LTLIBOBJS
619 LD_SWITCH_SYSTEM_TEMACS
652 x_default_search_path
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
685 APPLE_UNIVERSAL_BUILD
693 HAVE_DECL_LOCALTIME_R
703 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
707 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
709 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
710 UNISTD_H_HAVE_WINSOCK2_H
729 REPLACE_GETDOMAINNAME
739 HAVE_DECL_GETUSERSHELL
740 HAVE_DECL_GETPAGESIZE
742 HAVE_DECL_GETDOMAINNAME
777 GNULIB_UNISTD_H_SIGPIPE
778 GNULIB_UNISTD_H_GETOPT
814 GL_COND_LIBTOOL_FALSE
867 LD_SWITCH_X_SITE_AUX_RPATH
929 INSTALL_STRIP_PROGRAM
971 program_transform_name
982 ac_subst_files
='deps_frag
985 enable_option_checking
1007 with_toolkit_scroll_bars
1018 with_pkg_config_prog
1022 enable_ns_self_contained
1024 enable_maintainer_mode
1025 enable_locallisppath
1027 enable_use_lisp_union_type
1030 enable_dependency_tracking
1034 ac_precious_vars
='build_alias
1049 # Initialize some variables set by options.
1051 ac_init_version
=false
1052 ac_unrecognized_opts
=
1053 ac_unrecognized_sep
=
1054 # The variables have the same names as the options, with
1055 # dashes changed to underlines.
1056 cache_file
=/dev
/null
1063 program_transform_name
=s
,x
,x
,
1071 # Installation directory options.
1072 # These are left unexpanded so users can "make install exec_prefix=/foo"
1073 # and all the variables that are supposed to be based on exec_prefix
1074 # by default will actually change.
1075 # Use braces instead of parens because sh, perl, etc. also accept them.
1076 # (The list follows the same order as the GNU Coding Standards.)
1077 bindir
='${exec_prefix}/bin'
1078 sbindir
='${exec_prefix}/sbin'
1079 libexecdir
='${exec_prefix}/libexec'
1080 datarootdir
='${prefix}/share'
1081 datadir
='${datarootdir}'
1082 sysconfdir
='${prefix}/etc'
1083 sharedstatedir
='${prefix}/com'
1084 localstatedir
='${prefix}/var'
1085 includedir
='${prefix}/include'
1086 oldincludedir
='/usr/include'
1087 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1088 infodir
='${datarootdir}/info'
1093 libdir
='${exec_prefix}/lib'
1094 localedir
='${datarootdir}/locale'
1095 mandir
='${datarootdir}/man'
1101 # If the previous option needs an argument, assign it.
1102 if test -n "$ac_prev"; then
1103 eval $ac_prev=\
$ac_option
1109 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1114 # Accept the important Cygnus configure options, so we can diagnose typos.
1116 case $ac_dashdash$ac_option in
1120 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1122 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1123 bindir
=$ac_optarg ;;
1125 -build |
--build |
--buil |
--bui |
--bu)
1126 ac_prev
=build_alias
;;
1127 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1128 build_alias
=$ac_optarg ;;
1130 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1131 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1132 ac_prev
=cache_file
;;
1133 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1134 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1135 cache_file
=$ac_optarg ;;
1137 --config-cache |
-C)
1138 cache_file
=config.cache
;;
1140 -datadir |
--datadir |
--datadi |
--datad)
1142 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1143 datadir
=$ac_optarg ;;
1145 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1146 |
--dataroo |
--dataro |
--datar)
1147 ac_prev
=datarootdir
;;
1148 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1149 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1150 datarootdir
=$ac_optarg ;;
1152 -disable-* |
--disable-*)
1153 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1156 as_fn_error $?
"invalid feature name: $ac_useropt"
1157 ac_useropt_orig
=$ac_useropt
1158 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "enable_
$ac_useropt"
1163 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1164 ac_unrecognized_sep
=', ';;
1166 eval enable_
$ac_useropt=no
;;
1168 -docdir |
--docdir |
--docdi |
--doc |
--do)
1170 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1171 docdir
=$ac_optarg ;;
1173 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1175 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1176 dvidir
=$ac_optarg ;;
1178 -enable-* |
--enable-*)
1179 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1182 as_fn_error $?
"invalid feature name: $ac_useropt"
1183 ac_useropt_orig
=$ac_useropt
1184 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "enable_
$ac_useropt"
1189 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1190 ac_unrecognized_sep
=', ';;
1192 eval enable_
$ac_useropt=\
$ac_optarg ;;
1194 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1195 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1196 |
--exec |
--exe |
--ex)
1197 ac_prev
=exec_prefix
;;
1198 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1199 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1200 |
--exec=* |
--exe=* |
--ex=*)
1201 exec_prefix
=$ac_optarg ;;
1203 -gas |
--gas |
--ga |
--g)
1204 # Obsolete; use --with-gas.
1207 -help |
--help |
--hel |
--he |
-h)
1208 ac_init_help
=long
;;
1209 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1210 ac_init_help
=recursive
;;
1211 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1212 ac_init_help
=short
;;
1214 -host |
--host |
--hos |
--ho)
1215 ac_prev
=host_alias
;;
1216 -host=* |
--host=* |
--hos=* |
--ho=*)
1217 host_alias
=$ac_optarg ;;
1219 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1221 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1223 htmldir
=$ac_optarg ;;
1225 -includedir |
--includedir |
--includedi |
--included |
--include \
1226 |
--includ |
--inclu |
--incl |
--inc)
1227 ac_prev
=includedir
;;
1228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1230 includedir
=$ac_optarg ;;
1232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1235 infodir
=$ac_optarg ;;
1237 -libdir |
--libdir |
--libdi |
--libd)
1239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1240 libdir
=$ac_optarg ;;
1242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1243 |
--libexe |
--libex |
--libe)
1244 ac_prev
=libexecdir
;;
1245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1246 |
--libexe=* |
--libex=* |
--libe=*)
1247 libexecdir
=$ac_optarg ;;
1249 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1250 ac_prev
=localedir
;;
1251 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1252 localedir
=$ac_optarg ;;
1254 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1255 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1256 ac_prev
=localstatedir
;;
1257 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1258 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1259 localstatedir
=$ac_optarg ;;
1261 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1263 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1264 mandir
=$ac_optarg ;;
1266 -nfp |
--nfp |
--nf)
1267 # Obsolete; use --without-fp.
1270 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1271 |
--no-cr |
--no-c |
-n)
1274 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1275 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1278 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1279 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1280 |
--oldin |
--oldi |
--old |
--ol |
--o)
1281 ac_prev
=oldincludedir
;;
1282 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1283 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1284 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1285 oldincludedir
=$ac_optarg ;;
1287 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1289 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1290 prefix
=$ac_optarg ;;
1292 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1293 |
--program-pre |
--program-pr |
--program-p)
1294 ac_prev
=program_prefix
;;
1295 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1296 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1297 program_prefix
=$ac_optarg ;;
1299 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1300 |
--program-suf |
--program-su |
--program-s)
1301 ac_prev
=program_suffix
;;
1302 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1303 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1304 program_suffix
=$ac_optarg ;;
1306 -program-transform-name |
--program-transform-name \
1307 |
--program-transform-nam |
--program-transform-na \
1308 |
--program-transform-n |
--program-transform- \
1309 |
--program-transform |
--program-transfor \
1310 |
--program-transfo |
--program-transf \
1311 |
--program-trans |
--program-tran \
1312 |
--progr-tra |
--program-tr |
--program-t)
1313 ac_prev
=program_transform_name
;;
1314 -program-transform-name=* |
--program-transform-name=* \
1315 |
--program-transform-nam=* |
--program-transform-na=* \
1316 |
--program-transform-n=* |
--program-transform-=* \
1317 |
--program-transform=* |
--program-transfor=* \
1318 |
--program-transfo=* |
--program-transf=* \
1319 |
--program-trans=* |
--program-tran=* \
1320 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1321 program_transform_name
=$ac_optarg ;;
1323 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1325 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1326 pdfdir
=$ac_optarg ;;
1328 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1330 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1333 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1334 |
-silent |
--silent |
--silen |
--sile |
--sil)
1337 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1339 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1341 sbindir
=$ac_optarg ;;
1343 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1344 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1345 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1347 ac_prev
=sharedstatedir
;;
1348 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1349 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1350 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1352 sharedstatedir
=$ac_optarg ;;
1354 -site |
--site |
--sit)
1356 -site=* |
--site=* |
--sit=*)
1359 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1361 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1362 srcdir
=$ac_optarg ;;
1364 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1365 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1366 ac_prev
=sysconfdir
;;
1367 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1368 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1369 sysconfdir
=$ac_optarg ;;
1371 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1372 ac_prev
=target_alias
;;
1373 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1374 target_alias
=$ac_optarg ;;
1376 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1379 -version |
--version |
--versio |
--versi |
--vers |
-V)
1380 ac_init_version
=: ;;
1383 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1384 # Reject names that are not valid shell variable names.
1385 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1386 as_fn_error $?
"invalid package name: $ac_useropt"
1387 ac_useropt_orig
=$ac_useropt
1388 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1389 case $ac_user_opts in
1393 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1394 ac_unrecognized_sep
=', ';;
1396 eval with_
$ac_useropt=\
$ac_optarg ;;
1398 -without-* |
--without-*)
1399 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1402 as_fn_error $?
"invalid package name: $ac_useropt"
1403 ac_useropt_orig
=$ac_useropt
1404 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1405 case $ac_user_opts in
1409 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1410 ac_unrecognized_sep
=', ';;
1412 eval with_
$ac_useropt=no
;;
1415 # Obsolete; use --with-x.
1418 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1419 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1420 ac_prev
=x_includes
;;
1421 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1422 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1423 x_includes
=$ac_optarg ;;
1425 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1426 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1427 ac_prev
=x_libraries
;;
1428 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1429 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1430 x_libraries
=$ac_optarg ;;
1432 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1433 Try \`$0 --help' for more information"
1437 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1438 # Reject names that are not valid shell variable names.
1439 case $ac_envvar in #(
1440 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1441 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1443 eval $ac_envvar=\
$ac_optarg
1444 export $ac_envvar ;;
1447 # FIXME: should be removed in autoconf 3.0.
1448 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1450 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1457 if test -n "$ac_prev"; then
1458 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1459 as_fn_error $?
"missing argument to $ac_option"
1462 if test -n "$ac_unrecognized_opts"; then
1463 case $enable_option_checking in
1465 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1466 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1470 # Check all directory arguments for consistency.
1471 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1472 datadir sysconfdir sharedstatedir localstatedir includedir \
1473 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1474 libdir localedir mandir
1476 eval ac_val
=\$
$ac_var
1477 # Remove trailing slashes.
1480 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1481 eval $ac_var=\
$ac_val;;
1483 # Be sure to have absolute directory names.
1485 [\\/$
]* | ?
:[\\/]* ) continue;;
1486 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1488 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1491 # There might be people who depend on the old broken behavior: `$host'
1492 # used to hold the argument of --host etc.
1493 # FIXME: To remove some day.
1496 target
=$target_alias
1498 # FIXME: To remove some day.
1499 if test "x$host_alias" != x
; then
1500 if test "x$build_alias" = x
; then
1501 cross_compiling
=maybe
1502 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1503 If a cross compiler is detected then cross compile mode will be used" >&2
1504 elif test "x$build_alias" != "x$host_alias"; then
1510 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1512 test "$silent" = yes && exec 6>/dev
/null
1515 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1516 ac_ls_di
=`ls -di .` &&
1517 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1518 as_fn_error $?
"working directory cannot be determined"
1519 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1520 as_fn_error $?
"pwd does not report name of working directory"
1523 # Find the source files, if location was not specified.
1524 if test -z "$srcdir"; then
1525 ac_srcdir_defaulted
=yes
1526 # Try the directory containing this script, then the parent directory.
1527 ac_confdir
=`$as_dirname -- "$as_myself" ||
1528 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1529 X"$as_myself" : 'X\(//\)[^/]' \| \
1530 X"$as_myself" : 'X\(//\)$' \| \
1531 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1532 $as_echo X"$as_myself" |
1533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1555 ac_srcdir_defaulted
=no
1557 if test ! -r "$srcdir/$ac_unique_file"; then
1558 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1559 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1561 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1563 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1565 # When building in place, set srcdir=.
1566 if test "$ac_abs_confdir" = "$ac_pwd"; then
1569 # Remove unnecessary trailing slashes from srcdir.
1570 # Double slashes in file names in object file debugging info
1571 # mess up M-x gdb in Emacs.
1573 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1575 for ac_var
in $ac_precious_vars; do
1576 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1577 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1578 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1579 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1583 # Report the --help message.
1585 if test "$ac_init_help" = "long"; then
1586 # Omit some internal or obsolete options to make the list less imposing.
1587 # This message is too long to be a string in the A/UX 3.1 sh.
1589 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1591 Usage: $0 [OPTION]... [VAR=VALUE]...
1593 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1594 VAR=VALUE. See below for descriptions of some of the useful variables.
1596 Defaults for the options are specified in brackets.
1599 -h, --help display this help and exit
1600 --help=short display options specific to this package
1601 --help=recursive display the short help of all the included packages
1602 -V, --version display version information and exit
1603 -q, --quiet, --silent do not print \`checking ...' messages
1604 --cache-file=FILE cache test results in FILE [disabled]
1605 -C, --config-cache alias for \`--cache-file=config.cache'
1606 -n, --no-create do not create output files
1607 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1609 Installation directories:
1610 --prefix=PREFIX install architecture-independent files in PREFIX
1611 [$ac_default_prefix]
1612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1615 By default, \`make install' will install all the files in
1616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1618 for instance \`--prefix=\$HOME'.
1620 For better control, use the options below.
1622 Fine tuning of the installation directories:
1623 --bindir=DIR user executables [EPREFIX/bin]
1624 --sbindir=DIR system admin executables [EPREFIX/sbin]
1625 --libexecdir=DIR program executables [EPREFIX/libexec]
1626 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1627 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1628 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1629 --libdir=DIR object code libraries [EPREFIX/lib]
1630 --includedir=DIR C header files [PREFIX/include]
1631 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1632 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1633 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1634 --infodir=DIR info documentation [DATAROOTDIR/info]
1635 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1636 --mandir=DIR man documentation [DATAROOTDIR/man]
1637 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1638 --htmldir=DIR html documentation [DOCDIR]
1639 --dvidir=DIR dvi documentation [DOCDIR]
1640 --pdfdir=DIR pdf documentation [DOCDIR]
1641 --psdir=DIR ps documentation [DOCDIR]
1647 --program-prefix=PREFIX prepend PREFIX to installed program names
1648 --program-suffix=SUFFIX append SUFFIX to installed program names
1649 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1652 --x-includes=DIR X include files are
in DIR
1653 --x-libraries=DIR X library files are
in DIR
1656 --build=BUILD configure
for building on BUILD
[guessed
]
1657 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1661 if test -n "$ac_init_help"; then
1662 case $ac_init_help in
1663 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1668 --disable-option-checking ignore unrecognized
--enable/--with options
1669 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1670 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1671 --disable-ns-self-contained
1672 disable self contained build under NeXTstep
1673 --enable-asserts compile code with asserts enabled
1674 --enable-maintainer-mode
1675 enable make rules and dependencies not useful
(and
1676 sometimes confusing
) to the casual installer
1677 --enable-locallisppath=PATH
1678 directories Emacs should search
for lisp files
1679 specific to this site
1680 --enable-checking[=LIST
]
1681 enable expensive run-time checks. With LIST
, enable
1682 only specific categories of checks. Categories are
:
1683 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1684 stringfreelist
, xmallocoverrun
, conslist
1685 --enable-use-lisp-union-type
1686 use a union
for the Lisp_Object data
type. This is
1687 only useful
for development
for catching certain
1689 --enable-profiling build emacs with profiling support. This might not
1690 work on all platforms
1691 --enable-autodepend automatically generate dependencies to .h-files.
1692 Requires GNU Make and Gcc. Enabled
if GNU Make and
1694 --disable-dependency-tracking speeds up one-time build
1695 --enable-dependency-tracking do not reject slow dependency extractors
1696 --disable-largefile omit support
for large files
1699 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1700 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1701 --without-pop don
't support POP mail retrieval with movemail
1702 --with-kerberos support Kerberos-authenticated POP
1703 --with-kerberos5 support Kerberos version 5 authenticated POP
1704 --with-hesiod support Hesiod to get the POP server host
1705 --with-mmdf support MMDF mailboxes
1706 --with-mail-unlink unlink, rather than empty, mail spool after reading
1707 --with-mailhost=HOSTNAME
1708 string giving default POP mail host
1709 --without-sound don't compile with sound support
1710 --without-sync-input process async input synchronously
1711 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1712 lucid or athena
, motif
, no
)
1713 --without-xpm don
't compile with XPM image support
1714 --without-jpeg don't compile with JPEG image support
1715 --without-tiff don
't compile with TIFF image support
1716 --without-gif don't compile with GIF image support
1717 --without-png don
't compile with PNG image support
1718 --without-rsvg don't compile with SVG image support
1719 --without-xml2 don
't compile with XML parsing support
1720 --without-imagemagick don't compile with ImageMagick image support
1721 --without-xft don
't use XFT for anti aliased fonts
1722 --without-libotf don't use libotf
for OpenType font support
1723 --without-m17n-flt don
't use m17n-flt for text shaping
1724 --without-toolkit-scroll-bars
1725 don't use Motif or Xaw3d scroll bars
1726 --without-xaw3d don
't use Xaw3d
1727 --without-xim don't use X11 XIM
1728 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1729 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1731 --without-dbus don't compile with D-Bus support
1732 --without-gconf don
't compile with GConf support
1733 --without-selinux don't compile with SELinux support
1734 --without-gnutls don
't use -lgnutls for SSL/TLS support
1735 --without-makeinfo don't require makeinfo
for building manuals
1736 --without-compress-info don
't compress the installed Info pages
1737 --with-pkg-config-prog=PATH
1738 path to pkg-config for finding GTK and librsvg
1739 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1740 /usr/lib, or /usr/lib64 on some platforms.
1741 --with-gameuser=USER user for shared game score files
1742 --with-gnustep-conf=PATH
1743 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1744 or /etc/GNUstep/GNUstep.conf
1745 --with-x use the X Window System
1747 Some influential environment variables:
1748 CC C compiler command
1749 CFLAGS C compiler flags
1750 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1751 nonstandard directory <lib dir>
1752 LIBS libraries to pass to the linker, e.g. -l<library>
1753 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1754 you have headers in a nonstandard directory <include dir>
1756 XMKMF Path to xmkmf, Makefile generator for X Window System
1758 Use these variables to override the choices made by `configure' or to
help
1759 it to
find libraries and programs with nonstandard names
/locations.
1761 Report bugs to the package provider.
1766 if test "$ac_init_help" = "recursive"; then
1767 # If there are subdirs, report their specific --help.
1768 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1769 test -d "$ac_dir" ||
1770 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1775 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1777 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1782 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1785 ac_abs_top_builddir
=$ac_pwd
1786 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir
=$ac_top_build_prefix
1791 .
) # We are building in place.
1793 ac_top_srcdir
=$ac_top_builddir_sub
1794 ac_abs_top_srcdir
=$ac_pwd ;;
1795 [\\/]* | ?
:[\\/]* ) # Absolute name.
1796 ac_srcdir
=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir
=$srcdir
1798 ac_abs_top_srcdir
=$srcdir ;;
1800 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1804 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1806 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1807 # Check for guested configure.
1808 if test -f "$ac_srcdir/configure.gnu"; then
1810 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811 elif test -f "$ac_srcdir/configure"; then
1813 $SHELL "$ac_srcdir/configure" --help=recursive
1815 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1821 test -n "$ac_init_help" && exit $ac_status
1822 if $ac_init_version; then
1824 emacs configure
24.0.50
1825 generated by GNU Autoconf
2.68
1827 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1828 This configure
script is free software
; the Free Software Foundation
1829 gives unlimited permission to copy
, distribute and modify it.
1834 ## ------------------------ ##
1835 ## Autoconf initialization. ##
1836 ## ------------------------ ##
1838 # ac_fn_c_try_compile LINENO
1839 # --------------------------
1840 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_compile
()
1843 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1844 rm -f conftest.
$ac_objext
1845 if { { ac_try
="$ac_compile"
1847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_compile") 2>conftest.err
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest.$ac_objext; then :
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_c_try_compile
1876 # ac_fn_c_try_cpp LINENO
1877 # ----------------------
1878 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_cpp conftest.$ac_ext"
1884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1885 *) ac_try_echo
=$ac_try;;
1887 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1891 if test -s conftest.err
; then
1892 grep -v '^ *+' conftest.err
>conftest.er1
1893 cat conftest.er1
>&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } > conftest.i
&& {
1898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.
$ac_ext >&5
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status
$ac_retval
1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916 # the include files in INCLUDES and setting the cache variable VAR
1918 ac_fn_c_check_header_mongrel
()
1920 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1921 if eval \
${$3+:} false
; then :
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \
${$3+:} false
; then :
1925 $as_echo_n "(cached) " >&6
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1931 # Is the header compilable?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933 $as_echo_n "checking $2 usability... " >&6; }
1934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1939 if ac_fn_c_try_compile
"$LINENO"; then :
1940 ac_header_compiler
=yes
1942 ac_header_compiler
=no
1944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946 $as_echo "$ac_header_compiler" >&6; }
1948 # Is the header present?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950 $as_echo_n "checking $2 presence... " >&6; }
1951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 if ac_fn_c_try_cpp
"$LINENO"; then :
1956 ac_header_preproc
=yes
1958 ac_header_preproc
=no
1960 rm -f conftest.err conftest.i conftest.
$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962 $as_echo "$ac_header_preproc" >&6; }
1964 # So? What about this header?
1965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \
${$3+:} false
; then :
1988 $as_echo_n "(cached) " >&6
1990 eval "$3=\$ac_header_compiler"
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_header_mongrel
2000 # ac_fn_c_try_run LINENO
2001 # ----------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2003 # that executables *can* be run.
2006 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2007 if { { ac_try
="$ac_link"
2009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>&5
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2018 { { case "(($ac_try" in
2019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2020 *) ac_try_echo
=$ac_try;;
2022 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_try") 2>&5
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; }; }; then :
2030 $as_echo "$as_me: program exited with status $ac_status" >&5
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.
$ac_ext >&5
2034 ac_retval
=$ac_status
2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 as_fn_set_status
$ac_retval
2042 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2043 # -------------------------------------------------------
2044 # Tests whether HEADER exists and can be compiled using the include files in
2045 # INCLUDES, setting the cache variable VAR accordingly.
2046 ac_fn_c_check_header_compile
()
2048 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \
${$3+:} false
; then :
2052 $as_echo_n "(cached) " >&6
2054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2059 if ac_fn_c_try_compile
"$LINENO"; then :
2064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_header_compile
2073 # ac_fn_c_try_link LINENO
2074 # -----------------------
2075 # Try to link conftest.$ac_ext, and return whether this succeeded.
2078 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2079 rm -f conftest.
$ac_objext conftest
$ac_exeext
2080 if { { ac_try
="$ac_link"
2082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_link") 2>conftest.err
2089 if test -s conftest.err; then
2090 grep -v '^ *+' conftest.err >conftest.er1
2091 cat conftest.er1 >&5
2092 mv -f conftest.er1 conftest.err
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; } && {
2096 test -z "$ac_c_werror_flag" ||
2097 test ! -s conftest.err
2098 } && test -s conftest$ac_exeext && {
2099 test "$cross_compiling" = yes ||
2100 $as_test_x conftest$ac_exeext
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2109 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2110 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2111 # interfere with the next link command; also delete a directory that is
2112 # left behind by Apple's compiler. We do this before executing the actions.
2113 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 as_fn_set_status $ac_retval
2117 } # ac_fn_c_try_link
2119 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2120 # ---------------------------------------------
2121 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2123 ac_fn_c_check_decl ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2127 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2129 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 #ifndef $as_decl_name
2141 (void) $as_decl_use;
2143 (void) $as_decl_name;
2151 if ac_fn_c_try_compile "$LINENO"; then :
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 } # ac_fn_c_check_decl
2165 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2166 # ----------------------------------------------
2167 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2168 ac_fn_c_check_header_preproc ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if eval \${$3+:} false; then :
2174 $as_echo_n "(cached) " >&6
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 if ac_fn_c_try_cpp "$LINENO"; then :
2185 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 } # ac_fn_c_check_header_preproc
2194 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2195 # ----------------------------------------------------
2196 # Tries to find if the field MEMBER exists in type AGGR, after including
2197 # INCLUDES, setting cache variable VAR accordingly.
2198 ac_fn_c_check_member ()
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2202 $as_echo_n "checking for $2.$3... " >&6; }
2203 if eval \${$4+:} false; then :
2204 $as_echo_n "(cached) " >&6
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2219 if ac_fn_c_try_compile "$LINENO"; then :
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2229 if (sizeof ac_aggr.$3)
2235 if ac_fn_c_try_compile "$LINENO"; then :
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 } # ac_fn_c_check_member
2251 # ac_fn_c_check_func LINENO FUNC VAR
2252 # ----------------------------------
2253 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2254 ac_fn_c_check_func ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if eval \${$3+:} false; then :
2260 $as_echo_n "(cached) " >&6
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2264 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2266 #define $2 innocuous_$2
2268 /* System header to define __stub macros and hopefully few prototypes,
2269 which can conflict with char $2 (); below.
2270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2271 <limits.h> exists even on freestanding compilers. */
2274 # include <limits.h>
2276 # include <assert.h>
2281 /* Override any GCC internal prototype to avoid an error.
2282 Use char because int might match the return type of a GCC
2283 builtin and then its argument prototype would still apply. */
2288 /* The GNU C library defines this for functions which it implements
2289 to always fail with ENOSYS. Some functions are actually named
2290 something starting with __ and the normal name is an alias. */
2291 #if defined __stub_$2 || defined __stub___$2
2303 if ac_fn_c_try_link "$LINENO"; then :
2308 rm -f core conftest.err conftest.$ac_objext \
2309 conftest$ac_exeext conftest.$ac_ext
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313 $as_echo "$ac_res" >&6; }
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2316 } # ac_fn_c_check_func
2318 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2319 # -------------------------------------------
2320 # Tests whether TYPE exists after having included INCLUDES, setting cache
2321 # variable VAR accordingly.
2322 ac_fn_c_check_type ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2343 if ac_fn_c_try_compile "$LINENO"; then :
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2356 if ac_fn_c_try_compile "$LINENO"; then :
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 } # ac_fn_c_check_type
2371 cat >config.log <<_ACEOF
2372 This file contains any messages produced by compilers while
2373 running configure, to aid debugging if configure makes a mistake.
2375 It was created by emacs $as_me 24.0.50, which was
2376 generated by GNU Autoconf 2.68. Invocation command line was
2388 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2389 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2390 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2391 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2392 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2394 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2395 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2397 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2398 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2399 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2400 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2401 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2402 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2403 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 $as_echo "PATH: $as_dir"
2428 # Keep a trace of the command line.
2429 # Strip out --no-create and --no-recursion so they do not pile up.
2430 # Strip out --silent because we don't want to record it for future runs.
2431 # Also quote any args containing shell meta-characters.
2432 # Make two passes to allow for proper duplicate-argument suppression.
2436 ac_must_keep_next=false
2442 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2444 | -silent | --silent | --silen | --sile | --sil)
2447 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2450 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2452 as_fn_append ac_configure_args1 " '$ac_arg'"
2453 if test $ac_must_keep_next = true; then
2454 ac_must_keep_next=false # Got value, back to normal.
2457 *=* | --config-cache | -C | -disable-* | --disable-* \
2458 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2459 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2460 | -with-* | --with-* | -without-* | --without-* | --x)
2461 case "$ac_configure_args0 " in
2462 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2465 -* ) ac_must_keep_next=true ;;
2468 as_fn_append ac_configure_args " '$ac_arg'"
2473 { ac_configure_args0=; unset ac_configure_args0;}
2474 { ac_configure_args1=; unset ac_configure_args1;}
2476 # When interrupted or exit'd, cleanup temporary files, and complete
2477 # config.log. We remove comments because anyway the quotes in there
2478 # would cause problems or look ugly.
2479 # WARNING: Use '\'' to represent an apostrophe within the trap.
2480 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2481 trap 'exit_status=$?
2482 # Save into config.log some information that might help in debugging.
2486 $as_echo "## ---------------- ##
2487 ## Cache variables. ##
2488 ## ---------------- ##"
2490 # The following way of writing the cache mishandles newlines in values,
2492 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2493 eval ac_val=\$$ac_var
2497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2501 _ | IFS | as_nl) ;; #(
2502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2503 *) { eval $ac_var=; unset $ac_var;} ;;
2508 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2509 *${as_nl}ac_space=\ *)
2511 "s/'\''/'\''\\\\'\'''\''/g;
2512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2522 $as_echo "## ----------------- ##
2523 ## Output variables. ##
2524 ## ----------------- ##"
2526 for ac_var in $ac_subst_vars
2528 eval ac_val=\$$ac_var
2530 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532 $as_echo "$ac_var='\''$ac_val'\''"
2536 if test -n "$ac_subst_files"; then
2537 $as_echo "## ------------------- ##
2538 ## File substitutions. ##
2539 ## ------------------- ##"
2541 for ac_var in $ac_subst_files
2543 eval ac_val=\$$ac_var
2545 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2547 $as_echo "$ac_var='\''$ac_val'\''"
2552 if test -s confdefs.h; then
2553 $as_echo "## ----------- ##
2560 test "$ac_signal" != 0 &&
2561 $as_echo "$as_me: caught signal $ac_signal"
2562 $as_echo "$as_me: exit $exit_status"
2564 rm -f core *.core core.conftest.* &&
2565 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2568 for ac_signal in 1 2 13 15; do
2569 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2573 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2574 rm -f -r conftest* confdefs.h
2576 $as_echo "/* confdefs.h */" > confdefs.h
2578 # Predefined preprocessor variables.
2580 cat >>confdefs.h <<_ACEOF
2581 #define PACKAGE_NAME "$PACKAGE_NAME"
2584 cat >>confdefs.h <<_ACEOF
2585 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_STRING "$PACKAGE_STRING"
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_URL "$PACKAGE_URL"
2605 # Let the site file select an alternate cache file if it wants to.
2606 # Prefer an explicitly selected file to automatically selected ones.
2609 if test -n "$CONFIG_SITE"; then
2610 # We do not want a PATH search for config.site.
2611 case $CONFIG_SITE in #((
2612 -*) ac_site_file1=./$CONFIG_SITE;;
2613 */*) ac_site_file1=$CONFIG_SITE;;
2614 *) ac_site_file1=./$CONFIG_SITE;;
2616 elif test "x$prefix" != xNONE; then
2617 ac_site_file1=$prefix/share/config.site
2618 ac_site_file2=$prefix/etc/config.site
2620 ac_site_file1=$ac_default_prefix/share/config.site
2621 ac_site_file2=$ac_default_prefix/etc/config.site
2623 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2625 test "x$ac_site_file" = xNONE && continue
2626 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2628 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2629 sed 's/^/| /' "$ac_site_file" >&5
2631 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 as_fn_error $? "failed to load site
script $ac_site_file
2634 See \
`config.log' for more details" "$LINENO" 5; }
2638 if test -r "$cache_file"; then
2639 # Some versions of bash will fail to source /dev/null (special files
2640 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2641 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2643 $as_echo "$as_me: loading cache $cache_file" >&6;}
2645 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2646 *) . "./$cache_file";;
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2651 $as_echo "$as_me: creating cache $cache_file" >&6;}
2655 as_fn_append ac_header_list " stdlib.h"
2656 as_fn_append ac_header_list " unistd.h"
2657 as_fn_append ac_header_list " sys/param.h"
2658 gl_getopt_required=GNU
2659 as_fn_append ac_header_list " getopt.h"
2660 as_fn_append ac_func_list " alarm"
2661 as_fn_append ac_header_list " stddef.h"
2662 as_fn_append ac_header_list " time.h"
2663 as_fn_append ac_header_list " sys/time.h"
2664 as_fn_append ac_func_list " localtime_r"
2665 # Check that the precious variables saved in the cache have kept the same
2667 ac_cache_corrupted=false
2668 for ac_var in $ac_precious_vars; do
2669 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2670 eval ac_new_set=\$ac_env_${ac_var}_set
2671 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2672 eval ac_new_val=\$ac_env_${ac_var}_value
2673 case $ac_old_set,$ac_new_set in
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2676 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2677 ac_cache_corrupted=: ;;
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2680 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2684 if test "x$ac_old_val" != "x$ac_new_val"; then
2685 # differences in whitespace do not lead to failure.
2686 ac_old_val_w=`echo x
$ac_old_val`
2687 ac_new_val_w=`echo x
$ac_new_val`
2688 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2690 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2691 ac_cache_corrupted=:
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2694 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2695 eval $ac_var=\$ac_old_val
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2698 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2700 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2703 # Pass precious variables to config.status.
2704 if test "$ac_new_set" = set; then
2706 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2707 *) ac_arg=$ac_var=$ac_new_val ;;
2709 case " $ac_configure_args " in
2710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2711 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2715 if $ac_cache_corrupted; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2719 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2720 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2722 ## -------------------- ##
2723 ## Main body of script. ##
2724 ## -------------------- ##
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2733 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2736 am__api_version='1.11'
2739 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2740 if test -f "$ac_dir/install-sh"; then
2742 ac_install_sh="$ac_aux_dir/install-sh -c"
2744 elif test -f "$ac_dir/install.sh"; then
2746 ac_install_sh="$ac_aux_dir/install.sh -c"
2748 elif test -f "$ac_dir/shtool"; then
2750 ac_install_sh="$ac_aux_dir/shtool install -c"
2754 if test -z "$ac_aux_dir"; then
2755 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2758 # These three variables are undocumented and unsupported,
2759 # and are intended to be withdrawn in a future Autoconf release.
2760 # They can cause serious problems if a builder's source tree is in a directory
2761 # whose full name contains unusual characters.
2762 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2763 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2764 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2767 # Find a good install program. We prefer a C program (faster),
2768 # so one script is as good as another. But avoid the broken or
2769 # incompatible versions:
2770 # SysV /etc/install, /usr/sbin/install
2771 # SunOS /usr/etc/install
2772 # IRIX /sbin/install
2774 # AmigaOS /C/install, which installs bootblocks on floppy discs
2775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2778 # OS/2's system install, which has a completely different semantic
2779 # ./install, which can be erroneously created by make from ./install.sh.
2780 # Reject install programs that cannot install multiple files.
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2782 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2783 if test -z "$INSTALL"; then
2784 if ${ac_cv_path_install+:} false; then :
2785 $as_echo_n "(cached) " >&6
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 # Account for people who put trailing slashes in PATH elements.
2793 case $as_dir/ in #((
2794 ./ | .// | /[cC]/* | \
2795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2796 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2799 # OSF1 and SCO ODT 3.0 have their own names for install.
2800 # Don't use installbsd from OSF since it installs stuff as root
2802 for ac_prog in ginstall scoinst install; do
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2805 if test $ac_prog = install &&
2806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807 # AIX install. It has an incompatible calling convention.
2809 elif test $ac_prog = install &&
2810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2811 # program-specific install script used by HP pwplus--don't use.
2814 rm -rf conftest.one conftest.two conftest.dir
2815 echo one > conftest.one
2816 echo two > conftest.two
2818 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2819 test -s conftest.one && test -s conftest.two &&
2820 test -s conftest.dir/conftest.one &&
2821 test -s conftest.dir/conftest.two
2823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2836 rm -rf conftest.one conftest.two conftest.dir
2839 if test "${ac_cv_path_install+set}" = set; then
2840 INSTALL=$ac_cv_path_install
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for INSTALL within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 INSTALL=$ac_install_sh
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2850 $as_echo "$INSTALL" >&6; }
2852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2853 # It thinks the first close brace ends the variable substitution.
2854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2861 $as_echo_n "checking whether build environment is sane... " >&6; }
2864 echo timestamp > conftest.file
2865 # Reject unsafe characters in $srcdir or the absolute working directory
2866 # name. Accept space and tab only in the latter.
2870 *[\\\"\#\$\&\'\`$am_lf]*)
2871 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2874 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2875 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2878 # Do `set' in a subshell so we don't clobber the current shell's
2879 # arguments. Must try -L first in case configure is actually a
2880 # symlink; some systems play weird games with the mod time of symlinks
2881 # (eg FreeBSD returns the mod time of the symlink's containing
2884 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2885 if test "$*" = "X"; then
2887 set X
`ls -t "$srcdir/configure" conftest.file`
2890 if test "$*" != "X $srcdir/configure conftest.file" \
2891 && test "$*" != "X conftest.file $srcdir/configure"; then
2893 # If neither matched, then we have a broken ls. This can happen
2894 # if, for instance, CONFIG_SHELL is bash and it inherits a
2895 # broken ls alias from the environment. This has actually
2896 # happened. Such a system could not be considered "sane".
2897 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2898 alias in your environment" "$LINENO" 5
2901 test "$2" = conftest.
file
2907 as_fn_error $?
"newly created file is older than distributed files!
2908 Check your system clock" "$LINENO" 5
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912 test "$program_prefix" != NONE
&&
2913 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2914 # Use a double $ so make ignores it.
2915 test "$program_suffix" != NONE
&&
2916 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2917 # Double any \ or $.
2918 # By default was `s,x,x', remove it if useless.
2919 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2920 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2922 # expand $ac_aux_dir to an absolute path
2923 am_aux_dir
=`cd $ac_aux_dir && pwd`
2925 if test x
"${MISSING+set}" != xset
; then
2928 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2930 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2933 # Use eval to expand $SHELL
2934 if eval "$MISSING --run true"; then
2935 am_missing_run
="$MISSING --run "
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2939 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2942 if test x
"${install_sh}" != xset
; then
2945 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2947 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2951 # Installed binaries are usually stripped using `strip' when the user
2952 # run `make install-strip'. However `strip' might not be the right
2953 # tool to use in cross-compilation environments, therefore Automake
2954 # will honor the `STRIP' environment variable to overrule this program.
2955 if test "$cross_compiling" != no
; then
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2958 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_STRIP+:} false
; then :
2962 $as_echo_n "(cached) " >&6
2964 if test -n "$STRIP"; then
2965 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir
=.
2972 for ac_exec_ext
in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 STRIP
=$ac_cv_prog_STRIP
2985 if test -n "$STRIP"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2987 $as_echo "$STRIP" >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2995 if test -z "$ac_cv_prog_STRIP"; then
2997 # Extract the first word of "strip", so it can be a program name with args.
2998 set dummy strip
; ac_word
=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3002 $as_echo_n "(cached) " >&6
3004 if test -n "$ac_ct_STRIP"; then
3005 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3011 test -z "$as_dir" && as_dir
=.
3012 for ac_exec_ext
in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_STRIP
="strip"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3025 if test -n "$ac_ct_STRIP"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3027 $as_echo "$ac_ct_STRIP" >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3033 if test "x$ac_ct_STRIP" = x
; then
3036 case $cross_compiling:$ac_tool_warned in
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040 ac_tool_warned
=yes ;;
3045 STRIP
="$ac_cv_prog_STRIP"
3049 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3052 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3053 if test -z "$MKDIR_P"; then
3054 if ${ac_cv_path_mkdir+:} false
; then :
3055 $as_echo_n "(cached) " >&6
3057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3058 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3061 test -z "$as_dir" && as_dir
=.
3062 for ac_prog
in mkdir gmkdir
; do
3063 for ac_exec_ext
in '' $ac_executable_extensions; do
3064 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3065 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3066 'mkdir (GNU coreutils) '* | \
3067 'mkdir (coreutils) '* | \
3068 'mkdir (fileutils) '4.1*)
3069 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3079 test -d .
/--version && rmdir .
/--version
3080 if test "${ac_cv_path_mkdir+set}" = set; then
3081 MKDIR_P
="$ac_cv_path_mkdir -p"
3083 # As a last resort, use the slow shell script. Don't cache a
3084 # value for MKDIR_P within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the value is a relative name.
3087 MKDIR_P
="$ac_install_sh -d"
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3091 $as_echo "$MKDIR_P" >&6; }
3096 [\\/$
]* | ?
:[\\/]*) ;;
3097 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3100 for ac_prog
in gawk mawk nawk
awk
3102 # Extract the first word of "$ac_prog", so it can be a program name with args.
3103 set dummy
$ac_prog; ac_word
=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_AWK+:} false
; then :
3107 $as_echo_n "(cached) " >&6
3109 if test -n "$AWK"; then
3110 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir
=.
3117 for ac_exec_ext
in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_AWK
="$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 if test -n "$AWK"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132 $as_echo "$AWK" >&6; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3139 test -n "$AWK" && break
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3147 $as_echo_n "(cached) " >&6
3149 cat >conftest.
make <<\_ACEOF
3152 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3154 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3155 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3159 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3163 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3170 SET_MAKE
="MAKE=${MAKE-make}"
3173 rm -rf .tst
2>/dev
/null
3174 mkdir .tst
2>/dev
/null
3175 if test -d .tst
; then
3180 rmdir .tst
2>/dev
/null
3182 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184 # is not polluted with repeated "-I."
3185 am__isrc
=' -I$(srcdir)'
3186 # test to see if srcdir already configured
3187 if test -f $srcdir/config.status
; then
3188 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3192 # test whether we have cygpath
3193 if test -z "$CYGPATH_W"; then
3194 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3195 CYGPATH_W
='cygpath -w'
3202 # Define the identity of the package.
3207 cat >>confdefs.h
<<_ACEOF
3208 #define PACKAGE "$PACKAGE"
3212 cat >>confdefs.h
<<_ACEOF
3213 #define VERSION "$VERSION"
3216 # Some tools Automake needs.
3218 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3221 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3224 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3227 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3230 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3232 # We need awk for the "check" target. The system "awk" is bad on
3234 # Always define AMTAR for backward compatibility.
3236 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3238 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3247 lispdir
='${datadir}/emacs/${version}/lisp'
3248 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3249 '${datadir}/emacs/site-lisp'
3250 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3251 etcdir
='${datadir}/emacs/${version}/etc'
3252 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3253 docdir
='${datadir}/emacs/${version}/etc'
3254 gamedir
='${localstatedir}/games/emacs'
3259 # Check whether --with-pop was given.
3260 if test "${with_pop+set}" = set; then :
3266 if test "$with_pop" = yes; then
3267 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3272 # Check whether --with-kerberos was given.
3273 if test "${with_kerberos+set}" = set; then :
3274 withval
=$with_kerberos;
3279 if test "$with_kerberos" != no
; then
3280 $as_echo "#define KERBEROS 1" >>confdefs.h
3285 # Check whether --with-kerberos5 was given.
3286 if test "${with_kerberos5+set}" = set; then :
3287 withval
=$with_kerberos5;
3292 if test "${with_kerberos5}" != no
; then
3293 if test "${with_kerberos}" = no
; then
3295 $as_echo "#define KERBEROS 1" >>confdefs.h
3299 $as_echo "#define KERBEROS5 1" >>confdefs.h
3304 # Check whether --with-hesiod was given.
3305 if test "${with_hesiod+set}" = set; then :
3306 withval
=$with_hesiod;
3311 if test "$with_hesiod" != no
; then
3313 $as_echo "#define HESIOD 1" >>confdefs.h
3318 # Check whether --with-mmdf was given.
3319 if test "${with_mmdf+set}" = set; then :
3325 if test "$with_mmdf" != no
; then
3327 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3332 # Check whether --with-mail-unlink was given.
3333 if test "${with_mail_unlink+set}" = set; then :
3334 withval
=$with_mail_unlink;
3339 if test "$with_mail_unlink" != no
; then
3341 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3346 # Check whether --with-mailhost was given.
3347 if test "${with_mailhost+set}" = set; then :
3348 withval
=$with_mailhost;
3349 cat >>confdefs.h
<<_ACEOF
3350 #define MAILHOST "$withval"
3357 # Check whether --with-sound was given.
3358 if test "${with_sound+set}" = set; then :
3359 withval
=$with_sound;
3366 # Check whether --with-sync-input was given.
3367 if test "${with_sync_input+set}" = set; then :
3368 withval
=$with_sync_input;
3373 if test "$with_sync_input" = yes; then
3375 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3380 # Check whether --with-x-toolkit was given.
3381 if test "${with_x_toolkit+set}" = set; then :
3382 withval
=$with_x_toolkit; case "${withval}" in
3383 y | ye |
yes ) val
=gtk
;;
3385 l | lu | luc | luci | lucid
) val
=lucid
;;
3386 a |
at | ath | athe | athen | athena
) val
=athena
;;
3387 m | mo | mot | moti | motif
) val
=motif
;;
3388 g | gt | gtk
) val
=gtk
;;
3391 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3392 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3393 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3402 # Check whether --with-xpm was given.
3403 if test "${with_xpm+set}" = set; then :
3410 # Check whether --with-jpeg was given.
3411 if test "${with_jpeg+set}" = set; then :
3418 # Check whether --with-tiff was given.
3419 if test "${with_tiff+set}" = set; then :
3426 # Check whether --with-gif was given.
3427 if test "${with_gif+set}" = set; then :
3434 # Check whether --with-png was given.
3435 if test "${with_png+set}" = set; then :
3442 # Check whether --with-rsvg was given.
3443 if test "${with_rsvg+set}" = set; then :
3450 # Check whether --with-xml2 was given.
3451 if test "${with_xml2+set}" = set; then :
3458 # Check whether --with-imagemagick was given.
3459 if test "${with_imagemagick+set}" = set; then :
3460 withval
=$with_imagemagick;
3462 with_imagemagick
=yes
3467 # Check whether --with-xft was given.
3468 if test "${with_xft+set}" = set; then :
3475 # Check whether --with-libotf was given.
3476 if test "${with_libotf+set}" = set; then :
3477 withval
=$with_libotf;
3483 # Check whether --with-m17n-flt was given.
3484 if test "${with_m17n_flt+set}" = set; then :
3485 withval
=$with_m17n_flt;
3492 # Check whether --with-toolkit-scroll-bars was given.
3493 if test "${with_toolkit_scroll_bars+set}" = set; then :
3494 withval
=$with_toolkit_scroll_bars;
3496 with_toolkit_scroll_bars
=yes
3500 # Check whether --with-xaw3d was given.
3501 if test "${with_xaw3d+set}" = set; then :
3502 withval
=$with_xaw3d;
3508 # Check whether --with-xim was given.
3509 if test "${with_xim+set}" = set; then :
3516 # Check whether --with-ns was given.
3517 if test "${with_ns+set}" = set; then :
3525 # Check whether --with-gpm was given.
3526 if test "${with_gpm+set}" = set; then :
3533 # Check whether --with-dbus was given.
3534 if test "${with_dbus+set}" = set; then :
3541 # Check whether --with-gconf was given.
3542 if test "${with_gconf+set}" = set; then :
3543 withval
=$with_gconf;
3549 # Check whether --with-selinux was given.
3550 if test "${with_selinux+set}" = set; then :
3551 withval
=$with_selinux;
3557 # Check whether --with-gnutls was given.
3558 if test "${with_gnutls+set}" = set; then :
3559 withval
=$with_gnutls;
3565 ## For the times when you want to build Emacs but don't have
3566 ## a suitable makeinfo, and can live without the manuals.
3568 # Check whether --with-makeinfo was given.
3569 if test "${with_makeinfo+set}" = set; then :
3570 withval
=$with_makeinfo;
3576 ## This is an option because I do not know if all info/man support
3577 ## compressed files, nor how to test if they do so.
3579 # Check whether --with-compress-info was given.
3580 if test "${with_compress_info+set}" = set; then :
3581 withval
=$with_compress_info;
3583 with_compress_info
=yes
3586 if test $with_compress_info = yes; then
3594 # Check whether --with-pkg-config-prog was given.
3595 if test "${with_pkg_config_prog+set}" = set; then :
3596 withval
=$with_pkg_config_prog;
3599 if test "X${with_pkg_config_prog}" != X
; then
3600 if test "${with_pkg_config_prog}" != yes; then
3601 PKG_CONFIG
="${with_pkg_config_prog}"
3607 # Check whether --with-crt-dir was given.
3608 if test "${with_crt_dir+set}" = set; then :
3609 withval
=$with_crt_dir;
3612 CRT_DIR
="${with_crt_dir}"
3615 # Check whether --with-gameuser was given.
3616 if test "${with_gameuser+set}" = set; then :
3617 withval
=$with_gameuser;
3620 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3621 && gameuser
="${with_gameuser}"
3622 test "X$gameuser" = X
&& gameuser
=games
3625 # Check whether --with-gnustep-conf was given.
3626 if test "${with_gnustep_conf+set}" = set; then :
3627 withval
=$with_gnustep_conf;
3630 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3631 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3632 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3633 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3635 # Check whether --enable-ns-self-contained was given.
3636 if test "${enable_ns_self_contained+set}" = set; then :
3637 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3639 EN_NS_SELF_CONTAINED
=yes
3643 # Check whether --enable-asserts was given.
3644 if test "${enable_asserts+set}" = set; then :
3645 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3651 # Check whether --enable-maintainer-mode was given.
3652 if test "${enable_maintainer_mode+set}" = set; then :
3653 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3655 USE_MAINTAINER_MODE
=no
3658 if test $USE_MAINTAINER_MODE = yes; then
3665 # Check whether --enable-locallisppath was given.
3666 if test "${enable_locallisppath+set}" = set; then :
3667 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3669 elif test "${enableval}" != "yes"; then
3670 locallisppath
=${enableval}
3675 # Check whether --enable-checking was given.
3676 if test "${enable_checking+set}" = set; then :
3677 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3680 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3681 for check
in $ac_checking_flags
3684 # these set all the flags to specific states
3685 yes) ac_enable_checking
=1 ;;
3686 no
) ac_enable_checking
= ;
3687 ac_gc_check_stringbytes
= ;
3688 ac_gc_check_string_overrun
= ;
3689 ac_gc_check_string_free_list
= ;
3690 ac_xmalloc_overrun
= ;
3691 ac_gc_check_cons_list
= ;;
3692 all
) ac_enable_checking
=1 ;
3693 ac_gc_check_stringbytes
=1 ;
3694 ac_gc_check_string_overrun
=1 ;
3695 ac_gc_check_string_free_list
=1 ;
3696 ac_xmalloc_overrun
=1 ;
3697 ac_gc_check_cons_list
=1 ;;
3698 # these enable particular checks
3699 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3700 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3701 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3702 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3703 conslist
) ac_gc_check_cons_list
=1 ;;
3704 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3709 if test x
$ac_enable_checking != x
; then
3711 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3714 if test x
$ac_gc_check_stringbytes != x
; then
3716 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3719 if test x
$ac_gc_check_stringoverrun != x
; then
3721 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3724 if test x
$ac_gc_check_string_free_list != x
; then
3726 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3729 if test x
$ac_xmalloc_overrun != x
; then
3731 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3734 if test x
$ac_gc_check_cons_list != x
; then
3736 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3740 # Check whether --enable-use-lisp-union-type was given.
3741 if test "${enable_use_lisp_union_type+set}" = set; then :
3742 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3744 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3751 # Check whether --enable-profiling was given.
3752 if test "${enable_profiling+set}" = set; then :
3753 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
3756 if test x
$ac_enable_profiling != x
; then
3757 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3763 # Check whether --enable-autodepend was given.
3764 if test "${enable_autodepend+set}" = set; then :
3765 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3767 ac_enable_autodepend
=yes
3771 #### Make srcdir absolute, if it isn't already. It's important to
3772 #### avoid running the path through pwd unnecessarily, since pwd can
3773 #### give you automounter prefixes, which can go away. We do all this
3774 #### so Emacs can find its files when run uninstalled.
3775 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3780 ## We may be able to use the $PWD environment variable to make this
3781 ## absolute. But sometimes PWD is inaccurate.
3782 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3783 ## but that tested only for a well-formed and valid PWD,
3784 ## it did not object when PWD was well-formed and valid but just wrong.
3785 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3789 srcdir
="`(cd ${srcdir}; pwd)`"
3792 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3795 #### Check if the source directory already has a configured system in it.
3796 if test `pwd` != `(cd ${srcdir} && pwd)` \
3797 && test -f "${srcdir}/src/config.h" ; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3799 as a build directory right now; it has been configured in its own
3800 right. To configure in another directory as well, you MUST
3801 use GNU make. If you do not have GNU make, then you must
3802 now do \`make distclean' in ${srcdir},
3803 and then run $0 again." >&5
3804 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3805 as a build directory right now; it has been configured in its own
3806 right. To configure in another directory as well, you MUST
3807 use GNU make. If you do not have GNU make, then you must
3808 now do \`make distclean' in ${srcdir},
3809 and then run $0 again." >&2;}
3812 #### Given the configuration name, set machfile and opsysfile to the
3813 #### names of the m/*.h and s/*.h files we should use.
3815 ### Canonicalize the configuration name.
3817 # Make sure we can run config.sub.
3818 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3819 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3822 $as_echo_n "checking build system type... " >&6; }
3823 if ${ac_cv_build+:} false
; then :
3824 $as_echo_n "(cached) " >&6
3826 ac_build_alias
=$build_alias
3827 test "x$ac_build_alias" = x
&&
3828 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3829 test "x$ac_build_alias" = x
&&
3830 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3831 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3832 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3836 $as_echo "$ac_cv_build" >&6; }
3837 case $ac_cv_build in
3839 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3842 ac_save_IFS
=$IFS; IFS
='-'
3848 # Remember, the first character of IFS is used to create $*,
3849 # except with old shells:
3852 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3856 $as_echo_n "checking host system type... " >&6; }
3857 if ${ac_cv_host+:} false
; then :
3858 $as_echo_n "(cached) " >&6
3860 if test "x$host_alias" = x
; then
3861 ac_cv_host
=$ac_cv_build
3863 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3864 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3869 $as_echo "$ac_cv_host" >&6; }
3872 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3875 ac_save_IFS
=$IFS; IFS
='-'
3881 # Remember, the first character of IFS is used to create $*,
3882 # except with old shells:
3885 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3889 configuration
=${host_alias-${build_alias-$host}}
3893 ### If you add support for a new configuration, add code to this
3894 ### switch statement to recognize your configuration name and select
3895 ### the appropriate operating system and machine description files.
3897 ### You would hope that you could choose an m/*.h file pretty much
3898 ### based on the machine portion of the configuration name, and an s/*.h
3899 ### file based on the operating system portion. However, it turns out
3900 ### that each m/*.h file is pretty manufacturer-specific - for
3901 ### example mips.h is MIPS
3902 ### So we basically have to have a special case for each
3903 ### configuration name.
3905 ### As far as handling version numbers on operating systems is
3906 ### concerned, make sure things will fail in a fixable way. If
3907 ### /etc/MACHINES doesn't say anything about version numbers, be
3908 ### prepared to handle anything reasonably. If version numbers
3909 ### matter, be sure /etc/MACHINES says something about it.
3911 machine
='' opsys
='' unported
=no
3912 case "${canonical}" in
3917 case ${canonical} in
3918 alpha
*) machine
=alpha
;;
3919 s390-
*) machine
=ibms390
;;
3920 s390x-
*) machine
=ibms390x
;;
3921 powerpc
*) machine
=macppc
;;
3922 sparc
*) machine
=sparc
;;
3923 ia64
*) machine
=ia64
;;
3924 m68k
*) machine
=m68k
;;
3925 x86_64
*) machine
=amdx86-64
;;
3932 case "${canonical}" in
3933 alpha
*) machine
=alpha
;;
3934 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3935 ia64-
*) machine
=ia64
;;
3936 i
[3456]86-*) machine
=intel386
;;
3937 powerpc-
*) machine
=macppc
;;
3938 sparc-
*) machine
=sparc
;;
3939 sparc64-
*) machine
=sparc
;;
3943 ## FreeBSD kernel + glibc based userland
3946 case "${canonical}" in
3947 alpha
*) machine
=alpha
;;
3948 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3949 ia64-
*) machine
=ia64
;;
3950 i
[3456]86-*) machine
=intel386
;;
3951 powerpc-
*) machine
=macppc
;;
3952 sparc-
*) machine
=sparc
;;
3953 sparc64-
*) machine
=sparc
;;
3960 case "${canonical}" in
3961 alpha
*) machine
=alpha
;;
3962 x86_64-
*) machine
=amdx86-64
;;
3963 i
[3456]86-*) machine
=intel386
;;
3964 m68k-
*) machine
=m68k
;;
3965 powerpc-
*) machine
=macppc
;;
3966 sparc
*-) machine
=sparc
;;
3967 vax-
*) machine
=vax
;;
3974 case "${canonical}" in
3975 alpha
*) machine
=alpha
;;
3976 x86_64-
*) machine
=amdx86-64
;;
3977 i386-
*) machine
=intel386
;;
3978 powerpc-
*) machine
=macppc
;;
3979 sparc
*) machine
=sparc
;;
3980 vax-
*) machine
=vax
;;
3984 ## Apple Darwin / Mac OS X
3986 case "${canonical}" in
3987 i
[3456]86-* ) machine
=intel386
;;
3988 powerpc-
* ) machine
=macppc
;;
3989 x86_64-
* ) machine
=amdx86-64
;;
3993 # Define CPP as follows to make autoconf work correctly.
3994 CPP
="${CC-cc} -E -no-cpp-precomp"
3995 # Use fink packages if available.
3996 if test -d /sw
/include
&& test -d /sw
/lib
; then
3997 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3998 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3999 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4003 ## HP 9000 series 700 and 800, running HP/UX
4004 hppa
*-hp-hpux10.2
* )
4007 hppa
*-hp-hpux1[1-9]* )
4009 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4013 rs6000-ibm-aix4.
[23]* )
4014 machine
=ibmrs6000 opsys
=aix4-2
4016 powerpc-ibm-aix4.
[23]* )
4017 machine
=ibmrs6000 opsys
=aix4-2
4019 rs6000-ibm-aix
[56]* )
4020 machine
=ibmrs6000 opsys
=aix4-2
4022 powerpc-ibm-aix
[56]* )
4023 machine
=ibmrs6000 opsys
=aix4-2
4026 ## Silicon Graphics machines
4029 machine
=iris4d opsys
=irix6-5
4030 # Without defining _LANGUAGE_C, things get masked out in the headers
4031 # so that, for instance, grepping for `free' in stdlib.h fails and
4032 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4033 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4034 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4039 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4040 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4041 case "${canonical}" in
4042 i
[3456]86-*-* ) machine
=intel386
;;
4043 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4044 sparc
* ) machine
=sparc
;;
4047 case "${canonical}" in
4048 *-sunos5.6
* |
*-solaris2.6
* )
4050 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4053 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4055 emacs_check_sunpro_c
=yes
4056 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4058 *-sunos5* |
*-solaris* )
4060 emacs_check_sunpro_c
=yes
4061 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4064 ## Watch out for a compiler that we know will not work.
4065 case "${canonical}" in
4066 *-solaris* |
*-sunos5* )
4067 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4068 ## /usr/ucb/cc doesn't work;
4069 ## we should find some other compiler that does work.
4077 ## Intel 386 machines where we don't care about the manufacturer.
4080 case "${canonical}" in
4081 *-cygwin ) opsys
=cygwin
;;
4082 *-darwin* ) opsys
=darwin
4083 CPP
="${CC-cc} -E -no-cpp-precomp"
4085 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4086 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4087 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4088 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4097 ### If the code above didn't choose an operating system, just choose
4098 ### an operating system based on the configuration name. You really
4099 ### only want to use this when you have no idea what the right
4100 ### operating system is; if you know what operating systems a machine
4101 ### runs, it's cleaner to make it explicit in the case statement
4103 if test x
"${opsys}" = x
; then
4104 case "${canonical}" in
4105 *-gnu* ) opsys
=gnu
;;
4114 if test $unported = yes; then
4115 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4116 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4119 if test -n "$machine"; then
4120 machfile
="m/${machine}.h"
4124 opsysfile
="s/${opsys}.h"
4127 #### Choose a compiler.
4128 test -n "$CC" && cc_specified
=yes
4130 # Save the value of CFLAGS that the user specified.
4131 SPECIFIED_CFLAGS
="$CFLAGS"
4134 ac_cpp
='$CPP $CPPFLAGS'
4135 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4140 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false
; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC
="$CC" # Let the user override the test.
4149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir
=.
4154 for ac_exec_ext
in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4177 if test -z "$ac_cv_prog_CC"; then
4179 # Extract the first word of "gcc", so it can be a program name with args.
4180 set dummy gcc
; ac_word
=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$ac_ct_CC"; then
4187 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir
=.
4194 for ac_exec_ext
in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_ac_ct_CC
="gcc"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4207 if test -n "$ac_ct_CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4209 $as_echo "$ac_ct_CC" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4215 if test "x$ac_ct_CC" = x
; then
4218 case $cross_compiling:$ac_tool_warned in
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4222 ac_tool_warned
=yes ;;
4230 if test -z "$CC"; then
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4233 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_CC+:} false
; then :
4237 $as_echo_n "(cached) " >&6
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC
="$CC" # Let the user override the test.
4242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir
=.
4247 for ac_exec_ext
in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 if test -n "$CC"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4262 $as_echo "$CC" >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4271 if test -z "$CC"; then
4272 # Extract the first word of "cc", so it can be a program name with args.
4273 set dummy cc
; ac_word
=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_CC+:} false
; then :
4277 $as_echo_n "(cached) " >&6
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC
="$CC" # Let the user override the test.
4283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir
=.
4288 for ac_exec_ext
in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4291 ac_prog_rejected
=yes
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 if test $ac_prog_rejected = yes; then
4303 # We found a bogon in the path, so make sure we never use it.
4304 set dummy
$ac_cv_prog_CC
4306 if test $# != 0; then
4307 # We chose a different compiler from the bogus one.
4308 # However, it has the same basename, so the bogon will be chosen
4309 # first if we set CC to just the basename; use the full file name.
4311 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4317 if test -n "$CC"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319 $as_echo "$CC" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4327 if test -z "$CC"; then
4328 if test -n "$ac_tool_prefix"; then
4329 for ac_prog
in cl.exe
4331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4332 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if ${ac_cv_prog_CC+:} false
; then :
4336 $as_echo_n "(cached) " >&6
4338 if test -n "$CC"; then
4339 ac_cv_prog_CC
="$CC" # Let the user override the test.
4341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4345 test -z "$as_dir" && as_dir
=.
4346 for ac_exec_ext
in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 if test -n "$CC"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4361 $as_echo "$CC" >&6; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4368 test -n "$CC" && break
4371 if test -z "$CC"; then
4373 for ac_prog
in cl.exe
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376 set dummy
$ac_prog; ac_word
=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4380 $as_echo_n "(cached) " >&6
4382 if test -n "$ac_ct_CC"; then
4383 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4389 test -z "$as_dir" && as_dir
=.
4390 for ac_exec_ext
in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_ac_ct_CC
="$ac_prog"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4403 if test -n "$ac_ct_CC"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4405 $as_echo "$ac_ct_CC" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4412 test -n "$ac_ct_CC" && break
4415 if test "x$ac_ct_CC" = x
; then
4418 case $cross_compiling:$ac_tool_warned in
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422 ac_tool_warned
=yes ;;
4431 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error $?
"no acceptable C compiler found in \$PATH
4434 See \`config.log' for more details" "$LINENO" 5; }
4436 # Provide some information about the compiler.
4437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4440 for ac_option
in --version -v -V -qversion; do
4441 { { ac_try
="$ac_compiler $ac_option >&5"
4443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 $as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4450 if test -s conftest.err; then
4452 ... rest of stderr output deleted ...
4453 10q' conftest.err >conftest.er1
4454 cat conftest.er1 >&5
4456 rm -f conftest.er1 conftest.err
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4472 ac_clean_files_save=$ac_clean_files
4473 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4474 # Try to create an executable without -o first, disregard a.out.
4475 # It will help us diagnose broken compilers, and finding out an intuition
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4478 $as_echo_n "checking whether the C compiler works... " >&6; }
4479 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4481 # The possible output files:
4482 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4485 for ac_file in $ac_files
4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4494 if { { ac_try="$ac_link_default"
4496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4497 *) ac_try_echo
=$ac_try;;
4499 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link_default") 2>&5
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4506 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4507 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4508 # so that the user can short-circuit this test for compilers unknown to
4510 for ac_file
in $ac_files ''
4512 test -f "$ac_file" ||
continue
4514 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4517 # We found the default executable, but exeext='' is most
4521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4523 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4525 # We set ac_cv_exeext here because the later test for it is not
4526 # safe: cross compilers may not add the suffix if given an `-o'
4527 # argument, so we may need to know it at that point already.
4528 # Even if this section looks crufty: it has the advantage of
4535 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4540 if test -z "$ac_file"; then :
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 $as_echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.
$ac_ext >&5
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error
77 "C compiler cannot create executables
4549 See \`config.log' for more details" "$LINENO" 5; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552 $as_echo "yes" >&6; }
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4555 $as_echo_n "checking for C compiler default output file name... " >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4557 $as_echo "$ac_file" >&6; }
4558 ac_exeext
=$ac_cv_exeext
4560 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4561 ac_clean_files
=$ac_clean_files_save
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4563 $as_echo_n "checking for suffix of executables... " >&6; }
4564 if { { ac_try
="$ac_link"
4566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_link") 2>&5
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; then :
4575 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4576 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4577 # work properly (i.e., refer to `conftest.exe'), while it won't with
4579 for ac_file
in conftest.exe conftest conftest.
*; do
4580 test -f "$ac_file" ||
continue
4582 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4583 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4591 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4592 See \`config.log' for more details" "$LINENO" 5; }
4594 rm -f conftest conftest
$ac_cv_exeext
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4596 $as_echo "$ac_cv_exeext" >&6; }
4598 rm -f conftest.
$ac_ext
4599 EXEEXT
=$ac_cv_exeext
4601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4607 FILE *f = fopen ("conftest.out", "w");
4608 return ferror (f) || fclose (f) != 0;
4614 ac_clean_files
="$ac_clean_files conftest.out"
4615 # Check that the compiler produces executables we can run. If not, either
4616 # the compiler is broken, or we cross compile.
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4618 $as_echo_n "checking whether we are cross compiling... " >&6; }
4619 if test "$cross_compiling" != yes; then
4620 { { ac_try
="$ac_link"
4622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_link") 2>&5
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }
4631 if { ac_try='./conftest$ac_cv_exeext'
4632 { { case "(($ac_try" in
4633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4634 *) ac_try_echo
=$ac_try;;
4636 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637 $as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_try") 2>&5
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }; }; then
4644 if test "$cross_compiling" = maybe
; then
4647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4649 as_fn_error $?
"cannot run C compiled programs.
4650 If you meant to cross compile, use \`--host'.
4651 See \`config.log' for more details" "$LINENO" 5; }
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4656 $as_echo "$cross_compiling" >&6; }
4658 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4659 ac_clean_files
=$ac_clean_files_save
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4661 $as_echo_n "checking for suffix of object files... " >&6; }
4662 if ${ac_cv_objext+:} false
; then :
4663 $as_echo_n "(cached) " >&6
4665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4676 rm -f conftest.o conftest.obj
4677 if { { ac_try
="$ac_compile"
4679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compile") 2>&5
4686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }; then :
4688 for ac_file in conftest.o conftest.obj conftest.*; do
4689 test -f "$ac_file" || continue;
4691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4703 See \
`config.log' for more details" "$LINENO" 5; }
4705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4708 $as_echo "$ac_cv_objext" >&6; }
4709 OBJEXT=$ac_cv_objext
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4713 if ${ac_cv_c_compiler_gnu+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4730 if ac_fn_c_try_compile "$LINENO"; then :
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4741 if test $ac_compiler_gnu = yes; then
4746 ac_test_CFLAGS=${CFLAGS+set}
4747 ac_save_CFLAGS=$CFLAGS
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4750 if ${ac_cv_prog_cc_g+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 ac_save_c_werror_flag=$ac_c_werror_flag
4754 ac_c_werror_flag=yes
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4768 if ac_fn_c_try_compile "$LINENO"; then :
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4783 if ac_fn_c_try_compile "$LINENO"; then :
4786 ac_c_werror_flag=$ac_save_c_werror_flag
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4799 if ac_fn_c_try_compile "$LINENO"; then :
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_c_werror_flag=$ac_save_c_werror_flag
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810 $as_echo "$ac_cv_prog_cc_g" >&6; }
4811 if test "$ac_test_CFLAGS" = set; then
4812 CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4820 if test "$GCC" = yes; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4828 if ${ac_cv_prog_cc_c89+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 ac_cv_prog_cc_c89=no
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4837 #include <sys/types.h>
4838 #include <sys/stat.h>
4839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840 struct buf { int x; };
4841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842 static char *e (p, i)
4848 static char *f (char * (*g) (char **, int), char **p, ...)
4853 s = g (p, va_arg (v,int));
4858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
4861 as 'x'. The following induces an error, until -std is added to get
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
4864 that's true only with -std. */
4865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 CC="$ac_save_CC $ac_arg"
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_c89=$ac_arg
4893 rm -f core conftest.err conftest.$ac_objext
4894 test "x$ac_cv_prog_cc_c89" != "xno" && break
4896 rm -f conftest.$ac_ext
4901 case "x$ac_cv_prog_cc_c89" in
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904 $as_echo "none needed" >&6; } ;;
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4907 $as_echo "unsupported" >&6; } ;;
4909 CC="$CC $ac_cv_prog_cc_c89"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4913 if test "x$ac_cv_prog_cc_c89" != xno; then :
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922 DEPDIR="${am__leading_dot}deps"
4924 ac_config_commands="$ac_config_commands depfiles"
4927 am_make=${MAKE-make}
4928 cat > confinc << 'END'
4930 @echo this is the am__doit target
4933 # If we don't find an include directive, just comment out the code.
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4935 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4939 # First try GNU make style include.
4940 echo "include confinc" > confmf
4941 # Ignore all kinds of additional output from `make'.
4942 case `$am_make -s -f confmf 2> /dev/null` in #(
4943 *the\ am__doit\ target*)
4949 # Now try BSD make style include.
4950 if test "$am__include" = "#"; then
4951 echo '.include
"confinc"' > confmf
4952 case `$am_make -s -f confmf 2> /dev/null` in #(
4953 *the\ am__doit\ target*)
4954 am__include=.include
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4963 $as_echo "$_am_result" >&6; }
4964 rm -f confinc confmf
4966 # Check whether --enable-dependency-tracking was given.
4967 if test "${enable_dependency_tracking+set}" = set; then :
4968 enableval=$enable_dependency_tracking;
4971 if test "x$enable_dependency_tracking" != xno; then
4972 am_depcomp="$ac_aux_dir/depcomp"
4975 if test "x$enable_dependency_tracking" != xno
; then
4985 depcc
="$CC" am_compiler_list
=
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4988 $as_echo_n "checking dependency style of $depcc... " >&6; }
4989 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4990 $as_echo_n "(cached) " >&6
4992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4993 # We make a subdir and do the tests there. Otherwise we can end up
4994 # making bogus files that we don't know about and never remove. For
4995 # instance it was reported that on HP-UX the gcc test will end up
4996 # making a dummy file named `D' -- because `-MD' means `put the output
4999 # Copy depcomp to subdir because otherwise we won't find it if we're
5000 # using a relative directory.
5001 cp "$am_depcomp" conftest.dir
5003 # We will build objects and dependencies in a subdirectory because
5004 # it helps to detect inapplicable dependency modes. For instance
5005 # both Tru64's cc and ICC support -MD to output dependencies as a
5006 # side effect of compilation, but ICC will put the dependencies in
5007 # the current directory while Tru64 will put them in the object
5011 am_cv_CC_dependencies_compiler_type
=none
5012 if test "$am_compiler_list" = ""; then
5013 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5016 case " $depcc " in #(
5017 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5020 for depmode
in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5029 for i
in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5032 # Solaris 8's {/usr,}/bin/sh.
5033 touch sub
/conftst
$i.h
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5037 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle `-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs
5041 am__obj
=sub
/conftest.
${OBJEXT-o}
5042 am__minus_obj
="-o $am__obj"
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false ||
continue
5049 # after this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested
5051 if test "x$enable_dependency_tracking" = xyes
; then
5057 msvisualcpp | msvcmsys
)
5058 # This compiler won't grok `-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj
=conftest.
${OBJEXT-o}
5066 if depmode
=$depmode \
5067 source=sub
/conftest.c object
=$am__obj \
5068 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5069 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5070 >/dev
/null
2>conftest.err
&&
5071 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5072 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5073 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5074 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type
=$depmode
5093 am_cv_CC_dependencies_compiler_type
=none
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5098 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5099 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5102 test "x$enable_dependency_tracking" != xno \
5103 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5105 am__fastdepCC_FALSE
='#'
5107 am__fastdepCC_TRUE
='#'
5108 am__fastdepCC_FALSE
=
5112 if test "x$CC" != xcc
; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5114 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5117 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5119 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5120 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5121 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5122 $as_echo_n "(cached) " >&6
5124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5135 # Make sure it works both with $CC and with simple cc.
5136 # We do the test twice because some compilers refuse to overwrite an
5137 # existing .o file with -o, though they will create one.
5138 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5140 if { { case "(($ac_try" in
5141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5145 $as_echo "$ac_try_echo"; } >&5
5146 (eval "$ac_try") 2>&5
5148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149 test $ac_status = 0; } &&
5150 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5152 *) ac_try_echo
=$ac_try;;
5154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5155 $as_echo "$ac_try_echo"; } >&5
5156 (eval "$ac_try") 2>&5
5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5159 test $ac_status = 0; };
5161 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5162 if test "x$CC" != xcc
; then
5163 # Test first that cc exists at all.
5164 if { ac_try
='cc -c conftest.$ac_ext >&5'
5165 { { case "(($ac_try" in
5166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170 $as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_try") 2>&5
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; }; then
5175 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5177 if { { case "(($ac_try" in
5178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5179 *) ac_try_echo
=$ac_try;;
5181 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5182 $as_echo "$ac_try_echo"; } >&5
5183 (eval "$ac_try") 2>&5
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; } &&
5187 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5192 $as_echo "$ac_try_echo"; } >&5
5193 (eval "$ac_try") 2>&5
5195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5196 test $ac_status = 0; };
5201 # cc exists but doesn't like -o.
5202 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5207 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5209 rm -f core conftest*
5212 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214 $as_echo "yes" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5219 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5223 # FIXME: we rely on the cache variable name because
5224 # there is no other way.
5226 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5227 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5228 if test "$am_t" != yes; then
5229 # Losing compiler, so override with the script.
5230 # FIXME: It is wrong to rewrite CC.
5231 # But if we don't then we get into trouble of one sort or another.
5232 # A longer-term fix would be to have automake use am__CC in this case,
5233 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5234 CC="$am_aux_dir/compile $CC"
5239 # Initialize gnulib right after verifying that the C compiler works.
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_RANLIB+:} false; then :
5246 $as_echo_n "(cached) " >&6
5248 if test -n "$RANLIB"; then
5249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 RANLIB=$ac_cv_prog_RANLIB
5269 if test -n "$RANLIB"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5271 $as_echo "$RANLIB" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5279 if test -z "$ac_cv_prog_RANLIB"; then
5280 ac_ct_RANLIB=$RANLIB
5281 # Extract the first word of "ranlib", so it can be a program name with args.
5282 set dummy ranlib; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5286 $as_echo_n "(cached) " >&6
5288 if test -n "$ac_ct_RANLIB"; then
5289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_RANLIB="ranlib"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5309 if test -n "$ac_ct_RANLIB"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5311 $as_echo "$ac_ct_RANLIB" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5317 if test "x$ac_ct_RANLIB" = x; then
5320 case $cross_compiling:$ac_tool_warned in
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5326 RANLIB=$ac_ct_RANLIB
5329 RANLIB="$ac_cv_prog_RANLIB"
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5340 # On Suns, sometimes $CPP names a directory.
5341 if test -n "$CPP" && test -d "$CPP"; then
5344 if test -z "$CPP"; then
5345 if ${ac_cv_prog_CPP+:} false; then :
5346 $as_echo_n "(cached) " >&6
5348 # Double quotes because CPP needs to be expanded
5349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5352 for ac_c_preproc_warn_flag in '' yes
5354 # Use a header file that comes with gcc, so configuring glibc
5355 # with a fresh cross-compiler works.
5356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 # <limits.h> exists even on freestanding compilers.
5358 # On the NeXT, cc -E runs the code through the compiler's parser,
5359 # not just through cpp. "Syntax error" is here to catch this case.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5363 # include <limits.h>
5365 # include <assert.h>
5369 if ac_fn_c_try_cpp "$LINENO"; then :
5372 # Broken: fails on valid input.
5375 rm -f conftest.err conftest.i conftest.$ac_ext
5377 # OK, works on sane cases. Now check whether nonexistent headers
5378 # can be detected and how.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <ac_nonexistent.h>
5383 if ac_fn_c_try_cpp "$LINENO"; then :
5384 # Broken: success on invalid input.
5387 # Passes both tests.
5391 rm -f conftest.err conftest.i conftest.$ac_ext
5394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5395 rm -f conftest.i conftest.err conftest.
$ac_ext
5396 if $ac_preproc_ok; then :
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5409 $as_echo "$CPP" >&6; }
5411 for ac_c_preproc_warn_flag
in '' yes
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5422 # include <limits.h>
5424 # include <assert.h>
5428 if ac_fn_c_try_cpp
"$LINENO"; then :
5431 # Broken: fails on valid input.
5434 rm -f conftest.err conftest.i conftest.
$ac_ext
5436 # OK, works on sane cases. Now check whether nonexistent headers
5437 # can be detected and how.
5438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <ac_nonexistent.h>
5442 if ac_fn_c_try_cpp
"$LINENO"; then :
5443 # Broken: success on invalid input.
5446 # Passes both tests.
5450 rm -f conftest.err conftest.i conftest.
$ac_ext
5453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5454 rm -f conftest.i conftest.err conftest.
$ac_ext
5455 if $ac_preproc_ok; then :
5458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5460 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5461 See \`config.log' for more details" "$LINENO" 5; }
5465 ac_cpp
='$CPP $CPPFLAGS'
5466 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5472 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5473 if ${ac_cv_path_GREP+:} false
; then :
5474 $as_echo_n "(cached) " >&6
5476 if test -z "$GREP"; then
5477 ac_path_GREP_found
=false
5478 # Loop through the user's path and test for each of PROGNAME-LIST
5479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5480 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5483 test -z "$as_dir" && as_dir
=.
5484 for ac_prog
in grep ggrep
; do
5485 for ac_exec_ext
in '' $ac_executable_extensions; do
5486 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5487 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5488 # Check for GNU ac_path_GREP and select it if it is found.
5489 # Check for GNU $ac_path_GREP
5490 case `"$ac_path_GREP" --version 2>&1` in
5492 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5495 $as_echo_n 0123456789 >"conftest.in"
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 $as_echo 'GREP' >> "conftest.nl"
5502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5503 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5504 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5505 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_GREP
="$ac_path_GREP"
5508 ac_path_GREP_max
=$ac_count
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5513 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5516 $ac_path_GREP_found && break 3
5521 if test -z "$ac_cv_path_GREP"; then
5522 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5525 ac_cv_path_GREP
=$GREP
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5530 $as_echo "$ac_cv_path_GREP" >&6; }
5531 GREP
="$ac_cv_path_GREP"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5535 $as_echo_n "checking for egrep... " >&6; }
5536 if ${ac_cv_path_EGREP+:} false
; then :
5537 $as_echo_n "(cached) " >&6
5539 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5540 then ac_cv_path_EGREP
="$GREP -E"
5542 if test -z "$EGREP"; then
5543 ac_path_EGREP_found
=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5546 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5549 test -z "$as_dir" && as_dir
=.
5550 for ac_prog
in egrep; do
5551 for ac_exec_ext
in '' $ac_executable_extensions; do
5552 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5553 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5554 # Check for GNU ac_path_EGREP and select it if it is found.
5555 # Check for GNU $ac_path_EGREP
5556 case `"$ac_path_EGREP" --version 2>&1` in
5558 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5561 $as_echo_n 0123456789 >"conftest.in"
5564 cat "conftest.in" "conftest.in" >"conftest.tmp"
5565 mv "conftest.tmp" "conftest.in"
5566 cp "conftest.in" "conftest.nl"
5567 $as_echo 'EGREP' >> "conftest.nl"
5568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5569 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5570 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5572 # Best one so far, save it but keep looking for a better one
5573 ac_cv_path_EGREP
="$ac_path_EGREP"
5574 ac_path_EGREP_max
=$ac_count
5576 # 10*(2^10) chars as input seems more than enough
5577 test $ac_count -gt 10 && break
5579 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5582 $ac_path_EGREP_found && break 3
5587 if test -z "$ac_cv_path_EGREP"; then
5588 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5591 ac_cv_path_EGREP
=$EGREP
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5597 $as_echo "$ac_cv_path_EGREP" >&6; }
5598 EGREP
="$ac_cv_path_EGREP"
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5602 $as_echo_n "checking for ANSI C header files... " >&6; }
5603 if ${ac_cv_header_stdc+:} false
; then :
5604 $as_echo_n "(cached) " >&6
5606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5621 if ac_fn_c_try_compile
"$LINENO"; then :
5622 ac_cv_header_stdc
=yes
5624 ac_cv_header_stdc
=no
5626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5628 if test $ac_cv_header_stdc = yes; then
5629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "memchr" >/dev
/null
2>&1; then :
5639 ac_cv_header_stdc
=no
5645 if test $ac_cv_header_stdc = yes; then
5646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "free" >/dev
/null
2>&1; then :
5656 ac_cv_header_stdc
=no
5662 if test $ac_cv_header_stdc = yes; then
5663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5664 if test "$cross_compiling" = yes; then :
5667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5671 #if ((' ' & 0x0FF) == 0x020)
5672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5675 # define ISLOWER(c) \
5676 (('a' <= (c) && (c) <= 'i') \
5677 || ('j' <= (c) && (c) <= 'r') \
5678 || ('s' <= (c) && (c) <= 'z'))
5679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5687 for (i = 0; i < 256; i++)
5688 if (XOR (islower (i), ISLOWER (i))
5689 || toupper (i) != TOUPPER (i))
5694 if ac_fn_c_try_run
"$LINENO"; then :
5697 ac_cv_header_stdc
=no
5699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5706 $as_echo "$ac_cv_header_stdc" >&6; }
5707 if test $ac_cv_header_stdc = yes; then
5709 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5713 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5714 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5715 inttypes.h stdint.h unistd.h
5717 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5718 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5720 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5721 cat >>confdefs.h
<<_ACEOF
5722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5733 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5734 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5741 if test "$MINIX" = yes; then
5743 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5746 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5749 $as_echo "#define _MINIX 1" >>confdefs.h
5756 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5763 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5764 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5765 $as_echo_n "(cached) " >&6
5767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5770 # define __EXTENSIONS__ 1
5771 $ac_includes_default
5780 if ac_fn_c_try_compile
"$LINENO"; then :
5781 ac_cv_safe_to_define___extensions__
=yes
5783 ac_cv_safe_to_define___extensions__
=no
5785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5788 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5789 test $ac_cv_safe_to_define___extensions__ = yes &&
5790 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5792 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5794 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5796 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5798 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5809 # Code from module arg-nonnull:
5810 # Code from module c++defs:
5811 # Code from module dtoastr:
5812 # Code from module extensions:
5814 # Code from module getopt-gnu:
5815 # Code from module getopt-posix:
5816 # Code from module gettext-h:
5817 # Code from module include_next:
5818 # Code from module intprops:
5819 # Code from module mktime:
5820 # Code from module multiarch:
5821 # Code from module stddef:
5822 # Code from module time:
5823 # Code from module time_r:
5824 # Code from module unistd:
5825 # Code from module warn-on-use:
5828 # On Suns, sometimes $CPP names a directory.
5829 if test -n "$CPP" && test -d "$CPP"; then
5833 ## If not using gcc, and on Solaris, and no CPP specified, see if
5834 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5835 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
5836 test x
"$CPP" = x
; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5838 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5839 if ${emacs_cv_sunpro_c+:} false
; then :
5840 $as_echo_n "(cached) " >&6
5842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5856 if ac_fn_c_try_link
"$LINENO"; then :
5857 emacs_cv_sunpro_c
=yes
5859 emacs_cv_sunpro_c
=no
5861 rm -f core conftest.err conftest.
$ac_objext \
5862 conftest
$ac_exeext conftest.
$ac_ext
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5866 $as_echo "$emacs_cv_sunpro_c" >&6; }
5868 if test x
"$emacs_cv_sunpro_c" = xyes
; then
5869 NON_GNU_CPP
="$CC -E -Xs"
5873 #### Some systems specify a CPP to use unless we are using GCC.
5874 #### Now that we know whether we are using GCC, we can decide whether
5875 #### to use that one.
5876 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
5881 #### Some systems specify a CC to use unless we are using GCC.
5882 #### Now that we know whether we are using GCC, we can decide whether
5883 #### to use that one.
5884 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
5885 test x
$cc_specified != xyes
5890 if test x
$GCC = xyes
; then
5891 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
5893 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
5896 ### Use -Wno-pointer-sign if the compiler supports it
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5898 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5899 SAVE_CFLAGS
="$CFLAGS"
5900 CFLAGS
="$CFLAGS -Wno-pointer-sign"
5901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5912 if ac_fn_c_try_compile
"$LINENO"; then :
5917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5918 if test $has_option = yes; then
5919 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5922 $as_echo "$has_option" >&6; }
5923 CFLAGS
="$SAVE_CFLAGS"
5927 ### Use -Wdeclaration-after-statement if the compiler supports it
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5929 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5930 SAVE_CFLAGS
="$CFLAGS"
5931 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
5932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5943 if ac_fn_c_try_compile
"$LINENO"; then :
5948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5949 if test $has_option = yes; then
5950 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5953 $as_echo "$has_option" >&6; }
5954 CFLAGS
="$SAVE_CFLAGS"
5958 ### Use -Wold-style-definition if the compiler supports it
5959 # This can be removed when conversion to standard C is finished.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5961 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5962 SAVE_CFLAGS
="$CFLAGS"
5963 CFLAGS
="$CFLAGS -Wold-style-definition"
5964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5975 if ac_fn_c_try_compile
"$LINENO"; then :
5980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5981 if test $has_option = yes; then
5982 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5985 $as_echo "$has_option" >&6; }
5986 CFLAGS
="$SAVE_CFLAGS"
5990 ### Use -Wimplicit-function-declaration if the compiler supports it
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5992 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5993 SAVE_CFLAGS
="$CFLAGS"
5994 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
5995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
6006 if ac_fn_c_try_compile
"$LINENO"; then :
6011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6012 if test $has_option = yes; then
6013 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6016 $as_echo "$has_option" >&6; }
6017 CFLAGS
="$SAVE_CFLAGS"
6024 #### Some other nice autoconf tests.
6027 ac_cpp
='$CPP $CPPFLAGS'
6028 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6033 # On Suns, sometimes $CPP names a directory.
6034 if test -n "$CPP" && test -d "$CPP"; then
6037 if test -z "$CPP"; then
6038 if ${ac_cv_prog_CPP+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6041 # Double quotes because CPP needs to be expanded
6042 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 for ac_c_preproc_warn_flag
in '' yes
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6056 # include <limits.h>
6058 # include <assert.h>
6062 if ac_fn_c_try_cpp
"$LINENO"; then :
6065 # Broken: fails on valid input.
6068 rm -f conftest.err conftest.i conftest.
$ac_ext
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6076 if ac_fn_c_try_cpp
"$LINENO"; then :
6077 # Broken: success on invalid input.
6080 # Passes both tests.
6084 rm -f conftest.err conftest.i conftest.
$ac_ext
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.i conftest.err conftest.
$ac_ext
6089 if $ac_preproc_ok; then :
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102 $as_echo "$CPP" >&6; }
6104 for ac_c_preproc_warn_flag
in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6115 # include <limits.h>
6117 # include <assert.h>
6121 if ac_fn_c_try_cpp
"$LINENO"; then :
6124 # Broken: fails on valid input.
6127 rm -f conftest.err conftest.i conftest.
$ac_ext
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6135 if ac_fn_c_try_cpp
"$LINENO"; then :
6136 # Broken: success on invalid input.
6139 # Passes both tests.
6143 rm -f conftest.err conftest.i conftest.
$ac_ext
6146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147 rm -f conftest.i conftest.err conftest.
$ac_ext
6148 if $ac_preproc_ok; then :
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details" "$LINENO" 5; }
6158 ac_cpp
='$CPP $CPPFLAGS'
6159 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6164 if test "x$RANLIB" = x
; then
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_RANLIB+:} false
; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -n "$RANLIB"; then
6174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir
=.
6181 for ac_exec_ext
in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 RANLIB
=$ac_cv_prog_RANLIB
6194 if test -n "$RANLIB"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6196 $as_echo "$RANLIB" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6204 if test -z "$ac_cv_prog_RANLIB"; then
6205 ac_ct_RANLIB
=$RANLIB
6206 # Extract the first word of "ranlib", so it can be a program name with args.
6207 set dummy ranlib
; ac_word
=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -n "$ac_ct_RANLIB"; then
6214 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir
=.
6221 for ac_exec_ext
in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6234 if test -n "$ac_ct_RANLIB"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6236 $as_echo "$ac_ct_RANLIB" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6242 if test "x$ac_ct_RANLIB" = x
; then
6245 case $cross_compiling:$ac_tool_warned in
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned
=yes ;;
6251 RANLIB
=$ac_ct_RANLIB
6254 RANLIB
="$ac_cv_prog_RANLIB"
6259 ## Although we're running on an amd64 kernel, we're actually compiling for
6260 ## the x86 architecture. The user should probably have provided an
6261 ## explicit --build to `configure', but if everything else than the kernel
6262 ## is running in i386 mode, we can help them out.
6263 if test "$machine" = "amdx86-64"; then
6264 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6265 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6269 if test "$ac_cv_have_decl_i386" = "yes"; then
6270 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6272 machfile
="m/${machine}.h"
6276 # Extract the first word of "install-info", so it can be a program name with args.
6277 set dummy install-info
; ac_word
=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6281 $as_echo_n "(cached) " >&6
6283 case $INSTALL_INFO in
6285 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir
=.
6293 for ac_exec_ext
in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6307 if test -n "$INSTALL_INFO"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6309 $as_echo "$INSTALL_INFO" >&6; }
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6316 # Extract the first word of "install-info", so it can be a program name with args.
6317 set dummy install-info
; ac_word
=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6321 $as_echo_n "(cached) " >&6
6323 case $INSTALL_INFO in
6325 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6329 for as_dir
in /usr
/sbin
6332 test -z "$as_dir" && as_dir
=.
6333 for ac_exec_ext
in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6347 if test -n "$INSTALL_INFO"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6349 $as_echo "$INSTALL_INFO" >&6; }
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6356 # Extract the first word of "install-info", so it can be a program name with args.
6357 set dummy install-info
; ac_word
=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6361 $as_echo_n "(cached) " >&6
6363 case $INSTALL_INFO in
6365 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6372 test -z "$as_dir" && as_dir
=.
6373 for ac_exec_ext
in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6387 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6388 if test -n "$INSTALL_INFO"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6390 $as_echo "$INSTALL_INFO" >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6397 # Extract the first word of "gzip", so it can be a program name with args.
6398 set dummy
gzip; ac_word
=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6402 $as_echo_n "(cached) " >&6
6406 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir
=.
6414 for ac_exec_ext
in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6428 if test -n "$GZIP_PROG"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6430 $as_echo "$GZIP_PROG" >&6; }
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6439 ## Need makeinfo >= 4.6 (?) to build the manuals.
6440 # Extract the first word of "makeinfo", so it can be a program name with args.
6441 set dummy makeinfo
; ac_word
=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_path_MAKEINFO+:} false
; then :
6445 $as_echo_n "(cached) " >&6
6449 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir
=.
6457 for ac_exec_ext
in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6471 MAKEINFO
=$ac_cv_path_MAKEINFO
6472 if test -n "$MAKEINFO"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6474 $as_echo "$MAKEINFO" >&6; }
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6481 if test "$MAKEINFO" != "no" && \
6482 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
6486 ## Makeinfo is unusual. For a released Emacs, the manuals are
6487 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6488 ## therefore in the category of "special tools" not normally required, which
6489 ## configure does not have to check for (eg autoconf itself).
6490 ## In a Bazaar checkout on the other hand, the manuals are not included.
6491 ## So makeinfo is a requirement to build from Bazaar, and configure
6492 ## should test for it as it does for any other build requirement.
6493 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6494 ## with pre-built manuals, from a Bazaar checkout.
6497 if test "$MAKEINFO" = "no"; then
6499 if test "x${with_makeinfo}" = "xno"; then
6501 elif test ! -e $srcdir/info
/emacs
; then
6502 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6503 source tree does not seem to have pre-built manuals in the \`info' directory.
6504 Either install a suitable version of makeinfo, or re-run configure
6505 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6511 if test x
$GCC = xyes
; then
6512 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6513 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6515 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6516 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6520 late_LDFLAGS
=$LDFLAGS
6521 if test x
$GCC = xyes
; then
6522 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6524 LDFLAGS
="$LDFLAGS -znocombreloc"
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6528 $as_echo_n "checking for -znocombreloc... " >&6; }
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6540 if ac_fn_c_try_link
"$LINENO"; then :
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542 $as_echo "yes" >&6; }
6544 LDFLAGS
=$late_LDFLAGS
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6548 rm -f core conftest.err conftest.
$ac_objext \
6549 conftest
$ac_exeext conftest.
$ac_ext
6552 # The value of CPP is a quoted variable reference, so we need to do this
6553 # to get its actual value...
6554 CPP
=`eval "echo $CPP"`
6562 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6569 UNEXEC_OBJ
=unexelf.o
6571 # MSDOS uses unexcoff.o
6572 # MSWindows uses unexw32.o
6574 UNEXEC_OBJ
=unexaix.o
6580 UNEXEC_OBJ
=unexmacosx.o
6583 UNEXEC_OBJ
=unexhp9k800.o
6586 # Use the Solaris dldump() function, called from unexsol.c, to dump
6587 # emacs, instead of the generic ELF dump code found in unexelf.c.
6588 # The resulting binary has a complete symbol table, and is better
6589 # for debugging and other observability tools (debuggers, pstack, etc).
6591 # If you encounter a problem using dldump(), please consider sending
6592 # a message to the OpenSolaris tools-linking mailing list:
6593 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6595 # It is likely that dldump() works with older Solaris too, but this has
6596 # not been tested, so for now this change is for Solaris 10 or newer.
6597 UNEXEC_OBJ
=unexsol.o
6604 ## Let `ld' find image libs and similar things in /usr/local/lib.
6605 ## The system compiler, GCC, has apparently been modified to not
6606 ## look there, contrary to what a stock GCC would do.
6607 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6611 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6612 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6616 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6620 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6621 ## otherwise Emacs dumps core on elf systems.
6622 LD_SWITCH_SYSTEM
="-Z"
6627 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6629 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6630 ## which has not been defined yet. When this was handled with cpp,
6631 ## it was expanded to null when configure sourced the s/*.h file.
6632 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6633 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6634 ## (or somesuch), but because it is supposed to go at the _front_
6635 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6636 ## Compare with the gnu-linux case below, which added to the end
6637 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6638 ## LD_SWITCH_SYSTEM_TEMACS.
6641 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6642 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6647 if test "$machine" = "alpha"; then
6648 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6649 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
6653 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6654 ## With ELF, make sure that all common symbols get allocated to in the
6655 ## data section. Otherwise, the dump of temacs may miss variables in
6656 ## the shared library that have been initialized. For example, with
6657 ## GNU libc, __malloc_initialized would normally be resolved to the
6658 ## shared library's .bss section, which is fatal.
6659 if test "x$GCC" = "xyes"; then
6660 C_SWITCH_MACHINE
="-fno-common"
6662 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6665 UNEXEC_OBJ
=unexalpha.o
6673 ## Some programs in src produce warnings saying certain subprograms
6674 ## are too complex and need a MAXMEM value greater than 2000 for
6675 ## additional optimization. --nils@exp-math.uni-essen.de
6676 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6677 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6678 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6679 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6685 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6686 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6688 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6690 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6692 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
6694 ## Motif needs -lgen.
6695 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6700 ### Make sure subsequent tests use flags consistent with the build flags.
6702 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6703 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6705 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6710 # Check whether --enable-largefile was given.
6711 if test "${enable_largefile+set}" = set; then :
6712 enableval
=$enable_largefile;
6715 if test "$enable_largefile" != no
; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6718 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6719 if ${ac_cv_sys_largefile_CC+:} false
; then :
6720 $as_echo_n "(cached) " >&6
6722 ac_cv_sys_largefile_CC
=no
6723 if test "$GCC" != yes; then
6726 # IRIX 6.2 and later do not support large files by default,
6727 # so use the C compiler's -n32 option if that helps.
6728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <sys/types.h>
6731 /* Check that off_t can represent 2**63 - 1 correctly.
6732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6733 since some C++ compilers masquerading as C compilers
6734 incorrectly reject 9223372036854775807. */
6735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6737 && LARGE_OFF_T % 2147483647 == 1)
6747 if ac_fn_c_try_compile
"$LINENO"; then :
6750 rm -f core conftest.err conftest.
$ac_objext
6752 if ac_fn_c_try_compile
"$LINENO"; then :
6753 ac_cv_sys_largefile_CC
=' -n32'; break
6755 rm -f core conftest.err conftest.
$ac_objext
6759 rm -f conftest.
$ac_ext
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6763 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6764 if test "$ac_cv_sys_largefile_CC" != no
; then
6765 CC
=$CC$ac_cv_sys_largefile_CC
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6769 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6770 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6771 $as_echo_n "(cached) " >&6
6774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 #include <sys/types.h>
6777 /* Check that off_t can represent 2**63 - 1 correctly.
6778 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6779 since some C++ compilers masquerading as C compilers
6780 incorrectly reject 9223372036854775807. */
6781 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6782 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6783 && LARGE_OFF_T % 2147483647 == 1)
6793 if ac_fn_c_try_compile
"$LINENO"; then :
6794 ac_cv_sys_file_offset_bits
=no
; break
6796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 #define _FILE_OFFSET_BITS 64
6800 #include <sys/types.h>
6801 /* Check that off_t can represent 2**63 - 1 correctly.
6802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6803 since some C++ compilers masquerading as C compilers
6804 incorrectly reject 9223372036854775807. */
6805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6807 && LARGE_OFF_T % 2147483647 == 1)
6817 if ac_fn_c_try_compile
"$LINENO"; then :
6818 ac_cv_sys_file_offset_bits
=64; break
6820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6821 ac_cv_sys_file_offset_bits
=unknown
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6826 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6827 case $ac_cv_sys_file_offset_bits in #(
6830 cat >>confdefs.h
<<_ACEOF
6831 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6836 if test $ac_cv_sys_file_offset_bits = unknown
; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6838 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6839 if ${ac_cv_sys_large_files+:} false
; then :
6840 $as_echo_n "(cached) " >&6
6843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #include <sys/types.h>
6846 /* Check that off_t can represent 2**63 - 1 correctly.
6847 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6848 since some C++ compilers masquerading as C compilers
6849 incorrectly reject 9223372036854775807. */
6850 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6851 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6852 && LARGE_OFF_T % 2147483647 == 1)
6862 if ac_fn_c_try_compile
"$LINENO"; then :
6863 ac_cv_sys_large_files
=no
; break
6865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 #define _LARGE_FILES 1
6869 #include <sys/types.h>
6870 /* Check that off_t can represent 2**63 - 1 correctly.
6871 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6872 since some C++ compilers masquerading as C compilers
6873 incorrectly reject 9223372036854775807. */
6874 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6875 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6876 && LARGE_OFF_T % 2147483647 == 1)
6886 if ac_fn_c_try_compile
"$LINENO"; then :
6887 ac_cv_sys_large_files
=1; break
6889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6890 ac_cv_sys_large_files
=unknown
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6895 $as_echo "$ac_cv_sys_large_files" >&6; }
6896 case $ac_cv_sys_large_files in #(
6899 cat >>confdefs.h
<<_ACEOF
6900 #define _LARGE_FILES $ac_cv_sys_large_files
6910 ## If user specified a crt-dir, use that unconditionally.
6911 if test "X$CRT_DIR" = "X"; then
6913 case "$canonical" in
6914 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6915 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6916 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6917 ## For anything else (eg /usr/lib32), it is up the user to specify
6918 ## the location (bug#5655).
6919 ## Test for crtn.o, not just the directory, because sometimes the
6920 ## directory exists but does not have the relevant files (bug#1287).
6921 ## FIXME better to test for binary compatibility somehow.
6922 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
6925 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
6929 hpux10-20
) CRT_DIR
=/lib
;;
6932 ## Default is /usr/lib.
6933 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
6937 ## Some platforms don't use any of these files, so it is not
6938 ## appropriate to put this test outside the if block.
6939 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
6940 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
6953 START_FILES
='pre-crt0.o'
6956 ## Adding -lm confuses the dynamic linker, so omit it.
6958 START_FILES
='pre-crt0.o'
6961 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6962 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6964 gnu-linux | gnu-kfreebsd
)
6965 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6966 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6968 hpux10-20 | hpux11
)
6970 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
6973 if test -f $CRT_DIR/crti.o
; then
6974 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6975 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6977 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6978 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6989 if test "${with_sound}" != "no"; then
6990 # Sound support for GNU/Linux and the free BSDs.
6991 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
6993 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6994 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6995 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6996 cat >>confdefs.h
<<_ACEOF
6997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6999 have_sound_header
=yes
7004 # Emulation library used on NetBSD.
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7006 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7007 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
7008 $as_echo_n "(cached) " >&6
7010 ac_check_lib_save_LIBS
=$LIBS
7011 LIBS
="-lossaudio $LIBS"
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7015 /* Override any GCC internal prototype to avoid an error.
7016 Use char because int might match the return type of a GCC
7017 builtin and then its argument prototype would still apply. */
7025 return _oss_ioctl ();
7030 if ac_fn_c_try_link
"$LINENO"; then :
7031 ac_cv_lib_ossaudio__oss_ioctl
=yes
7033 ac_cv_lib_ossaudio__oss_ioctl
=no
7035 rm -f core conftest.err conftest.
$ac_objext \
7036 conftest
$ac_exeext conftest.
$ac_ext
7037 LIBS
=$ac_check_lib_save_LIBS
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7040 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7041 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
7050 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7054 # Extract the first word of "pkg-config", so it can be a program name with args.
7055 set dummy pkg-config
; ac_word
=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7059 $as_echo_n "(cached) " >&6
7063 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir
=.
7071 for ac_exec_ext
in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7085 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7086 if test -n "$PKG_CONFIG"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7088 $as_echo "$PKG_CONFIG" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7096 if test "$PKG_CONFIG" = "no" ; then
7099 PKG_CONFIG_MIN_VERSION
=0.9.0
7100 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7102 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7104 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7106 $as_echo "yes" >&6; }
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7110 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7111 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7113 $as_echo "$ALSA_CFLAGS" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7116 $as_echo_n "checking ALSA_LIBS... " >&6; }
7117 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7119 $as_echo "$ALSA_LIBS" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7125 ## If we have a custom action on failure, don't print errors, but
7126 ## do set a variable so people can do so.
7127 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7134 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7135 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7139 if test $succeeded = yes; then
7145 if test $HAVE_ALSA = yes; then
7146 SAVE_CFLAGS
="$CFLAGS"
7147 SAVE_LDFLAGS
="$LDFLAGS"
7148 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7149 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 #include <asoundlib.h>
7156 snd_lib_error_set_handler (0);
7161 if ac_fn_c_try_compile
"$LINENO"; then :
7162 emacs_alsa_normal
=yes
7164 emacs_alsa_normal
=no
7166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7167 if test "$emacs_alsa_normal" != yes; then
7168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 #include <alsa/asoundlib.h>
7174 snd_lib_error_set_handler (0);
7179 if ac_fn_c_try_compile
"$LINENO"; then :
7180 emacs_alsa_subdir
=yes
7182 emacs_alsa_subdir
=no
7184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7185 if test "$emacs_alsa_subdir" != yes; then
7186 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7188 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7191 CFLAGS
="$SAVE_CFLAGS"
7192 LDFLAGS
="$SAVE_LDFLAGS"
7193 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7194 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7196 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7200 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7202 gnu-linux|freebsd|netbsd
)
7204 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7213 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7214 linux
/version.h sys
/systeminfo.h limits.h \
7215 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7216 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7217 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7219 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7220 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7221 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7222 cat >>confdefs.h
<<_ACEOF
7223 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7232 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 #include <sys/personality.h>
7239 personality (PER_LINUX32)
7244 if ac_fn_c_try_compile
"$LINENO"; then :
7245 emacs_cv_personality_linux32
=yes
7247 emacs_cv_personality_linux32
=no
7249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7251 $as_echo "$emacs_cv_personality_linux32" >&6; }
7253 if test $emacs_cv_personality_linux32 = yes; then
7255 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7259 for ac_header
in term.h
7261 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7262 if test "x$ac_cv_header_term_h" = xyes
; then :
7263 cat >>confdefs.h
<<_ACEOF
7264 #define HAVE_TERM_H 1
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7272 $as_echo_n "checking for ANSI C header files... " >&6; }
7273 if ${ac_cv_header_stdc+:} false
; then :
7274 $as_echo_n "(cached) " >&6
7276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7291 if ac_fn_c_try_compile
"$LINENO"; then :
7292 ac_cv_header_stdc
=yes
7294 ac_cv_header_stdc
=no
7296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7298 if test $ac_cv_header_stdc = yes; then
7299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7306 $EGREP "memchr" >/dev
/null
2>&1; then :
7309 ac_cv_header_stdc
=no
7315 if test $ac_cv_header_stdc = yes; then
7316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7323 $EGREP "free" >/dev
/null
2>&1; then :
7326 ac_cv_header_stdc
=no
7332 if test $ac_cv_header_stdc = yes; then
7333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7334 if test "$cross_compiling" = yes; then :
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7341 #if ((' ' & 0x0FF) == 0x020)
7342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7345 # define ISLOWER(c) \
7346 (('a' <= (c) && (c) <= 'i') \
7347 || ('j' <= (c) && (c) <= 'r') \
7348 || ('s' <= (c) && (c) <= 'z'))
7349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7357 for (i = 0; i < 256; i++)
7358 if (XOR (islower (i), ISLOWER (i))
7359 || toupper (i) != TOUPPER (i))
7364 if ac_fn_c_try_run
"$LINENO"; then :
7367 ac_cv_header_stdc
=no
7369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7376 $as_echo "$ac_cv_header_stdc" >&6; }
7377 if test $ac_cv_header_stdc = yes; then
7379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7384 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7385 if ${ac_cv_header_time+:} false
; then :
7386 $as_echo_n "(cached) " >&6
7388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390 #include <sys/types.h>
7391 #include <sys/time.h>
7397 if ((struct tm *) 0)
7403 if ac_fn_c_try_compile
"$LINENO"; then :
7404 ac_cv_header_time
=yes
7406 ac_cv_header_time
=no
7408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7411 $as_echo "$ac_cv_header_time" >&6; }
7412 if test $ac_cv_header_time = yes; then
7414 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7418 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7419 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7425 cat >>confdefs.h
<<_ACEOF
7426 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7429 if test $ac_cv_have_decl_sys_siglist != yes; then
7430 # For Tru64, at least:
7431 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7432 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7438 cat >>confdefs.h
<<_ACEOF
7439 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7442 if test $ac_cv_have_decl___sys_siglist = yes; then
7444 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7449 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7450 if ${ac_cv_header_sys_wait_h+:} false
; then :
7451 $as_echo_n "(cached) " >&6
7453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 #include <sys/types.h>
7456 #include <sys/wait.h>
7458 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7461 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7469 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7474 if ac_fn_c_try_compile
"$LINENO"; then :
7475 ac_cv_header_sys_wait_h
=yes
7477 ac_cv_header_sys_wait_h
=no
7479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7482 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7483 if test $ac_cv_header_sys_wait_h = yes; then
7485 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7491 $as_echo_n "checking for struct utimbuf... " >&6; }
7492 if ${emacs_cv_struct_utimbuf+:} false
; then :
7493 $as_echo_n "(cached) " >&6
7495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #ifdef TIME_WITH_SYS_TIME
7498 #include <sys/time.h>
7501 #ifdef HAVE_SYS_TIME_H
7502 #include <sys/time.h>
7513 static struct utimbuf x; x.actime = x.modtime;
7518 if ac_fn_c_try_compile
"$LINENO"; then :
7519 emacs_cv_struct_utimbuf
=yes
7521 emacs_cv_struct_utimbuf
=no
7523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7526 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7527 if test $emacs_cv_struct_utimbuf = yes; then
7529 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7534 $as_echo_n "checking return type of signal handlers... " >&6; }
7535 if ${ac_cv_type_signal+:} false
; then :
7536 $as_echo_n "(cached) " >&6
7538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <sys/types.h>
7546 return *(signal (0, 0)) (0) == 1;
7551 if ac_fn_c_try_compile
"$LINENO"; then :
7552 ac_cv_type_signal
=int
7554 ac_cv_type_signal
=void
7556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7559 $as_echo "$ac_cv_type_signal" >&6; }
7561 cat >>confdefs.h
<<_ACEOF
7562 #define RETSIGTYPE $ac_cv_type_signal
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7568 $as_echo_n "checking for speed_t... " >&6; }
7569 if ${emacs_cv_speed_t+:} false
; then :
7570 $as_echo_n "(cached) " >&6
7572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7574 #include <termios.h>
7583 if ac_fn_c_try_compile
"$LINENO"; then :
7584 emacs_cv_speed_t
=yes
7588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7591 $as_echo "$emacs_cv_speed_t" >&6; }
7592 if test $emacs_cv_speed_t = yes; then
7594 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7599 $as_echo_n "checking for struct timeval... " >&6; }
7600 if ${emacs_cv_struct_timeval+:} false
; then :
7601 $as_echo_n "(cached) " >&6
7603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 #ifdef TIME_WITH_SYS_TIME
7606 #include <sys/time.h>
7609 #ifdef HAVE_SYS_TIME_H
7610 #include <sys/time.h>
7618 static struct timeval x; x.tv_sec = x.tv_usec;
7623 if ac_fn_c_try_compile
"$LINENO"; then :
7624 emacs_cv_struct_timeval
=yes
7626 emacs_cv_struct_timeval
=no
7628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7631 $as_echo "$emacs_cv_struct_timeval" >&6; }
7632 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7633 if test $emacs_cv_struct_timeval = yes; then
7635 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7640 $as_echo_n "checking for struct exception... " >&6; }
7641 if ${emacs_cv_struct_exception+:} false
; then :
7642 $as_echo_n "(cached) " >&6
7644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7650 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7655 if ac_fn_c_try_compile
"$LINENO"; then :
7656 emacs_cv_struct_exception
=yes
7658 emacs_cv_struct_exception
=no
7660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7663 $as_echo "$emacs_cv_struct_exception" >&6; }
7664 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7665 if test $emacs_cv_struct_exception != yes; then
7667 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7671 for ac_header
in sys
/socket.h
7673 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7674 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
7675 cat >>confdefs.h
<<_ACEOF
7676 #define HAVE_SYS_SOCKET_H 1
7683 for ac_header
in net
/if.h
7685 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7686 #if HAVE_SYS_SOCKET_H
7687 #include <sys/socket.h>
7690 if test "x$ac_cv_header_net_if_h" = xyes
; then :
7691 cat >>confdefs.h
<<_ACEOF
7692 #define HAVE_NET_IF_H 1
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7701 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7702 if ${ac_cv_struct_tm+:} false
; then :
7703 $as_echo_n "(cached) " >&6
7705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <sys/types.h>
7714 int *p = &tm.tm_sec;
7720 if ac_fn_c_try_compile
"$LINENO"; then :
7721 ac_cv_struct_tm
=time.h
7723 ac_cv_struct_tm
=sys
/time.h
7725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7728 $as_echo "$ac_cv_struct_tm" >&6; }
7729 if test $ac_cv_struct_tm = sys
/time.h
; then
7731 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7735 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7736 #include <$ac_cv_struct_tm>
7739 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7741 cat >>confdefs.h
<<_ACEOF
7742 #define HAVE_STRUCT_TM_TM_ZONE 1
7748 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7750 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7753 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7755 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
7761 cat >>confdefs.h
<<_ACEOF
7762 #define HAVE_DECL_TZNAME $ac_have_decl
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7766 $as_echo_n "checking for tzname... " >&6; }
7767 if ${ac_cv_var_tzname+:} false
; then :
7768 $as_echo_n "(cached) " >&6
7770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7773 #if !HAVE_DECL_TZNAME
7774 extern char *tzname[];
7780 return tzname[0][0];
7785 if ac_fn_c_try_link
"$LINENO"; then :
7786 ac_cv_var_tzname
=yes
7790 rm -f core conftest.err conftest.
$ac_objext \
7791 conftest
$ac_exeext conftest.
$ac_ext
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7794 $as_echo "$ac_cv_var_tzname" >&6; }
7795 if test $ac_cv_var_tzname = yes; then
7797 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7802 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7804 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
7806 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7810 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7811 #if HAVE_SYS_SOCKET_H
7812 #include <sys/socket.h>
7818 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
7820 cat >>confdefs.h
<<_ACEOF
7821 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7826 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7827 #if HAVE_SYS_SOCKET_H
7828 #include <sys/socket.h>
7834 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
7836 cat >>confdefs.h
<<_ACEOF
7837 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7842 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7843 #if HAVE_SYS_SOCKET_H
7844 #include <sys/socket.h>
7850 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
7852 cat >>confdefs.h
<<_ACEOF
7853 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7858 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7859 #if HAVE_SYS_SOCKET_H
7860 #include <sys/socket.h>
7866 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
7868 cat >>confdefs.h
<<_ACEOF
7869 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7874 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7875 #if HAVE_SYS_SOCKET_H
7876 #include <sys/socket.h>
7882 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
7884 cat >>confdefs.h
<<_ACEOF
7885 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7894 $as_echo_n "checking for function prototypes... " >&6; }
7895 if test "$ac_cv_prog_cc_c89" != no
; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7897 $as_echo "yes" >&6; }
7899 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7902 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7910 $as_echo_n "checking for working volatile... " >&6; }
7911 if ${ac_cv_c_volatile+:} false
; then :
7912 $as_echo_n "(cached) " >&6
7914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7922 int * volatile y = (int *) 0;
7928 if ac_fn_c_try_compile
"$LINENO"; then :
7929 ac_cv_c_volatile
=yes
7933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7936 $as_echo "$ac_cv_c_volatile" >&6; }
7937 if test $ac_cv_c_volatile = no
; then
7939 $as_echo "#define volatile /**/" >>confdefs.h
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7944 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7945 if ${ac_cv_c_const+:} false
; then :
7946 $as_echo_n "(cached) " >&6
7948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7954 /* FIXME: Include the comments suggested by Paul. */
7956 /* Ultrix mips cc rejects this. */
7957 typedef int charset[2];
7959 /* SunOS 4.1.1 cc rejects this. */
7960 char const *const *pcpcc;
7962 /* NEC SVR4.0.2 mips cc rejects this. */
7963 struct point {int x, y;};
7964 static struct point const zero = {0,0};
7965 /* AIX XL C 1.02.0.0 rejects this.
7966 It does not let you subtract one const X* pointer from another in
7967 an arm of an if-expression whose if-part is not a constant
7969 const char *g = "string";
7970 pcpcc = &g + (g ? g-g : 0);
7971 /* HPUX 7.0 cc rejects these. */
7973 ppc = (char**) pcpcc;
7974 pcpcc = (char const *const *) ppc;
7975 { /* SCO 3.2v4 cc rejects this. */
7977 char const *s = 0 ? (char *) 0 : (char const *) 0;
7982 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7984 const int *foo = &x[0];
7987 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7988 typedef const int *iptr;
7992 { /* AIX XL C 1.02.0.0 rejects this saying
7993 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7994 struct s { int j; const int *ap[3]; };
7995 struct s *b; b->j = 5;
7997 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8001 return !cs[0] && !zero.x;
8008 if ac_fn_c_try_compile
"$LINENO"; then :
8013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8016 $as_echo "$ac_cv_c_const" >&6; }
8017 if test $ac_cv_c_const = no
; then
8019 $as_echo "#define const /**/" >>confdefs.h
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8024 $as_echo_n "checking for void * support... " >&6; }
8025 if ${emacs_cv_void_star+:} false
; then :
8026 $as_echo_n "(cached) " >&6
8028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8039 if ac_fn_c_try_compile
"$LINENO"; then :
8040 emacs_cv_void_star
=yes
8042 emacs_cv_void_star
=no
8044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8047 $as_echo "$emacs_cv_void_star" >&6; }
8048 if test $emacs_cv_void_star = yes; then
8049 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8052 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8057 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8058 if ${ac_cv_c_bigendian+:} false
; then :
8059 $as_echo_n "(cached) " >&6
8061 ac_cv_c_bigendian
=unknown
8062 # See if we're dealing with a universal compiler.
8063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065 #ifndef __APPLE_CC__
8066 not a universal capable compiler
8071 if ac_fn_c_try_compile
"$LINENO"; then :
8073 # Check for potential -arch flags. It is not universal unless
8074 # there are at least two -arch flags with different values.
8077 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8078 if test -n "$ac_prev"; then
8080 i?
86 | x86_64 | ppc | ppc64
)
8081 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8084 ac_cv_c_bigendian
=universal
8090 elif test "x$ac_word" = "x-arch"; then
8095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8096 if test $ac_cv_c_bigendian = unknown
; then
8097 # See if sys/param.h defines the BYTE_ORDER macro.
8098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 #include <sys/types.h>
8101 #include <sys/param.h>
8106 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8107 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8116 if ac_fn_c_try_compile
"$LINENO"; then :
8117 # It does; now see whether it defined to BIG_ENDIAN or not.
8118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #include <sys/types.h>
8121 #include <sys/param.h>
8126 #if BYTE_ORDER != BIG_ENDIAN
8134 if ac_fn_c_try_compile
"$LINENO"; then :
8135 ac_cv_c_bigendian
=yes
8137 ac_cv_c_bigendian
=no
8139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8143 if test $ac_cv_c_bigendian = unknown
; then
8144 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8152 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8160 if ac_fn_c_try_compile
"$LINENO"; then :
8161 # It does; now see whether it defined to _BIG_ENDIAN or not.
8162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8177 if ac_fn_c_try_compile
"$LINENO"; then :
8178 ac_cv_c_bigendian
=yes
8180 ac_cv_c_bigendian
=no
8182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8186 if test $ac_cv_c_bigendian = unknown
; then
8187 # Compile a test program.
8188 if test "$cross_compiling" = yes; then :
8189 # Try to guess by grepping values from an object file.
8190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 short int ascii_mm[] =
8193 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8194 short int ascii_ii[] =
8195 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8196 int use_ascii (int i) {
8197 return ascii_mm[i] + ascii_ii[i];
8199 short int ebcdic_ii[] =
8200 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8201 short int ebcdic_mm[] =
8202 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8203 int use_ebcdic (int i) {
8204 return ebcdic_mm[i] + ebcdic_ii[i];
8211 return use_ascii (foo) == use_ebcdic (foo);
8216 if ac_fn_c_try_compile
"$LINENO"; then :
8217 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8218 ac_cv_c_bigendian
=yes
8220 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8221 if test "$ac_cv_c_bigendian" = unknown
; then
8222 ac_cv_c_bigendian
=no
8224 # finding both strings is unlikely to happen, but who knows?
8225 ac_cv_c_bigendian
=unknown
8229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 $ac_includes_default
8238 /* Are we little or big endian? From Harbison&Steele. */
8242 char c[sizeof (long int)];
8245 return u.c[sizeof (long int) - 1] == 1;
8251 if ac_fn_c_try_run
"$LINENO"; then :
8252 ac_cv_c_bigendian
=no
8254 ac_cv_c_bigendian
=yes
8256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8263 $as_echo "$ac_cv_c_bigendian" >&6; }
8264 case $ac_cv_c_bigendian in #(
8266 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8272 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8276 as_fn_error $?
"unknown endianness
8277 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8282 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8284 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8285 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8286 $as_echo_n "(cached) " >&6
8288 cat >conftest.
make <<\_ACEOF
8291 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8293 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8294 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8296 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8298 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8302 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8304 $as_echo "yes" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 SET_MAKE
="MAKE=${MAKE-make}"
8316 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8318 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8320 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8321 if test "x$testval" != x
; then
8324 ac_enable_autodepend
=no
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8327 $as_echo "$HAVE_GNU_MAKE" >&6; }
8328 if test $HAVE_GNU_MAKE = yes; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8330 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8331 SAVE_CFLAGS
="$CFLAGS"
8332 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8344 if ac_fn_c_try_compile
"$LINENO"; then :
8347 ac_enable_autodepend
=no
8349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8350 CFLAGS
="$SAVE_CFLAGS"
8351 test -f deps.d || ac_enable_autodepend
=no
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8354 $as_echo "$ac_enable_autodepend" >&6; }
8356 if test $ac_enable_autodepend = yes; then
8357 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8358 ## In parallel builds, another make might create depdir between
8359 ## the first test and mkdir, so stick another test on the end.
8360 ## Or use mkinstalldirs? mkdir -p is not portable.
8361 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8362 deps_frag
=autodeps.mk
8365 deps_frag
=$srcdir/src
/$deps_frag
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8372 $as_echo_n "checking for long file names... " >&6; }
8373 if ${ac_cv_sys_long_file_names+:} false
; then :
8374 $as_echo_n "(cached) " >&6
8376 ac_cv_sys_long_file_names
=yes
8377 # Test for long file names in all the places we know might matter:
8378 # . the current directory, where building will happen
8379 # $prefix/lib where we will be installing things
8380 # $exec_prefix/lib likewise
8381 # $TMPDIR if set, where it might want to write temporary files
8382 # /tmp where it might want to write temporary files
8385 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8386 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8387 # in the usual case where exec_prefix is '${prefix}'.
8389 . |
/* | ?
:[\\/]*) ;; #(
8392 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8393 ac_xdir
=$ac_dir/cf$$
8394 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8395 ac_tf1
=$ac_xdir/conftest9012345
8396 ac_tf2
=$ac_xdir/conftest9012346
8397 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8398 ac_cv_sys_long_file_names
=no
8399 rm -f -r "$ac_xdir" 2>/dev
/null
8400 test $ac_cv_sys_long_file_names = no
&& break
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8404 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8405 if test $ac_cv_sys_long_file_names = yes; then
8407 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8412 #### Choose a window system.
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8415 $as_echo_n "checking for X... " >&6; }
8418 # Check whether --with-x was given.
8419 if test "${with_x+set}" = set; then :
8423 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8424 if test "x$with_x" = xno
; then
8425 # The user explicitly disabled X.
8428 case $x_includes,$x_libraries in #(
8429 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8430 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8431 $as_echo_n "(cached) " >&6
8433 # One or both of the vars are not set, and there is no cached value.
8434 ac_x_includes
=no ac_x_libraries
=no
8435 rm -f -r conftest.dir
8436 if mkdir conftest.dir
; then
8438 cat >Imakefile
<<'_ACEOF'
8440 @echo incroot='${INCROOT}'
8442 @echo usrlibdir='${USRLIBDIR}'
8444 @echo libdir='${LIBDIR}'
8446 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8447 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8448 for ac_var
in incroot usrlibdir libdir
; do
8449 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8451 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8452 for ac_extension
in a so sl dylib la dll
; do
8453 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8454 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8455 ac_im_usrlibdir
=$ac_im_libdir; break
8458 # Screen out bogus values from the imake configuration. They are
8459 # bogus both because they are the default anyway, and because
8460 # using them would break gcc on systems where it needs fixed includes.
8461 case $ac_im_incroot in
8462 /usr
/include
) ac_x_includes
= ;;
8463 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8465 case $ac_im_usrlibdir in
8466 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8467 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8471 rm -f -r conftest.dir
8474 # Standard set of common directories for X headers.
8475 # Check X11 before X11Rn because it is often a symlink to the current release.
8489 /usr/local/X11/include
8490 /usr/local/X11R7/include
8491 /usr/local/X11R6/include
8492 /usr/local/X11R5/include
8493 /usr/local/X11R4/include
8495 /usr/local/include/X11
8496 /usr/local/include/X11R7
8497 /usr/local/include/X11R6
8498 /usr/local/include/X11R5
8499 /usr/local/include/X11R4
8503 /usr/XFree86/include/X11
8507 /usr/unsupported/include
8509 /usr/local/x11r5/include
8510 /usr/lpp/Xamples/include
8512 /usr/openwin/include
8513 /usr/openwin/share/include'
8515 if test "$ac_x_includes" = no
; then
8516 # Guess where to find include files, by looking for Xlib.h.
8517 # First, try using that file with no special directory specified.
8518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8520 #include <X11/Xlib.h>
8522 if ac_fn_c_try_cpp
"$LINENO"; then :
8523 # We can compile using X headers with no special include directory.
8526 for ac_dir
in $ac_x_header_dirs; do
8527 if test -r "$ac_dir/X11/Xlib.h"; then
8528 ac_x_includes
=$ac_dir
8533 rm -f conftest.err conftest.i conftest.
$ac_ext
8534 fi # $ac_x_includes = no
8536 if test "$ac_x_libraries" = no
; then
8537 # Check for the libraries.
8538 # See if we find them without any special options.
8539 # Don't add to $LIBS permanently.
8542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8544 #include <X11/Xlib.h>
8553 if ac_fn_c_try_link
"$LINENO"; then :
8555 # We can link X programs with no special library path.
8559 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8561 # Don't even attempt the hair of trying to link an X program!
8562 for ac_extension
in a so sl dylib la dll
; do
8563 if test -r "$ac_dir/libX11.$ac_extension"; then
8564 ac_x_libraries
=$ac_dir
8570 rm -f core conftest.err conftest.
$ac_objext \
8571 conftest
$ac_exeext conftest.
$ac_ext
8572 fi # $ac_x_libraries = no
8574 case $ac_x_includes,$ac_x_libraries in #(
8576 # Didn't find X, or a directory has "'" in its name.
8577 ac_cv_have_x
="have_x=no";; #(
8579 # Record where we found X for the cache.
8580 ac_cv_have_x
="have_x=yes\
8581 ac_x_includes='$ac_x_includes'\
8582 ac_x_libraries='$ac_x_libraries'"
8588 eval "$ac_cv_have_x"
8591 if test "$have_x" != yes; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8593 $as_echo "$have_x" >&6; }
8596 # If each of the values was on the command line, it overrides each guess.
8597 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8598 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8599 # Update the cache value to reflect the command line values.
8600 ac_cv_have_x
="have_x=yes\
8601 ac_x_includes='$x_includes'\
8602 ac_x_libraries='$x_libraries'"
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8604 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8607 if test "$no_x" = yes; then
8613 ## Workaround for bug in autoconf <= 2.62.
8614 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8615 ## No need to do anything special for these standard directories.
8616 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8618 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8622 LD_SWITCH_X_SITE_AUX
=
8623 LD_SWITCH_X_SITE_AUX_RPATH
=
8624 if test "${x_libraries}" != NONE
; then
8625 if test -n "${x_libraries}"; then
8626 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8627 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8628 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8630 x_default_search_path
=""
8631 x_search_path
=${x_libraries}
8632 if test -z "${x_search_path}"; then
8633 x_search_path
=/usr
/lib
8635 for x_library
in `echo ${x_search_path}: | \
8636 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8638 ${x_library}/X11/%L/%T/%N%C%S:\
8639 ${x_library}/X11/%l/%T/%N%C%S:\
8640 ${x_library}/X11/%T/%N%C%S:\
8641 ${x_library}/X11/%L/%T/%N%S:\
8642 ${x_library}/X11/%l/%T/%N%S:\
8643 ${x_library}/X11/%T/%N%S"
8644 if test x
"${x_default_search_path}" = x
; then
8645 x_default_search_path
=${x_search_path}
8647 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8654 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8655 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8658 if test x
"${x_includes}" = x
; then
8659 bitmapdir
=/usr
/include
/X11
/bitmaps
8661 # accumulate include directories that have X11 bitmap subdirectories
8663 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8664 if test -d "${bmd}/X11/bitmaps"; then
8665 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8667 if test -d "${bmd}/bitmaps"; then
8668 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8671 if test ${bmd_acc} != "dummyval"; then
8672 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8679 tmp_CPPFLAGS
="$CPPFLAGS"
8680 tmp_CFLAGS
="$CFLAGS"
8681 CPPFLAGS
="$CPPFLAGS -x objective-c"
8682 CFLAGS
="$CFLAGS -x objective-c"
8683 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8684 if test "${with_ns}" != no
; then
8685 if test "${opsys}" = darwin
; then
8687 ns_appdir
=`pwd`/nextstep
/Emacs.app
8688 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
8689 ns_appresdir
=${ns_appdir}/Contents
/Resources
8690 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
8691 elif test -f $GNUSTEP_CONFIG_FILE; then
8693 ns_appdir
=`pwd`/nextstep
/Emacs.app
8694 ns_appbindir
=${ns_appdir}/
8695 ns_appresdir
=${ns_appdir}/Resources
8696 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
8697 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8698 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8699 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8700 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8701 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8702 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
8703 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8704 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
8705 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8706 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8707 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8712 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8713 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
8716 as_fn_error $?
"\`--with-ns' was specified, but the include
8717 files are missing or cannot be compiled." "$LINENO" 5
8721 NS_HAVE_NSINTEGER
=yes
8722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #include <Foundation/NSObjCRuntime.h>
8733 if ac_fn_c_try_compile
"$LINENO"; then :
8734 ns_have_nsinteger
=yes
8736 ns_have_nsinteger
=no
8738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8739 if test $ns_have_nsinteger = no
; then
8740 NS_HAVE_NSINTEGER
=no
8748 if test "${HAVE_NS}" = yes; then
8749 window_system
=nextstep
8751 # set up packaging dirs
8752 exec_prefix
=${ns_appbindir}
8753 libexecdir
=${ns_appbindir}/libexec
8754 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8755 prefix
=${ns_appresdir}
8757 ns_frag
=$srcdir/src
/ns.mk
8758 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8759 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8761 CFLAGS
="$tmp_CFLAGS"
8762 CPPFLAGS
="$tmp_CPPFLAGS"
8768 case "${window_system}" in
8772 case "${with_x_toolkit}" in
8773 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8774 motif
) USE_X_TOOLKIT
=MOTIF
;;
8776 USE_X_TOOLKIT
=none
;;
8777 gtk3
) with_gtk3
=yes
8778 USE_X_TOOLKIT
=none
;;
8779 no
) USE_X_TOOLKIT
=none
;;
8780 * ) USE_X_TOOLKIT
=maybe
;;
8790 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
8791 # Extract the first word of "X", so it can be a program name with args.
8792 set dummy X
; ac_word
=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
8796 $as_echo_n "(cached) " >&6
8798 if test -n "$HAVE_XSERVER"; then
8799 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
8801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8805 test -z "$as_dir" && as_dir
=.
8806 for ac_exec_ext
in '' $ac_executable_extensions; do
8807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8808 ac_cv_prog_HAVE_XSERVER
="true"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
8819 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
8820 if test -n "$HAVE_XSERVER"; then
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8822 $as_echo "$HAVE_XSERVER" >&6; }
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 $as_echo "no" >&6; }
8829 if test "$HAVE_XSERVER" = true ||
8830 test -n "$DISPLAY" ||
8831 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8832 as_fn_error $?
"You seem to be running X, but no X development libraries
8833 were found. You should install the relevant development files for X
8834 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8835 sure you have development files for image handling, i.e.
8836 tiff, gif, jpeg, png and xpm.
8837 If you are sure you want Emacs compiled without X window support, pass
8839 to configure." "$LINENO" 5
8843 ### If we're using X11, we should use the X menu package.
8846 yes ) HAVE_MENUS
=yes ;;
8849 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8850 # Assume not, until told otherwise.
8853 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8854 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
8860 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8861 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8868 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8869 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
8870 $as_echo_n "(cached) " >&6
8872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 extern void (* __after_morecore_hook)();
8878 __after_morecore_hook = 0
8883 if ac_fn_c_try_link
"$LINENO"; then :
8884 emacs_cv_var___after_morecore_hook
=yes
8886 emacs_cv_var___after_morecore_hook
=no
8888 rm -f core conftest.err conftest.
$ac_objext \
8889 conftest
$ac_exeext conftest.
$ac_ext
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8892 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8893 if test $emacs_cv_var___after_morecore_hook = no
; then
8900 ## darwin ld insists on the use of malloc routines in the System framework.
8901 darwin|sol2-10
) system_malloc
=yes ;;
8904 if test "${system_malloc}" = "yes"; then
8906 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8910 (The GNU allocators don't work with this system configuration.)"
8914 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
8915 VMLIMIT_OBJ
=vm-limit.o
8920 if test "$doug_lea_malloc" = "yes" ; then
8921 if test "$GNU_MALLOC" = yes ; then
8923 (Using Doug Lea's new malloc from the GNU C Library.)"
8926 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8929 ## Use mmap directly for allocating larger buffers.
8930 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8931 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8932 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8934 gnu
*) REL_ALLOC
=no
;;
8938 if test x
"${REL_ALLOC}" = x
; then
8939 REL_ALLOC
=${GNU_MALLOC}
8942 use_mmap_for_buffers
=no
8944 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
8950 for ac_header
in $ac_header_list
8952 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8953 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8955 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8956 cat >>confdefs.h
<<_ACEOF
8957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8971 for ac_func
in getpagesize
8973 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8974 if test "x$ac_cv_func_getpagesize" = xyes
; then :
8975 cat >>confdefs.h
<<_ACEOF
8976 #define HAVE_GETPAGESIZE 1
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8983 $as_echo_n "checking for working mmap... " >&6; }
8984 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
8985 $as_echo_n "(cached) " >&6
8987 if test "$cross_compiling" = yes; then :
8988 ac_cv_func_mmap_fixed_mapped
=no
8990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 $ac_includes_default
8993 /* malloc might have been renamed as rpl_malloc. */
8996 /* Thanks to Mike Haertel and Jim Avera for this test.
8997 Here is a matrix of mmap possibilities:
8998 mmap private not fixed
8999 mmap private fixed at somewhere currently unmapped
9000 mmap private fixed at somewhere already mapped
9001 mmap shared not fixed
9002 mmap shared fixed at somewhere currently unmapped
9003 mmap shared fixed at somewhere already mapped
9004 For private mappings, we should verify that changes cannot be read()
9005 back from the file, nor mmap's back from the file at a different
9006 address. (There have been systems where private was not correctly
9007 implemented like the infamous i386 svr4.0, and systems where the
9008 VM page cache was not coherent with the file system buffer cache
9009 like early versions of FreeBSD and possibly contemporary NetBSD.)
9010 For shared mappings, we should conversely verify that changes get
9011 propagated back to all the places they're supposed to be.
9013 Grep wants private fixed already mapped.
9014 The main things grep needs to know about mmap are:
9015 * does it exist and is it safe to write into the mmap'd area
9016 * how to use it (BSD variants) */
9019 #include <sys/mman.h>
9021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9025 /* This mess was copied from the GNU getpagesize.h. */
9026 #ifndef HAVE_GETPAGESIZE
9027 # ifdef _SC_PAGESIZE
9028 # define getpagesize() sysconf(_SC_PAGESIZE)
9029 # else /* no _SC_PAGESIZE */
9030 # ifdef HAVE_SYS_PARAM_H
9031 # include <sys/param.h>
9032 # ifdef EXEC_PAGESIZE
9033 # define getpagesize() EXEC_PAGESIZE
9034 # else /* no EXEC_PAGESIZE */
9036 # define getpagesize() NBPG * CLSIZE
9039 # endif /* no CLSIZE */
9040 # else /* no NBPG */
9042 # define getpagesize() NBPC
9043 # else /* no NBPC */
9045 # define getpagesize() PAGESIZE
9046 # endif /* PAGESIZE */
9047 # endif /* no NBPC */
9048 # endif /* no NBPG */
9049 # endif /* no EXEC_PAGESIZE */
9050 # else /* no HAVE_SYS_PARAM_H */
9051 # define getpagesize() 8192 /* punt totally */
9052 # endif /* no HAVE_SYS_PARAM_H */
9053 # endif /* no _SC_PAGESIZE */
9055 #endif /* no HAVE_GETPAGESIZE */
9060 char *data, *data2, *data3;
9065 pagesize = getpagesize ();
9067 /* First, make a file with some known garbage in it. */
9068 data = (char *) malloc (pagesize);
9071 for (i = 0; i < pagesize; ++i)
9072 *(data + i) = rand ();
9074 fd = creat ("conftest.mmap", 0600);
9077 if (write (fd, data, pagesize) != pagesize)
9081 /* Next, check that the tail of a page is zero-filled. File must have
9082 non-zero length, otherwise we risk SIGBUS for entire page. */
9083 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9087 if (write (fd2, cdata2, 1) != 1)
9089 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9090 if (data2 == MAP_FAILED)
9092 for (i = 0; i < pagesize; ++i)
9096 if (munmap (data2, pagesize))
9099 /* Next, try to mmap the file at a fixed address which already has
9100 something else allocated at it. If we can, also make sure that
9101 we see the same garbage. */
9102 fd = open ("conftest.mmap", O_RDWR);
9105 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9106 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9108 for (i = 0; i < pagesize; ++i)
9109 if (*(data + i) != *(data2 + i))
9112 /* Finally, make sure that changes to the mapped area do not
9113 percolate back to the file as seen by read(). (This is a bug on
9114 some variants of i386 svr4.0.) */
9115 for (i = 0; i < pagesize; ++i)
9116 *(data2 + i) = *(data2 + i) + 1;
9117 data3 = (char *) malloc (pagesize);
9120 if (read (fd, data3, pagesize) != pagesize)
9122 for (i = 0; i < pagesize; ++i)
9123 if (*(data + i) != *(data3 + i))
9129 if ac_fn_c_try_run
"$LINENO"; then :
9130 ac_cv_func_mmap_fixed_mapped
=yes
9132 ac_cv_func_mmap_fixed_mapped
=no
9134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9135 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9140 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9141 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9143 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9146 rm -f conftest.mmap conftest.txt
9148 if test $use_mmap_for_buffers = yes; then
9150 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9155 LIBS
="$LIBS_SYSTEM $LIBS"
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9158 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9159 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
9160 $as_echo_n "(cached) " >&6
9162 ac_check_lib_save_LIBS
=$LIBS
9164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9167 /* Override any GCC internal prototype to avoid an error.
9168 Use char because int might match the return type of a GCC
9169 builtin and then its argument prototype would still apply. */
9177 return dnet_ntoa ();
9182 if ac_fn_c_try_link
"$LINENO"; then :
9183 ac_cv_lib_dnet_dnet_ntoa
=yes
9185 ac_cv_lib_dnet_dnet_ntoa
=no
9187 rm -f core conftest.err conftest.
$ac_objext \
9188 conftest
$ac_exeext conftest.
$ac_ext
9189 LIBS
=$ac_check_lib_save_LIBS
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9192 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9193 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9194 cat >>confdefs.h
<<_ACEOF
9195 #define HAVE_LIBDNET 1
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9204 $as_echo_n "checking for main in -lXbsd... " >&6; }
9205 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9206 $as_echo_n "(cached) " >&6
9208 ac_check_lib_save_LIBS
=$LIBS
9210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9222 if ac_fn_c_try_link
"$LINENO"; then :
9223 ac_cv_lib_Xbsd_main
=yes
9225 ac_cv_lib_Xbsd_main
=no
9227 rm -f core conftest.err conftest.
$ac_objext \
9228 conftest
$ac_exeext conftest.
$ac_ext
9229 LIBS
=$ac_check_lib_save_LIBS
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9232 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9233 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9234 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9239 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9240 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9241 $as_echo_n "(cached) " >&6
9243 ac_check_lib_save_LIBS
=$LIBS
9244 LIBS
="-lpthreads $LIBS"
9245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9263 if ac_fn_c_try_link
"$LINENO"; then :
9264 ac_cv_lib_pthreads_cma_open
=yes
9266 ac_cv_lib_pthreads_cma_open
=no
9268 rm -f core conftest.err conftest.
$ac_objext \
9269 conftest
$ac_exeext conftest.
$ac_ext
9270 LIBS
=$ac_check_lib_save_LIBS
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9273 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9274 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9275 cat >>confdefs.h
<<_ACEOF
9276 #define HAVE_LIBPTHREADS 1
9279 LIBS
="-lpthreads $LIBS"
9284 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9285 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9286 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9287 ## added to LIBS in configure would never contain the pthreads part,
9288 ## but the value used in Makefiles might. FIXME?
9290 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9291 ## be harmless on older versions of X where it happens to exist.
9292 test "$opsys" = "aix4-2" && \
9293 test $ac_cv_lib_pthreads_cma_open = yes && \
9294 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9300 $as_echo_n "checking for -bbigtoc option... " >&6; }
9301 if ${gdb_cv_bigtoc+:} false
; then :
9302 $as_echo_n "(cached) " >&6
9306 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9307 *) gdb_cv_bigtoc
=-bbigtoc ;;
9310 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9322 if ac_fn_c_try_link
"$LINENO"; then :
9327 rm -f core conftest.err conftest.
$ac_objext \
9328 conftest
$ac_exeext conftest.
$ac_ext
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9332 $as_echo "$gdb_cv_bigtoc" >&6; }
9336 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9337 # used for the tests that follow. We set them back to REAL_CFLAGS and
9338 # REAL_CPPFLAGS later on.
9340 REAL_CFLAGS
="$CFLAGS"
9341 REAL_CPPFLAGS
="$CPPFLAGS"
9343 if test "${HAVE_X11}" = "yes"; then
9344 DEFS
="$C_SWITCH_X_SITE $DEFS"
9345 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9347 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9348 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9350 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9351 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9352 # but it's more convenient here to set LD_RUN_PATH
9353 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9354 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9355 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9359 if test "${opsys}" = "gnu-linux"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9361 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9368 XOpenDisplay ("foo");
9373 if ac_fn_c_try_link
"$LINENO"; then :
9374 xlinux_first_failure
=no
9376 xlinux_first_failure
=yes
9378 rm -f core conftest.err conftest.
$ac_objext \
9379 conftest
$ac_exeext conftest.
$ac_ext
9380 if test "${xlinux_first_failure}" = "yes"; then
9381 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9382 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9383 OLD_CPPFLAGS
="$CPPFLAGS"
9385 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9386 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9387 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9388 LIBS
="$LIBS -b i486-linuxaout"
9389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9395 XOpenDisplay ("foo");
9400 if ac_fn_c_try_link
"$LINENO"; then :
9401 xlinux_second_failure
=no
9403 xlinux_second_failure
=yes
9405 rm -f core conftest.err conftest.
$ac_objext \
9406 conftest
$ac_exeext conftest.
$ac_ext
9407 if test "${xlinux_second_failure}" = "yes"; then
9408 # If we get the same failure with -b, there is no use adding -b.
9409 # So take it out. This plays safe.
9410 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9411 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9412 CPPFLAGS
="$OLD_CPPFLAGS"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9418 $as_echo "yes" >&6; }
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9427 # header files included from there.
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9429 $as_echo_n "checking for Xkb... " >&6; }
9430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 #include <X11/Xlib.h>
9433 #include <X11/XKBlib.h>
9437 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9442 if ac_fn_c_try_link
"$LINENO"; then :
9447 rm -f core conftest.err conftest.
$ac_objext \
9448 conftest
$ac_exeext conftest.
$ac_ext
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9450 $as_echo "$emacs_xkb" >&6; }
9451 if test $emacs_xkb = yes; then
9453 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9457 for ac_func
in XrmSetDatabase XScreenResourceString \
9458 XScreenNumberOfScreen XSetWMProtocols
9460 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9461 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9462 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9463 cat >>confdefs.h
<<_ACEOF
9464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9472 if test "${window_system}" = "x11"; then
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9474 $as_echo_n "checking X11 version 6... " >&6; }
9475 if ${emacs_cv_x11_version_6+:} false
; then :
9476 $as_echo_n "(cached) " >&6
9478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 #include <X11/Xlib.h>
9484 #if XlibSpecificationRelease < 6
9492 if ac_fn_c_try_link
"$LINENO"; then :
9493 emacs_cv_x11_version_6
=yes
9495 emacs_cv_x11_version_6
=no
9497 rm -f core conftest.err conftest.
$ac_objext \
9498 conftest
$ac_exeext conftest.
$ac_ext
9501 if test $emacs_cv_x11_version_6 = yes; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9503 $as_echo "6 or newer" >&6; }
9505 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9508 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9510 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9515 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9521 $as_echo "before 6" >&6; }
9526 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9528 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9529 if test "${with_rsvg}" != "no"; then
9530 RSVG_REQUIRED
=2.11.0
9531 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9536 # Extract the first word of "pkg-config", so it can be a program name with args.
9537 set dummy pkg-config
; ac_word
=$2
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9539 $as_echo_n "checking for $ac_word... " >&6; }
9540 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9541 $as_echo_n "(cached) " >&6
9545 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9552 test -z "$as_dir" && as_dir
=.
9553 for ac_exec_ext
in '' $ac_executable_extensions; do
9554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9555 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9567 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9568 if test -n "$PKG_CONFIG"; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9570 $as_echo "$PKG_CONFIG" >&6; }
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 $as_echo "no" >&6; }
9578 if test "$PKG_CONFIG" = "no" ; then
9581 PKG_CONFIG_MIN_VERSION
=0.9.0
9582 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9584 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9586 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9588 $as_echo "yes" >&6; }
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9592 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9593 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9595 $as_echo "$RSVG_CFLAGS" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9598 $as_echo_n "checking RSVG_LIBS... " >&6; }
9599 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9601 $as_echo "$RSVG_LIBS" >&6; }
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9607 ## If we have a custom action on failure, don't print errors, but
9608 ## do set a variable so people can do so.
9609 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9616 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9617 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9621 if test $succeeded = yes; then
9630 if test $HAVE_RSVG = yes; then
9632 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9634 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9635 LIBS
="$RSVG_LIBS $LIBS"
9641 if test "${HAVE_X11}" = "yes"; then
9642 if test "${with_imagemagick}" != "no"; then
9643 IMAGEMAGICK_MODULE
="Wand"
9647 # Extract the first word of "pkg-config", so it can be a program name with args.
9648 set dummy pkg-config
; ac_word
=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9652 $as_echo_n "(cached) " >&6
9656 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9663 test -z "$as_dir" && as_dir
=.
9664 for ac_exec_ext
in '' $ac_executable_extensions; do
9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9678 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9679 if test -n "$PKG_CONFIG"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9681 $as_echo "$PKG_CONFIG" >&6; }
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9689 if test "$PKG_CONFIG" = "no" ; then
9692 PKG_CONFIG_MIN_VERSION
=0.9.0
9693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9695 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9697 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9699 $as_echo "yes" >&6; }
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9703 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9704 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9706 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9709 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9710 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9712 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9716 IMAGEMAGICK_CFLAGS
=""
9718 ## If we have a custom action on failure, don't print errors, but
9719 ## do set a variable so people can do so.
9720 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9727 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9728 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9732 if test $succeeded = yes; then
9733 HAVE_IMAGEMAGICK
=yes
9741 if test $HAVE_IMAGEMAGICK = yes; then
9743 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9745 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
9746 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
9747 for ac_func
in MagickExportImagePixels
9749 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9750 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
9751 cat >>confdefs.h
<<_ACEOF
9752 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9764 if test "${with_gtk3}" = "yes"; then
9767 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9772 # Extract the first word of "pkg-config", so it can be a program name with args.
9773 set dummy pkg-config
; ac_word
=$2
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775 $as_echo_n "checking for $ac_word... " >&6; }
9776 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9777 $as_echo_n "(cached) " >&6
9781 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9788 test -z "$as_dir" && as_dir
=.
9789 for ac_exec_ext
in '' $ac_executable_extensions; do
9790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9799 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9803 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9804 if test -n "$PKG_CONFIG"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9806 $as_echo "$PKG_CONFIG" >&6; }
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9814 if test "$PKG_CONFIG" = "no" ; then
9817 PKG_CONFIG_MIN_VERSION
=0.9.0
9818 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9820 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9822 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9824 $as_echo "yes" >&6; }
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9828 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9829 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9831 $as_echo "$GTK_CFLAGS" >&6; }
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9834 $as_echo_n "checking GTK_LIBS... " >&6; }
9835 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9837 $as_echo "$GTK_LIBS" >&6; }
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9843 ## If we have a custom action on failure, don't print errors, but
9844 ## do set a variable so people can do so.
9845 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9852 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9853 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9857 if test $succeeded = yes; then
9863 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9864 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9868 if test "$pkg_check_gtk" != "yes"; then
9870 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
9873 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9878 # Extract the first word of "pkg-config", so it can be a program name with args.
9879 set dummy pkg-config
; ac_word
=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9883 $as_echo_n "(cached) " >&6
9887 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9894 test -z "$as_dir" && as_dir
=.
9895 for ac_exec_ext
in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9897 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9909 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9910 if test -n "$PKG_CONFIG"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9912 $as_echo "$PKG_CONFIG" >&6; }
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9920 if test "$PKG_CONFIG" = "no" ; then
9923 PKG_CONFIG_MIN_VERSION
=0.9.0
9924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9926 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9928 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9930 $as_echo "yes" >&6; }
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9934 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9935 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9937 $as_echo "$GTK_CFLAGS" >&6; }
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9940 $as_echo_n "checking GTK_LIBS... " >&6; }
9941 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9943 $as_echo "$GTK_LIBS" >&6; }
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9949 ## If we have a custom action on failure, don't print errors, but
9950 ## do set a variable so people can do so.
9951 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9963 if test $succeeded = yes; then
9969 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9970 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
9976 if test x
"$pkg_check_gtk" = xyes
; then
9980 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9981 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9982 LIBS
="$GTK_LIBS $LIBS"
9984 for ac_func
in gtk_main
9986 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
9987 if test "x$ac_cv_func_gtk_main" = xyes
; then :
9988 cat >>confdefs.h
<<_ACEOF
9989 #define HAVE_GTK_MAIN 1
9995 if test "${GTK_COMPILES}" != "yes"; then
9996 if test "$USE_X_TOOLKIT" != "maybe"; then
9997 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10002 $as_echo "#define USE_GTK 1" >>confdefs.h
10006 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10010 closing open displays. This is no problem if you just use
10011 one display, but if you use more than one and close one of them
10012 Emacs may crash." >&5
10013 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10014 closing open displays. This is no problem if you just use
10015 one display, but if you use more than one and close one of them
10016 Emacs may crash." >&2;}
10025 if test "${HAVE_GTK}" = "yes"; then
10027 if test "$with_toolkit_scroll_bars" != no
; then
10028 with_toolkit_scroll_bars
=yes
10031 HAVE_GTK_FILE_SELECTION
=no
10032 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10033 #include <gtk/gtk.h>
10035 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
10036 HAVE_GTK_FILE_SELECTION
=yes
10038 HAVE_GTK_FILE_SELECTION
=no
10041 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10042 for ac_func
in gtk_file_selection_new
10044 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10045 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
10046 cat >>confdefs.h
<<_ACEOF
10047 #define HAVE_GTK_FILE_SELECTION_NEW 1
10055 HAVE_GTK_AND_PTHREAD
=no
10056 for ac_header
in pthread.h
10058 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10059 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10060 cat >>confdefs.h
<<_ACEOF
10061 #define HAVE_PTHREAD_H 1
10068 if test "$ac_cv_header_pthread_h"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10070 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10071 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10072 $as_echo_n "(cached) " >&6
10074 ac_check_lib_save_LIBS
=$LIBS
10075 LIBS
="-lpthread $LIBS"
10076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10085 char pthread_self ();
10089 return pthread_self ();
10094 if ac_fn_c_try_link
"$LINENO"; then :
10095 ac_cv_lib_pthread_pthread_self
=yes
10097 ac_cv_lib_pthread_pthread_self
=no
10099 rm -f core conftest.err conftest.
$ac_objext \
10100 conftest
$ac_exeext conftest.
$ac_ext
10101 LIBS
=$ac_check_lib_save_LIBS
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10104 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10105 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10106 HAVE_GTK_AND_PTHREAD
=yes
10110 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10111 case "${canonical}" in
10113 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10116 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10120 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10121 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10122 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10123 gtk_orientable_set_orientation
10125 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10126 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10127 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10128 cat >>confdefs.h
<<_ACEOF
10129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10140 if test "${with_dbus}" = "yes"; then
10144 # Extract the first word of "pkg-config", so it can be a program name with args.
10145 set dummy pkg-config
; ac_word
=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10149 $as_echo_n "(cached) " >&6
10151 case $PKG_CONFIG in
10153 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10157 for as_dir
in $PATH
10160 test -z "$as_dir" && as_dir
=.
10161 for ac_exec_ext
in '' $ac_executable_extensions; do
10162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10163 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10175 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10176 if test -n "$PKG_CONFIG"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10178 $as_echo "$PKG_CONFIG" >&6; }
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10186 if test "$PKG_CONFIG" = "no" ; then
10189 PKG_CONFIG_MIN_VERSION
=0.9.0
10190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10192 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10194 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10196 $as_echo "yes" >&6; }
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10200 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10201 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10203 $as_echo "$DBUS_CFLAGS" >&6; }
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10206 $as_echo_n "checking DBUS_LIBS... " >&6; }
10207 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10209 $as_echo "$DBUS_LIBS" >&6; }
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10215 ## If we have a custom action on failure, don't print errors, but
10216 ## do set a variable so people can do so.
10217 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10229 if test $succeeded = yes; then
10235 if test "$HAVE_DBUS" = yes; then
10236 LIBS
="$LIBS $DBUS_LIBS"
10238 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10240 for ac_func
in dbus_watch_get_unix_fd
10242 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10243 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10244 cat >>confdefs.h
<<_ACEOF
10245 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10251 DBUS_OBJ
=dbusbind.o
10257 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10261 # Extract the first word of "pkg-config", so it can be a program name with args.
10262 set dummy pkg-config
; ac_word
=$2
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10264 $as_echo_n "checking for $ac_word... " >&6; }
10265 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10266 $as_echo_n "(cached) " >&6
10268 case $PKG_CONFIG in
10270 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10274 for as_dir
in $PATH
10277 test -z "$as_dir" && as_dir
=.
10278 for ac_exec_ext
in '' $ac_executable_extensions; do
10279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10280 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10292 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10293 if test -n "$PKG_CONFIG"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10295 $as_echo "$PKG_CONFIG" >&6; }
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10303 if test "$PKG_CONFIG" = "no" ; then
10306 PKG_CONFIG_MIN_VERSION
=0.9.0
10307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10309 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10311 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10313 $as_echo "yes" >&6; }
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10317 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10318 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10320 $as_echo "$GCONF_CFLAGS" >&6; }
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10323 $as_echo_n "checking GCONF_LIBS... " >&6; }
10324 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10326 $as_echo "$GCONF_LIBS" >&6; }
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10332 ## If we have a custom action on failure, don't print errors, but
10333 ## do set a variable so people can do so.
10334 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10341 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10342 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10346 if test $succeeded = yes; then
10352 if test "$HAVE_GCONF" = yes; then
10354 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10356 for ac_func
in g_type_init
10358 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10359 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10360 cat >>confdefs.h
<<_ACEOF
10361 #define HAVE_G_TYPE_INIT 1
10372 if test "${with_selinux}" = "yes"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10374 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10375 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10376 $as_echo_n "(cached) " >&6
10378 ac_check_lib_save_LIBS
=$LIBS
10379 LIBS
="-lselinux $LIBS"
10380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10389 char lgetfilecon ();
10393 return lgetfilecon ();
10398 if ac_fn_c_try_link
"$LINENO"; then :
10399 ac_cv_lib_selinux_lgetfilecon
=yes
10401 ac_cv_lib_selinux_lgetfilecon
=no
10403 rm -f core conftest.err conftest.
$ac_objext \
10404 conftest
$ac_exeext conftest.
$ac_ext
10405 LIBS
=$ac_check_lib_save_LIBS
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10408 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10409 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10410 HAVE_LIBSELINUX
=yes
10415 if test "$HAVE_LIBSELINUX" = yes; then
10417 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10419 LIBSELINUX_LIBS
=-lselinux
10425 if test "${with_gnutls}" = "yes" ; then
10429 # Extract the first word of "pkg-config", so it can be a program name with args.
10430 set dummy pkg-config
; ac_word
=$2
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432 $as_echo_n "checking for $ac_word... " >&6; }
10433 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10434 $as_echo_n "(cached) " >&6
10436 case $PKG_CONFIG in
10438 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10442 for as_dir
in $PATH
10445 test -z "$as_dir" && as_dir
=.
10446 for ac_exec_ext
in '' $ac_executable_extensions; do
10447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10460 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10461 if test -n "$PKG_CONFIG"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10463 $as_echo "$PKG_CONFIG" >&6; }
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10471 if test "$PKG_CONFIG" = "no" ; then
10474 PKG_CONFIG_MIN_VERSION
=0.9.0
10475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10477 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10479 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10481 $as_echo "yes" >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10485 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10486 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10488 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10491 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10492 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10494 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10498 LIBGNUTLS_CFLAGS
=""
10500 ## If we have a custom action on failure, don't print errors, but
10501 ## do set a variable so people can do so.
10502 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10509 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10510 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10514 if test $succeeded = yes; then
10520 if test "${HAVE_GNUTLS}" = "yes"; then
10522 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10531 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10532 if test "$with_xaw3d" != no
; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10534 $as_echo_n "checking for xaw3d... " >&6; }
10535 if ${emacs_cv_xaw3d+:} false
; then :
10536 $as_echo_n "(cached) " >&6
10538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 #include <X11/Intrinsic.h>
10542 #include <X11/Xaw3d/Simple.h>
10551 if ac_fn_c_try_link
"$LINENO"; then :
10556 rm -f core conftest.err conftest.
$ac_objext \
10557 conftest
$ac_exeext conftest.
$ac_ext
10563 if test $emacs_cv_xaw3d = yes; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10565 $as_echo "yes; using Lucid toolkit" >&6; }
10566 USE_X_TOOLKIT
=LUCID
10570 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10576 $as_echo_n "checking for libXaw... " >&6; }
10577 if ${emacs_cv_xaw+:} false
; then :
10578 $as_echo_n "(cached) " >&6
10580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10583 #include <X11/Intrinsic.h>
10584 #include <X11/Xaw/Simple.h>
10593 if ac_fn_c_try_link
"$LINENO"; then :
10598 rm -f core conftest.err conftest.
$ac_objext \
10599 conftest
$ac_exeext conftest.
$ac_ext
10602 if test $emacs_cv_xaw = yes; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10604 $as_echo "yes; using Lucid toolkit" >&6; }
10605 USE_X_TOOLKIT
=LUCID
10607 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10608 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10611 $as_echo "no; do not use toolkit by default" >&6; }
10617 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10620 if test "${USE_X_TOOLKIT}" != "none"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10622 $as_echo_n "checking X11 toolkit version... " >&6; }
10623 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
10624 $as_echo_n "(cached) " >&6
10626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <X11/Intrinsic.h>
10632 #if XtSpecificationRelease < 6
10640 if ac_fn_c_try_link
"$LINENO"; then :
10641 emacs_cv_x11_toolkit_version_6
=yes
10643 emacs_cv_x11_toolkit_version_6
=no
10645 rm -f core conftest.err conftest.
$ac_objext \
10646 conftest
$ac_exeext conftest.
$ac_ext
10649 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10650 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10652 $as_echo "6 or newer" >&6; }
10654 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10656 LIBXTR6
="-lSM -lICE"
10658 ## Use libw.a along with X11R6 Xt.
10659 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10663 $as_echo "before 6" >&6; }
10667 if test x
$HAVE_X11XTR6 = xyes
; then
10668 LIBS
="-lXt -lSM -lICE $LIBS"
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10673 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10674 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
10675 $as_echo_n "(cached) " >&6
10677 ac_check_lib_save_LIBS
=$LIBS
10679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10688 char XmuConvertStandardSelection ();
10692 return XmuConvertStandardSelection ();
10697 if ac_fn_c_try_link
"$LINENO"; then :
10698 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10700 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10702 rm -f core conftest.err conftest.
$ac_objext \
10703 conftest
$ac_exeext conftest.
$ac_ext
10704 LIBS
=$ac_check_lib_save_LIBS
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10707 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10708 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
10709 cat >>confdefs.h
<<_ACEOF
10710 #define HAVE_LIBXMU 1
10717 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10723 ## These systems don't supply Xmu.
10725 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
10730 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10731 if test "${HAVE_X11}" = "yes"; then
10732 if test "${USE_X_TOOLKIT}" != "none"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10734 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10735 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
10736 $as_echo_n "(cached) " >&6
10738 ac_check_lib_save_LIBS
=$LIBS
10739 LIBS
="-lXext $LIBS"
10740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10749 char XShapeQueryExtension ();
10753 return XShapeQueryExtension ();
10758 if ac_fn_c_try_link
"$LINENO"; then :
10759 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10761 ac_cv_lib_Xext_XShapeQueryExtension
=no
10763 rm -f core conftest.err conftest.
$ac_objext \
10764 conftest
$ac_exeext conftest.
$ac_ext
10765 LIBS
=$ac_check_lib_save_LIBS
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10768 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10769 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
10770 cat >>confdefs.h
<<_ACEOF
10771 #define HAVE_LIBXEXT 1
10774 LIBS
="-lXext $LIBS"
10782 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10784 $as_echo_n "checking for Motif version 2.1... " >&6; }
10785 if ${emacs_cv_motif_version_2_1+:} false
; then :
10786 $as_echo_n "(cached) " >&6
10788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10794 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10797 Motif version prior to 2.1.
10803 if ac_fn_c_try_compile
"$LINENO"; then :
10804 emacs_cv_motif_version_2_1
=yes
10806 emacs_cv_motif_version_2_1
=no
10808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10811 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10812 if test $emacs_cv_motif_version_2_1 = yes; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10814 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10815 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
10816 $as_echo_n "(cached) " >&6
10818 ac_check_lib_save_LIBS
=$LIBS
10820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 /* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10829 char XpCreateContext ();
10833 return XpCreateContext ();
10838 if ac_fn_c_try_link
"$LINENO"; then :
10839 ac_cv_lib_Xp_XpCreateContext
=yes
10841 ac_cv_lib_Xp_XpCreateContext
=no
10843 rm -f core conftest.err conftest.
$ac_objext \
10844 conftest
$ac_exeext conftest.
$ac_ext
10845 LIBS
=$ac_check_lib_save_LIBS
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10848 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10849 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10855 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10856 if ${emacs_cv_lesstif+:} false
; then :
10857 $as_echo_n "(cached) " >&6
10859 # We put this in CFLAGS temporarily to precede other -I options
10860 # that might be in CFLAGS temporarily.
10861 # We put this in CPPFLAGS where it precedes the other -I options.
10862 OLD_CPPFLAGS
=$CPPFLAGS
10864 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10865 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10877 if ac_fn_c_try_compile
"$LINENO"; then :
10878 emacs_cv_lesstif
=yes
10880 emacs_cv_lesstif
=no
10882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10885 $as_echo "$emacs_cv_lesstif" >&6; }
10886 if test $emacs_cv_lesstif = yes; then
10887 # Make sure this -I option remains in CPPFLAGS after it is set
10888 # back to REAL_CPPFLAGS.
10889 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10890 # have those other -I options anyway. Ultimately, having this
10891 # directory ultimately in CPPFLAGS will be enough.
10892 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10893 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10896 CPPFLAGS
=$OLD_CPPFLAGS
10902 USE_TOOLKIT_SCROLL_BARS
=no
10903 if test "${with_toolkit_scroll_bars}" != "no"; then
10904 if test "${USE_X_TOOLKIT}" != "none"; then
10905 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10906 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10909 USE_TOOLKIT_SCROLL_BARS
=yes
10910 elif test "${HAVE_XAW3D}" = "yes"; then
10911 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10913 USE_TOOLKIT_SCROLL_BARS
=yes
10915 elif test "${HAVE_GTK}" = "yes"; then
10916 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10918 USE_TOOLKIT_SCROLL_BARS
=yes
10919 elif test "${HAVE_NS}" = "yes"; then
10920 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10922 USE_TOOLKIT_SCROLL_BARS
=yes
10926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10929 #include <X11/Xlib.h>
10930 #include <X11/Xresource.h>
10939 if ac_fn_c_try_compile
"$LINENO"; then :
10942 $as_echo "#define HAVE_XIM 1" >>confdefs.h
10947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10950 if test "${with_xim}" != "no"; then
10952 $as_echo "#define USE_XIM 1" >>confdefs.h
10957 if test "${HAVE_XIM}" != "no"; then
10958 late_CFLAGS
=$CFLAGS
10959 if test "$GCC" = yes; then
10960 CFLAGS
="$CFLAGS --pedantic-errors"
10962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10965 #include <X11/Xlib.h>
10966 #include <X11/Xresource.h>
10975 XPointer *client_data;
10977 /* If we're not using GCC, it's probably not XFree86, and this is
10978 probably right, but we can't use something like --pedantic-errors. */
10979 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10980 char*, XIMProc, XPointer*);
10982 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10988 if ac_fn_c_try_compile
"$LINENO"; then :
10989 emacs_cv_arg6_star
=yes
10991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10992 if test "$emacs_cv_arg6_star" = yes; then
10993 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
10996 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
10999 CFLAGS
=$late_CFLAGS
11002 ### Start of font-backend (under any platform) section.
11003 # (nothing here yet -- this is a placeholder)
11004 ### End of font-backend (under any platform) section.
11006 ### Start of font-backend (under X11) section.
11007 if test "${HAVE_X11}" = "yes"; then
11011 # Extract the first word of "pkg-config", so it can be a program name with args.
11012 set dummy pkg-config
; ac_word
=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11016 $as_echo_n "(cached) " >&6
11018 case $PKG_CONFIG in
11020 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11024 for as_dir
in $PATH
11027 test -z "$as_dir" && as_dir
=.
11028 for ac_exec_ext
in '' $ac_executable_extensions; do
11029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11030 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11042 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11043 if test -n "$PKG_CONFIG"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11045 $as_echo "$PKG_CONFIG" >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11053 if test "$PKG_CONFIG" = "no" ; then
11056 PKG_CONFIG_MIN_VERSION
=0.9.0
11057 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11059 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11061 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063 $as_echo "yes" >&6; }
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11067 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11068 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11070 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11073 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11074 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11076 $as_echo "$FONTCONFIG_LIBS" >&6; }
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11080 FONTCONFIG_CFLAGS
=""
11082 ## If we have a custom action on failure, don't print errors, but
11083 ## do set a variable so people can do so.
11084 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11091 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11092 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11096 if test $succeeded = yes; then
11103 ## Use -lXft if available, unless `--with-xft=no'.
11105 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11108 if test "x${with_xft}" != "xno"; then
11113 # Extract the first word of "pkg-config", so it can be a program name with args.
11114 set dummy pkg-config
; ac_word
=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11118 $as_echo_n "(cached) " >&6
11120 case $PKG_CONFIG in
11122 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11126 for as_dir
in $PATH
11129 test -z "$as_dir" && as_dir
=.
11130 for ac_exec_ext
in '' $ac_executable_extensions; do
11131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11144 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11145 if test -n "$PKG_CONFIG"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11147 $as_echo "$PKG_CONFIG" >&6; }
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; }
11155 if test "$PKG_CONFIG" = "no" ; then
11158 PKG_CONFIG_MIN_VERSION
=0.9.0
11159 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11161 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11163 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11165 $as_echo "yes" >&6; }
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11169 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11170 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11172 $as_echo "$XFT_CFLAGS" >&6; }
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11175 $as_echo_n "checking XFT_LIBS... " >&6; }
11176 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11178 $as_echo "$XFT_LIBS" >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11184 ## If we have a custom action on failure, don't print errors, but
11185 ## do set a variable so people can do so.
11186 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11193 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11194 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11198 if test $succeeded = yes; then
11204 ## Because xftfont.c uses XRenderQueryExtension, we also
11205 ## need to link to -lXrender.
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11208 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11209 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11210 $as_echo_n "(cached) " >&6
11212 ac_check_lib_save_LIBS
=$LIBS
11213 LIBS
="-lXrender $LIBS"
11214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11223 char XRenderQueryExtension ();
11227 return XRenderQueryExtension ();
11232 if ac_fn_c_try_link
"$LINENO"; then :
11233 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11235 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11237 rm -f core conftest.err conftest.
$ac_objext \
11238 conftest
$ac_exeext conftest.
$ac_ext
11239 LIBS
=$ac_check_lib_save_LIBS
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11242 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11243 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11247 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11248 OLD_CPPFLAGS
="$CPPFLAGS"
11249 OLD_CFLAGS
="$CFLAGS"
11251 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11252 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11253 XFT_LIBS
="-lXrender $XFT_LIBS"
11254 LIBS
="$XFT_LIBS $LIBS"
11255 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11256 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11258 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11259 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11260 $as_echo_n "(cached) " >&6
11262 ac_check_lib_save_LIBS
=$LIBS
11263 LIBS
="-lXft $XFT_LIBS $LIBS"
11264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11267 /* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
11273 char XftFontOpen ();
11277 return XftFontOpen ();
11282 if ac_fn_c_try_link
"$LINENO"; then :
11283 ac_cv_lib_Xft_XftFontOpen
=yes
11285 ac_cv_lib_Xft_XftFontOpen
=no
11287 rm -f core conftest.err conftest.
$ac_objext \
11288 conftest
$ac_exeext conftest.
$ac_ext
11289 LIBS
=$ac_check_lib_save_LIBS
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11292 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11293 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11301 if test "${HAVE_XFT}" = "yes"; then
11303 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11306 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11308 CPPFLAGS
="$OLD_CPPFLAGS"
11309 CFLAGS
="$OLD_CFLAGS"
11311 fi # "${HAVE_XFT}" = "yes"
11312 fi # "$HAVE_XFT" != no
11313 fi # "x${with_xft}" != "xno"
11315 if test "$HAVE_XFT" != "yes"; then
11321 ## We used to allow building with FreeType and without Xft.
11322 ## However, the ftx font backend driver is not in good shape.
11323 if test "${HAVE_XFT}" = "yes"; then
11330 if test "${HAVE_FREETYPE}" = "yes"; then
11332 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11334 if test "${with_libotf}" != "no"; then
11338 # Extract the first word of "pkg-config", so it can be a program name with args.
11339 set dummy pkg-config
; ac_word
=$2
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11343 $as_echo_n "(cached) " >&6
11345 case $PKG_CONFIG in
11347 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11351 for as_dir
in $PATH
11354 test -z "$as_dir" && as_dir
=.
11355 for ac_exec_ext
in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11369 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11370 if test -n "$PKG_CONFIG"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11372 $as_echo "$PKG_CONFIG" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11380 if test "$PKG_CONFIG" = "no" ; then
11383 PKG_CONFIG_MIN_VERSION
=0.9.0
11384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11386 $as_echo_n "checking for libotf... " >&6; }
11388 if $PKG_CONFIG --exists "libotf" 2>&5; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390 $as_echo "yes" >&6; }
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11394 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11395 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11397 $as_echo "$LIBOTF_CFLAGS" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11400 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11401 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11403 $as_echo "$LIBOTF_LIBS" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11409 ## If we have a custom action on failure, don't print errors, but
11410 ## do set a variable so people can do so.
11411 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11423 if test $succeeded = yes; then
11429 if test "$HAVE_LIBOTF" = "yes"; then
11431 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11434 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11435 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11436 $as_echo_n "(cached) " >&6
11438 ac_check_lib_save_LIBS
=$LIBS
11440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11443 /* Override any GCC internal prototype to avoid an error.
11444 Use char because int might match the return type of a GCC
11445 builtin and then its argument prototype would still apply. */
11449 char OTF_get_variation_glyphs ();
11453 return OTF_get_variation_glyphs ();
11458 if ac_fn_c_try_link
"$LINENO"; then :
11459 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11461 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11463 rm -f core conftest.err conftest.
$ac_objext \
11464 conftest
$ac_exeext conftest.
$ac_ext
11465 LIBS
=$ac_check_lib_save_LIBS
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11468 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11469 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
11470 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11472 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11475 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11477 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11485 if test "${HAVE_LIBOTF}" = yes; then
11486 if test "${with_m17n_flt}" != "no"; then
11490 # Extract the first word of "pkg-config", so it can be a program name with args.
11491 set dummy pkg-config
; ac_word
=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11495 $as_echo_n "(cached) " >&6
11497 case $PKG_CONFIG in
11499 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11503 for as_dir
in $PATH
11506 test -z "$as_dir" && as_dir
=.
11507 for ac_exec_ext
in '' $ac_executable_extensions; do
11508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11509 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11521 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11522 if test -n "$PKG_CONFIG"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11524 $as_echo "$PKG_CONFIG" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11532 if test "$PKG_CONFIG" = "no" ; then
11535 PKG_CONFIG_MIN_VERSION
=0.9.0
11536 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11538 $as_echo_n "checking for m17n-flt... " >&6; }
11540 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11542 $as_echo "yes" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11546 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11547 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11549 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11552 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11553 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11555 $as_echo "$M17N_FLT_LIBS" >&6; }
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11561 ## If we have a custom action on failure, don't print errors, but
11562 ## do set a variable so people can do so.
11563 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11570 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11571 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11575 if test $succeeded = yes; then
11581 if test "$HAVE_M17N_FLT" = "yes"; then
11583 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11595 ### End of font-backend (under X11) section.
11606 ### Use -lXpm if available, unless `--with-xpm=no'.
11609 if test "${HAVE_X11}" = "yes"; then
11610 if test "${with_xpm}" != "no"; then
11611 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11612 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11614 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11615 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
11616 $as_echo_n "(cached) " >&6
11618 ac_check_lib_save_LIBS
=$LIBS
11619 LIBS
="-lXpm -lX11 $LIBS"
11620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11629 char XpmReadFileToPixmap ();
11633 return XpmReadFileToPixmap ();
11638 if ac_fn_c_try_link
"$LINENO"; then :
11639 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11641 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11643 rm -f core conftest.err conftest.
$ac_objext \
11644 conftest
$ac_exeext conftest.
$ac_ext
11645 LIBS
=$ac_check_lib_save_LIBS
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11648 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11649 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
11656 if test "${HAVE_XPM}" = "yes"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11658 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11661 #include "X11/xpm.h"
11662 #ifndef XpmReturnAllocPixels
11663 no_return_alloc_pixels
11667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11668 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
11676 if test "${HAVE_XPM}" = "yes"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678 $as_echo "yes" >&6; }
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11686 if test "${HAVE_XPM}" = "yes"; then
11688 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11695 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11698 if test "${HAVE_X11}" = "yes"; then
11699 if test "${with_jpeg}" != "no"; then
11700 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11701 if test "x$ac_cv_header_jerror_h" = xyes
; then :
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11703 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11704 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
11705 $as_echo_n "(cached) " >&6
11707 ac_check_lib_save_LIBS
=$LIBS
11708 LIBS
="-ljpeg $LIBS"
11709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11712 /* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11718 char jpeg_destroy_compress ();
11722 return jpeg_destroy_compress ();
11727 if ac_fn_c_try_link
"$LINENO"; then :
11728 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11730 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11732 rm -f core conftest.err conftest.
$ac_objext \
11733 conftest
$ac_exeext conftest.
$ac_ext
11734 LIBS
=$ac_check_lib_save_LIBS
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11737 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11738 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
11747 if test "${HAVE_JPEG}" = "yes"; then
11748 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 #include <jpeglib.h>
11753 version=JPEG_LIB_VERSION
11756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11757 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
11758 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11762 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11768 if test "${HAVE_JPEG}" = "yes"; then
11774 ### Use -lpng if available, unless `--with-png=no'.
11777 if test "${HAVE_X11}" = "yes"; then
11778 if test "${with_png}" != "no"; then
11779 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11780 # in /usr/include/libpng.
11781 for ac_header
in png.h libpng
/png.h
11783 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11784 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11785 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11786 cat >>confdefs.h
<<_ACEOF
11787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11794 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11796 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11797 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
11798 $as_echo_n "(cached) " >&6
11800 ac_check_lib_save_LIBS
=$LIBS
11801 LIBS
="-lpng -lz -lm $LIBS"
11802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11805 /* Override any GCC internal prototype to avoid an error.
11806 Use char because int might match the return type of a GCC
11807 builtin and then its argument prototype would still apply. */
11811 char png_get_channels ();
11815 return png_get_channels ();
11820 if ac_fn_c_try_link
"$LINENO"; then :
11821 ac_cv_lib_png_png_get_channels
=yes
11823 ac_cv_lib_png_png_get_channels
=no
11825 rm -f core conftest.err conftest.
$ac_objext \
11826 conftest
$ac_exeext conftest.
$ac_ext
11827 LIBS
=$ac_check_lib_save_LIBS
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11830 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11831 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
11838 if test "${HAVE_PNG}" = "yes"; then
11840 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11842 LIBPNG
="-lpng -lz -lm"
11847 ### Use -ltiff if available, unless `--with-tiff=no'.
11850 if test "${HAVE_X11}" = "yes"; then
11851 if test "${with_tiff}" != "no"; then
11852 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11853 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
11855 # At least one tiff package requires the jpeg library.
11856 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11858 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11859 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
11860 $as_echo_n "(cached) " >&6
11862 ac_check_lib_save_LIBS
=$LIBS
11863 LIBS
="-ltiff $tifflibs $LIBS"
11864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11867 /* Override any GCC internal prototype to avoid an error.
11868 Use char because int might match the return type of a GCC
11869 builtin and then its argument prototype would still apply. */
11873 char TIFFGetVersion ();
11877 return TIFFGetVersion ();
11882 if ac_fn_c_try_link
"$LINENO"; then :
11883 ac_cv_lib_tiff_TIFFGetVersion
=yes
11885 ac_cv_lib_tiff_TIFFGetVersion
=no
11887 rm -f core conftest.err conftest.
$ac_objext \
11888 conftest
$ac_exeext conftest.
$ac_ext
11889 LIBS
=$ac_check_lib_save_LIBS
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11892 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11893 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
11902 if test "${HAVE_TIFF}" = "yes"; then
11904 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11911 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11914 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11915 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11916 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
11917 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11918 # Earlier versions can crash Emacs.
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11920 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
11921 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
11922 $as_echo_n "(cached) " >&6
11924 ac_check_lib_save_LIBS
=$LIBS
11926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11929 /* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
11935 char EGifPutExtensionLast ();
11939 return EGifPutExtensionLast ();
11944 if ac_fn_c_try_link
"$LINENO"; then :
11945 ac_cv_lib_gif_EGifPutExtensionLast
=yes
11947 ac_cv_lib_gif_EGifPutExtensionLast
=no
11949 rm -f core conftest.err conftest.
$ac_objext \
11950 conftest
$ac_exeext conftest.
$ac_ext
11951 LIBS
=$ac_check_lib_save_LIBS
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11954 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
11955 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
11965 if test "$HAVE_GIF" = yes; then
11967 elif test "$HAVE_GIF" = maybe
; then
11968 # If gif_lib.h but no libgif, try libungif.
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
11970 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
11971 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
11972 $as_echo_n "(cached) " >&6
11974 ac_check_lib_save_LIBS
=$LIBS
11975 LIBS
="-lungif $LIBS"
11976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 /* Override any GCC internal prototype to avoid an error.
11980 Use char because int might match the return type of a GCC
11981 builtin and then its argument prototype would still apply. */
11985 char EGifPutExtensionLast ();
11989 return EGifPutExtensionLast ();
11994 if ac_fn_c_try_link
"$LINENO"; then :
11995 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11997 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11999 rm -f core conftest.err conftest.
$ac_objext \
12000 conftest
$ac_exeext conftest.
$ac_ext
12001 LIBS
=$ac_check_lib_save_LIBS
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12004 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12005 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
12011 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12014 if test "${HAVE_GIF}" = "yes"; then
12016 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12022 if test "${HAVE_X11}" = "yes"; then
12025 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12026 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12027 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12028 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12029 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12030 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12031 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12032 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12033 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12034 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12036 if test "X${MISSING}" != X
; then
12037 as_fn_error $?
"The following required libraries were not found:
12039 Maybe some development libraries/packages are missing?
12040 If you don't want to link with them give
12042 as options to configure" "$LINENO" 5
12046 ### Use -lgpm if available, unless `--with-gpm=no'.
12050 if test "${with_gpm}" != "no"; then
12051 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_gpm_h" = xyes
; then :
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12054 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12055 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
12056 $as_echo_n "(cached) " >&6
12058 ac_check_lib_save_LIBS
=$LIBS
12060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12073 return Gpm_Open ();
12078 if ac_fn_c_try_link
"$LINENO"; then :
12079 ac_cv_lib_gpm_Gpm_Open
=yes
12081 ac_cv_lib_gpm_Gpm_Open
=no
12083 rm -f core conftest.err conftest.
$ac_objext \
12084 conftest
$ac_exeext conftest.
$ac_ext
12085 LIBS
=$ac_check_lib_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12088 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12089 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
12097 if test "${HAVE_GPM}" = "yes"; then
12099 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12102 ## May be reset below.
12103 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12108 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12109 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
12111 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12118 ### Use NeXTstep API to implement GUI.
12119 if test "${HAVE_NS}" = "yes"; then
12121 $as_echo "#define HAVE_NS 1" >>confdefs.h
12123 if test "${NS_IMPL_COCOA}" = "yes"; then
12125 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12129 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12131 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12133 # See also .m.o rule in Makefile.in */
12134 # FIXME: are all these flags really needed? Document here why. */
12135 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12136 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12138 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12140 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12143 # We also have mouse menus.
12149 ### Use session management (-lSM -lICE) if available
12152 if test "${HAVE_X11}" = "yes"; then
12153 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12154 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12156 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12157 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
12158 $as_echo_n "(cached) " >&6
12160 ac_check_lib_save_LIBS
=$LIBS
12161 LIBS
="-lSM -lICE $LIBS"
12162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12171 char SmcOpenConnection ();
12175 return SmcOpenConnection ();
12180 if ac_fn_c_try_link
"$LINENO"; then :
12181 ac_cv_lib_SM_SmcOpenConnection
=yes
12183 ac_cv_lib_SM_SmcOpenConnection
=no
12185 rm -f core conftest.err conftest.
$ac_objext \
12186 conftest
$ac_exeext conftest.
$ac_ext
12187 LIBS
=$ac_check_lib_save_LIBS
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12190 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12191 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12199 if test "${HAVE_X_SM}" = "yes"; then
12201 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12203 LIBXSM
="-lSM -lICE"
12206 *) LIBS
="$LIBXSM $LIBS" ;;
12212 ### Use libxml (-lxml2) if available
12213 if test "${with_xml2}" != "no"; then
12214 ### I'm not sure what the version number should be, so I just guessed.
12218 # Extract the first word of "pkg-config", so it can be a program name with args.
12219 set dummy pkg-config
; ac_word
=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12223 $as_echo_n "(cached) " >&6
12225 case $PKG_CONFIG in
12227 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12231 for as_dir
in $PATH
12234 test -z "$as_dir" && as_dir
=.
12235 for ac_exec_ext
in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12249 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12250 if test -n "$PKG_CONFIG"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12252 $as_echo "$PKG_CONFIG" >&6; }
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12260 if test "$PKG_CONFIG" = "no" ; then
12263 PKG_CONFIG_MIN_VERSION
=0.9.0
12264 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12266 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12268 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12270 $as_echo "yes" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12274 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12275 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12277 $as_echo "$LIBXML2_CFLAGS" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12280 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12281 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12283 $as_echo "$LIBXML2_LIBS" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12289 ## If we have a custom action on failure, don't print errors, but
12290 ## do set a variable so people can do so.
12291 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12298 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12299 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12303 if test $succeeded = yes; then
12309 if test "${HAVE_LIBXML2}" = "yes"; then
12310 LIBS
="$LIBXML2_LIBS $LIBS"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12312 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12313 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12314 $as_echo_n "(cached) " >&6
12316 ac_check_lib_save_LIBS
=$LIBS
12317 LIBS
="-lxml2 $LIBS"
12318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12327 char htmlReadMemory ();
12331 return htmlReadMemory ();
12336 if ac_fn_c_try_link
"$LINENO"; then :
12337 ac_cv_lib_xml2_htmlReadMemory
=yes
12339 ac_cv_lib_xml2_htmlReadMemory
=no
12341 rm -f core conftest.err conftest.
$ac_objext \
12342 conftest
$ac_exeext conftest.
$ac_ext
12343 LIBS
=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12346 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12347 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12353 if test "${HAVE_LIBXML2}" = "yes"; then
12355 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12366 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12368 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12369 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12370 $as_echo_n "(cached) " >&6
12372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12383 if ac_fn_c_try_link
"$LINENO"; then :
12384 emacs_cv_netdb_declares_h_errno
=yes
12386 emacs_cv_netdb_declares_h_errno
=no
12388 rm -f core conftest.err conftest.
$ac_objext \
12389 conftest
$ac_exeext conftest.
$ac_ext
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12392 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12393 if test $emacs_cv_netdb_declares_h_errno = yes; then
12395 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12399 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12400 if test "x$ac_cv_type_size_t" = xyes
; then :
12404 cat >>confdefs.h
<<_ACEOF
12405 #define size_t unsigned int
12410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12411 # for constant arguments. Useless!
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12413 $as_echo_n "checking for working alloca.h... " >&6; }
12414 if ${ac_cv_working_alloca_h+:} false
; then :
12415 $as_echo_n "(cached) " >&6
12417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 #include <alloca.h>
12423 char *p = (char *) alloca (2 * sizeof (int));
12429 if ac_fn_c_try_link
"$LINENO"; then :
12430 ac_cv_working_alloca_h
=yes
12432 ac_cv_working_alloca_h
=no
12434 rm -f core conftest.err conftest.
$ac_objext \
12435 conftest
$ac_exeext conftest.
$ac_ext
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12438 $as_echo "$ac_cv_working_alloca_h" >&6; }
12439 if test $ac_cv_working_alloca_h = yes; then
12441 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12446 $as_echo_n "checking for alloca... " >&6; }
12447 if ${ac_cv_func_alloca_works+:} false
; then :
12448 $as_echo_n "(cached) " >&6
12450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12453 # define alloca __builtin_alloca
12456 # include <malloc.h>
12457 # define alloca _alloca
12459 # ifdef HAVE_ALLOCA_H
12460 # include <alloca.h>
12465 # ifndef alloca /* predefined by HP cc +Olibcalls */
12466 void *alloca (size_t);
12476 char *p = (char *) alloca (1);
12482 if ac_fn_c_try_link
"$LINENO"; then :
12483 ac_cv_func_alloca_works
=yes
12485 ac_cv_func_alloca_works
=no
12487 rm -f core conftest.err conftest.
$ac_objext \
12488 conftest
$ac_exeext conftest.
$ac_ext
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12491 $as_echo "$ac_cv_func_alloca_works" >&6; }
12493 if test $ac_cv_func_alloca_works = yes; then
12495 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12498 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12499 # that cause trouble. Some versions do not even contain alloca or
12500 # contain a buggy version. If you still want to use their alloca,
12501 # use ar to extract alloca.o from them instead of compiling alloca.c.
12503 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12505 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12509 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12510 if ${ac_cv_os_cray+:} false
; then :
12511 $as_echo_n "(cached) " >&6
12513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 #if defined CRAY && ! defined CRAY2
12522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12523 $EGREP "webecray" >/dev
/null
2>&1; then :
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12532 $as_echo "$ac_cv_os_cray" >&6; }
12533 if test $ac_cv_os_cray = yes; then
12534 for ac_func
in _getb67 GETB67 getb67
; do
12535 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12536 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12537 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12539 cat >>confdefs.h
<<_ACEOF
12540 #define CRAY_STACKSEG_END $ac_func
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12550 $as_echo_n "checking stack direction for C alloca... " >&6; }
12551 if ${ac_cv_c_stack_direction+:} false
; then :
12552 $as_echo_n "(cached) " >&6
12554 if test "$cross_compiling" = yes; then :
12555 ac_cv_c_stack_direction
=0
12557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 $ac_includes_default
12561 find_stack_direction ()
12563 static char *addr = 0;
12568 return find_stack_direction ();
12571 return (&dummy > addr) ? 1 : -1;
12577 return find_stack_direction () < 0;
12580 if ac_fn_c_try_run
"$LINENO"; then :
12581 ac_cv_c_stack_direction
=1
12583 ac_cv_c_stack_direction
=-1
12585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12591 $as_echo "$ac_cv_c_stack_direction" >&6; }
12592 cat >>confdefs.h
<<_ACEOF
12593 #define STACK_DIRECTION $ac_cv_c_stack_direction
12600 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12601 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12604 # fmod, logb, and frexp are found in -lm on most systems.
12605 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12607 $as_echo_n "checking for sqrt in -lm... " >&6; }
12608 if ${ac_cv_lib_m_sqrt+:} false
; then :
12609 $as_echo_n "(cached) " >&6
12611 ac_check_lib_save_LIBS
=$LIBS
12613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12616 /* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12631 if ac_fn_c_try_link
"$LINENO"; then :
12632 ac_cv_lib_m_sqrt
=yes
12634 ac_cv_lib_m_sqrt
=no
12636 rm -f core conftest.err conftest.
$ac_objext \
12637 conftest
$ac_exeext conftest.
$ac_ext
12638 LIBS
=$ac_check_lib_save_LIBS
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12641 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12642 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
12643 cat >>confdefs.h
<<_ACEOF
12644 #define HAVE_LIBM 1
12652 # Check for mail-locking functions in a "mail" library. Probably this should
12653 # have the same check as for liblockfile below.
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12655 $as_echo_n "checking for maillock in -lmail... " >&6; }
12656 if ${ac_cv_lib_mail_maillock+:} false
; then :
12657 $as_echo_n "(cached) " >&6
12659 ac_check_lib_save_LIBS
=$LIBS
12660 LIBS
="-lmail $LIBS"
12661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12664 /* Override any GCC internal prototype to avoid an error.
12665 Use char because int might match the return type of a GCC
12666 builtin and then its argument prototype would still apply. */
12674 return maillock ();
12679 if ac_fn_c_try_link
"$LINENO"; then :
12680 ac_cv_lib_mail_maillock
=yes
12682 ac_cv_lib_mail_maillock
=no
12684 rm -f core conftest.err conftest.
$ac_objext \
12685 conftest
$ac_exeext conftest.
$ac_ext
12686 LIBS
=$ac_check_lib_save_LIBS
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12689 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12690 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
12696 if test $have_mail = yes; then
12698 LIBS
="$LIBS_MAIL $LIBS"
12700 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12706 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12707 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
12708 $as_echo_n "(cached) " >&6
12710 ac_check_lib_save_LIBS
=$LIBS
12711 LIBS
="-llockfile $LIBS"
12712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12715 /* Override any GCC internal prototype to avoid an error.
12716 Use char because int might match the return type of a GCC
12717 builtin and then its argument prototype would still apply. */
12725 return maillock ();
12730 if ac_fn_c_try_link
"$LINENO"; then :
12731 ac_cv_lib_lockfile_maillock
=yes
12733 ac_cv_lib_lockfile_maillock
=no
12735 rm -f core conftest.err conftest.
$ac_objext \
12736 conftest
$ac_exeext conftest.
$ac_ext
12737 LIBS
=$ac_check_lib_save_LIBS
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12740 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12741 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
12747 if test $have_lockfile = yes; then
12748 LIBS_MAIL
=-llockfile
12749 LIBS
="$LIBS_MAIL $LIBS"
12751 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12754 # If we have the shared liblockfile, assume we must use it for mail
12755 # locking (e.g. Debian). If we couldn't link against liblockfile
12756 # (no liblockfile.a installed), ensure that we don't need to.
12757 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12758 set dummy liblockfile.so
; ac_word
=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if ${ac_cv_prog_liblockfile+:} false
; then :
12762 $as_echo_n "(cached) " >&6
12764 if test -n "$liblockfile"; then
12765 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12768 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12769 for as_dir
in $as_dummy
12772 test -z "$as_dir" && as_dir
=.
12773 for ac_exec_ext
in '' $ac_executable_extensions; do
12774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12775 ac_cv_prog_liblockfile
="yes"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12786 liblockfile
=$ac_cv_prog_liblockfile
12787 if test -n "$liblockfile"; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12789 $as_echo "$liblockfile" >&6; }
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12796 if test $ac_cv_prog_liblockfile = yes; then
12797 as_fn_error $?
"Shared liblockfile found but can't link against it.
12798 This probably means that movemail could lose mail.
12799 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12802 for ac_func
in touchlock
12804 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
12805 if test "x$ac_cv_func_touchlock" = xyes
; then :
12806 cat >>confdefs.h
<<_ACEOF
12807 #define HAVE_TOUCHLOCK 1
12813 for ac_header
in maillock.h
12815 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12816 if test "x$ac_cv_header_maillock_h" = xyes
; then :
12817 cat >>confdefs.h
<<_ACEOF
12818 #define HAVE_MAILLOCK_H 1
12827 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12828 ## interlock access to the mail spool. The alternative is a lock file named
12829 ## /usr/spool/mail/$USER.lock.
12832 aix4-2
) mail_lock
="lockf" ;;
12834 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
12836 ## On GNU/Linux systems, both methods are used by various mail programs.
12837 ## I assume most people are using newer mailers that have heard of flock.
12838 ## Change this if you need to.
12839 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12840 ## configure gets the right answers, and that means *NOT* using flock.
12841 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12842 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12843 ## Debian maintainer hasn't provided a clean fix for Emacs.
12844 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12845 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12846 ## correct logic. -- fx
12847 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12848 ## liblockfile is a Free Software replacement for libmail, used on
12849 ## Debian systems and elsewhere. -rfr.
12852 if test $have_mail = yes ||
test $have_lockfile = yes; then
12853 test $ac_cv_header_maillock_h = yes && mail_lock
=no
12859 case "$mail_lock" in
12861 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12865 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12868 *) BLESSMAIL_TARGET
="need-blessmail" ;;
12873 for ac_func
in gethostname getdomainname dup2 \
12874 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
12875 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12876 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
12877 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12878 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12879 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12880 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12881 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12882 cfmakeraw cfsetspeed isnan copysign __executable_start
12884 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12885 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12886 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12887 cat >>confdefs.h
<<_ACEOF
12888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12896 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12897 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
12898 $as_echo_n "(cached) " >&6
12900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12906 __builtin_unwind_init ();
12911 if ac_fn_c_try_link
"$LINENO"; then :
12912 emacs_cv_func___builtin_unwind_init
=yes
12914 emacs_cv_func___builtin_unwind_init
=no
12916 rm -f core conftest.err conftest.
$ac_objext \
12917 conftest
$ac_exeext conftest.
$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12920 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12921 if test $emacs_cv_func___builtin_unwind_init = yes; then
12923 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12927 for ac_header
in sys
/un.h
12929 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12930 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
12931 cat >>confdefs.h
<<_ACEOF
12932 #define HAVE_SYS_UN_H 1
12940 ac_have_func
=no
# yes means we've found a way to get the load average.
12942 # Make sure getloadavg.c is where it belongs, at configure-time.
12943 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12944 as_fn_error $?
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12948 # Check for getloadavg, but be sure not to touch the cache variable.
12949 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12950 if test "x$ac_cv_func_getloadavg" = xyes
; then :
12955 ) && ac_have_func
=yes
12957 # On HPUX9, an unprivileged user can get load averages through this function.
12958 for ac_func
in pstat_getdynamic
12960 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12961 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
12962 cat >>confdefs.h
<<_ACEOF
12963 #define HAVE_PSTAT_GETDYNAMIC 1
12970 # Solaris has libkstat which does not require root.
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12972 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12973 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
12974 $as_echo_n "(cached) " >&6
12976 ac_check_lib_save_LIBS
=$LIBS
12977 LIBS
="-lkstat $LIBS"
12978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12981 /* Override any GCC internal prototype to avoid an error.
12982 Use char because int might match the return type of a GCC
12983 builtin and then its argument prototype would still apply. */
12987 char kstat_open ();
12991 return kstat_open ();
12996 if ac_fn_c_try_link
"$LINENO"; then :
12997 ac_cv_lib_kstat_kstat_open
=yes
12999 ac_cv_lib_kstat_kstat_open
=no
13001 rm -f core conftest.err conftest.
$ac_objext \
13002 conftest
$ac_exeext conftest.
$ac_ext
13003 LIBS
=$ac_check_lib_save_LIBS
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13006 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13007 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
13008 cat >>confdefs.h
<<_ACEOF
13009 #define HAVE_LIBKSTAT 1
13012 LIBS
="-lkstat $LIBS"
13016 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
13018 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13019 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13020 # to get the right answer into the cache.
13021 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13022 if test $ac_have_func = no
; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13024 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13025 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
13026 $as_echo_n "(cached) " >&6
13028 ac_check_lib_save_LIBS
=$LIBS
13030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13033 /* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13043 return elf_begin ();
13048 if ac_fn_c_try_link
"$LINENO"; then :
13049 ac_cv_lib_elf_elf_begin
=yes
13051 ac_cv_lib_elf_elf_begin
=no
13053 rm -f core conftest.err conftest.
$ac_objext \
13054 conftest
$ac_exeext conftest.
$ac_ext
13055 LIBS
=$ac_check_lib_save_LIBS
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13058 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13059 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
13064 if test $ac_have_func = no
; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13066 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13067 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
13068 $as_echo_n "(cached) " >&6
13070 ac_check_lib_save_LIBS
=$LIBS
13072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h. */
13075 /* Override any GCC internal prototype to avoid an error.
13076 Use char because int might match the return type of a GCC
13077 builtin and then its argument prototype would still apply. */
13085 return kvm_open ();
13090 if ac_fn_c_try_link
"$LINENO"; then :
13091 ac_cv_lib_kvm_kvm_open
=yes
13093 ac_cv_lib_kvm_kvm_open
=no
13095 rm -f core conftest.err conftest.
$ac_objext \
13096 conftest
$ac_exeext conftest.
$ac_ext
13097 LIBS
=$ac_check_lib_save_LIBS
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13100 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13101 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
13105 # Check for the 4.4BSD definition of getloadavg.
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13107 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13108 if ${ac_cv_lib_util_getloadavg+:} false
; then :
13109 $as_echo_n "(cached) " >&6
13111 ac_check_lib_save_LIBS
=$LIBS
13112 LIBS
="-lutil $LIBS"
13113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13116 /* Override any GCC internal prototype to avoid an error.
13117 Use char because int might match the return type of a GCC
13118 builtin and then its argument prototype would still apply. */
13122 char getloadavg ();
13126 return getloadavg ();
13131 if ac_fn_c_try_link
"$LINENO"; then :
13132 ac_cv_lib_util_getloadavg
=yes
13134 ac_cv_lib_util_getloadavg
=no
13136 rm -f core conftest.err conftest.
$ac_objext \
13137 conftest
$ac_exeext conftest.
$ac_ext
13138 LIBS
=$ac_check_lib_save_LIBS
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13141 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13142 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
13143 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
13148 if test $ac_have_func = no
; then
13149 # There is a commonly available library for RS/6000 AIX.
13150 # Since it is not a standard part of AIX, it might be installed locally.
13151 ac_getloadavg_LIBS
=$LIBS
13152 LIBS
="-L/usr/local/lib $LIBS"
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13154 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13155 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
13156 $as_echo_n "(cached) " >&6
13158 ac_check_lib_save_LIBS
=$LIBS
13159 LIBS
="-lgetloadavg $LIBS"
13160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13169 char getloadavg ();
13173 return getloadavg ();
13178 if ac_fn_c_try_link
"$LINENO"; then :
13179 ac_cv_lib_getloadavg_getloadavg
=yes
13181 ac_cv_lib_getloadavg_getloadavg
=no
13183 rm -f core conftest.err conftest.
$ac_objext \
13184 conftest
$ac_exeext conftest.
$ac_ext
13185 LIBS
=$ac_check_lib_save_LIBS
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13188 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13189 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
13190 LIBS
="-lgetloadavg $LIBS"
13192 LIBS
=$ac_getloadavg_LIBS
13197 # Make sure it is really in the library, if we think we found it,
13198 # otherwise set up the replacement function.
13199 for ac_func
in getloadavg
13201 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13202 if test "x$ac_cv_func_getloadavg" = xyes
; then :
13203 cat >>confdefs.h
<<_ACEOF
13204 #define HAVE_GETLOADAVG 1
13208 case " $LIBOBJS " in
13209 *" getloadavg.$ac_objext "* ) ;;
13210 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
13215 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13217 # Figure out what our getloadavg.c needs.
13219 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13220 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
13223 $as_echo "#define DGUX 1" >>confdefs.h
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13226 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13227 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
13228 $as_echo_n "(cached) " >&6
13230 ac_check_lib_save_LIBS
=$LIBS
13232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply. */
13241 char dg_sys_info ();
13245 return dg_sys_info ();
13250 if ac_fn_c_try_link
"$LINENO"; then :
13251 ac_cv_lib_dgc_dg_sys_info
=yes
13253 ac_cv_lib_dgc_dg_sys_info
=no
13255 rm -f core conftest.err conftest.
$ac_objext \
13256 conftest
$ac_exeext conftest.
$ac_ext
13257 LIBS
=$ac_check_lib_save_LIBS
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13260 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13261 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
13262 cat >>confdefs.h
<<_ACEOF
13263 #define HAVE_LIBDGC 1
13274 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13275 if test "x$ac_cv_header_locale_h" = xyes
; then :
13280 for ac_func
in setlocale
13282 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
13283 if test "x$ac_cv_func_setlocale" = xyes
; then :
13284 cat >>confdefs.h
<<_ACEOF
13285 #define HAVE_SETLOCALE 1
13292 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13293 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13294 # Irix 4.0.5F has the header but not the library.
13295 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
13296 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13299 $as_echo "#define SVR4 1" >>confdefs.h
13303 if test $ac_have_func = no
; then
13304 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13305 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
13308 $as_echo "#define UMAX 1" >>confdefs.h
13311 $as_echo "#define UMAX4_3 1" >>confdefs.h
13318 if test $ac_have_func = no
; then
13319 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13320 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
13321 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
13328 if test $ac_have_func = no
; then
13329 for ac_header
in mach
/mach.h
13331 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13332 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
13333 cat >>confdefs.h
<<_ACEOF
13334 #define HAVE_MACH_MACH_H 1
13343 for ac_header
in nlist.h
13345 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13346 if test "x$ac_cv_header_nlist_h" = xyes
; then :
13347 cat >>confdefs.h
<<_ACEOF
13348 #define HAVE_NLIST_H 1
13350 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13352 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
13354 cat >>confdefs.h
<<_ACEOF
13355 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13359 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13372 # Some definitions of getloadavg require that the program be installed setgid.
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13374 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13375 if ${ac_cv_func_getloadavg_setgid+:} false
; then :
13376 $as_echo_n "(cached) " >&6
13378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13381 #ifdef LDAV_PRIVILEGED
13382 Yowza Am I SETGID yet
13385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13386 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
13387 ac_cv_func_getloadavg_setgid
=yes
13389 ac_cv_func_getloadavg_setgid
=no
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13395 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13396 if test $ac_cv_func_getloadavg_setgid = yes; then
13399 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13405 if test $ac_cv_func_getloadavg_setgid = yes; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13407 $as_echo_n "checking group of /dev/kmem... " >&6; }
13408 if ${ac_cv_group_kmem+:} false
; then :
13409 $as_echo_n "(cached) " >&6
13411 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13412 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13413 # If we got an error (system does not support symlinks), try without -L.
13414 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13415 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
13416 | sed -ne 's/[ ][ ]*/ /g;
13417 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13422 $as_echo "$ac_cv_group_kmem" >&6; }
13423 KMEM_GROUP
=$ac_cv_group_kmem
13425 if test "x$ac_save_LIBS" = x
; then
13426 GETLOADAVG_LIBS
=$LIBS
13428 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13435 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13436 if ${ac_cv_sys_largefile_source+:} false
; then :
13437 $as_echo_n "(cached) " >&6
13440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 #include <sys/types.h> /* for off_t */
13447 int (*fp) (FILE *, off_t, int) = fseeko;
13448 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13453 if ac_fn_c_try_link
"$LINENO"; then :
13454 ac_cv_sys_largefile_source
=no
; break
13456 rm -f core conftest.err conftest.
$ac_objext \
13457 conftest
$ac_exeext conftest.
$ac_ext
13458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460 #define _LARGEFILE_SOURCE 1
13461 #include <sys/types.h> /* for off_t */
13466 int (*fp) (FILE *, off_t, int) = fseeko;
13467 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13472 if ac_fn_c_try_link
"$LINENO"; then :
13473 ac_cv_sys_largefile_source
=1; break
13475 rm -f core conftest.err conftest.
$ac_objext \
13476 conftest
$ac_exeext conftest.
$ac_ext
13477 ac_cv_sys_largefile_source
=unknown
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13482 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13483 case $ac_cv_sys_largefile_source in #(
13486 cat >>confdefs.h
<<_ACEOF
13487 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13493 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13494 # in glibc 2.1.3, but that breaks too many other things.
13495 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13496 if test $ac_cv_sys_largefile_source != unknown
; then
13498 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13504 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13505 if ${ac_cv_func_getpgrp_void+:} false
; then :
13506 $as_echo_n "(cached) " >&6
13508 # Use it with a single arg.
13509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511 $ac_includes_default
13520 if ac_fn_c_try_compile
"$LINENO"; then :
13521 ac_cv_func_getpgrp_void
=no
13523 ac_cv_func_getpgrp_void
=yes
13525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13529 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13530 if test $ac_cv_func_getpgrp_void = yes; then
13532 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13537 # Configure gnulib.
13542 LIBC_FATAL_STDERR_
=1
13543 export LIBC_FATAL_STDERR_
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13547 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13548 if ${gl_cv_func_c99_strtold+:} false
; then :
13549 $as_echo_n "(cached) " >&6
13551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 /* On HP-UX before 11.23, strtold returns a struct instead of
13554 long double. Reject implementations like that, by requiring
13555 compatibility with the C99 prototype. */
13556 #include <stdlib.h>
13557 static long double (*p) (char const *, char **) = strtold;
13559 test (char const *nptr, char **endptr)
13562 r = strtold (nptr, endptr);
13568 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13573 if ac_fn_c_try_link
"$LINENO"; then :
13574 gl_cv_func_c99_strtold
=yes
13576 gl_cv_func_c99_strtold
=no
13578 rm -f core conftest.err conftest.
$ac_objext \
13579 conftest
$ac_exeext conftest.
$ac_ext
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13582 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13583 if test $gl_cv_func_c99_strtold = yes; then
13585 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13595 GNULIB_EUIDACCESS
=0;
13596 GNULIB_FACCESSAT
=0;
13600 GNULIB_FTRUNCATE
=0;
13602 GNULIB_GETDOMAINNAME
=0;
13603 GNULIB_GETDTABLESIZE
=0;
13604 GNULIB_GETGROUPS
=0;
13605 GNULIB_GETHOSTNAME
=0;
13607 GNULIB_GETLOGIN_R
=0;
13608 GNULIB_GETPAGESIZE
=0;
13609 GNULIB_GETUSERSHELL
=0;
13619 GNULIB_READLINKAT
=0;
13623 GNULIB_SYMLINKAT
=0;
13624 GNULIB_TTYNAME_R
=0;
13625 GNULIB_UNISTD_H_GETOPT
=0;
13626 GNULIB_UNISTD_H_SIGPIPE
=0;
13640 HAVE_GETDTABLESIZE
=1;
13642 HAVE_GETHOSTNAME
=1;
13644 HAVE_GETPAGESIZE
=1;
13659 HAVE_DECL_ENVIRON
=1;
13660 HAVE_DECL_FCHDIR
=1;
13661 HAVE_DECL_GETDOMAINNAME
=1;
13662 HAVE_DECL_GETLOGIN_R
=1;
13663 HAVE_DECL_GETPAGESIZE
=1;
13664 HAVE_DECL_GETUSERSHELL
=1;
13665 HAVE_DECL_TTYNAME_R
=1;
13667 HAVE_SYS_PARAM_H
=0;
13672 REPLACE_FCHOWNAT
=0;
13674 REPLACE_GETDOMAINNAME
=0;
13675 REPLACE_GETLOGIN_R
=0;
13676 REPLACE_GETGROUPS
=0;
13677 REPLACE_GETPAGESIZE
=0;
13684 REPLACE_READLINK
=0;
13688 REPLACE_TTYNAME_R
=0;
13690 REPLACE_UNLINKAT
=0;
13693 UNISTD_H_HAVE_WINSOCK2_H
=0;
13694 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13700 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13701 if ${gl_cv_have_include_next+:} false
; then :
13702 $as_echo_n "(cached) " >&6
13704 rm -rf conftestd1a conftestd1b conftestd2
13705 mkdir conftestd1a conftestd1b conftestd2
13706 cat <<EOF > conftestd1a/conftest.h
13707 #define DEFINED_IN_CONFTESTD1
13708 #include_next <conftest.h>
13709 #ifdef DEFINED_IN_CONFTESTD2
13712 #error "include_next doesn't work"
13715 cat <<EOF > conftestd1b/conftest.h
13716 #define DEFINED_IN_CONFTESTD1
13718 #include_next <conftest.h>
13719 #ifdef DEFINED_IN_CONFTESTD2
13722 #error "include_next doesn't work"
13725 cat <<EOF > conftestd2/conftest.h
13726 #ifndef DEFINED_IN_CONFTESTD1
13727 #error "include_next test doesn't work"
13729 #define DEFINED_IN_CONFTESTD2
13731 gl_save_CPPFLAGS
="$CPPFLAGS"
13732 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 #include <conftest.h>
13737 if ac_fn_c_try_compile
"$LINENO"; then :
13738 gl_cv_have_include_next
=yes
13740 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 #include <conftest.h>
13745 if ac_fn_c_try_compile
"$LINENO"; then :
13746 gl_cv_have_include_next
=buggy
13748 gl_cv_have_include_next
=no
13750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13754 CPPFLAGS
="$gl_save_CPPFLAGS"
13755 rm -rf conftestd1a conftestd1b conftestd2
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13759 $as_echo "$gl_cv_have_include_next" >&6; }
13760 PRAGMA_SYSTEM_HEADER
=
13761 if test $gl_cv_have_include_next = yes; then
13762 INCLUDE_NEXT
=include_next
13763 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13764 if test -n "$GCC"; then
13765 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13768 if test $gl_cv_have_include_next = buggy
; then
13769 INCLUDE_NEXT
=include
13770 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13772 INCLUDE_NEXT
=include
13773 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13780 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13781 if ${gl_cv_pragma_columns+:} false
; then :
13782 $as_echo_n "(cached) " >&6
13784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13793 $EGREP "choke me" >/dev
/null
2>&1; then :
13794 gl_cv_pragma_columns
=yes
13796 gl_cv_pragma_columns
=no
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13803 $as_echo "$gl_cv_pragma_columns" >&6; }
13804 if test $gl_cv_pragma_columns = yes; then
13805 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
13823 if test $gl_cv_have_include_next = yes; then
13824 gl_cv_next_getopt_h
='<'getopt.h
'>'
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13827 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13828 if ${gl_cv_next_getopt_h+:} false
; then :
13829 $as_echo_n "(cached) " >&6
13832 if test $ac_cv_header_getopt_h = yes; then
13833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 #include <getopt.h>
13839 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13840 *) gl_absname_cpp
="$ac_cpp" ;;
13842 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13843 sed -n '\#/getopt.h#{
13844 s#.*"\(.*/getopt.h\)".*#\1#
13850 gl_cv_next_getopt_h
='<'getopt.h
'>'
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13855 $as_echo "$gl_cv_next_getopt_h" >&6; }
13857 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
13859 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13861 gl_next_as_first_directive
='<'getopt.h
'>'
13863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13864 gl_next_as_first_directive
=$gl_cv_next_getopt_h
13866 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
13871 if test $ac_cv_header_getopt_h = yes; then
13880 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13881 for ac_header
in getopt.h
13883 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13884 if test "x$ac_cv_header_getopt_h" = xyes
; then :
13885 cat >>confdefs.h
<<_ACEOF
13886 #define HAVE_GETOPT_H 1
13890 gl_replace_getopt
=yes
13897 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
13898 for ac_func
in getopt_long_only
13900 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13901 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
13902 cat >>confdefs.h
<<_ACEOF
13903 #define HAVE_GETOPT_LONG_ONLY 1
13907 gl_replace_getopt
=yes
13913 if test -z "$gl_replace_getopt"; then
13914 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13916 if test "x$ac_cv_have_decl_optreset" = xyes
; then :
13922 cat >>confdefs.h
<<_ACEOF
13923 #define HAVE_DECL_OPTRESET $ac_have_decl
13925 if test $ac_have_decl = 1; then :
13928 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13930 if test "x$ac_cv_have_decl_getopt_clip" = xyes
; then :
13936 cat >>confdefs.h
<<_ACEOF
13937 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
13945 if test -z "$gl_replace_getopt"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13947 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13948 if ${gl_cv_func_getopt_posix+:} false
; then :
13949 $as_echo_n "(cached) " >&6
13952 if test "$cross_compiling" = yes; then :
13954 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
13955 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
13956 *) gl_cv_func_getopt_posix
="guessing yes";;
13960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13963 #include <unistd.h>
13964 #include <stdlib.h>
13965 #include <string.h>
13967 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
13968 # define OPTIND_MIN 0
13970 # define OPTIND_MIN 1
13981 argv[argc++] = "program";
13982 argv[argc++] = "-a";
13983 argv[argc++] = "foo";
13984 argv[argc++] = "bar";
13986 optind = OPTIND_MIN;
13989 c = getopt (argc, argv, "ab");
13992 c = getopt (argc, argv, "ab");
13995 if (!(optind == 2))
13998 /* Some internal state exists at this point. */
14004 argv[argc++] = "program";
14005 argv[argc++] = "donald";
14006 argv[argc++] = "-p";
14007 argv[argc++] = "billy";
14008 argv[argc++] = "duck";
14009 argv[argc++] = "-a";
14010 argv[argc++] = "bar";
14012 optind = OPTIND_MIN;
14015 c = getopt (argc, argv, "+abp:q:");
14018 if (!(strcmp (argv[0], "program") == 0))
14020 if (!(strcmp (argv[1], "donald") == 0))
14022 if (!(strcmp (argv[2], "-p") == 0))
14024 if (!(strcmp (argv[3], "billy") == 0))
14026 if (!(strcmp (argv[4], "duck") == 0))
14028 if (!(strcmp (argv[5], "-a") == 0))
14030 if (!(strcmp (argv[6], "bar") == 0))
14032 if (!(optind == 1))
14035 /* Detect MacOS 10.5, AIX 7.1 bug. */
14037 char *argv[3] = { "program", "-ab", NULL };
14038 optind = OPTIND_MIN;
14040 if (getopt (2, argv, "ab:") != 'a')
14042 if (getopt (2, argv, "ab:") != '?')
14054 if ac_fn_c_try_run
"$LINENO"; then :
14055 gl_cv_func_getopt_posix
=yes
14057 gl_cv_func_getopt_posix
=no
14059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14066 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14067 case "$gl_cv_func_getopt_posix" in
14068 *no
) gl_replace_getopt
=yes ;;
14072 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14074 $as_echo_n "checking for working GNU getopt function... " >&6; }
14075 if ${gl_cv_func_getopt_gnu+:} false
; then :
14076 $as_echo_n "(cached) " >&6
14078 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14079 # optstring is necessary for programs like m4 that have POSIX-mandated
14080 # semantics for supporting options interspersed with files.
14081 # Also, since getopt_long is a GNU extension, we require optind=0.
14082 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14083 # so take care to revert to the correct (non-)export state.
14084 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14085 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14086 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14087 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14088 *) gl_had_POSIXLY_CORRECT
= ;;
14091 export POSIXLY_CORRECT
14092 if test "$cross_compiling" = yes; then :
14093 case $host_os:$ac_cv_have_decl_optreset in
14094 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14095 *:yes) gl_cv_func_getopt_gnu
=no
;;
14096 *) gl_cv_func_getopt_gnu
=yes;;
14100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <getopt.h>
14103 #include <stddef.h>
14104 #include <string.h>
14111 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14112 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14113 OSF/1 5.1, Solaris 10. */
14116 myargv[0] = "conftest";
14120 if (getopt (2, myargv, "+a") != '?')
14123 /* This code succeeds on glibc 2.8, mingw,
14124 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14125 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14127 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14130 if (getopt (4, argv, "p::") != 'p')
14132 else if (optarg != NULL)
14134 else if (getopt (4, argv, "p::") != -1)
14136 else if (optind != 2)
14139 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14141 char *argv[] = { "program", "foo", "-p", NULL };
14143 if (getopt (3, argv, "-p") != 1)
14145 else if (getopt (3, argv, "-p") != 'p')
14148 /* This code fails on glibc 2.11. */
14150 char *argv[] = { "program", "-b", "-a", NULL };
14151 optind = opterr = 0;
14152 if (getopt (3, argv, "+:a:b") != 'b')
14154 else if (getopt (3, argv, "+:a:b") != ':')
14163 if ac_fn_c_try_run
"$LINENO"; then :
14164 gl_cv_func_getopt_gnu
=yes
14166 gl_cv_func_getopt_gnu
=no
14168 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14169 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14172 case $gl_had_POSIXLY_CORRECT in
14174 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14175 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14180 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14181 if test "$gl_cv_func_getopt_gnu" = "no"; then
14182 gl_replace_getopt
=yes
14186 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14187 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
14193 cat >>confdefs.h
<<_ACEOF
14194 #define HAVE_DECL_GETENV $ac_have_decl
14202 if test -n "$gl_replace_getopt"; then :
14208 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14212 GNULIB_UNISTD_H_GETOPT
=1
14221 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14231 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14243 GNULIB_NANOSLEEP
=0;
14247 HAVE_DECL_LOCALTIME_R
=1;
14251 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14252 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14253 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14254 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14259 for ac_func
in $ac_func_list
14261 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14262 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14263 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14264 cat >>confdefs.h
<<_ACEOF
14265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14274 gl_cv_c_multiarch
=no
14275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 #ifndef __APPLE_CC__
14278 not a universal capable compiler
14283 if ac_fn_c_try_compile
"$LINENO"; then :
14287 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14288 if test -n "$prev"; then
14290 i?
86 | x86_64 | ppc | ppc64
)
14291 if test -z "$arch" ||
test "$arch" = "$word"; then
14294 gl_cv_c_multiarch
=yes
14300 if test "x$word" = "x-arch"; then
14307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14308 if test $gl_cv_c_multiarch = yes; then
14310 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14312 APPLE_UNIVERSAL_BUILD
=1
14314 APPLE_UNIVERSAL_BUILD
=0
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14319 $as_echo_n "checking for inline... " >&6; }
14320 if ${ac_cv_c_inline+:} false
; then :
14321 $as_echo_n "(cached) " >&6
14324 for ac_kw
in inline __inline__ __inline
; do
14325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 #ifndef __cplusplus
14329 static $ac_kw foo_t static_foo () {return 0; }
14330 $ac_kw foo_t foo () {return 0; }
14334 if ac_fn_c_try_compile
"$LINENO"; then :
14335 ac_cv_c_inline
=$ac_kw
14337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14338 test "$ac_cv_c_inline" != no
&& break
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14343 $as_echo "$ac_cv_c_inline" >&6; }
14345 case $ac_cv_c_inline in
14348 case $ac_cv_c_inline in
14350 *) ac_val
=$ac_cv_c_inline;;
14352 cat >>confdefs.h
<<_ACEOF
14353 #ifndef __cplusplus
14354 #define inline $ac_val
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14367 $as_echo_n "checking for wchar_t... " >&6; }
14368 if ${gt_cv_c_wchar_t+:} false
; then :
14369 $as_echo_n "(cached) " >&6
14371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 #include <stddef.h>
14374 wchar_t foo = (wchar_t)'\0';
14383 if ac_fn_c_try_compile
"$LINENO"; then :
14384 gt_cv_c_wchar_t
=yes
14388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14391 $as_echo "$gt_cv_c_wchar_t" >&6; }
14392 if test $gt_cv_c_wchar_t = yes; then
14394 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14401 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14402 if ${ac_cv_c_restrict+:} false
; then :
14403 $as_echo_n "(cached) " >&6
14405 ac_cv_c_restrict
=no
14406 # The order here caters to the fact that C++ does not require restrict.
14407 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 typedef int * int_ptr;
14411 int foo (int_ptr $ac_kw ip) {
14418 int * $ac_kw t = s;
14425 if ac_fn_c_try_compile
"$LINENO"; then :
14426 ac_cv_c_restrict
=$ac_kw
14428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14429 test "$ac_cv_c_restrict" != no
&& break
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14434 $as_echo "$ac_cv_c_restrict" >&6; }
14436 case $ac_cv_c_restrict in
14438 no
) $as_echo "#define restrict /**/" >>confdefs.h
14440 *) cat >>confdefs.h
<<_ACEOF
14441 #define restrict $ac_cv_c_restrict
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14453 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14454 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14455 $as_echo_n "(cached) " >&6
14457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14464 static struct timespec x; x.tv_sec = x.tv_nsec;
14469 if ac_fn_c_try_compile
"$LINENO"; then :
14470 gl_cv_sys_struct_timespec_in_time_h
=yes
14472 gl_cv_sys_struct_timespec_in_time_h
=no
14474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14477 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14479 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14480 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14481 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14482 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14483 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14486 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14487 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14488 $as_echo_n "(cached) " >&6
14490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <sys/time.h>
14497 static struct timespec x; x.tv_sec = x.tv_nsec;
14502 if ac_fn_c_try_compile
"$LINENO"; then :
14503 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14505 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14510 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14511 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14512 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14515 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14516 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14517 $as_echo_n "(cached) " >&6
14519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521 #include <pthread.h>
14526 static struct timespec x; x.tv_sec = x.tv_nsec;
14531 if ac_fn_c_try_compile
"$LINENO"; then :
14532 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14534 gl_cv_sys_struct_timespec_in_pthread_h
=no
14536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14539 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14540 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14541 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14558 if test $gl_cv_have_include_next = yes; then
14559 gl_cv_next_time_h
='<'time.h
'>'
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14562 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14563 if ${gl_cv_next_time_h+:} false
; then :
14564 $as_echo_n "(cached) " >&6
14567 if test $ac_cv_header_time_h = yes; then
14568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14574 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14575 *) gl_absname_cpp
="$ac_cpp" ;;
14577 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14578 sed -n '\#/time.h#{
14579 s#.*"\(.*/time.h\)".*#\1#
14585 gl_cv_next_time_h
='<'time.h
'>'
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14590 $as_echo "$gl_cv_next_time_h" >&6; }
14592 NEXT_TIME_H
=$gl_cv_next_time_h
14594 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14596 gl_next_as_first_directive
='<'time.h
'>'
14598 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14599 gl_next_as_first_directive
=$gl_cv_next_time_h
14601 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14607 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14608 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
14614 cat >>confdefs.h
<<_ACEOF
14615 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14622 GL_COND_LIBTOOL_TRUE
=
14623 GL_COND_LIBTOOL_FALSE
='#'
14625 GL_COND_LIBTOOL_TRUE
='#'
14626 GL_COND_LIBTOOL_FALSE
=
14629 gl_cond_libtool
=false
14642 gl_source_base
='lib'
14643 # Code from module arg-nonnull:
14644 # Code from module c++defs:
14645 # Code from module dtoastr:
14647 # Code from module extensions:
14648 # Code from module getopt-gnu:
14656 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14659 # Code from module getopt-posix:
14665 if test -n "$gl_replace_getopt"; then :
14671 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14675 GNULIB_UNISTD_H_GETOPT
=1
14684 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14694 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14704 # Code from module gettext-h:
14707 # Code from module include_next:
14708 # Code from module intprops:
14709 # Code from module mktime:
14715 if test $APPLE_UNIVERSAL_BUILD = 1; then
14716 # A universal build on Apple MacOS X platforms.
14717 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14718 # But we need a configuration result that is valid in both modes.
14719 ac_cv_func_working_mktime
=no
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14722 $as_echo_n "checking for working mktime... " >&6; }
14723 if ${ac_cv_func_working_mktime+:} false
; then :
14724 $as_echo_n "(cached) " >&6
14726 if test "$cross_compiling" = yes; then :
14727 ac_cv_func_working_mktime
=no
14729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731 /* Test program from Paul Eggert and Tony Leneis. */
14732 #include <limits.h>
14733 #include <stdlib.h>
14736 #ifdef HAVE_UNISTD_H
14737 # include <unistd.h>
14741 # define alarm(X) /* empty */
14744 /* Work around redefinition to rpl_putenv by other config tests. */
14747 static time_t time_t_max;
14748 static time_t time_t_min;
14750 /* Values we'll use to set the TZ environment variable. */
14751 static char *tz_strings[] = {
14752 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14753 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14755 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14757 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14758 Based on a problem report from Andreas Jaeger. */
14760 spring_forward_gap ()
14762 /* glibc (up to about 1998-10-07) failed this test. */
14765 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14766 instead of "TZ=America/Vancouver" in order to detect the bug even
14767 on systems that don't support the Olson extension, or don't have the
14768 full zoneinfo tables installed. */
14769 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14778 return mktime (&tm) != (time_t) -1;
14782 mktime_test1 (time_t now)
14785 return ! (lt = localtime (&now)) || mktime (lt) == now;
14789 mktime_test (time_t now)
14791 return (mktime_test1 (now)
14792 && mktime_test1 ((time_t) (time_t_max - now))
14793 && mktime_test1 ((time_t) (time_t_min + now)));
14799 /* Based on code from Ariel Faigon. */
14809 return tm.tm_mon == 2 && tm.tm_mday == 31;
14813 bigtime_test (int j)
14817 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14818 now = mktime (&tm);
14819 if (now != (time_t) -1)
14821 struct tm *lt = localtime (&now);
14823 && lt->tm_year == tm.tm_year
14824 && lt->tm_mon == tm.tm_mon
14825 && lt->tm_mday == tm.tm_mday
14826 && lt->tm_hour == tm.tm_hour
14827 && lt->tm_min == tm.tm_min
14828 && lt->tm_sec == tm.tm_sec
14829 && lt->tm_yday == tm.tm_yday
14830 && lt->tm_wday == tm.tm_wday
14831 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14832 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14841 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14842 ignoring leap seconds. */
14843 unsigned long int answer = 2527315200UL;
14847 tm.tm_year = 2050 - 1900;
14850 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14853 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14854 instead of "TZ=America/Vancouver" in order to detect the bug even
14855 on systems that don't support the Olson extension, or don't have the
14856 full zoneinfo tables installed. */
14857 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14861 /* Check that the result is either a failure, or close enough
14862 to the correct answer that we can assume the discrepancy is
14863 due to leap seconds. */
14864 return (t == (time_t) -1
14865 || (0 < t && answer - 120 <= t && t <= answer + 120));
14875 /* This test makes some buggy mktime implementations loop.
14876 Give up after 60 seconds; a mktime slower than that
14877 isn't worth using anyway. */
14882 t = (time_t_max << 1) + 1;
14883 if (t <= time_t_max)
14887 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
14889 delta = time_t_max / 997; /* a suitable prime number */
14890 for (i = 0; i < N_STRINGS; i++)
14893 putenv (tz_strings[i]);
14895 for (t = 0; t <= time_t_max - delta; t += delta)
14896 if (! mktime_test (t))
14898 if (! (mktime_test ((time_t) 1)
14899 && mktime_test ((time_t) (60 * 60))
14900 && mktime_test ((time_t) (60 * 60 * 24))))
14903 for (j = 1; ; j <<= 1)
14904 if (! bigtime_test (j))
14906 else if (INT_MAX / 2 < j)
14908 if (! bigtime_test (INT_MAX))
14911 if (! irix_6_4_bug ())
14913 if (! spring_forward_gap ())
14915 if (! year_2050_test ())
14920 if ac_fn_c_try_run
"$LINENO"; then :
14921 ac_cv_func_working_mktime
=yes
14923 ac_cv_func_working_mktime
=no
14925 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14926 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14931 $as_echo "$ac_cv_func_working_mktime" >&6; }
14932 if test $ac_cv_func_working_mktime = no
; then
14941 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
14945 if test $ac_cv_func_working_mktime = no
; then
14961 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
14965 # Code from module multiarch:
14967 # Code from module stddef:
14971 if test $gt_cv_c_wchar_t = no
; then
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14976 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14977 if ${gl_cv_decl_null_works+:} false
; then :
14978 $as_echo_n "(cached) " >&6
14980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14982 #include <stddef.h>
14983 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14993 if ac_fn_c_try_compile
"$LINENO"; then :
14994 gl_cv_decl_null_works
=yes
14996 gl_cv_decl_null_works
=no
14998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15001 $as_echo "$gl_cv_decl_null_works" >&6; }
15002 if test $gl_cv_decl_null_works = no
; then
15006 if test -n "$STDDEF_H"; then
15013 if test $gl_cv_have_include_next = yes; then
15014 gl_cv_next_stddef_h
='<'stddef.h
'>'
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15017 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15018 if ${gl_cv_next_stddef_h+:} false
; then :
15019 $as_echo_n "(cached) " >&6
15022 if test $ac_cv_header_stddef_h = yes; then
15023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15025 #include <stddef.h>
15029 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15030 *) gl_absname_cpp
="$ac_cpp" ;;
15032 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15033 sed -n '\#/stddef.h#{
15034 s#.*"\(.*/stddef.h\)".*#\1#
15040 gl_cv_next_stddef_h
='<'stddef.h
'>'
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15045 $as_echo "$gl_cv_next_stddef_h" >&6; }
15047 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
15049 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15050 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15051 gl_next_as_first_directive
='<'stddef.h
'>'
15053 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15054 gl_next_as_first_directive
=$gl_cv_next_stddef_h
15056 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
15062 # Code from module time:
15066 # Code from module time_r:
15074 if test $ac_cv_have_decl_localtime_r = no
; then
15075 HAVE_DECL_LOCALTIME_R
=0
15079 if test $ac_cv_func_localtime_r = yes; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15082 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15083 if ${gl_cv_time_r_posix+:} false
; then :
15084 $as_echo_n "(cached) " >&6
15086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15092 /* We don't need to append 'restrict's to the argument types,
15093 even though the POSIX signature has the 'restrict's,
15094 since C99 says they can't affect type compatibility. */
15095 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15097 /* Check the return type is a pointer.
15098 On HP-UX 10 it is 'int'. */
15099 *localtime_r (0, 0);
15105 if ac_fn_c_try_compile
"$LINENO"; then :
15106 gl_cv_time_r_posix
=yes
15108 gl_cv_time_r_posix
=no
15110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15114 $as_echo "$gl_cv_time_r_posix" >&6; }
15115 if test $gl_cv_time_r_posix = yes; then
15116 REPLACE_LOCALTIME_R
=0
15118 REPLACE_LOCALTIME_R
=1
15123 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
15132 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
15146 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
15150 # Code from module unistd:
15161 if test $gl_cv_have_include_next = yes; then
15162 gl_cv_next_unistd_h
='<'unistd.h
'>'
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15165 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15166 if ${gl_cv_next_unistd_h+:} false
; then :
15167 $as_echo_n "(cached) " >&6
15170 if test $ac_cv_header_unistd_h = yes; then
15171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15173 #include <unistd.h>
15177 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15178 *) gl_absname_cpp
="$ac_cpp" ;;
15180 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15181 sed -n '\#/unistd.h#{
15182 s#.*"\(.*/unistd.h\)".*#\1#
15188 gl_cv_next_unistd_h
='<'unistd.h
'>'
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15193 $as_echo "$gl_cv_next_unistd_h" >&6; }
15195 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
15197 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15199 gl_next_as_first_directive
='<'unistd.h
'>'
15201 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15202 gl_next_as_first_directive
=$gl_cv_next_unistd_h
15204 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
15210 if test $ac_cv_header_unistd_h = yes; then
15218 for gl_func
in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat
rmdir sleep symlink symlinkat ttyname_r unlink unlinkat
usleep; do
15219 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15221 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15222 if eval \
${$as_gl_Symbol+:} false
; then :
15223 $as_echo_n "(cached) " >&6
15225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 #include <unistd.h>
15228 /* Some systems declare various items in the wrong headers. */
15229 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15230 # include <fcntl.h>
15231 # include <stdio.h>
15232 # include <stdlib.h>
15233 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15247 if ac_fn_c_try_compile
"$LINENO"; then :
15248 eval "$as_gl_Symbol=yes"
15250 eval "$as_gl_Symbol=no"
15252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15254 eval ac_res
=\$
$as_gl_Symbol
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15256 $as_echo "$ac_res" >&6; }
15257 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15258 cat >>confdefs.h
<<_ACEOF
15259 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15262 eval ac_cv_have_decl_
$gl_func=yes
15267 # Code from module warn-on-use:
15268 # End of code from modules
15289 gl_source_base
='tests'
15290 gltests_WITNESS
=IN_
`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15292 gl_module_indicator_condition
=$gltests_WITNESS
15302 LIBGNU_LIBDEPS
="$gl_libdeps"
15304 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
15308 for ac_func
in strftime
15310 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
15311 if test "x$ac_cv_func_strftime" = xyes
; then :
15312 cat >>confdefs.h
<<_ACEOF
15313 #define HAVE_STRFTIME 1
15317 # strftime is in -lintl on SCO UNIX.
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15319 $as_echo_n "checking for strftime in -lintl... " >&6; }
15320 if ${ac_cv_lib_intl_strftime+:} false
; then :
15321 $as_echo_n "(cached) " >&6
15323 ac_check_lib_save_LIBS
=$LIBS
15324 LIBS
="-lintl $LIBS"
15325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15328 /* Override any GCC internal prototype to avoid an error.
15329 Use char because int might match the return type of a GCC
15330 builtin and then its argument prototype would still apply. */
15338 return strftime ();
15343 if ac_fn_c_try_link
"$LINENO"; then :
15344 ac_cv_lib_intl_strftime
=yes
15346 ac_cv_lib_intl_strftime
=no
15348 rm -f core conftest.err conftest.
$ac_objext \
15349 conftest
$ac_exeext conftest.
$ac_ext
15350 LIBS
=$ac_check_lib_save_LIBS
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15353 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
15354 if test "x$ac_cv_lib_intl_strftime" = xyes
; then :
15355 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15357 LIBS
="-lintl $LIBS"
15365 for ac_func
in grantpt
15367 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
15368 if test "x$ac_cv_func_grantpt" = xyes
; then :
15369 cat >>confdefs.h
<<_ACEOF
15370 #define HAVE_GRANTPT 1
15377 # PTY-related GNU extensions.
15378 for ac_func
in getpt
15380 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
15381 if test "x$ac_cv_func_getpt" = xyes
; then :
15382 cat >>confdefs.h
<<_ACEOF
15383 #define HAVE_GETPT 1
15390 # Check this now, so that we will NOT find the above functions in ncurses.
15391 # That is because we have not set up to link ncurses in lib-src.
15392 # It's better to believe a function is not available
15393 # than to expect to find it in ncurses.
15394 # Also we need tputs and friends to be able to build at all.
15395 have_tputs_et_al
=true
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15397 $as_echo_n "checking for library containing tputs... " >&6; }
15398 if ${ac_cv_search_tputs+:} false
; then :
15399 $as_echo_n "(cached) " >&6
15401 ac_func_search_save_LIBS
=$LIBS
15402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15420 for ac_lib
in '' ncurses terminfo termcap
; do
15421 if test -z "$ac_lib"; then
15422 ac_res
="none required"
15425 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15427 if ac_fn_c_try_link
"$LINENO"; then :
15428 ac_cv_search_tputs
=$ac_res
15430 rm -f core conftest.err conftest.
$ac_objext \
15432 if ${ac_cv_search_tputs+:} false
; then :
15436 if ${ac_cv_search_tputs+:} false
; then :
15439 ac_cv_search_tputs
=no
15441 rm conftest.
$ac_ext
15442 LIBS
=$ac_func_search_save_LIBS
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15445 $as_echo "$ac_cv_search_tputs" >&6; }
15446 ac_res
=$ac_cv_search_tputs
15447 if test "$ac_res" != no
; then :
15448 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15451 have_tputs_et_al
=false
15454 if test "$have_tputs_et_al" != true
; then
15455 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
15456 Maybe some development libraries/packages are missing? Try installing
15457 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15459 # Must define this when any termcap library is found.
15461 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15463 ## FIXME This was the cpp logic, but I am not sure it is right.
15464 ## The above test has not necessarily found libncurses.
15465 HAVE_LIBNCURSES
=yes
15467 ## Use terminfo instead of termcap?
15468 ## Note only system files NOT using terminfo are:
15469 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15470 ## darwin|gnu without ncurses.
15474 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15475 ## hpux10-20: Use the system provided termcap(3) library.
15476 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15477 ## is necessary. Otherwise Emacs dumps core when run -nw.
15478 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
15480 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15481 ## The ncurses library has been moved out of the System framework in
15482 ## Mac OS X 10.2. So if configure detects it, set the command-line
15483 ## option to use it.
15485 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15486 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15488 LIBS_TERMCAP
="-lncurses"
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15494 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15495 if ${emacs_cv_freebsd_terminfo+:} false
; then :
15496 $as_echo_n "(cached) " >&6
15498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15500 #include <osreldate.h>
15504 #if __FreeBSD_version < 400000
15512 if ac_fn_c_try_link
"$LINENO"; then :
15513 emacs_cv_freebsd_terminfo
=yes
15515 emacs_cv_freebsd_terminfo
=no
15517 rm -f core conftest.err conftest.
$ac_objext \
15518 conftest
$ac_exeext conftest.
$ac_ext
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15523 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15525 if test $emacs_cv_freebsd_terminfo = yes; then
15527 LIBS_TERMCAP
="-lncurses"
15529 LIBS_TERMCAP
="-ltermcap"
15534 if test $ac_cv_search_tputs = -lterminfo; then
15536 LIBS_TERMCAP
="-lterminfo"
15538 LIBS_TERMCAP
="-ltermcap"
15545 ## hpux: Make sure we get select from libc rather than from libcurses
15546 ## because libcurses on HPUX 10.10 has a broken version of select.
15547 ## We used to use -lc -lcurses, but this may be cleaner.
15548 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
15550 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
15552 ## Must use system termcap, if we use any termcap. It does special things.
15553 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
15556 TERMCAP_OBJ
=tparam.o
15557 if test $TERMINFO = yes; then
15559 $as_echo "#define TERMINFO 1" >>confdefs.h
15562 ## Default used to be -ltermcap. Add a case above if need something else.
15563 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
15565 TERMCAP_OBJ
=terminfo.o
15571 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15575 #include <netinet/in.h>
15576 #include <arpa/nameser.h>
15577 #include <resolv.h>
15586 if ac_fn_c_try_link
"$LINENO"; then :
15591 rm -f core conftest.err conftest.
$ac_objext \
15592 conftest
$ac_exeext conftest.
$ac_ext
15593 if test "$have_res_init" = no
; then
15595 LIBS
="$LIBS -lresolv"
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15597 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600 #include <netinet/in.h>
15601 #include <arpa/nameser.h>
15602 #include <resolv.h>
15611 if ac_fn_c_try_link
"$LINENO"; then :
15616 rm -f core conftest.err conftest.
$ac_objext \
15617 conftest
$ac_exeext conftest.
$ac_ext
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15619 $as_echo "$have_res_init" >&6; }
15620 if test "$have_res_init" = yes ; then
15626 if test "$have_res_init" = yes; then
15628 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15632 # Do we need the Hesiod library to provide the support routines?
15634 if test "$with_hesiod" != no
; then
15635 # Don't set $LIBS here -- see comments above. FIXME which comments?
15636 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15637 if test "x$ac_cv_func_res_send" = xyes
; then :
15640 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15641 if test "x$ac_cv_func___res_send" = xyes
; then :
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15645 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15646 if ${ac_cv_lib_resolv_res_send+:} false
; then :
15647 $as_echo_n "(cached) " >&6
15649 ac_check_lib_save_LIBS
=$LIBS
15650 LIBS
="-lresolv $LIBS"
15651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15664 return res_send ();
15669 if ac_fn_c_try_link
"$LINENO"; then :
15670 ac_cv_lib_resolv_res_send
=yes
15672 ac_cv_lib_resolv_res_send
=no
15674 rm -f core conftest.err conftest.
$ac_objext \
15675 conftest
$ac_exeext conftest.
$ac_ext
15676 LIBS
=$ac_check_lib_save_LIBS
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15679 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15680 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15684 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15685 if ${ac_cv_lib_resolv___res_send+:} false
; then :
15686 $as_echo_n "(cached) " >&6
15688 ac_check_lib_save_LIBS
=$LIBS
15689 LIBS
="-lresolv $LIBS"
15690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15693 /* Override any GCC internal prototype to avoid an error.
15694 Use char because int might match the return type of a GCC
15695 builtin and then its argument prototype would still apply. */
15699 char __res_send ();
15703 return __res_send ();
15708 if ac_fn_c_try_link
"$LINENO"; then :
15709 ac_cv_lib_resolv___res_send
=yes
15711 ac_cv_lib_resolv___res_send
=no
15713 rm -f core conftest.err conftest.
$ac_objext \
15714 conftest
$ac_exeext conftest.
$ac_ext
15715 LIBS
=$ac_check_lib_save_LIBS
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15718 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15719 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
15729 if test "$resolv" = yes ; then
15734 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15735 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15739 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15740 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
15741 $as_echo_n "(cached) " >&6
15743 ac_check_lib_save_LIBS
=$LIBS
15744 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15748 /* Override any GCC internal prototype to avoid an error.
15749 Use char because int might match the return type of a GCC
15750 builtin and then its argument prototype would still apply. */
15754 char hes_getmailhost ();
15758 return hes_getmailhost ();
15763 if ac_fn_c_try_link
"$LINENO"; then :
15764 ac_cv_lib_hesiod_hes_getmailhost
=yes
15766 ac_cv_lib_hesiod_hes_getmailhost
=no
15768 rm -f core conftest.err conftest.
$ac_objext \
15769 conftest
$ac_exeext conftest.
$ac_ext
15770 LIBS
=$ac_check_lib_save_LIBS
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15773 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15774 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
15783 if test x
"$hesiod" = xyes
; then
15785 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15792 # Do we need libresolv (due to res_init or Hesiod)?
15793 if test "$resolv" = yes ; then
15795 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15803 # These tell us which Kerberos-related libraries to use.
15810 if test "${with_kerberos}" != no
; then
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15812 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15813 if ${ac_cv_lib_com_err_com_err+:} false
; then :
15814 $as_echo_n "(cached) " >&6
15816 ac_check_lib_save_LIBS
=$LIBS
15817 LIBS
="-lcom_err $LIBS"
15818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15821 /* Override any GCC internal prototype to avoid an error.
15822 Use char because int might match the return type of a GCC
15823 builtin and then its argument prototype would still apply. */
15836 if ac_fn_c_try_link
"$LINENO"; then :
15837 ac_cv_lib_com_err_com_err
=yes
15839 ac_cv_lib_com_err_com_err
=no
15841 rm -f core conftest.err conftest.
$ac_objext \
15842 conftest
$ac_exeext conftest.
$ac_ext
15843 LIBS
=$ac_check_lib_save_LIBS
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15846 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15847 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
15853 if test $have_com_err = yes; then
15854 COM_ERRLIB
=-lcom_err
15855 LIBS
="$COM_ERRLIB $LIBS"
15857 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15861 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15862 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
15863 $as_echo_n "(cached) " >&6
15865 ac_check_lib_save_LIBS
=$LIBS
15866 LIBS
="-lcrypto $LIBS"
15867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15870 /* Override any GCC internal prototype to avoid an error.
15871 Use char because int might match the return type of a GCC
15872 builtin and then its argument prototype would still apply. */
15876 char mit_des_cbc_encrypt ();
15880 return mit_des_cbc_encrypt ();
15885 if ac_fn_c_try_link
"$LINENO"; then :
15886 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15888 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15890 rm -f core conftest.err conftest.
$ac_objext \
15891 conftest
$ac_exeext conftest.
$ac_ext
15892 LIBS
=$ac_check_lib_save_LIBS
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15895 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15896 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
15902 if test $have_crypto = yes; then
15904 LIBS
="$CRYPTOLIB $LIBS"
15906 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15910 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15911 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
15912 $as_echo_n "(cached) " >&6
15914 ac_check_lib_save_LIBS
=$LIBS
15915 LIBS
="-lk5crypto $LIBS"
15916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15919 /* Override any GCC internal prototype to avoid an error.
15920 Use char because int might match the return type of a GCC
15921 builtin and then its argument prototype would still apply. */
15925 char mit_des_cbc_encrypt ();
15929 return mit_des_cbc_encrypt ();
15934 if ac_fn_c_try_link
"$LINENO"; then :
15935 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15937 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15939 rm -f core conftest.err conftest.
$ac_objext \
15940 conftest
$ac_exeext conftest.
$ac_ext
15941 LIBS
=$ac_check_lib_save_LIBS
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15944 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15945 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
15951 if test $have_k5crypto = yes; then
15952 CRYPTOLIB
=-lk5crypto
15953 LIBS
="$CRYPTOLIB $LIBS"
15955 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15959 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15960 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
15961 $as_echo_n "(cached) " >&6
15963 ac_check_lib_save_LIBS
=$LIBS
15964 LIBS
="-lkrb5 $LIBS"
15965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h. */
15968 /* Override any GCC internal prototype to avoid an error.
15969 Use char because int might match the return type of a GCC
15970 builtin and then its argument prototype would still apply. */
15974 char krb5_init_context ();
15978 return krb5_init_context ();
15983 if ac_fn_c_try_link
"$LINENO"; then :
15984 ac_cv_lib_krb5_krb5_init_context
=yes
15986 ac_cv_lib_krb5_krb5_init_context
=no
15988 rm -f core conftest.err conftest.
$ac_objext \
15989 conftest
$ac_exeext conftest.
$ac_ext
15990 LIBS
=$ac_check_lib_save_LIBS
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15993 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15994 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
16000 if test $have_krb5=yes; then
16002 LIBS
="$KRB5LIB $LIBS"
16004 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16007 if test "${with_kerberos5}" = no
; then
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16009 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16010 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
16011 $as_echo_n "(cached) " >&6
16013 ac_check_lib_save_LIBS
=$LIBS
16014 LIBS
="-ldes425 $LIBS"
16015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16018 /* Override any GCC internal prototype to avoid an error.
16019 Use char because int might match the return type of a GCC
16020 builtin and then its argument prototype would still apply. */
16024 char des_cbc_encrypt ();
16028 return des_cbc_encrypt ();
16033 if ac_fn_c_try_link
"$LINENO"; then :
16034 ac_cv_lib_des425_des_cbc_encrypt
=yes
16036 ac_cv_lib_des425_des_cbc_encrypt
=no
16038 rm -f core conftest.err conftest.
$ac_objext \
16039 conftest
$ac_exeext conftest.
$ac_ext
16040 LIBS
=$ac_check_lib_save_LIBS
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16043 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16044 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
16050 if test $have_des425 = yes; then
16052 LIBS
="$DESLIB $LIBS"
16054 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16058 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16059 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
16060 $as_echo_n "(cached) " >&6
16062 ac_check_lib_save_LIBS
=$LIBS
16064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16065 /* end confdefs.h. */
16067 /* Override any GCC internal prototype to avoid an error.
16068 Use char because int might match the return type of a GCC
16069 builtin and then its argument prototype would still apply. */
16073 char des_cbc_encrypt ();
16077 return des_cbc_encrypt ();
16082 if ac_fn_c_try_link
"$LINENO"; then :
16083 ac_cv_lib_des_des_cbc_encrypt
=yes
16085 ac_cv_lib_des_des_cbc_encrypt
=no
16087 rm -f core conftest.err conftest.
$ac_objext \
16088 conftest
$ac_exeext conftest.
$ac_ext
16089 LIBS
=$ac_check_lib_save_LIBS
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16092 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16093 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
16099 if test $have_des = yes; then
16101 LIBS
="$DESLIB $LIBS"
16103 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16108 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16109 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
16110 $as_echo_n "(cached) " >&6
16112 ac_check_lib_save_LIBS
=$LIBS
16113 LIBS
="-lkrb4 $LIBS"
16114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h. */
16117 /* Override any GCC internal prototype to avoid an error.
16118 Use char because int might match the return type of a GCC
16119 builtin and then its argument prototype would still apply. */
16123 char krb_get_cred ();
16127 return krb_get_cred ();
16132 if ac_fn_c_try_link
"$LINENO"; then :
16133 ac_cv_lib_krb4_krb_get_cred
=yes
16135 ac_cv_lib_krb4_krb_get_cred
=no
16137 rm -f core conftest.err conftest.
$ac_objext \
16138 conftest
$ac_exeext conftest.
$ac_ext
16139 LIBS
=$ac_check_lib_save_LIBS
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16142 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16143 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
16149 if test $have_krb4 = yes; then
16151 LIBS
="$KRB4LIB $LIBS"
16153 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16157 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16158 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
16159 $as_echo_n "(cached) " >&6
16161 ac_check_lib_save_LIBS
=$LIBS
16163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16166 /* Override any GCC internal prototype to avoid an error.
16167 Use char because int might match the return type of a GCC
16168 builtin and then its argument prototype would still apply. */
16172 char krb_get_cred ();
16176 return krb_get_cred ();
16181 if ac_fn_c_try_link
"$LINENO"; then :
16182 ac_cv_lib_krb_krb_get_cred
=yes
16184 ac_cv_lib_krb_krb_get_cred
=no
16186 rm -f core conftest.err conftest.
$ac_objext \
16187 conftest
$ac_exeext conftest.
$ac_ext
16188 LIBS
=$ac_check_lib_save_LIBS
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16191 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16192 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
16198 if test $have_krb = yes; then
16200 LIBS
="$KRB4LIB $LIBS"
16202 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16208 if test "${with_kerberos5}" != no
; then
16209 for ac_header
in krb5.h
16211 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16212 if test "x$ac_cv_header_krb5_h" = xyes
; then :
16213 cat >>confdefs.h
<<_ACEOF
16214 #define HAVE_KRB5_H 1
16216 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16218 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
16220 cat >>confdefs.h
<<_ACEOF
16221 #define HAVE_KRB5_ERROR_TEXT 1
16226 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16228 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
16230 cat >>confdefs.h
<<_ACEOF
16231 #define HAVE_KRB5_ERROR_E_TEXT 1
16242 for ac_header
in des.h
16244 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16245 if test "x$ac_cv_header_des_h" = xyes
; then :
16246 cat >>confdefs.h
<<_ACEOF
16247 #define HAVE_DES_H 1
16251 for ac_header
in kerberosIV
/des.h
16253 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16254 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
16255 cat >>confdefs.h
<<_ACEOF
16256 #define HAVE_KERBEROSIV_DES_H 1
16260 for ac_header
in kerberos
/des.h
16262 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16263 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
16264 cat >>confdefs.h
<<_ACEOF
16265 #define HAVE_KERBEROS_DES_H 1
16280 for ac_header
in krb.h
16282 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16283 if test "x$ac_cv_header_krb_h" = xyes
; then :
16284 cat >>confdefs.h
<<_ACEOF
16285 #define HAVE_KRB_H 1
16289 for ac_header
in kerberosIV
/krb.h
16291 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16292 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
16293 cat >>confdefs.h
<<_ACEOF
16294 #define HAVE_KERBEROSIV_KRB_H 1
16298 for ac_header
in kerberos
/krb.h
16300 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16301 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
16302 cat >>confdefs.h
<<_ACEOF
16303 #define HAVE_KERBEROS_KRB_H 1
16319 for ac_header
in com_err.h
16321 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16322 if test "x$ac_cv_header_com_err_h" = xyes
; then :
16323 cat >>confdefs.h
<<_ACEOF
16324 #define HAVE_COM_ERR_H 1
16339 # Solaris requires -lintl if you want strerror (which calls dgettext)
16340 # to return localized messages.
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16342 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16343 if ${ac_cv_lib_intl_dgettext+:} false
; then :
16344 $as_echo_n "(cached) " >&6
16346 ac_check_lib_save_LIBS
=$LIBS
16347 LIBS
="-lintl $LIBS"
16348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16349 /* end confdefs.h. */
16351 /* Override any GCC internal prototype to avoid an error.
16352 Use char because int might match the return type of a GCC
16353 builtin and then its argument prototype would still apply. */
16361 return dgettext ();
16366 if ac_fn_c_try_link
"$LINENO"; then :
16367 ac_cv_lib_intl_dgettext
=yes
16369 ac_cv_lib_intl_dgettext
=no
16371 rm -f core conftest.err conftest.
$ac_objext \
16372 conftest
$ac_exeext conftest.
$ac_ext
16373 LIBS
=$ac_check_lib_save_LIBS
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16376 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16377 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
16378 cat >>confdefs.h
<<_ACEOF
16379 #define HAVE_LIBINTL 1
16382 LIBS
="-lintl $LIBS"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16388 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16389 if ${emacs_cv_localtime_cache+:} false
; then :
16390 $as_echo_n "(cached) " >&6
16392 if test x
$ac_cv_func_tzset = xyes
; then
16393 if test "$cross_compiling" = yes; then :
16394 # If we have tzset, assume the worst when cross-compiling.
16395 emacs_cv_localtime_cache
=yes
16397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16400 char TZ_GMT0[] = "TZ=GMT0";
16401 char TZ_PST8[] = "TZ=PST8";
16404 time_t now = time ((time_t *) 0);
16405 int hour_GMT0, hour_unset;
16406 if (putenv (TZ_GMT0) != 0)
16408 hour_GMT0 = localtime (&now)->tm_hour;
16410 hour_unset = localtime (&now)->tm_hour;
16411 if (putenv (TZ_PST8) != 0)
16413 if (localtime (&now)->tm_hour == hour_GMT0)
16416 if (localtime (&now)->tm_hour != hour_unset)
16421 if ac_fn_c_try_run
"$LINENO"; then :
16422 emacs_cv_localtime_cache
=no
16424 emacs_cv_localtime_cache
=yes
16426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16431 # If we lack tzset, report that localtime does not cache TZ,
16432 # since we can't invalidate the cache if we don't have tzset.
16433 emacs_cv_localtime_cache
=no
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16437 $as_echo "$emacs_cv_localtime_cache" >&6; }
16438 if test $emacs_cv_localtime_cache = yes; then
16440 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16444 if test "x$HAVE_TIMEVAL" = xyes
; then
16445 for ac_func
in gettimeofday
16447 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16448 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
16449 cat >>confdefs.h
<<_ACEOF
16450 #define HAVE_GETTIMEOFDAY 1
16456 if test $ac_cv_func_gettimeofday = yes; then
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16458 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16459 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
16460 $as_echo_n "(cached) " >&6
16462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16463 /* end confdefs.h. */
16465 #ifdef TIME_WITH_SYS_TIME
16466 #include <sys/time.h>
16469 #ifdef HAVE_SYS_TIME_H
16470 #include <sys/time.h>
16478 struct timeval time;
16479 gettimeofday (&time, 0);
16484 if ac_fn_c_try_compile
"$LINENO"; then :
16485 emacs_cv_gettimeofday_two_arguments
=yes
16487 emacs_cv_gettimeofday_two_arguments
=no
16489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16492 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16493 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16495 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16502 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
16503 if test "x$ac_cv_func_socket" = xyes
; then :
16509 if test $ok_so_far = yes; then
16510 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16511 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
16519 if test $ok_so_far = yes; then
16520 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16521 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
16529 if test $ok_so_far = yes; then
16531 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16535 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16537 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16542 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16543 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16545 $as_echo "yes" >&6; }
16547 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16551 $as_echo "no" >&6; }
16554 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16555 if test "x$ac_cv_type_pid_t" = xyes
; then :
16559 cat >>confdefs.h
<<_ACEOF
16565 for ac_header
in vfork.h
16567 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16568 if test "x$ac_cv_header_vfork_h" = xyes
; then :
16569 cat >>confdefs.h
<<_ACEOF
16570 #define HAVE_VFORK_H 1
16577 for ac_func
in fork vfork
16579 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16580 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16581 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16582 cat >>confdefs.h
<<_ACEOF
16583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16589 if test "x$ac_cv_func_fork" = xyes
; then
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16591 $as_echo_n "checking for working fork... " >&6; }
16592 if ${ac_cv_func_fork_works+:} false
; then :
16593 $as_echo_n "(cached) " >&6
16595 if test "$cross_compiling" = yes; then :
16596 ac_cv_func_fork_works
=cross
16598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 $ac_includes_default
16605 /* By Ruediger Kuhlmann. */
16606 return fork () < 0;
16612 if ac_fn_c_try_run
"$LINENO"; then :
16613 ac_cv_func_fork_works
=yes
16615 ac_cv_func_fork_works
=no
16617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16623 $as_echo "$ac_cv_func_fork_works" >&6; }
16626 ac_cv_func_fork_works
=$ac_cv_func_fork
16628 if test "x$ac_cv_func_fork_works" = xcross
; then
16630 *-*-amigaos* |
*-*-msdosdjgpp*)
16631 # Override, as these systems have only a dummy fork() stub
16632 ac_cv_func_fork_works
=no
16635 ac_cv_func_fork_works
=yes
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16639 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16641 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16642 if test "x$ac_cv_func_vfork" = xyes
; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16644 $as_echo_n "checking for working vfork... " >&6; }
16645 if ${ac_cv_func_vfork_works+:} false
; then :
16646 $as_echo_n "(cached) " >&6
16648 if test "$cross_compiling" = yes; then :
16649 ac_cv_func_vfork_works
=cross
16651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653 /* Thanks to Paul Eggert for this test. */
16654 $ac_includes_default
16655 #include <sys/wait.h>
16656 #ifdef HAVE_VFORK_H
16657 # include <vfork.h>
16659 /* On some sparc systems, changes by the child to local and incoming
16660 argument registers are propagated back to the parent. The compiler
16661 is told about this with #include <vfork.h>, but some compilers
16662 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16663 static variable whose address is put into a register that is
16664 clobbered by the vfork. */
16667 sparc_address_test (int arg)
16669 sparc_address_test (arg) int arg;
16672 static pid_t child;
16690 pid_t parent = getpid ();
16693 sparc_address_test (0);
16698 /* Here is another test for sparc vfork register problems. This
16699 test uses lots of local variables, at least as many local
16700 variables as main has allocated so far including compiler
16701 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16702 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16703 reuse the register of parent for one of the local variables,
16704 since it will think that parent can't possibly be used any more
16705 in this routine. Assigning to the local variable will thus
16706 munge parent in the parent process. */
16708 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16709 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16710 /* Convince the compiler that p..p7 are live; otherwise, it might
16711 use the same hardware register for all 8 local variables. */
16712 if (p != p1 || p != p2 || p != p3 || p != p4
16713 || p != p5 || p != p6 || p != p7)
16716 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16717 from child file descriptors. If the child closes a descriptor
16718 before it execs or exits, this munges the parent's descriptor
16719 as well. Test for this by closing stdout in the child. */
16720 _exit(close(fileno(stdout)) != 0);
16725 while (wait(&status) != child)
16728 /* Was there some problem with vforking? */
16731 /* Did the child fail? (This shouldn't happen.) */
16734 /* Did the vfork/compiler bug occur? */
16735 || parent != getpid()
16737 /* Did the file descriptor bug occur? */
16738 || fstat(fileno(stdout), &st) != 0
16743 if ac_fn_c_try_run
"$LINENO"; then :
16744 ac_cv_func_vfork_works
=yes
16746 ac_cv_func_vfork_works
=no
16748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16754 $as_echo "$ac_cv_func_vfork_works" >&6; }
16757 if test "x$ac_cv_func_fork_works" = xcross
; then
16758 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16760 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16763 if test "x$ac_cv_func_vfork_works" = xyes
; then
16765 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16769 $as_echo "#define vfork fork" >>confdefs.h
16772 if test "x$ac_cv_func_fork_works" = xyes
; then
16774 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16780 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16781 if ${emacs_cv_langinfo_codeset+:} false
; then :
16782 $as_echo_n "(cached) " >&6
16784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16785 /* end confdefs.h. */
16786 #include <langinfo.h>
16790 char* cs = nl_langinfo(CODESET);
16795 if ac_fn_c_try_link
"$LINENO"; then :
16796 emacs_cv_langinfo_codeset
=yes
16798 emacs_cv_langinfo_codeset
=no
16800 rm -f core conftest.err conftest.
$ac_objext \
16801 conftest
$ac_exeext conftest.
$ac_ext
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16805 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16806 if test $emacs_cv_langinfo_codeset = yes; then
16808 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16812 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16813 if test "x$ac_cv_type_size_t" = xyes
; then :
16815 cat >>confdefs.h
<<_ACEOF
16816 #define HAVE_SIZE_T 1
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16824 $as_echo_n "checking for mbstate_t... " >&6; }
16825 if ${ac_cv_type_mbstate_t+:} false
; then :
16826 $as_echo_n "(cached) " >&6
16828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h. */
16830 $ac_includes_default
16831 # include <wchar.h>
16835 mbstate_t x; return sizeof x;
16840 if ac_fn_c_try_compile
"$LINENO"; then :
16841 ac_cv_type_mbstate_t
=yes
16843 ac_cv_type_mbstate_t
=no
16845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16848 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16849 if test $ac_cv_type_mbstate_t = yes; then
16851 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16855 $as_echo "#define mbstate_t int" >>confdefs.h
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16860 $as_echo_n "checking for C restricted array declarations... " >&6; }
16861 if ${emacs_cv_c_restrict_arr+:} false
; then :
16862 $as_echo_n "(cached) " >&6
16864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866 void fred (int x[__restrict]);
16875 if ac_fn_c_try_compile
"$LINENO"; then :
16876 emacs_cv_c_restrict_arr
=yes
16878 emacs_cv_c_restrict_arr
=no
16880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16883 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16884 if test "$emacs_cv_c_restrict_arr" = yes; then
16886 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16892 # Set up the CFLAGS for real compilation, so we can substitute it.
16893 CFLAGS
="$REAL_CFLAGS"
16894 CPPFLAGS
="$REAL_CPPFLAGS"
16896 ## Hack to detect a buggy GCC version.
16897 if test "x$GCC" = xyes \
16898 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16899 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16900 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16901 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16904 #### Find out which version of Emacs this is.
16905 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
16906 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16907 if test x
"${version}" = x
; then
16908 as_fn_error $?
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
16910 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
16912 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
16915 ### Specify what sort of things we'll be editing into Makefile and config.h.
16916 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16940 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16941 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16942 ## end of LIBX_BASE, but nothing ever set it.
16947 ## Used in lwlib/Makefile.in.
16949 if test -n "${machfile}"; then
16950 M_FILE="\$
(srcdir
)/${machfile}"
16954 S_FILE="\$
(srcdir
)/${opsysfile}"
16966 cat >>confdefs.h <<_ACEOF
16967 #define EMACS_CONFIGURATION "${canonical}"
16971 cat >>confdefs.h <<_ACEOF
16972 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16975 if test -n "$machfile"; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define config_machfile "${machfile}"
16983 cat >>confdefs.h <<_ACEOF
16984 #define config_opsysfile "${opsysfile}"
16991 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16993 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16996 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16998 if test "$HAVE_XFT" = "yes"; then
16999 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17000 elif test "$HAVE_FREETYPE" = "yes"; then
17001 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
17011 if test "${USE_X_TOOLKIT}" != "none" ; then
17012 WIDGET_OBJ
=widget.o
17014 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17016 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17018 $as_echo "#define USE_LUCID 1" >>confdefs.h
17020 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17022 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17027 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17028 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
17032 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17033 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17034 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
17038 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17039 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
17042 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
17048 case "$USE_X_TOOLKIT" in
17049 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
17050 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
17051 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
17055 if test "$USE_X_TOOLKIT" = "none"; then
17056 LIBXT_OTHER
="\$(LIBXSM)"
17057 OLDXMENU_TARGET
="really-oldXMenu"
17059 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17060 OLDXMENU_TARGET
="really-lwlib"
17064 ## The X Menu stuff is present in the X10 distribution, but missing
17065 ## from X11. If we have X10, just use the installed library;
17066 ## otherwise, use our own copy.
17067 if test "${HAVE_X11}" = "yes" ; then
17069 $as_echo "#define HAVE_X11 1" >>confdefs.h
17072 if test "$USE_X_TOOLKIT" = "none"; then
17073 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
17075 OLDXMENU
="\${lwlibdir}/liblw.a"
17077 LIBXMENU
="\$(OLDXMENU)"
17078 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
17079 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
17081 ## For a syntactically valid Makefile; not actually used for anything.
17082 ## See comments in src/Makefile.in.
17084 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17085 if test "${HAVE_X_WINDOWS}" = "yes"; then
17094 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
17107 if test "${HAVE_MENUS}" = "yes" ; then
17109 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17113 if test "${GNU_MALLOC}" = "yes" ; then
17115 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17120 if test "${REL_ALLOC}" = "yes" ; then
17122 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17125 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
17129 if test "$opsys" = "cygwin"; then
17130 CYGWIN_OBJ
="sheap.o"
17131 ## Cygwin differs because of its unexec().
17133 POST_ALLOC_OBJ
=lastfile.o
17136 PRE_ALLOC_OBJ
=lastfile.o
17145 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
17148 ## The -headerpad option tells ld (see man page) to leave room at the
17149 ## end of the header for adding load commands. Needed for dumping.
17150 ## 0x690 is the total size of 30 segment load commands (at 56
17151 ## each); under Cocoa 31 commands are required.
17152 if test "$HAVE_NS" = "yes"; then
17153 libs_nsgui
="-framework AppKit"
17154 headerpad_extra
=6C8
17157 headerpad_extra
=690
17159 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17161 ## This is here because src/Makefile.in did some extra fiddling around
17162 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17163 ## #ifndef LD_SWITCH_SYSTEM
17164 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17165 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17166 ## not using gcc, darwin system not on an alpha (ie darwin, since
17167 ## darwin + alpha does not occur).
17168 ## Because this was done in src/Makefile.in, the resulting part of
17169 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17170 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17171 ## rather than LD_SWITCH_SYSTEM.
17172 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17173 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
17176 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17177 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17178 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17179 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17180 ## had different values in configure (in ac_link) and src/Makefile.in.
17181 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17182 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
17184 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
17187 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17188 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17197 ## gnu: GNU needs its own crt0.
17198 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
17200 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17201 ## library search parth, i.e. it won't search /usr/lib for libc and
17202 ## friends. Using -nostartfiles instead avoids this problem, and
17203 ## will also work on earlier NetBSD releases.
17204 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
17206 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17207 ## MkLinux/LinuxPPC needs this.
17208 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17211 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
17217 if test "x$ORDINARY_LINK" = "xyes"; then
17221 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17224 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17225 ## freebsd, gnu-* not on macppc|ibms390x.
17226 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17228 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17229 ## places that are difficult to figure out at make time. Fortunately,
17230 ## these same versions allow you to pass arbitrary flags on to the
17231 ## linker, so there is no reason not to use it as a linker.
17233 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17234 ## searching for libraries in its internal directories, so we have to
17235 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17236 LD_FIRSTFLAG
="-nostdlib"
17239 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17240 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
17245 ## FIXME? The logic here is not precisely the same as that above.
17246 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17247 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17249 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17252 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
17255 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17256 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17262 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17263 ## immediately undefine it again and redefine it to empty.
17264 ## Was the C_SWITCH_X_SITE part really necessary?
17265 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17271 ## Ask GCC where to find libgcc.a.
17272 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17279 ## If we're using X11/GNUstep, define some consequences.
17280 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
17282 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17285 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17287 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
17288 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
17290 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
17291 test "$HAVE_X_WINDOWS" = "yes" && \
17292 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17302 #### Report on what we decided to do.
17303 #### Report GTK as a toolkit, even if it doesn't use Xt.
17304 #### It makes printing result more understandable as using GTK sets
17305 #### toolkit_scroll_bars to yes by default.
17306 if test "${HAVE_GTK}" = "yes"; then
17311 if test -n "$machfile"; then
17312 and_machfile
=" and \`${machfile}'"
17316 Configured for \`${canonical}'.
17318 Where should the build process find the source code? ${srcdir}
17319 What operating system and machine description files should Emacs use?
17320 \`${opsysfile}'${and_machfile}
17321 What compiler should emacs be built with? ${CC} ${CFLAGS}
17322 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17323 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17324 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17325 What window system should Emacs use? ${window_system}
17326 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17328 if test -n "${x_includes}"; then
17329 echo " Where do we find X Windows header files? ${x_includes}"
17331 echo " Where do we find X Windows header files? Standard dirs"
17333 if test -n "${x_libraries}"; then
17334 echo " Where do we find X Windows libraries? ${x_libraries}"
17336 echo " Where do we find X Windows libraries? Standard dirs"
17339 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17340 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17341 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17342 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17343 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17344 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17345 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17346 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17348 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17349 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17350 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17351 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17352 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17353 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17355 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17356 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17357 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17358 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17360 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17363 if test $USE_XASSERTS = yes; then
17364 echo " Compiling with asserts turned on."
17365 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
17370 if test "$HAVE_NS" = "yes"; then
17372 echo "You must run \"make install\" in order to test the built application.
17373 The installed application will go to nextstep/Emacs.app and can be
17374 run or moved from there."
17375 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17376 echo "The application will be fully self-contained."
17378 echo "The lisp resources for the application will be installed under ${prefix}.
17379 You may need to run \"make install\" with sudo. The application will fail
17380 to run if these resources are not installed."
17386 # Remove any trailing slashes in these variables.
17387 test "${prefix}" != NONE
&&
17388 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17389 test "${exec_prefix}" != NONE
&&
17390 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17392 ac_config_files
="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile"
17394 ac_config_commands
="$ac_config_commands default"
17396 cat >confcache
<<\_ACEOF
17397 # This file is a shell script that caches the results of configure
17398 # tests run on this system so they can be shared between configure
17399 # scripts and configure runs, see configure's option --config-cache.
17400 # It is not useful on other systems. If it contains results you don't
17401 # want to keep, you may remove or edit it.
17403 # config.status only pays attention to the cache file if you give it
17404 # the --recheck option to rerun configure.
17406 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17407 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17408 # following values.
17412 # The following way of writing the cache mishandles newlines in values,
17413 # but we know of no workaround that is simple, portable, and efficient.
17414 # So, we kill variables containing newlines.
17415 # Ultrix sh set writes to stderr and can't be redirected directly,
17416 # and sets the high bit in the cache file unless we assign to the vars.
17418 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17419 eval ac_val
=\$
$ac_var
17423 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17424 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17427 _ | IFS | as_nl
) ;; #(
17428 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17429 *) { eval $ac_var=; unset $ac_var;} ;;
17435 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17436 *${as_nl}ac_space
=\
*)
17437 # `set' does not quote correctly, so add quotes: double-quote
17438 # substitution turns \\\\ into \\, and sed turns \\ into \.
17441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17444 # `set' quotes correctly as required by POSIX, so do not add quotes.
17445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17454 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17456 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17458 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17459 if test -w "$cache_file"; then
17460 if test "x$cache_file" != "x/dev/null"; then
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17462 $as_echo "$as_me: updating cache $cache_file" >&6;}
17463 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17464 cat confcache
>"$cache_file"
17466 case $cache_file in #(
17468 mv -f confcache
"$cache_file"$$
&&
17469 mv -f "$cache_file"$$
"$cache_file" ;; #(
17471 mv -f confcache
"$cache_file" ;;
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17477 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17482 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17483 # Let make expand exec_prefix.
17484 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17486 DEFS
=-DHAVE_CONFIG_H
17491 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17492 # 1. Remove the extension, and $U if already installed.
17493 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17494 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17495 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17496 # will be set to the directory where LIBOBJS objects are built.
17497 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17498 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17500 LIBOBJS
=$ac_libobjs
17502 LTLIBOBJS
=$ac_ltlibobjs
17505 if test -n "$EXEEXT"; then
17507 am__EXEEXT_FALSE
='#'
17509 am__EXEEXT_TRUE
='#'
17513 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17514 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17518 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17522 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17523 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
17524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17529 if test -n "$gl_LIBOBJS"; then
17530 # Remove the extension.
17531 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17532 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17533 gl_libobjs
="$gl_libobjs $i.$ac_objext"
17534 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
17537 gl_LIBOBJS
=$gl_libobjs
17539 gl_LTLIBOBJS
=$gl_ltlibobjs
17545 if test -n "$gltests_LIBOBJS"; then
17546 # Remove the extension.
17547 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17548 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17549 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
17550 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
17553 gltests_LIBOBJS
=$gltests_libobjs
17555 gltests_LTLIBOBJS
=$gltests_ltlibobjs
17559 : "${CONFIG_STATUS=./config.status}"
17561 ac_clean_files_save
=$ac_clean_files
17562 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17564 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17566 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17568 # Generated by $as_me.
17569 # Run this file to recreate the current configuration.
17570 # Compiler output produced by configure, useful for debugging
17571 # configure, is in config.log if it exists.
17574 ac_cs_recheck=false
17577 SHELL=\${CONFIG_SHELL-$SHELL}
17580 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17581 ## -------------------- ##
17582 ## M4sh Initialization. ##
17583 ## -------------------- ##
17585 # Be more Bourne compatible
17586 DUALCASE
=1; export DUALCASE
# for MKS sh
17587 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17590 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17591 # is contrary to our usage. Disable this feature.
17592 alias -g '${1+"$@"}'='"$@"'
17593 setopt NO_GLOB_SUBST
17595 case `(set -o) 2>/dev/null` in #(
17607 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17608 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17610 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17611 # Prefer a ksh shell builtin over an external printf program on Solaris,
17612 # but without wasting forks for bash or zsh.
17613 if test -z "$BASH_VERSION$ZSH_VERSION" \
17614 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17615 as_echo='print
-r --'
17616 as_echo_n='print
-rn --'
17617 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17618 as_echo='printf %s
\n'
17619 as_echo_n='printf %s
'
17621 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17622 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17623 as_echo_n='/usr
/ucb
/echo -n'
17625 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17626 as_echo_n_body='eval
17630 expr "X$arg" : "X\\(.*\\)$as_nl";
17631 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17633 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17635 export as_echo_n_body
17636 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17638 export as_echo_body
17639 as_echo='sh
-c $as_echo_body as_echo
'
17642 # The user is always right.
17643 if test "${PATH_SEPARATOR+set}" != set; then
17645 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17646 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17653 # We need space, tab and new line, in precisely that order. Quoting is
17654 # there to prevent editors from complaining about space-tab.
17655 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17656 # splitting by setting IFS to empty value.)
17659 # Find who we are. Look in the path if we contain no directory separator.
17662 *[\\/]* ) as_myself=$0 ;;
17663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17664 for as_dir in $PATH
17667 test -z "$as_dir" && as_dir=.
17668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17674 # We did not find ourselves, most probably we were run as `sh COMMAND'
17675 # in which case we are not to be found in the path.
17676 if test "x$as_myself" = x
; then
17679 if test ! -f "$as_myself"; then
17680 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17684 # Unset variables that we do not need and which cause bugs (e.g. in
17685 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17686 # suppresses any "Segmentation fault" message there. '((' could
17687 # trigger a bug in pdksh 5.2.14.
17688 for as_var
in BASH_ENV ENV MAIL MAILPATH
17689 do eval test x\
${$as_var+set} = xset \
17690 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17703 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17706 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17707 # ----------------------------------------
17708 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17709 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17710 # script with STATUS, using 1 if that was 0.
17713 as_status
=$1; test $as_status -eq 0 && as_status
=1
17715 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17716 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17718 $as_echo "$as_me: error: $2" >&2
17719 as_fn_exit
$as_status
17723 # as_fn_set_status STATUS
17724 # -----------------------
17725 # Set $? to STATUS, without forking.
17726 as_fn_set_status
()
17729 } # as_fn_set_status
17731 # as_fn_exit STATUS
17732 # -----------------
17733 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17737 as_fn_set_status
$1
17743 # Portably unset VAR.
17746 { eval $1=; unset $1;}
17748 as_unset
=as_fn_unset
17749 # as_fn_append VAR VALUE
17750 # ----------------------
17751 # Append the text in VALUE to the end of the definition contained in VAR. Take
17752 # advantage of any shell optimizations that allow amortized linear growth over
17753 # repeated appends, instead of the typical quadratic growth present in naive
17755 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17756 eval 'as_fn_append ()
17767 # as_fn_arith ARG...
17768 # ------------------
17769 # Perform arithmetic evaluation on the ARGs, and store the result in the
17770 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17771 # must be portable across $(()) and expr.
17772 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17773 eval 'as_fn_arith ()
17780 as_val
=`expr "$@" || test $? -eq 1`
17785 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17786 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17792 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17793 as_basename
=basename
17798 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17804 as_me
=`$as_basename -- "$0" ||
17805 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17806 X"$0" : 'X\(//\)$' \| \
17807 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17809 sed '/^.*\/\([^/][^/]*\)\/*$/{
17823 # Avoid depending upon Character Ranges.
17824 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17825 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17826 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17827 as_cr_digits
='0123456789'
17828 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17830 ECHO_C
= ECHO_N
= ECHO_T
=
17831 case `echo -n x` in #(((((
17833 case `echo 'xy\c'` in
17834 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17836 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17843 rm -f conf$$ conf$$.exe conf$$.
file
17844 if test -d conf$$.dir
; then
17845 rm -f conf$$.dir
/conf$$.
file
17848 mkdir conf$$.dir
2>/dev
/null
17850 if (echo >conf$$.
file) 2>/dev
/null
; then
17851 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17853 # ... but there are two gotchas:
17854 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17855 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17856 # In both cases, we have to default to `cp -p'.
17857 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17859 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17867 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17868 rmdir conf$$.dir
2>/dev
/null
17873 # Create "$as_dir" as a directory, including parents if necessary.
17878 -*) as_dir
=.
/$as_dir;;
17880 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17884 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17885 *) as_qdir
=$as_dir;;
17887 as_dirs
="'$as_qdir' $as_dirs"
17888 as_dir
=`$as_dirname -- "$as_dir" ||
17889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17890 X"$as_dir" : 'X\(//\)[^/]' \| \
17891 X"$as_dir" : 'X\(//\)$' \| \
17892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17893 $as_echo X"$as_dir" |
17894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17898 /^X\(\/\/\)[^/].*/{
17911 test -d "$as_dir" && break
17913 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17914 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17918 if mkdir
-p .
2>/dev
/null
; then
17919 as_mkdir_p
='mkdir -p "$as_dir"'
17921 test -d .
/-p && rmdir .
/-p
17925 if test -x / >/dev
/null
2>&1; then
17926 as_test_x
='test -x'
17928 if ls -dL / >/dev
/null
2>&1; then
17935 if test -d "$1"; then
17941 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17942 ???[sx]*):;;*)false;;esac;fi
17946 as_executable_p
=$as_test_x
17948 # Sed expression to map a string onto a valid CPP name.
17949 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17951 # Sed expression to map a string onto a valid variable name.
17952 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17956 ## ----------------------------------- ##
17957 ## Main body of $CONFIG_STATUS script. ##
17958 ## ----------------------------------- ##
17960 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17963 # Save the log message, to keep $0 and so on meaningful, and to
17964 # report actual input values of CONFIG_FILES etc. instead of their
17965 # values after options handling.
17967 This file was extended by emacs $as_me 24.0.50, which was
17968 generated by GNU Autoconf 2.68. Invocation command line was
17970 CONFIG_FILES = $CONFIG_FILES
17971 CONFIG_HEADERS = $CONFIG_HEADERS
17972 CONFIG_LINKS = $CONFIG_LINKS
17973 CONFIG_COMMANDS = $CONFIG_COMMANDS
17976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17981 case $ac_config_files in *"
17982 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17985 case $ac_config_headers in *"
17986 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17991 # Files that config.status was made for.
17992 config_files="$ac_config_files"
17993 config_headers="$ac_config_headers"
17994 config_commands="$ac_config_commands"
17998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18000 \`$as_me' instantiates files and other configuration actions
18001 from templates according to the current configuration. Unless the files
18002 and actions are specified as TAGs, all are instantiated by default.
18004 Usage: $0 [OPTION]... [TAG]...
18006 -h, --help print this help, then exit
18007 -V, --version print version number and configuration settings, then exit
18008 --config print configuration, then exit
18009 -q, --quiet, --silent
18010 do not print progress messages
18011 -d, --debug don't remove temporary files
18012 --recheck update $as_me by reconfiguring in the same conditions
18013 --file=FILE[:TEMPLATE]
18014 instantiate the configuration file FILE
18015 --header=FILE[:TEMPLATE]
18016 instantiate the configuration header FILE
18018 Configuration files:
18021 Configuration headers:
18024 Configuration commands:
18027 Report bugs to the package provider."
18030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18031 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18033 emacs config.status 24.0.50
18034 configured by $0, generated by GNU Autoconf 2.68,
18035 with options \\"\$ac_cs_config\\"
18037 Copyright (C) 2010 Free Software Foundation, Inc.
18038 This config.status script is free software; the Free Software Foundation
18039 gives unlimited permission to copy, distribute and modify it."
18046 test -n "\$AWK" || AWK=awk
18049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18050 # The default lists apply if the user does not specify any file.
18056 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18057 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18061 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18073 # Handling of the options.
18074 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18076 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18077 $as_echo "$ac_cs_version"; exit ;;
18078 --config |
--confi |
--conf |
--con |
--co |
--c )
18079 $as_echo "$ac_cs_config"; exit ;;
18080 --debug |
--debu |
--deb |
--de |
--d |
-d )
18082 --file |
--fil |
--fi |
--f )
18085 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18086 '') as_fn_error $?
"missing file argument" ;;
18088 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18089 ac_need_defaults
=false
;;
18090 --header |
--heade |
--head |
--hea )
18093 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18095 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18096 ac_need_defaults
=false
;;
18098 # Conflict between --help and --header
18099 as_fn_error $?
"ambiguous option: \`$1'
18100 Try \`$0 --help' for more information.";;
18101 --help |
--hel |
-h )
18102 $as_echo "$ac_cs_usage"; exit ;;
18103 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18104 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18107 # This is an error.
18108 -*) as_fn_error $?
"unrecognized option: \`$1'
18109 Try \`$0 --help' for more information." ;;
18111 *) as_fn_append ac_config_targets
" $1"
18112 ac_need_defaults
=false
;;
18118 ac_configure_extra_args
=
18120 if $ac_cs_silent; then
18122 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18127 if \$ac_cs_recheck; then
18128 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18130 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18131 CONFIG_SHELL='$SHELL'
18132 export CONFIG_SHELL
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18142 ## Running $as_me. ##
18148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18152 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18153 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18159 # Handling of arguments.
18160 for ac_config_target
in $ac_config_targets
18162 case $ac_config_target in
18163 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18164 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18165 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18166 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
18167 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
18168 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18169 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
18170 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
18171 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
18172 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
18173 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
18174 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18175 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18176 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18177 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
18178 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18180 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18185 # If the user did not use the arguments to specify the items to instantiate,
18186 # then the envvar interface is used. Set only those that are not.
18187 # We use the long form for the default assignment because of an extremely
18188 # bizarre bug on SunOS 4.1.3.
18189 if $ac_need_defaults; then
18190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18195 # Have a temporary directory for convenience. Make it in the build tree
18196 # simply because there is no reason against having it here, and in addition,
18197 # creating and moving files from /tmp can sometimes cause problems.
18198 # Hook for its removal unless debugging.
18199 # Note that there is a small window in which the directory will not be cleaned:
18200 # after its creation but before its name has been assigned to `$tmp'.
18204 trap 'exit_status=$?
18205 : "${ac_tmp:=$tmp}"
18206 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18208 trap 'as_fn_exit 1' 1 2 13 15
18210 # Create a (secure) tmp directory for tmp files.
18213 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18217 tmp
=.
/conf$$
-$RANDOM
18218 (umask 077 && mkdir
"$tmp")
18219 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18222 # Set up the scripts for CONFIG_FILES section.
18223 # No need to generate them if there are no CONFIG_FILES.
18224 # This happens for instance with `./config.status config.h'.
18225 if test -n "$CONFIG_FILES"; then
18227 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18228 ac_cs_awk_getline
=:
18229 ac_cs_awk_pipe_init
=
18230 ac_cs_awk_read_file
='
18231 while ((getline aline < (F[key])) > 0)
18234 ac_cs_awk_pipe_fini
=
18236 ac_cs_awk_getline
=false
18237 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18238 ac_cs_awk_read_file
='
18240 print "cat " F[key] " &&"
18241 '$ac_cs_awk_pipe_init
18242 # The final `:' finishes the AND list.
18243 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18245 ac_cr
=`echo X | tr X '\015'`
18246 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18247 # But we know of no other shell where ac_cr would be empty at this
18248 # point, so we can use a bashism as a fallback.
18249 if test "x$ac_cr" = x
; then
18250 eval ac_cr
=\$
\'\\r
\'
18252 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18253 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18256 ac_cs_awk_cr
=$ac_cr
18259 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18262 # Create commands to substitute file output variables.
18264 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18265 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18266 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18269 } >conf$
$files.sh
&&
18270 . .
/conf$
$files.sh ||
18271 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18272 rm -f conf$
$files.sh
18275 echo "cat >conf$$subs.awk <<_ACEOF" &&
18276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18278 } >conf$$subs.sh ||
18279 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18282 for ac_last_try in false false false false false :; do
18283 . ./conf$$subs.sh ||
18284 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18286 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18287 if test $ac_delim_n = $ac_delim_num; then
18289 elif $ac_last_try; then
18290 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18292 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18295 rm -f conf$$subs.sh
18297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18298 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18302 s/^/S["/; s
/!.
*/"]=/
18312 s/\(.\{148\}\)..*/\1/
18314 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18319 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18326 s/\(.\{148\}\)..*/\1/
18328 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18332 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18337 ' <conf$$subs.awk | sed '
18342 ' >>$CONFIG_STATUS || ac_write_fail=1
18343 rm -f conf$$subs.awk
18344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18346 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18347 for (key in S) S_is_set[key] = 1
18349 \$ac_cs_awk_pipe_init
18353 nfields = split(line, field, "@
")
18355 len = length(field[1])
18356 for (i = 2; i < nfields; i++) {
18358 keylen = length(key)
18359 if (S_is_set[key]) {
18361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18362 len += length(value) + length(field[++i])
18367 if (nfields == 3 && !substed) {
18369 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18370 \$ac_cs_awk_read_file
18376 \$ac_cs_awk_pipe_fini
18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18380 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18381 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18384 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18385 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18388 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18389 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18390 # trailing colons and then remove the whole line if VPATH becomes empty
18391 # (actually we leave an empty line to preserve line numbers).
18392 if test "x
$srcdir" = x.; then
18393 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18412 fi # test -n "$CONFIG_FILES"
18414 # Set up the scripts for CONFIG_HEADERS section.
18415 # No need to generate them if there are no CONFIG_HEADERS.
18416 # This happens for instance with `./config.status Makefile'.
18417 if test -n "$CONFIG_HEADERS"; then
18418 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18422 # Transform confdefs.h into an awk script `defines.awk', embedded as
18423 # here-document in config.status, that substitutes the proper values into
18424 # config.h.in to produce config.h.
18426 # Create a delimiter string that does not exist in confdefs.h, to ease
18427 # handling of long lines.
18429 for ac_last_try in false false :; do
18430 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18431 if test -z "$ac_tt"; then
18433 elif $ac_last_try; then
18434 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18436 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18440 # For the awk script, D is an array of macro values keyed by name,
18441 # likewise P contains macro parameters if any. Preserve backslash
18442 # newline sequences.
18444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18446 s/.\{148\}/&'"$ac_delim"'/g
18449 s/^[ ]*#[ ]*define[ ][ ]*/ /
18456 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18458 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18463 D["\
1"]=" \
3\\\\\\n
"\\/p
18465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18470 s/.\{148\}/&'"$ac_delim"'/g
18475 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18478 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18480 ' <confdefs.h | sed '
18481 s/'"$ac_delim"'/"\\\
18482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18485 for (key in D) D_is_set[key] = 1
18488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18490 split(line, arg, " ")
18491 if (arg[1] == "#") {
18495 defundef
= substr
(arg
[1], 2)
18498 split(mac1
, mac2
, "(") #)
18500 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18501 if (D_is_set
[macro
]) {
18502 # Preserve the white space surrounding the "#".
18503 print prefix
"define", macro P
[macro
] D
[macro
]
18506 # Replace #undef with comments. This is necessary, for example,
18507 # in the case of _POSIX_SOURCE, which is predefined and required
18508 # on some systems where configure will not decide to define it.
18509 if (defundef
== "undef") {
18510 print
"/*", prefix defundef
, macro
, "*/"
18518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18519 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18520 fi # test -n "$CONFIG_HEADERS"
18523 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18528 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18530 case $ac_mode$ac_tag in
18532 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18533 :[FH
]-) ac_tag
=-:-;;
18534 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18551 -) ac_f
="$ac_tmp/stdin";;
18552 *) # Look for the file first in the build tree, then in the source tree
18553 # (if the path is not absolute). The absolute path cannot be DOS-style,
18554 # because $ac_f cannot contain `:'.
18558 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18560 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18562 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18563 as_fn_append ac_file_inputs
" '$ac_f'"
18566 # Let's still pretend it is `configure' which instantiates (i.e., don't
18567 # use $as_me), people would be surprised to read:
18568 # /* config.h. Generated by config.status. */
18569 configure_input
='Generated from '`
18570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18572 if test x
"$ac_file" != x-
; then
18573 configure_input
="$ac_file. $configure_input"
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18575 $as_echo "$as_me: creating $ac_file" >&6;}
18577 # Neutralize special characters interpreted by sed in replacement strings.
18578 case $configure_input in #(
18579 *\
&* |
*\|
* |
*\\* )
18580 ac_sed_conf_input
=`$as_echo "$configure_input" |
18581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18582 *) ac_sed_conf_input
=$configure_input;;
18586 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18587 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18592 ac_dir
=`$as_dirname -- "$ac_file" ||
18593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18594 X"$ac_file" : 'X\(//\)[^/]' \| \
18595 X"$ac_file" : 'X\(//\)$' \| \
18596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18597 $as_echo X"$ac_file" |
18598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18602 /^X\(\/\/\)[^/].*/{
18615 as_dir
="$ac_dir"; as_fn_mkdir_p
18619 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18621 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18622 # A ".." for each directory in $ac_dir_suffix.
18623 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18624 case $ac_top_builddir_sub in
18625 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18626 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18629 ac_abs_top_builddir
=$ac_pwd
18630 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18631 # for backward compatibility:
18632 ac_top_builddir
=$ac_top_build_prefix
18635 .
) # We are building in place.
18637 ac_top_srcdir
=$ac_top_builddir_sub
18638 ac_abs_top_srcdir
=$ac_pwd ;;
18639 [\\/]* | ?
:[\\/]* ) # Absolute name.
18640 ac_srcdir
=$srcdir$ac_dir_suffix;
18641 ac_top_srcdir
=$srcdir
18642 ac_abs_top_srcdir
=$srcdir ;;
18643 *) # Relative name.
18644 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18645 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18646 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18648 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18658 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18659 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18661 ac_MKDIR_P
=$MKDIR_P
18663 [\\/$
]* | ?
:[\\/]* ) ;;
18664 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18669 # If the template does not know about datarootdir, expand it.
18670 # FIXME: This hack should be removed a few years after 2.60.
18671 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18682 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18683 *datarootdir
*) ac_datarootdir_seen
=yes;;
18684 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18686 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18689 ac_datarootdir_hack='
18690 s&@datadir@&$datadir&g
18691 s&@docdir@&$docdir&g
18692 s&@infodir@&$infodir&g
18693 s&@localedir@&$localedir&g
18694 s&@mandir@&$mandir&g
18695 s&\\\${datarootdir}&$datarootdir&g' ;;
18699 # Neutralize VPATH when `$srcdir' = `.'.
18700 # Shell code in configure.ac might set extrasub.
18701 # FIXME: do we really want to maintain this feature?
18702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18703 ac_sed_extra="$ac_vpsub
18706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18708 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18709 s|@configure_input@|
$ac_sed_conf_input|
;t t
18710 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18711 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18712 s
&@srcdir@
&$ac_srcdir&;t t
18713 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18714 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18715 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18716 s
&@builddir@
&$ac_builddir&;t t
18717 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18718 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18719 s
&@INSTALL@
&$ac_INSTALL&;t t
18720 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18721 $ac_datarootdir_hack
18723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18724 if $ac_cs_awk_getline; then
18725 $AWK -f "$ac_tmp/subs.
awk"
18727 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
18729 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18731 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18732 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18733 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18734 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18736 which seems to be undefined. Please make sure it is defined" >&5
18737 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18738 which seems to be undefined. Please make sure it is defined" >&2;}
18740 rm -f "$ac_tmp/stdin"
18742 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18743 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18751 if test x"$ac_file" != x-; then
18753 $as_echo "/* $configure_input */" \
18754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18755 } >"$ac_tmp/config.h" \
18756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18757 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18759 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18762 mv "$ac_tmp/config.h" "$ac_file" \
18763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18766 $as_echo "/* $configure_input */" \
18767 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18768 || as_fn_error $? "could not create -" "$LINENO" 5
18770 # Compute "$ac_file"'s index
in $config_headers.
18773 for _am_header
in $config_headers :; do
18774 case $_am_header in
18775 $_am_arg |
$_am_arg:* )
18778 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18781 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18782 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18783 X"$_am_arg" : 'X\(//\)[^/]' \| \
18784 X"$_am_arg" : 'X\(//\)$' \| \
18785 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18786 $as_echo X"$_am_arg" |
18787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18791 /^X\(\/\/\)[^/].*/{
18803 s/.*/./; q'`/stamp-h
$_am_stamp_count
18806 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18807 $as_echo "$as_me: executing $ac_file commands" >&6;}
18812 case $ac_file$ac_mode in
18813 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18814 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18815 # are listed without --file. Let's play safe and only enable the eval
18816 # if we detect the quoting.
18817 case $CONFIG_FILES in
18818 *\'*) eval set x
"$CONFIG_FILES" ;;
18819 *) set x
$CONFIG_FILES ;;
18824 # Strip MF so we end up with the name of the file.
18825 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18826 # Check whether this is an Automake generated Makefile or not.
18827 # We used to match only the files named `Makefile.in', but
18828 # some people rename them; so instead we look at the file content.
18829 # Grep'ing the first line is not enough: some people post-process
18830 # each Makefile.in and add a new line on top of each file to say so.
18831 # Grep'ing the whole file is not good either: AIX grep has a line
18832 # limit of 2048, but all sed's we know have understand at least 4000.
18833 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18834 dirpart
=`$as_dirname -- "$mf" ||
18835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18836 X"$mf" : 'X\(//\)[^/]' \| \
18837 X"$mf" : 'X\(//\)$' \| \
18838 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18844 /^X\(\/\/\)[^/].*/{
18860 # Extract the definition of DEPDIR, am__include, and am__quote
18861 # from the Makefile without running `make'.
18862 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18863 test -z "$DEPDIR" && continue
18864 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18865 test -z "am__include" && continue
18866 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18867 # When using ansi2knr, U may be empty or an underscore; expand it
18868 U
=`sed -n 's/^U = //p' < "$mf"`
18869 # Find all dependency output files, they are included files with
18870 # $(DEPDIR) in their names. We invoke sed twice because it is the
18871 # simplest approach to changing $(DEPDIR) to its actual value in the
18873 for file in `sed -n "
18874 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18875 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18876 # Make sure the directory exists.
18877 test -f "$dirpart/$file" && continue
18878 fdir
=`$as_dirname -- "$file" ||
18879 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18880 X"$file" : 'X\(//\)[^/]' \| \
18881 X"$file" : 'X\(//\)$' \| \
18882 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18883 $as_echo X"$file" |
18884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18888 /^X\(\/\/\)[^/].*/{
18901 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18902 # echo "creating $dirpart/$file"
18903 echo '# dummy' > "$dirpart/$file"
18910 ### Make the necessary directories, if they don't exist.
18911 for dir
in etc lisp
; do
18912 test -d ${dir} || mkdir
${dir}
18915 echo creating src
/epaths.h
18916 ${MAKE-make} epaths-force
18918 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
18919 echo creating src
/.gdbinit
18920 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
18931 ac_clean_files
=$ac_clean_files_save
18933 test $ac_write_fail = 0 ||
18934 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18937 # configure is writing to config.log, and then calls config.status.
18938 # config.status does its own redirection, appending to config.log.
18939 # Unfortunately, on DOS this fails, as config.log is still kept open
18940 # by configure, so config.status won't be able to write to it; its
18941 # output is simply discarded. So we exec the FD to /dev/null,
18942 # effectively closing config.log, so it can be properly (re)opened and
18943 # appended to by config.status. When coming back to configure, we
18944 # need to make the FD available again.
18945 if test "$no_create" != yes; then
18947 ac_config_status_args
=
18948 test "$silent" = yes &&
18949 ac_config_status_args
="$ac_config_status_args --quiet"
18951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18954 # would make configure fail if this is the last instruction.
18955 $ac_cs_success || as_fn_exit
1
18957 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18959 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}