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>
603 gl_getopt_required
=POSIX
604 gl_getopt_required
=POSIX
606 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_STDLIB_H
690 HAVE_SIGNED_SIG_ATOMIC_T
693 BITSIZEOF_SIG_ATOMIC_T
699 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
704 HAVE_UNSIGNED_LONG_LONG_INT
706 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
713 APPLE_UNIVERSAL_BUILD
721 HAVE_DECL_LOCALTIME_R
731 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
735 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
737 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
738 UNISTD_H_HAVE_WINSOCK2_H
757 REPLACE_GETDOMAINNAME
767 HAVE_DECL_GETUSERSHELL
768 HAVE_DECL_GETPAGESIZE
770 HAVE_DECL_GETDOMAINNAME
805 GNULIB_UNISTD_H_SIGPIPE
806 GNULIB_UNISTD_H_GETOPT
851 REPLACE_CANONICALIZE_FILE_NAME
856 HAVE_STRUCT_RANDOM_DATA
875 HAVE_CANONICALIZE_FILE_NAME
900 GNULIB_CANONICALIZE_FILE_NAME
904 GL_COND_LIBTOOL_FALSE
954 LD_SWITCH_X_SITE_AUX_RPATH
1016 INSTALL_STRIP_PROGRAM
1058 program_transform_name
1069 ac_subst_files
='deps_frag
1072 enable_option_checking
1094 with_toolkit_scroll_bars
1105 with_pkg_config_prog
1109 enable_ns_self_contained
1111 enable_maintainer_mode
1112 enable_locallisppath
1114 enable_use_lisp_union_type
1117 enable_dependency_tracking
1121 ac_precious_vars
='build_alias
1136 # Initialize some variables set by options.
1138 ac_init_version
=false
1139 ac_unrecognized_opts
=
1140 ac_unrecognized_sep
=
1141 # The variables have the same names as the options, with
1142 # dashes changed to underlines.
1143 cache_file
=/dev
/null
1150 program_transform_name
=s
,x
,x
,
1158 # Installation directory options.
1159 # These are left unexpanded so users can "make install exec_prefix=/foo"
1160 # and all the variables that are supposed to be based on exec_prefix
1161 # by default will actually change.
1162 # Use braces instead of parens because sh, perl, etc. also accept them.
1163 # (The list follows the same order as the GNU Coding Standards.)
1164 bindir
='${exec_prefix}/bin'
1165 sbindir
='${exec_prefix}/sbin'
1166 libexecdir
='${exec_prefix}/libexec'
1167 datarootdir
='${prefix}/share'
1168 datadir
='${datarootdir}'
1169 sysconfdir
='${prefix}/etc'
1170 sharedstatedir
='${prefix}/com'
1171 localstatedir
='${prefix}/var'
1172 includedir
='${prefix}/include'
1173 oldincludedir
='/usr/include'
1174 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1175 infodir
='${datarootdir}/info'
1180 libdir
='${exec_prefix}/lib'
1181 localedir
='${datarootdir}/locale'
1182 mandir
='${datarootdir}/man'
1188 # If the previous option needs an argument, assign it.
1189 if test -n "$ac_prev"; then
1190 eval $ac_prev=\
$ac_option
1196 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1201 # Accept the important Cygnus configure options, so we can diagnose typos.
1203 case $ac_dashdash$ac_option in
1207 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1209 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1210 bindir
=$ac_optarg ;;
1212 -build |
--build |
--buil |
--bui |
--bu)
1213 ac_prev
=build_alias
;;
1214 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1215 build_alias
=$ac_optarg ;;
1217 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1218 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1219 ac_prev
=cache_file
;;
1220 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1221 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1222 cache_file
=$ac_optarg ;;
1224 --config-cache |
-C)
1225 cache_file
=config.cache
;;
1227 -datadir |
--datadir |
--datadi |
--datad)
1229 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1230 datadir
=$ac_optarg ;;
1232 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1233 |
--dataroo |
--dataro |
--datar)
1234 ac_prev
=datarootdir
;;
1235 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1236 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1237 datarootdir
=$ac_optarg ;;
1239 -disable-* |
--disable-*)
1240 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 as_fn_error $?
"invalid feature name: $ac_useropt"
1244 ac_useropt_orig
=$ac_useropt
1245 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1248 "enable_
$ac_useropt"
1250 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1251 ac_unrecognized_sep
=', ';;
1253 eval enable_
$ac_useropt=no
;;
1255 -docdir |
--docdir |
--docdi |
--doc |
--do)
1257 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1258 docdir
=$ac_optarg ;;
1260 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1262 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1263 dvidir
=$ac_optarg ;;
1265 -enable-* |
--enable-*)
1266 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1269 as_fn_error $?
"invalid feature name: $ac_useropt"
1270 ac_useropt_orig
=$ac_useropt
1271 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "enable_
$ac_useropt"
1276 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1277 ac_unrecognized_sep
=', ';;
1279 eval enable_
$ac_useropt=\
$ac_optarg ;;
1281 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1282 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1283 |
--exec |
--exe |
--ex)
1284 ac_prev
=exec_prefix
;;
1285 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1286 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1287 |
--exec=* |
--exe=* |
--ex=*)
1288 exec_prefix
=$ac_optarg ;;
1290 -gas |
--gas |
--ga |
--g)
1291 # Obsolete; use --with-gas.
1294 -help |
--help |
--hel |
--he |
-h)
1295 ac_init_help
=long
;;
1296 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1297 ac_init_help
=recursive
;;
1298 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1299 ac_init_help
=short
;;
1301 -host |
--host |
--hos |
--ho)
1302 ac_prev
=host_alias
;;
1303 -host=* |
--host=* |
--hos=* |
--ho=*)
1304 host_alias
=$ac_optarg ;;
1306 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1308 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1310 htmldir
=$ac_optarg ;;
1312 -includedir |
--includedir |
--includedi |
--included |
--include \
1313 |
--includ |
--inclu |
--incl |
--inc)
1314 ac_prev
=includedir
;;
1315 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1316 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1317 includedir
=$ac_optarg ;;
1319 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1321 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1322 infodir
=$ac_optarg ;;
1324 -libdir |
--libdir |
--libdi |
--libd)
1326 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1327 libdir
=$ac_optarg ;;
1329 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1330 |
--libexe |
--libex |
--libe)
1331 ac_prev
=libexecdir
;;
1332 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1333 |
--libexe=* |
--libex=* |
--libe=*)
1334 libexecdir
=$ac_optarg ;;
1336 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1337 ac_prev
=localedir
;;
1338 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1339 localedir
=$ac_optarg ;;
1341 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1342 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1343 ac_prev
=localstatedir
;;
1344 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1345 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1346 localstatedir
=$ac_optarg ;;
1348 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1350 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1351 mandir
=$ac_optarg ;;
1353 -nfp |
--nfp |
--nf)
1354 # Obsolete; use --without-fp.
1357 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1358 |
--no-cr |
--no-c |
-n)
1361 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1362 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1365 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1366 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1367 |
--oldin |
--oldi |
--old |
--ol |
--o)
1368 ac_prev
=oldincludedir
;;
1369 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1370 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1371 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1372 oldincludedir
=$ac_optarg ;;
1374 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1376 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1377 prefix
=$ac_optarg ;;
1379 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1380 |
--program-pre |
--program-pr |
--program-p)
1381 ac_prev
=program_prefix
;;
1382 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1383 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1384 program_prefix
=$ac_optarg ;;
1386 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1387 |
--program-suf |
--program-su |
--program-s)
1388 ac_prev
=program_suffix
;;
1389 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1390 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1391 program_suffix
=$ac_optarg ;;
1393 -program-transform-name |
--program-transform-name \
1394 |
--program-transform-nam |
--program-transform-na \
1395 |
--program-transform-n |
--program-transform- \
1396 |
--program-transform |
--program-transfor \
1397 |
--program-transfo |
--program-transf \
1398 |
--program-trans |
--program-tran \
1399 |
--progr-tra |
--program-tr |
--program-t)
1400 ac_prev
=program_transform_name
;;
1401 -program-transform-name=* |
--program-transform-name=* \
1402 |
--program-transform-nam=* |
--program-transform-na=* \
1403 |
--program-transform-n=* |
--program-transform-=* \
1404 |
--program-transform=* |
--program-transfor=* \
1405 |
--program-transfo=* |
--program-transf=* \
1406 |
--program-trans=* |
--program-tran=* \
1407 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1408 program_transform_name
=$ac_optarg ;;
1410 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1412 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1413 pdfdir
=$ac_optarg ;;
1415 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1417 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1420 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1421 |
-silent |
--silent |
--silen |
--sile |
--sil)
1424 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1426 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1428 sbindir
=$ac_optarg ;;
1430 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1431 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1432 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1434 ac_prev
=sharedstatedir
;;
1435 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1436 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1437 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1439 sharedstatedir
=$ac_optarg ;;
1441 -site |
--site |
--sit)
1443 -site=* |
--site=* |
--sit=*)
1446 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1448 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1449 srcdir
=$ac_optarg ;;
1451 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1452 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1453 ac_prev
=sysconfdir
;;
1454 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1455 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1456 sysconfdir
=$ac_optarg ;;
1458 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1459 ac_prev
=target_alias
;;
1460 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1461 target_alias
=$ac_optarg ;;
1463 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1466 -version |
--version |
--versio |
--versi |
--vers |
-V)
1467 ac_init_version
=: ;;
1470 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1471 # Reject names that are not valid shell variable names.
1472 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1473 as_fn_error $?
"invalid package name: $ac_useropt"
1474 ac_useropt_orig
=$ac_useropt
1475 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476 case $ac_user_opts in
1480 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1481 ac_unrecognized_sep
=', ';;
1483 eval with_
$ac_useropt=\
$ac_optarg ;;
1485 -without-* |
--without-*)
1486 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1487 # Reject names that are not valid shell variable names.
1488 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1489 as_fn_error $?
"invalid package name: $ac_useropt"
1490 ac_useropt_orig
=$ac_useropt
1491 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492 case $ac_user_opts in
1496 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1497 ac_unrecognized_sep
=', ';;
1499 eval with_
$ac_useropt=no
;;
1502 # Obsolete; use --with-x.
1505 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1506 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1507 ac_prev
=x_includes
;;
1508 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1509 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1510 x_includes
=$ac_optarg ;;
1512 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1513 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1514 ac_prev
=x_libraries
;;
1515 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1516 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1517 x_libraries
=$ac_optarg ;;
1519 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1520 Try \`$0 --help' for more information"
1524 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1525 # Reject names that are not valid shell variable names.
1526 case $ac_envvar in #(
1527 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1528 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1530 eval $ac_envvar=\
$ac_optarg
1531 export $ac_envvar ;;
1534 # FIXME: should be removed in autoconf 3.0.
1535 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1536 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1537 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1538 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1544 if test -n "$ac_prev"; then
1545 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1546 as_fn_error $?
"missing argument to $ac_option"
1549 if test -n "$ac_unrecognized_opts"; then
1550 case $enable_option_checking in
1552 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1553 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1557 # Check all directory arguments for consistency.
1558 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1559 datadir sysconfdir sharedstatedir localstatedir includedir \
1560 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1561 libdir localedir mandir
1563 eval ac_val
=\$
$ac_var
1564 # Remove trailing slashes.
1567 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1568 eval $ac_var=\
$ac_val;;
1570 # Be sure to have absolute directory names.
1572 [\\/$
]* | ?
:[\\/]* ) continue;;
1573 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1575 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1578 # There might be people who depend on the old broken behavior: `$host'
1579 # used to hold the argument of --host etc.
1580 # FIXME: To remove some day.
1583 target
=$target_alias
1585 # FIXME: To remove some day.
1586 if test "x$host_alias" != x
; then
1587 if test "x$build_alias" = x
; then
1588 cross_compiling
=maybe
1589 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1590 If a cross compiler is detected then cross compile mode will be used" >&2
1591 elif test "x$build_alias" != "x$host_alias"; then
1597 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1599 test "$silent" = yes && exec 6>/dev
/null
1602 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1603 ac_ls_di
=`ls -di .` &&
1604 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1605 as_fn_error $?
"working directory cannot be determined"
1606 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1607 as_fn_error $?
"pwd does not report name of working directory"
1610 # Find the source files, if location was not specified.
1611 if test -z "$srcdir"; then
1612 ac_srcdir_defaulted
=yes
1613 # Try the directory containing this script, then the parent directory.
1614 ac_confdir
=`$as_dirname -- "$as_myself" ||
1615 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1616 X"$as_myself" : 'X\(//\)[^/]' \| \
1617 X"$as_myself" : 'X\(//\)$' \| \
1618 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1619 $as_echo X"$as_myself" |
1620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638 if test ! -r "$srcdir/$ac_unique_file"; then
1642 ac_srcdir_defaulted
=no
1644 if test ! -r "$srcdir/$ac_unique_file"; then
1645 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1646 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1648 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1650 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1652 # When building in place, set srcdir=.
1653 if test "$ac_abs_confdir" = "$ac_pwd"; then
1656 # Remove unnecessary trailing slashes from srcdir.
1657 # Double slashes in file names in object file debugging info
1658 # mess up M-x gdb in Emacs.
1660 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1662 for ac_var
in $ac_precious_vars; do
1663 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1664 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1665 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1666 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1670 # Report the --help message.
1672 if test "$ac_init_help" = "long"; then
1673 # Omit some internal or obsolete options to make the list less imposing.
1674 # This message is too long to be a string in the A/UX 3.1 sh.
1676 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1678 Usage: $0 [OPTION]... [VAR=VALUE]...
1680 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1681 VAR=VALUE. See below for descriptions of some of the useful variables.
1683 Defaults for the options are specified in brackets.
1686 -h, --help display this help and exit
1687 --help=short display options specific to this package
1688 --help=recursive display the short help of all the included packages
1689 -V, --version display version information and exit
1690 -q, --quiet, --silent do not print \`checking ...' messages
1691 --cache-file=FILE cache test results in FILE [disabled]
1692 -C, --config-cache alias for \`--cache-file=config.cache'
1693 -n, --no-create do not create output files
1694 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1696 Installation directories:
1697 --prefix=PREFIX install architecture-independent files in PREFIX
1698 [$ac_default_prefix]
1699 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1702 By default, \`make install' will install all the files in
1703 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1704 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1705 for instance \`--prefix=\$HOME'.
1707 For better control, use the options below.
1709 Fine tuning of the installation directories:
1710 --bindir=DIR user executables [EPREFIX/bin]
1711 --sbindir=DIR system admin executables [EPREFIX/sbin]
1712 --libexecdir=DIR program executables [EPREFIX/libexec]
1713 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1714 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1715 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1716 --libdir=DIR object code libraries [EPREFIX/lib]
1717 --includedir=DIR C header files [PREFIX/include]
1718 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1719 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1720 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1721 --infodir=DIR info documentation [DATAROOTDIR/info]
1722 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1723 --mandir=DIR man documentation [DATAROOTDIR/man]
1724 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1725 --htmldir=DIR html documentation [DOCDIR]
1726 --dvidir=DIR dvi documentation [DOCDIR]
1727 --pdfdir=DIR pdf documentation [DOCDIR]
1728 --psdir=DIR ps documentation [DOCDIR]
1734 --program-prefix=PREFIX prepend PREFIX to installed program names
1735 --program-suffix=SUFFIX append SUFFIX to installed program names
1736 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1739 --x-includes=DIR X include files are
in DIR
1740 --x-libraries=DIR X library files are
in DIR
1743 --build=BUILD configure
for building on BUILD
[guessed
]
1744 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1748 if test -n "$ac_init_help"; then
1749 case $ac_init_help in
1750 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1755 --disable-option-checking ignore unrecognized
--enable/--with options
1756 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1757 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1758 --disable-ns-self-contained
1759 disable self contained build under NeXTstep
1760 --enable-asserts compile code with asserts enabled
1761 --enable-maintainer-mode
1762 enable make rules and dependencies not useful
(and
1763 sometimes confusing
) to the casual installer
1764 --enable-locallisppath=PATH
1765 directories Emacs should search
for lisp files
1766 specific to this site
1767 --enable-checking[=LIST
]
1768 enable expensive run-time checks. With LIST
, enable
1769 only specific categories of checks. Categories are
:
1770 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1771 stringfreelist
, xmallocoverrun
, conslist
1772 --enable-use-lisp-union-type
1773 use a union
for the Lisp_Object data
type. This is
1774 only useful
for development
for catching certain
1776 --enable-profiling build emacs with profiling support. This might not
1777 work on all platforms
1778 --enable-autodepend automatically generate dependencies to .h-files.
1779 Requires GNU Make and Gcc. Enabled
if GNU Make and
1781 --disable-dependency-tracking speeds up one-time build
1782 --enable-dependency-tracking do not reject slow dependency extractors
1783 --disable-largefile omit support
for large files
1786 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1787 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1788 --without-pop don
't support POP mail retrieval with movemail
1789 --with-kerberos support Kerberos-authenticated POP
1790 --with-kerberos5 support Kerberos version 5 authenticated POP
1791 --with-hesiod support Hesiod to get the POP server host
1792 --with-mmdf support MMDF mailboxes
1793 --with-mail-unlink unlink, rather than empty, mail spool after reading
1794 --with-mailhost=HOSTNAME
1795 string giving default POP mail host
1796 --without-sound don't compile with sound support
1797 --without-sync-input process async input synchronously
1798 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1799 lucid or athena
, motif
, no
)
1800 --without-xpm don
't compile with XPM image support
1801 --without-jpeg don't compile with JPEG image support
1802 --without-tiff don
't compile with TIFF image support
1803 --without-gif don't compile with GIF image support
1804 --without-png don
't compile with PNG image support
1805 --without-rsvg don't compile with SVG image support
1806 --without-xml2 don
't compile with XML parsing support
1807 --without-imagemagick don't compile with ImageMagick image support
1808 --without-xft don
't use XFT for anti aliased fonts
1809 --without-libotf don't use libotf
for OpenType font support
1810 --without-m17n-flt don
't use m17n-flt for text shaping
1811 --without-toolkit-scroll-bars
1812 don't use Motif or Xaw3d scroll bars
1813 --without-xaw3d don
't use Xaw3d
1814 --without-xim don't use X11 XIM
1815 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1816 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1818 --without-dbus don't compile with D-Bus support
1819 --without-gconf don
't compile with GConf support
1820 --without-selinux don't compile with SELinux support
1821 --without-gnutls don
't use -lgnutls for SSL/TLS support
1822 --without-makeinfo don't require makeinfo
for building manuals
1823 --without-compress-info don
't compress the installed Info pages
1824 --with-pkg-config-prog=PATH
1825 path to pkg-config for finding GTK and librsvg
1826 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1827 /usr/lib, or /usr/lib64 on some platforms.
1828 --with-gameuser=USER user for shared game score files
1829 --with-gnustep-conf=PATH
1830 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1831 or /etc/GNUstep/GNUstep.conf
1832 --with-x use the X Window System
1834 Some influential environment variables:
1835 CC C compiler command
1836 CFLAGS C compiler flags
1837 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1838 nonstandard directory <lib dir>
1839 LIBS libraries to pass to the linker, e.g. -l<library>
1840 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1841 you have headers in a nonstandard directory <include dir>
1843 XMKMF Path to xmkmf, Makefile generator for X Window System
1845 Use these variables to override the choices made by `configure' or to
help
1846 it to
find libraries and programs with nonstandard names
/locations.
1848 Report bugs to the package provider.
1853 if test "$ac_init_help" = "recursive"; then
1854 # If there are subdirs, report their specific --help.
1855 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1856 test -d "$ac_dir" ||
1857 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1862 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1864 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1865 # A ".." for each directory in $ac_dir_suffix.
1866 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1867 case $ac_top_builddir_sub in
1868 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1869 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1872 ac_abs_top_builddir
=$ac_pwd
1873 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1874 # for backward compatibility:
1875 ac_top_builddir
=$ac_top_build_prefix
1878 .
) # We are building in place.
1880 ac_top_srcdir
=$ac_top_builddir_sub
1881 ac_abs_top_srcdir
=$ac_pwd ;;
1882 [\\/]* | ?
:[\\/]* ) # Absolute name.
1883 ac_srcdir
=$srcdir$ac_dir_suffix;
1884 ac_top_srcdir
=$srcdir
1885 ac_abs_top_srcdir
=$srcdir ;;
1887 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1888 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1889 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1891 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1893 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1894 # Check for guested configure.
1895 if test -f "$ac_srcdir/configure.gnu"; then
1897 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1898 elif test -f "$ac_srcdir/configure"; then
1900 $SHELL "$ac_srcdir/configure" --help=recursive
1902 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1904 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1908 test -n "$ac_init_help" && exit $ac_status
1909 if $ac_init_version; then
1911 emacs configure
24.0.50
1912 generated by GNU Autoconf
2.68
1914 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1915 This configure
script is free software
; the Free Software Foundation
1916 gives unlimited permission to copy
, distribute and modify it.
1921 ## ------------------------ ##
1922 ## Autoconf initialization. ##
1923 ## ------------------------ ##
1925 # ac_fn_c_try_compile LINENO
1926 # --------------------------
1927 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_compile
()
1930 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1931 rm -f conftest.
$ac_objext
1932 if { { ac_try
="$ac_compile"
1934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_compile") 2>conftest.err
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest.$ac_objext; then :
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_c_try_compile
1963 # ac_fn_c_try_cpp LINENO
1964 # ----------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1972 *) ac_try_echo
=$ac_try;;
1974 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1978 if test -s conftest.err
; then
1979 grep -v '^ *+' conftest.err
>conftest.er1
1980 cat conftest.er1
>&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i
&& {
1985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.
$ac_ext >&5
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status
$ac_retval
2000 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2003 # the include files in INCLUDES and setting the cache variable VAR
2005 ac_fn_c_check_header_mongrel
()
2007 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2008 if eval \
${$3+:} false
; then :
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \
${$3+:} false
; then :
2012 $as_echo_n "(cached) " >&6
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2018 # Is the header compilable?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2020 $as_echo_n "checking $2 usability... " >&6; }
2021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2026 if ac_fn_c_try_compile
"$LINENO"; then :
2027 ac_header_compiler
=yes
2029 ac_header_compiler
=no
2031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2033 $as_echo "$ac_header_compiler" >&6; }
2035 # Is the header present?
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2037 $as_echo_n "checking $2 presence... " >&6; }
2038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 if ac_fn_c_try_cpp
"$LINENO"; then :
2043 ac_header_preproc
=yes
2045 ac_header_preproc
=no
2047 rm -f conftest.err conftest.i conftest.
$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2049 $as_echo "$ac_header_preproc" >&6; }
2051 # So? What about this header?
2052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2055 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2061 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2063 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2065 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2067 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \
${$3+:} false
; then :
2075 $as_echo_n "(cached) " >&6
2077 eval "$3=\$ac_header_compiler"
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 } # ac_fn_c_check_header_mongrel
2087 # ac_fn_c_try_run LINENO
2088 # ----------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2090 # that executables *can* be run.
2093 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2094 if { { ac_try
="$ac_link"
2096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>&5
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2105 { { case "(($ac_try" in
2106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2107 *) ac_try_echo
=$ac_try;;
2109 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_try") 2>&5
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; }; }; then :
2117 $as_echo "$as_me: program exited with status $ac_status" >&5
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.
$ac_ext >&5
2121 ac_retval
=$ac_status
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status
$ac_retval
2129 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2130 # -------------------------------------------------------
2131 # Tests whether HEADER exists and can be compiled using the include files in
2132 # INCLUDES, setting the cache variable VAR accordingly.
2133 ac_fn_c_check_header_compile
()
2135 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \
${$3+:} false
; then :
2139 $as_echo_n "(cached) " >&6
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2146 if ac_fn_c_try_compile
"$LINENO"; then :
2151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 } # ac_fn_c_check_header_compile
2160 # ac_fn_c_try_link LINENO
2161 # -----------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2165 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2166 rm -f conftest.
$ac_objext conftest
$ac_exeext
2167 if { { ac_try
="$ac_link"
2169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_link") 2>conftest.err
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_c_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest$ac_exeext && {
2186 test "$cross_compiling" = yes ||
2187 $as_test_x conftest$ac_exeext
2191 $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2196 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198 # interfere with the next link command; also delete a directory that is
2199 # left behind by Apple's compiler. We do this before executing the actions.
2200 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_c_try_link
2206 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2207 # ---------------------------------------------
2208 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2210 ac_fn_c_check_decl ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2214 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2216 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2217 if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2226 #ifndef $as_decl_name
2228 (void) $as_decl_use;
2230 (void) $as_decl_name;
2238 if ac_fn_c_try_compile "$LINENO"; then :
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 } # ac_fn_c_check_decl
2252 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2253 # ----------------------------------------------
2254 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2255 ac_fn_c_check_header_preproc ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 if ac_fn_c_try_cpp "$LINENO"; then :
2272 rm -f conftest.err conftest.i conftest.$ac_ext
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 } # ac_fn_c_check_header_preproc
2281 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2282 # ----------------------------------------------------
2283 # Tries to find if the field MEMBER exists in type AGGR, after including
2284 # INCLUDES, setting cache variable VAR accordingly.
2285 ac_fn_c_check_member ()
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2289 $as_echo_n "checking for $2.$3... " >&6; }
2290 if eval \${$4+:} false; then :
2291 $as_echo_n "(cached) " >&6
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2306 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2316 if (sizeof ac_aggr.$3)
2322 if ac_fn_c_try_compile "$LINENO"; then :
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 } # ac_fn_c_check_member
2338 # ac_fn_c_check_func LINENO FUNC VAR
2339 # ----------------------------------
2340 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2341 ac_fn_c_check_func ()
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347 $as_echo_n "(cached) " >&6
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2353 #define $2 innocuous_$2
2355 /* System header to define __stub macros and hopefully few prototypes,
2356 which can conflict with char $2 (); below.
2357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2358 <limits.h> exists even on freestanding compilers. */
2361 # include <limits.h>
2363 # include <assert.h>
2368 /* Override any GCC internal prototype to avoid an error.
2369 Use char because int might match the return type of a GCC
2370 builtin and then its argument prototype would still apply. */
2375 /* The GNU C library defines this for functions which it implements
2376 to always fail with ENOSYS. Some functions are actually named
2377 something starting with __ and the normal name is an alias. */
2378 #if defined __stub_$2 || defined __stub___$2
2390 if ac_fn_c_try_link "$LINENO"; then :
2395 rm -f core conftest.err conftest.$ac_objext \
2396 conftest$ac_exeext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2403 } # ac_fn_c_check_func
2405 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2406 # -------------------------------------------
2407 # Tests whether TYPE exists after having included INCLUDES, setting cache
2408 # variable VAR accordingly.
2409 ac_fn_c_check_type ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if eval \${$3+:} false; then :
2415 $as_echo_n "(cached) " >&6
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2443 if ac_fn_c_try_compile "$LINENO"; then :
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 } # ac_fn_c_check_type
2459 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2460 # --------------------------------------------
2461 # Tries to find the compile-time value of EXPR in a program that includes
2462 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2464 ac_fn_c_compute_int ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 if test "$cross_compiling" = yes; then
2468 # Depending upon the size, compute the lo and hi bounds.
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2475 static int test_array [1 - 2 * !(($2) >= 0)];
2482 if ac_fn_c_try_compile "$LINENO"; then :
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2491 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2498 if ac_fn_c_try_compile "$LINENO"; then :
2499 ac_hi=$ac_mid; break
2501 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2502 if test $ac_lo -le $ac_mid; then
2506 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2517 static int test_array [1 - 2 * !(($2) < 0)];
2524 if ac_fn_c_try_compile "$LINENO"; then :
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2533 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541 ac_lo=$ac_mid; break
2543 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2544 if test $ac_mid -le $ac_hi; then
2548 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 # Binary search between lo and hi bounds.
2559 while test "x$ac_lo" != "x$ac_hi"; do
2560 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2567 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2574 if ac_fn_c_try_compile "$LINENO"; then :
2577 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2589 static long int longval () { return $2; }
2590 static unsigned long int ulongval () { return $2; }
2597 FILE *f = fopen ("conftest.val", "w");
2602 long int i = longval ();
2605 fprintf (f, "%ld", i);
2609 unsigned long int i = ulongval ();
2612 fprintf (f, "%lu", i);
2614 /* Do not output a trailing newline, as this causes \r\n confusion
2615 on some platforms. */
2616 return ferror (f) || fclose (f) != 0;
2622 if ac_fn_c_try_run "$LINENO"; then :
2623 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2628 conftest.$ac_objext conftest.beam conftest.$ac_ext
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 as_fn_set_status $ac_retval
2635 } # ac_fn_c_compute_int
2636 cat >config.log <<_ACEOF
2637 This file contains any messages produced by compilers while
2638 running configure, to aid debugging if configure makes a mistake.
2640 It was created by emacs $as_me 24.0.50, which was
2641 generated by GNU Autoconf 2.68. Invocation command line was
2653 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2654 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2655 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2656 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2657 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2659 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2660 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2662 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2663 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2664 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2665 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2666 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2667 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2668 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 $as_echo "PATH: $as_dir"
2693 # Keep a trace of the command line.
2694 # Strip out --no-create and --no-recursion so they do not pile up.
2695 # Strip out --silent because we don't want to record it for future runs.
2696 # Also quote any args containing shell meta-characters.
2697 # Make two passes to allow for proper duplicate-argument suppression.
2701 ac_must_keep_next=false
2707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2709 | -silent | --silent | --silen | --sile | --sil)
2712 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2715 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2717 as_fn_append ac_configure_args1 " '$ac_arg'"
2718 if test $ac_must_keep_next = true; then
2719 ac_must_keep_next=false # Got value, back to normal.
2722 *=* | --config-cache | -C | -disable-* | --disable-* \
2723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2725 | -with-* | --with-* | -without-* | --without-* | --x)
2726 case "$ac_configure_args0 " in
2727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2730 -* ) ac_must_keep_next=true ;;
2733 as_fn_append ac_configure_args " '$ac_arg'"
2738 { ac_configure_args0=; unset ac_configure_args0;}
2739 { ac_configure_args1=; unset ac_configure_args1;}
2741 # When interrupted or exit'd, cleanup temporary files, and complete
2742 # config.log. We remove comments because anyway the quotes in there
2743 # would cause problems or look ugly.
2744 # WARNING: Use '\'' to represent an apostrophe within the trap.
2745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2746 trap 'exit_status=$?
2747 # Save into config.log some information that might help in debugging.
2751 $as_echo "## ---------------- ##
2752 ## Cache variables. ##
2753 ## ---------------- ##"
2755 # The following way of writing the cache mishandles newlines in values,
2757 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2758 eval ac_val=\$$ac_var
2762 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2763 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2766 _ | IFS | as_nl) ;; #(
2767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2768 *) { eval $ac_var=; unset $ac_var;} ;;
2773 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2774 *${as_nl}ac_space=\ *)
2776 "s/'\''/'\''\\\\'\'''\''/g;
2777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2787 $as_echo "## ----------------- ##
2788 ## Output variables. ##
2789 ## ----------------- ##"
2791 for ac_var in $ac_subst_vars
2793 eval ac_val=\$$ac_var
2795 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 $as_echo "$ac_var='\''$ac_val'\''"
2801 if test -n "$ac_subst_files"; then
2802 $as_echo "## ------------------- ##
2803 ## File substitutions. ##
2804 ## ------------------- ##"
2806 for ac_var in $ac_subst_files
2808 eval ac_val=\$$ac_var
2810 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2812 $as_echo "$ac_var='\''$ac_val'\''"
2817 if test -s confdefs.h; then
2818 $as_echo "## ----------- ##
2825 test "$ac_signal" != 0 &&
2826 $as_echo "$as_me: caught signal $ac_signal"
2827 $as_echo "$as_me: exit $exit_status"
2829 rm -f core *.core core.conftest.* &&
2830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2833 for ac_signal in 1 2 13 15; do
2834 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2839 rm -f -r conftest* confdefs.h
2841 $as_echo "/* confdefs.h */" > confdefs.h
2843 # Predefined preprocessor variables.
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_NAME "$PACKAGE_NAME"
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2857 cat >>confdefs.h <<_ACEOF
2858 #define PACKAGE_STRING "$PACKAGE_STRING"
2861 cat >>confdefs.h <<_ACEOF
2862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_URL "$PACKAGE_URL"
2870 # Let the site file select an alternate cache file if it wants to.
2871 # Prefer an explicitly selected file to automatically selected ones.
2874 if test -n "$CONFIG_SITE"; then
2875 # We do not want a PATH search for config.site.
2876 case $CONFIG_SITE in #((
2877 -*) ac_site_file1=./$CONFIG_SITE;;
2878 */*) ac_site_file1=$CONFIG_SITE;;
2879 *) ac_site_file1=./$CONFIG_SITE;;
2881 elif test "x$prefix" != xNONE; then
2882 ac_site_file1=$prefix/share/config.site
2883 ac_site_file2=$prefix/etc/config.site
2885 ac_site_file1=$ac_default_prefix/share/config.site
2886 ac_site_file2=$ac_default_prefix/etc/config.site
2888 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2890 test "x$ac_site_file" = xNONE && continue
2891 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2893 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2894 sed 's/^/| /' "$ac_site_file" >&5
2896 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error $? "failed to load site
script $ac_site_file
2899 See \
`config.log' for more details" "$LINENO" 5; }
2903 if test -r "$cache_file"; then
2904 # Some versions of bash will fail to source /dev/null (special files
2905 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2906 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2908 $as_echo "$as_me: loading cache $cache_file" >&6;}
2910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2911 *) . "./$cache_file";;
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2916 $as_echo "$as_me: creating cache $cache_file" >&6;}
2920 as_fn_append ac_header_list " stdlib.h"
2921 as_fn_append ac_header_list " unistd.h"
2922 as_fn_append ac_header_list " sys/param.h"
2923 gl_getopt_required=GNU
2924 as_fn_append ac_header_list " getopt.h"
2925 as_fn_append ac_func_list " alarm"
2926 as_fn_append ac_header_list " wchar.h"
2927 as_fn_append ac_header_list " stdint.h"
2928 as_fn_append ac_func_list " tzset"
2929 as_fn_append ac_header_list " sys/time.h"
2930 as_fn_append ac_func_list " localtime_r"
2931 # Check that the precious variables saved in the cache have kept the same
2933 ac_cache_corrupted=false
2934 for ac_var in $ac_precious_vars; do
2935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2936 eval ac_new_set=\$ac_env_${ac_var}_set
2937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2938 eval ac_new_val=\$ac_env_${ac_var}_value
2939 case $ac_old_set,$ac_new_set in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2942 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2946 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2947 ac_cache_corrupted=: ;;
2950 if test "x$ac_old_val" != "x$ac_new_val"; then
2951 # differences in whitespace do not lead to failure.
2952 ac_old_val_w=`echo x
$ac_old_val`
2953 ac_new_val_w=`echo x
$ac_new_val`
2954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2957 ac_cache_corrupted=:
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2961 eval $ac_var=\$ac_old_val
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2964 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2966 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2969 # Pass precious variables to config.status.
2970 if test "$ac_new_set" = set; then
2972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2973 *) ac_arg=$ac_var=$ac_new_val ;;
2975 case " $ac_configure_args " in
2976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2977 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2981 if $ac_cache_corrupted; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2986 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2988 ## -------------------- ##
2989 ## Main body of script. ##
2990 ## -------------------- ##
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3002 am__api_version='1.11'
3005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3006 if test -f "$ac_dir/install-sh"; then
3008 ac_install_sh="$ac_aux_dir/install-sh -c"
3010 elif test -f "$ac_dir/install.sh"; then
3012 ac_install_sh="$ac_aux_dir/install.sh -c"
3014 elif test -f "$ac_dir/shtool"; then
3016 ac_install_sh="$ac_aux_dir/shtool install -c"
3020 if test -z "$ac_aux_dir"; then
3021 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3024 # These three variables are undocumented and unsupported,
3025 # and are intended to be withdrawn in a future Autoconf release.
3026 # They can cause serious problems if a builder's source tree is in a directory
3027 # whose full name contains unusual characters.
3028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3033 # Find a good install program. We prefer a C program (faster),
3034 # so one script is as good as another. But avoid the broken or
3035 # incompatible versions:
3036 # SysV /etc/install, /usr/sbin/install
3037 # SunOS /usr/etc/install
3038 # IRIX /sbin/install
3040 # AmigaOS /C/install, which installs bootblocks on floppy discs
3041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3044 # OS/2's system install, which has a completely different semantic
3045 # ./install, which can be erroneously created by make from ./install.sh.
3046 # Reject install programs that cannot install multiple files.
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3048 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3049 if test -z "$INSTALL"; then
3050 if ${ac_cv_path_install+:} false; then :
3051 $as_echo_n "(cached) " >&6
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 # Account for people who put trailing slashes in PATH elements.
3059 case $as_dir/ in #((
3060 ./ | .// | /[cC]/* | \
3061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3062 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3065 # OSF1 and SCO ODT 3.0 have their own names for install.
3066 # Don't use installbsd from OSF since it installs stuff as root
3068 for ac_prog in ginstall scoinst install; do
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3071 if test $ac_prog = install &&
3072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3073 # AIX install. It has an incompatible calling convention.
3075 elif test $ac_prog = install &&
3076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077 # program-specific install script used by HP pwplus--don't use.
3080 rm -rf conftest.one conftest.two conftest.dir
3081 echo one > conftest.one
3082 echo two > conftest.two
3084 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3085 test -s conftest.one && test -s conftest.two &&
3086 test -s conftest.dir/conftest.one &&
3087 test -s conftest.dir/conftest.two
3089 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102 rm -rf conftest.one conftest.two conftest.dir
3105 if test "${ac_cv_path_install+set}" = set; then
3106 INSTALL=$ac_cv_path_install
3108 # As a last resort, use the slow shell script. Don't cache a
3109 # value for INSTALL within a source directory, because that will
3110 # break other packages using the cache if that directory is
3111 # removed, or if the value is a relative name.
3112 INSTALL=$ac_install_sh
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3116 $as_echo "$INSTALL" >&6; }
3118 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3119 # It thinks the first close brace ends the variable substitution.
3120 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3122 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3124 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3127 $as_echo_n "checking whether build environment is sane... " >&6; }
3130 echo timestamp > conftest.file
3131 # Reject unsafe characters in $srcdir or the absolute working directory
3132 # name. Accept space and tab only in the latter.
3136 *[\\\"\#\$\&\'\`$am_lf]*)
3137 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3140 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3141 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3144 # Do `set' in a subshell so we don't clobber the current shell's
3145 # arguments. Must try -L first in case configure is actually a
3146 # symlink; some systems play weird games with the mod time of symlinks
3147 # (eg FreeBSD returns the mod time of the symlink's containing
3150 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3151 if test "$*" = "X"; then
3153 set X
`ls -t "$srcdir/configure" conftest.file`
3156 if test "$*" != "X $srcdir/configure conftest.file" \
3157 && test "$*" != "X conftest.file $srcdir/configure"; then
3159 # If neither matched, then we have a broken ls. This can happen
3160 # if, for instance, CONFIG_SHELL is bash and it inherits a
3161 # broken ls alias from the environment. This has actually
3162 # happened. Such a system could not be considered "sane".
3163 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3164 alias in your environment" "$LINENO" 5
3167 test "$2" = conftest.
file
3173 as_fn_error $?
"newly created file is older than distributed files!
3174 Check your system clock" "$LINENO" 5
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3178 test "$program_prefix" != NONE
&&
3179 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3180 # Use a double $ so make ignores it.
3181 test "$program_suffix" != NONE
&&
3182 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3183 # Double any \ or $.
3184 # By default was `s,x,x', remove it if useless.
3185 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3186 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3188 # expand $ac_aux_dir to an absolute path
3189 am_aux_dir
=`cd $ac_aux_dir && pwd`
3191 if test x
"${MISSING+set}" != xset
; then
3194 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3196 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3199 # Use eval to expand $SHELL
3200 if eval "$MISSING --run true"; then
3201 am_missing_run
="$MISSING --run "
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3205 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3208 if test x
"${install_sh}" != xset
; then
3211 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3213 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3217 # Installed binaries are usually stripped using `strip' when the user
3218 # run `make install-strip'. However `strip' might not be the right
3219 # tool to use in cross-compilation environments, therefore Automake
3220 # will honor the `STRIP' environment variable to overrule this program.
3221 if test "$cross_compiling" != no
; then
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3224 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_STRIP+:} false
; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$STRIP"; then
3231 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir
=.
3238 for ac_exec_ext
in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 STRIP
=$ac_cv_prog_STRIP
3251 if test -n "$STRIP"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3253 $as_echo "$STRIP" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3261 if test -z "$ac_cv_prog_STRIP"; then
3263 # Extract the first word of "strip", so it can be a program name with args.
3264 set dummy strip
; ac_word
=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$ac_ct_STRIP"; then
3271 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir
=.
3278 for ac_exec_ext
in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_STRIP
="strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3291 if test -n "$ac_ct_STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3293 $as_echo "$ac_ct_STRIP" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3299 if test "x$ac_ct_STRIP" = x
; then
3302 case $cross_compiling:$ac_tool_warned in
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned
=yes ;;
3311 STRIP
="$ac_cv_prog_STRIP"
3315 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3318 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3319 if test -z "$MKDIR_P"; then
3320 if ${ac_cv_path_mkdir+:} false
; then :
3321 $as_echo_n "(cached) " >&6
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3324 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_prog
in mkdir gmkdir
; do
3329 for ac_exec_ext
in '' $ac_executable_extensions; do
3330 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3331 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3332 'mkdir (GNU coreutils) '* | \
3333 'mkdir (coreutils) '* | \
3334 'mkdir (fileutils) '4.1*)
3335 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3345 test -d .
/--version && rmdir .
/--version
3346 if test "${ac_cv_path_mkdir+set}" = set; then
3347 MKDIR_P
="$ac_cv_path_mkdir -p"
3349 # As a last resort, use the slow shell script. Don't cache a
3350 # value for MKDIR_P within a source directory, because that will
3351 # break other packages using the cache if that directory is
3352 # removed, or if the value is a relative name.
3353 MKDIR_P
="$ac_install_sh -d"
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3357 $as_echo "$MKDIR_P" >&6; }
3362 [\\/$
]* | ?
:[\\/]*) ;;
3363 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3366 for ac_prog
in gawk mawk nawk
awk
3368 # Extract the first word of "$ac_prog", so it can be a program name with args.
3369 set dummy
$ac_prog; ac_word
=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_AWK+:} false
; then :
3373 $as_echo_n "(cached) " >&6
3375 if test -n "$AWK"; then
3376 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir
=.
3383 for ac_exec_ext
in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_AWK
="$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 if test -n "$AWK"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3398 $as_echo "$AWK" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3405 test -n "$AWK" && break
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3409 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3411 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3412 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3413 $as_echo_n "(cached) " >&6
3415 cat >conftest.
make <<\_ACEOF
3418 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3420 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3421 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3423 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3425 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3429 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3431 $as_echo "yes" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 SET_MAKE
="MAKE=${MAKE-make}"
3439 rm -rf .tst
2>/dev
/null
3440 mkdir .tst
2>/dev
/null
3441 if test -d .tst
; then
3446 rmdir .tst
2>/dev
/null
3448 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3449 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3450 # is not polluted with repeated "-I."
3451 am__isrc
=' -I$(srcdir)'
3452 # test to see if srcdir already configured
3453 if test -f $srcdir/config.status
; then
3454 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3458 # test whether we have cygpath
3459 if test -z "$CYGPATH_W"; then
3460 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3461 CYGPATH_W
='cygpath -w'
3468 # Define the identity of the package.
3473 cat >>confdefs.h
<<_ACEOF
3474 #define PACKAGE "$PACKAGE"
3478 cat >>confdefs.h
<<_ACEOF
3479 #define VERSION "$VERSION"
3482 # Some tools Automake needs.
3484 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3487 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3490 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3493 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3496 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3498 # We need awk for the "check" target. The system "awk" is bad on
3500 # Always define AMTAR for backward compatibility.
3502 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3504 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3513 lispdir
='${datadir}/emacs/${version}/lisp'
3514 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3515 '${datadir}/emacs/site-lisp'
3516 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3517 etcdir
='${datadir}/emacs/${version}/etc'
3518 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3519 docdir
='${datadir}/emacs/${version}/etc'
3520 gamedir
='${localstatedir}/games/emacs'
3525 # Check whether --with-pop was given.
3526 if test "${with_pop+set}" = set; then :
3532 if test "$with_pop" = yes; then
3533 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3538 # Check whether --with-kerberos was given.
3539 if test "${with_kerberos+set}" = set; then :
3540 withval
=$with_kerberos;
3545 if test "$with_kerberos" != no
; then
3546 $as_echo "#define KERBEROS 1" >>confdefs.h
3551 # Check whether --with-kerberos5 was given.
3552 if test "${with_kerberos5+set}" = set; then :
3553 withval
=$with_kerberos5;
3558 if test "${with_kerberos5}" != no
; then
3559 if test "${with_kerberos}" = no
; then
3561 $as_echo "#define KERBEROS 1" >>confdefs.h
3565 $as_echo "#define KERBEROS5 1" >>confdefs.h
3570 # Check whether --with-hesiod was given.
3571 if test "${with_hesiod+set}" = set; then :
3572 withval
=$with_hesiod;
3577 if test "$with_hesiod" != no
; then
3579 $as_echo "#define HESIOD 1" >>confdefs.h
3584 # Check whether --with-mmdf was given.
3585 if test "${with_mmdf+set}" = set; then :
3591 if test "$with_mmdf" != no
; then
3593 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3598 # Check whether --with-mail-unlink was given.
3599 if test "${with_mail_unlink+set}" = set; then :
3600 withval
=$with_mail_unlink;
3605 if test "$with_mail_unlink" != no
; then
3607 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3612 # Check whether --with-mailhost was given.
3613 if test "${with_mailhost+set}" = set; then :
3614 withval
=$with_mailhost;
3615 cat >>confdefs.h
<<_ACEOF
3616 #define MAILHOST "$withval"
3623 # Check whether --with-sound was given.
3624 if test "${with_sound+set}" = set; then :
3625 withval
=$with_sound;
3632 # Check whether --with-sync-input was given.
3633 if test "${with_sync_input+set}" = set; then :
3634 withval
=$with_sync_input;
3639 if test "$with_sync_input" = yes; then
3641 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3646 # Check whether --with-x-toolkit was given.
3647 if test "${with_x_toolkit+set}" = set; then :
3648 withval
=$with_x_toolkit; case "${withval}" in
3649 y | ye |
yes ) val
=gtk
;;
3651 l | lu | luc | luci | lucid
) val
=lucid
;;
3652 a |
at | ath | athe | athen | athena
) val
=athena
;;
3653 m | mo | mot | moti | motif
) val
=motif
;;
3654 g | gt | gtk
) val
=gtk
;;
3657 as_fn_error $?
"\`--with-x-toolkit=$withval' is invalid;
3658 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3659 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3668 # Check whether --with-xpm was given.
3669 if test "${with_xpm+set}" = set; then :
3676 # Check whether --with-jpeg was given.
3677 if test "${with_jpeg+set}" = set; then :
3684 # Check whether --with-tiff was given.
3685 if test "${with_tiff+set}" = set; then :
3692 # Check whether --with-gif was given.
3693 if test "${with_gif+set}" = set; then :
3700 # Check whether --with-png was given.
3701 if test "${with_png+set}" = set; then :
3708 # Check whether --with-rsvg was given.
3709 if test "${with_rsvg+set}" = set; then :
3716 # Check whether --with-xml2 was given.
3717 if test "${with_xml2+set}" = set; then :
3724 # Check whether --with-imagemagick was given.
3725 if test "${with_imagemagick+set}" = set; then :
3726 withval
=$with_imagemagick;
3728 with_imagemagick
=yes
3733 # Check whether --with-xft was given.
3734 if test "${with_xft+set}" = set; then :
3741 # Check whether --with-libotf was given.
3742 if test "${with_libotf+set}" = set; then :
3743 withval
=$with_libotf;
3749 # Check whether --with-m17n-flt was given.
3750 if test "${with_m17n_flt+set}" = set; then :
3751 withval
=$with_m17n_flt;
3758 # Check whether --with-toolkit-scroll-bars was given.
3759 if test "${with_toolkit_scroll_bars+set}" = set; then :
3760 withval
=$with_toolkit_scroll_bars;
3762 with_toolkit_scroll_bars
=yes
3766 # Check whether --with-xaw3d was given.
3767 if test "${with_xaw3d+set}" = set; then :
3768 withval
=$with_xaw3d;
3774 # Check whether --with-xim was given.
3775 if test "${with_xim+set}" = set; then :
3782 # Check whether --with-ns was given.
3783 if test "${with_ns+set}" = set; then :
3791 # Check whether --with-gpm was given.
3792 if test "${with_gpm+set}" = set; then :
3799 # Check whether --with-dbus was given.
3800 if test "${with_dbus+set}" = set; then :
3807 # Check whether --with-gconf was given.
3808 if test "${with_gconf+set}" = set; then :
3809 withval
=$with_gconf;
3815 # Check whether --with-selinux was given.
3816 if test "${with_selinux+set}" = set; then :
3817 withval
=$with_selinux;
3823 # Check whether --with-gnutls was given.
3824 if test "${with_gnutls+set}" = set; then :
3825 withval
=$with_gnutls;
3831 ## For the times when you want to build Emacs but don't have
3832 ## a suitable makeinfo, and can live without the manuals.
3834 # Check whether --with-makeinfo was given.
3835 if test "${with_makeinfo+set}" = set; then :
3836 withval
=$with_makeinfo;
3842 ## This is an option because I do not know if all info/man support
3843 ## compressed files, nor how to test if they do so.
3845 # Check whether --with-compress-info was given.
3846 if test "${with_compress_info+set}" = set; then :
3847 withval
=$with_compress_info;
3849 with_compress_info
=yes
3852 if test $with_compress_info = yes; then
3860 # Check whether --with-pkg-config-prog was given.
3861 if test "${with_pkg_config_prog+set}" = set; then :
3862 withval
=$with_pkg_config_prog;
3865 if test "X${with_pkg_config_prog}" != X
; then
3866 if test "${with_pkg_config_prog}" != yes; then
3867 PKG_CONFIG
="${with_pkg_config_prog}"
3873 # Check whether --with-crt-dir was given.
3874 if test "${with_crt_dir+set}" = set; then :
3875 withval
=$with_crt_dir;
3878 CRT_DIR
="${with_crt_dir}"
3881 # Check whether --with-gameuser was given.
3882 if test "${with_gameuser+set}" = set; then :
3883 withval
=$with_gameuser;
3886 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
3887 && gameuser
="${with_gameuser}"
3888 test "X$gameuser" = X
&& gameuser
=games
3891 # Check whether --with-gnustep-conf was given.
3892 if test "${with_gnustep_conf+set}" = set; then :
3893 withval
=$with_gnustep_conf;
3896 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
3897 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
3898 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3899 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
3901 # Check whether --enable-ns-self-contained was given.
3902 if test "${enable_ns_self_contained+set}" = set; then :
3903 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
3905 EN_NS_SELF_CONTAINED
=yes
3909 # Check whether --enable-asserts was given.
3910 if test "${enable_asserts+set}" = set; then :
3911 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
3917 # Check whether --enable-maintainer-mode was given.
3918 if test "${enable_maintainer_mode+set}" = set; then :
3919 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3921 USE_MAINTAINER_MODE
=no
3924 if test $USE_MAINTAINER_MODE = yes; then
3931 # Check whether --enable-locallisppath was given.
3932 if test "${enable_locallisppath+set}" = set; then :
3933 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
3935 elif test "${enableval}" != "yes"; then
3936 locallisppath
=${enableval}
3941 # Check whether --enable-checking was given.
3942 if test "${enable_checking+set}" = set; then :
3943 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
3946 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3947 for check
in $ac_checking_flags
3950 # these set all the flags to specific states
3951 yes) ac_enable_checking
=1 ;;
3952 no
) ac_enable_checking
= ;
3953 ac_gc_check_stringbytes
= ;
3954 ac_gc_check_string_overrun
= ;
3955 ac_gc_check_string_free_list
= ;
3956 ac_xmalloc_overrun
= ;
3957 ac_gc_check_cons_list
= ;;
3958 all
) ac_enable_checking
=1 ;
3959 ac_gc_check_stringbytes
=1 ;
3960 ac_gc_check_string_overrun
=1 ;
3961 ac_gc_check_string_free_list
=1 ;
3962 ac_xmalloc_overrun
=1 ;
3963 ac_gc_check_cons_list
=1 ;;
3964 # these enable particular checks
3965 stringbytes
) ac_gc_check_stringbytes
=1 ;;
3966 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
3967 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
3968 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
3969 conslist
) ac_gc_check_cons_list
=1 ;;
3970 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
3975 if test x
$ac_enable_checking != x
; then
3977 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3980 if test x
$ac_gc_check_stringbytes != x
; then
3982 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3985 if test x
$ac_gc_check_stringoverrun != x
; then
3987 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3990 if test x
$ac_gc_check_string_free_list != x
; then
3992 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3995 if test x
$ac_xmalloc_overrun != x
; then
3997 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4000 if test x
$ac_gc_check_cons_list != x
; then
4002 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4006 # Check whether --enable-use-lisp-union-type was given.
4007 if test "${enable_use_lisp_union_type+set}" = set; then :
4008 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4010 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4017 # Check whether --enable-profiling was given.
4018 if test "${enable_profiling+set}" = set; then :
4019 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4022 if test x
$ac_enable_profiling != x
; then
4023 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4029 # Check whether --enable-autodepend was given.
4030 if test "${enable_autodepend+set}" = set; then :
4031 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4033 ac_enable_autodepend
=yes
4037 #### Make srcdir absolute, if it isn't already. It's important to
4038 #### avoid running the path through pwd unnecessarily, since pwd can
4039 #### give you automounter prefixes, which can go away. We do all this
4040 #### so Emacs can find its files when run uninstalled.
4041 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4046 ## We may be able to use the $PWD environment variable to make this
4047 ## absolute. But sometimes PWD is inaccurate.
4048 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4049 ## but that tested only for a well-formed and valid PWD,
4050 ## it did not object when PWD was well-formed and valid but just wrong.
4051 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4055 srcdir
="`(cd ${srcdir}; pwd)`"
4058 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4061 #### Check if the source directory already has a configured system in it.
4062 if test `pwd` != `(cd ${srcdir} && pwd)` \
4063 && test -f "${srcdir}/src/config.h" ; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4065 as a build directory right now; it has been configured in its own
4066 right. To configure in another directory as well, you MUST
4067 use GNU make. If you do not have GNU make, then you must
4068 now do \`make distclean' in ${srcdir},
4069 and then run $0 again." >&5
4070 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4071 as a build directory right now; it has been configured in its own
4072 right. To configure in another directory as well, you MUST
4073 use GNU make. If you do not have GNU make, then you must
4074 now do \`make distclean' in ${srcdir},
4075 and then run $0 again." >&2;}
4078 #### Given the configuration name, set machfile and opsysfile to the
4079 #### names of the m/*.h and s/*.h files we should use.
4081 ### Canonicalize the configuration name.
4083 # Make sure we can run config.sub.
4084 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4085 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4088 $as_echo_n "checking build system type... " >&6; }
4089 if ${ac_cv_build+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_build_alias
=$build_alias
4093 test "x$ac_build_alias" = x
&&
4094 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4095 test "x$ac_build_alias" = x
&&
4096 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4097 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4098 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4102 $as_echo "$ac_cv_build" >&6; }
4103 case $ac_cv_build in
4105 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4108 ac_save_IFS
=$IFS; IFS
='-'
4114 # Remember, the first character of IFS is used to create $*,
4115 # except with old shells:
4118 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4122 $as_echo_n "checking host system type... " >&6; }
4123 if ${ac_cv_host+:} false
; then :
4124 $as_echo_n "(cached) " >&6
4126 if test "x$host_alias" = x
; then
4127 ac_cv_host
=$ac_cv_build
4129 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4130 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4135 $as_echo "$ac_cv_host" >&6; }
4138 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4141 ac_save_IFS
=$IFS; IFS
='-'
4147 # Remember, the first character of IFS is used to create $*,
4148 # except with old shells:
4151 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4155 configuration
=${host_alias-${build_alias-$host}}
4159 ### If you add support for a new configuration, add code to this
4160 ### switch statement to recognize your configuration name and select
4161 ### the appropriate operating system and machine description files.
4163 ### You would hope that you could choose an m/*.h file pretty much
4164 ### based on the machine portion of the configuration name, and an s/*.h
4165 ### file based on the operating system portion. However, it turns out
4166 ### that each m/*.h file is pretty manufacturer-specific - for
4167 ### example mips.h is MIPS
4168 ### So we basically have to have a special case for each
4169 ### configuration name.
4171 ### As far as handling version numbers on operating systems is
4172 ### concerned, make sure things will fail in a fixable way. If
4173 ### /etc/MACHINES doesn't say anything about version numbers, be
4174 ### prepared to handle anything reasonably. If version numbers
4175 ### matter, be sure /etc/MACHINES says something about it.
4177 machine
='' opsys
='' unported
=no
4178 case "${canonical}" in
4183 case ${canonical} in
4184 alpha
*) machine
=alpha
;;
4185 s390-
*) machine
=ibms390
;;
4186 s390x-
*) machine
=ibms390x
;;
4187 powerpc
*) machine
=macppc
;;
4188 sparc
*) machine
=sparc
;;
4189 ia64
*) machine
=ia64
;;
4190 m68k
*) machine
=m68k
;;
4191 x86_64
*) machine
=amdx86-64
;;
4198 case "${canonical}" in
4199 alpha
*) machine
=alpha
;;
4200 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4201 ia64-
*) machine
=ia64
;;
4202 i
[3456]86-*) machine
=intel386
;;
4203 powerpc-
*) machine
=macppc
;;
4204 sparc-
*) machine
=sparc
;;
4205 sparc64-
*) machine
=sparc
;;
4209 ## FreeBSD kernel + glibc based userland
4212 case "${canonical}" in
4213 alpha
*) machine
=alpha
;;
4214 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4215 ia64-
*) machine
=ia64
;;
4216 i
[3456]86-*) machine
=intel386
;;
4217 powerpc-
*) machine
=macppc
;;
4218 sparc-
*) machine
=sparc
;;
4219 sparc64-
*) machine
=sparc
;;
4226 case "${canonical}" in
4227 alpha
*) machine
=alpha
;;
4228 x86_64-
*) machine
=amdx86-64
;;
4229 i
[3456]86-*) machine
=intel386
;;
4230 m68k-
*) machine
=m68k
;;
4231 powerpc-
*) machine
=macppc
;;
4232 sparc
*-) machine
=sparc
;;
4233 vax-
*) machine
=vax
;;
4240 case "${canonical}" in
4241 alpha
*) machine
=alpha
;;
4242 x86_64-
*) machine
=amdx86-64
;;
4243 i386-
*) machine
=intel386
;;
4244 powerpc-
*) machine
=macppc
;;
4245 sparc
*) machine
=sparc
;;
4246 vax-
*) machine
=vax
;;
4250 ## Apple Darwin / Mac OS X
4252 case "${canonical}" in
4253 i
[3456]86-* ) machine
=intel386
;;
4254 powerpc-
* ) machine
=macppc
;;
4255 x86_64-
* ) machine
=amdx86-64
;;
4259 # Define CPP as follows to make autoconf work correctly.
4260 CPP
="${CC-cc} -E -no-cpp-precomp"
4261 # Use fink packages if available.
4262 if test -d /sw
/include
&& test -d /sw
/lib
; then
4263 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4264 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4265 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4269 ## HP 9000 series 700 and 800, running HP/UX
4270 hppa
*-hp-hpux10.2
* )
4273 hppa
*-hp-hpux1[1-9]* )
4275 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4278 ia64
*-hp-hpux1[1-9]* )
4279 machine
=hp800 opsys
=hpux11
4280 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4281 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4285 hppa
*-*-linux-gnu* )
4286 machine
=hp800 opsys
=gnu-linux
4290 rs6000-ibm-aix4.
[23]* )
4291 machine
=ibmrs6000 opsys
=aix4-2
4293 powerpc-ibm-aix4.
[23]* )
4294 machine
=ibmrs6000 opsys
=aix4-2
4296 rs6000-ibm-aix
[56]* )
4297 machine
=ibmrs6000 opsys
=aix4-2
4299 powerpc-ibm-aix
[56]* )
4300 machine
=ibmrs6000 opsys
=aix4-2
4303 ## Silicon Graphics machines
4306 machine
=iris4d opsys
=irix6-5
4307 # Without defining _LANGUAGE_C, things get masked out in the headers
4308 # so that, for instance, grepping for `free' in stdlib.h fails and
4309 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4310 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4311 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4316 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4317 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4318 case "${canonical}" in
4319 i
[3456]86-*-* ) machine
=intel386
;;
4320 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4321 sparc
* ) machine
=sparc
;;
4324 case "${canonical}" in
4325 *-sunos5.6
* |
*-solaris2.6
* )
4327 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4330 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4332 emacs_check_sunpro_c
=yes
4333 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4335 *-sunos5* |
*-solaris* )
4337 emacs_check_sunpro_c
=yes
4338 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4341 ## Watch out for a compiler that we know will not work.
4342 case "${canonical}" in
4343 *-solaris* |
*-sunos5* )
4344 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4345 ## /usr/ucb/cc doesn't work;
4346 ## we should find some other compiler that does work.
4354 ## Intel 386 machines where we don't care about the manufacturer.
4357 case "${canonical}" in
4358 *-cygwin ) opsys
=cygwin
;;
4359 *-darwin* ) opsys
=darwin
4360 CPP
="${CC-cc} -E -no-cpp-precomp"
4362 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4363 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4364 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4365 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4374 ### If the code above didn't choose an operating system, just choose
4375 ### an operating system based on the configuration name. You really
4376 ### only want to use this when you have no idea what the right
4377 ### operating system is; if you know what operating systems a machine
4378 ### runs, it's cleaner to make it explicit in the case statement
4380 if test x
"${opsys}" = x
; then
4381 case "${canonical}" in
4382 *-gnu* ) opsys
=gnu
;;
4391 if test $unported = yes; then
4392 as_fn_error $?
"Emacs hasn't been ported to \`${canonical}' systems.
4393 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4396 if test -n "$machine"; then
4397 machfile
="m/${machine}.h"
4401 opsysfile
="s/${opsys}.h"
4404 #### Choose a compiler.
4405 test -n "$CC" && cc_specified
=yes
4407 # Save the value of CFLAGS that the user specified.
4408 SPECIFIED_CFLAGS
="$CFLAGS"
4411 ac_cpp
='$CPP $CPPFLAGS'
4412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4417 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_CC+:} false
; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC
="$CC" # Let the user override the test.
4426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir
=.
4431 for ac_exec_ext
in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4454 if test -z "$ac_cv_prog_CC"; then
4456 # Extract the first word of "gcc", so it can be a program name with args.
4457 set dummy gcc
; ac_word
=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$ac_ct_CC"; then
4464 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir
=.
4471 for ac_exec_ext
in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_ac_ct_CC
="gcc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4484 if test -n "$ac_ct_CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4486 $as_echo "$ac_ct_CC" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4492 if test "x$ac_ct_CC" = x
; then
4495 case $cross_compiling:$ac_tool_warned in
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned
=yes ;;
4507 if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_CC+:} false
; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC
="$CC" # Let the user override the test.
4519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir
=.
4524 for ac_exec_ext
in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 if test -n "$CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4539 $as_echo "$CC" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4548 if test -z "$CC"; then
4549 # Extract the first word of "cc", so it can be a program name with args.
4550 set dummy cc
; ac_word
=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CC+:} false
; then :
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC
="$CC" # Let the user override the test.
4560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir
=.
4565 for ac_exec_ext
in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4568 ac_prog_rejected
=yes
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 if test $ac_prog_rejected = yes; then
4580 # We found a bogon in the path, so make sure we never use it.
4581 set dummy
$ac_cv_prog_CC
4583 if test $# != 0; then
4584 # We chose a different compiler from the bogus one.
4585 # However, it has the same basename, so the bogon will be chosen
4586 # first if we set CC to just the basename; use the full file name.
4588 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4594 if test -n "$CC"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4596 $as_echo "$CC" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4604 if test -z "$CC"; then
4605 if test -n "$ac_tool_prefix"; then
4606 for ac_prog
in cl.exe
4608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4609 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_prog_CC+:} false
; then :
4613 $as_echo_n "(cached) " >&6
4615 if test -n "$CC"; then
4616 ac_cv_prog_CC
="$CC" # Let the user override the test.
4618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4622 test -z "$as_dir" && as_dir
=.
4623 for ac_exec_ext
in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 if test -n "$CC"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4638 $as_echo "$CC" >&6; }
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 test -n "$CC" && break
4648 if test -z "$CC"; then
4650 for ac_prog
in cl.exe
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653 set dummy
$ac_prog; ac_word
=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir
=.
4667 for ac_exec_ext
in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC
="$ac_prog"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4689 test -n "$ac_ct_CC" && break
4692 if test "x$ac_ct_CC" = x
; then
4695 case $cross_compiling:$ac_tool_warned in
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned
=yes ;;
4708 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 as_fn_error $?
"no acceptable C compiler found in \$PATH
4711 See \`config.log' for more details" "$LINENO" 5; }
4713 # Provide some information about the compiler.
4714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4717 for ac_option
in --version -v -V -qversion; do
4718 { { ac_try
="$ac_compiler $ac_option >&5"
4720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4727 if test -s conftest.err; then
4729 ... rest of stderr output deleted ...
4730 10q' conftest.err >conftest.er1
4731 cat conftest.er1 >&5
4733 rm -f conftest.er1 conftest.err
4734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735 test $ac_status = 0; }
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4749 ac_clean_files_save=$ac_clean_files
4750 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4751 # Try to create an executable without -o first, disregard a.out.
4752 # It will help us diagnose broken compilers, and finding out an intuition
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4755 $as_echo_n "checking whether the C compiler works... " >&6; }
4756 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4758 # The possible output files:
4759 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4762 for ac_file in $ac_files
4765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4771 if { { ac_try="$ac_link_default"
4773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4774 *) ac_try_echo
=$ac_try;;
4776 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4777 $as_echo "$ac_try_echo"; } >&5
4778 (eval "$ac_link_default") 2>&5
4780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4781 test $ac_status = 0; }; then :
4782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4785 # so that the user can short-circuit this test for compilers unknown to
4787 for ac_file
in $ac_files ''
4789 test -f "$ac_file" ||
continue
4791 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4794 # We found the default executable, but exeext='' is most
4798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4800 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4802 # We set ac_cv_exeext here because the later test for it is not
4803 # safe: cross compilers may not add the suffix if given an `-o'
4804 # argument, so we may need to know it at that point already.
4805 # Even if this section looks crufty: it has the advantage of
4812 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4817 if test -z "$ac_file"; then :
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 $as_echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.
$ac_ext >&5
4823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4825 as_fn_error
77 "C compiler cannot create executables
4826 See \`config.log' for more details" "$LINENO" 5; }
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4829 $as_echo "yes" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4832 $as_echo_n "checking for C compiler default output file name... " >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4834 $as_echo "$ac_file" >&6; }
4835 ac_exeext
=$ac_cv_exeext
4837 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4838 ac_clean_files
=$ac_clean_files_save
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4840 $as_echo_n "checking for suffix of executables... " >&6; }
4841 if { { ac_try
="$ac_link"
4843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847 $as_echo "$ac_try_echo"; } >&5
4848 (eval "$ac_link") 2>&5
4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851 test $ac_status = 0; }; then :
4852 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4853 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4854 # work properly (i.e., refer to `conftest.exe'), while it won't with
4856 for ac_file
in conftest.exe conftest conftest.
*; do
4857 test -f "$ac_file" ||
continue
4859 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4860 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4868 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4869 See \`config.log' for more details" "$LINENO" 5; }
4871 rm -f conftest conftest
$ac_cv_exeext
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4873 $as_echo "$ac_cv_exeext" >&6; }
4875 rm -f conftest.
$ac_ext
4876 EXEEXT
=$ac_cv_exeext
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4884 FILE *f = fopen ("conftest.out", "w");
4885 return ferror (f) || fclose (f) != 0;
4891 ac_clean_files
="$ac_clean_files conftest.out"
4892 # Check that the compiler produces executables we can run. If not, either
4893 # the compiler is broken, or we cross compile.
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4895 $as_echo_n "checking whether we are cross compiling... " >&6; }
4896 if test "$cross_compiling" != yes; then
4897 { { ac_try
="$ac_link"
4899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903 $as_echo "$ac_try_echo"; } >&5
4904 (eval "$ac_link") 2>&5
4906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907 test $ac_status = 0; }
4908 if { ac_try='./conftest$ac_cv_exeext'
4909 { { case "(($ac_try" in
4910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4911 *) ac_try_echo
=$ac_try;;
4913 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4914 $as_echo "$ac_try_echo"; } >&5
4915 (eval "$ac_try") 2>&5
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }; }; then
4921 if test "$cross_compiling" = maybe
; then
4924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error $?
"cannot run C compiled programs.
4927 If you meant to cross compile, use \`--host'.
4928 See \`config.log' for more details" "$LINENO" 5; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4933 $as_echo "$cross_compiling" >&6; }
4935 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4936 ac_clean_files
=$ac_clean_files_save
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4938 $as_echo_n "checking for suffix of object files... " >&6; }
4939 if ${ac_cv_objext+:} false
; then :
4940 $as_echo_n "(cached) " >&6
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4953 rm -f conftest.o conftest.obj
4954 if { { ac_try
="$ac_compile"
4956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4960 $as_echo "$ac_try_echo"; } >&5
4961 (eval "$ac_compile") 2>&5
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }; then :
4965 for ac_file in conftest.o conftest.obj conftest.*; do
4966 test -f "$ac_file" || continue;
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4979 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4980 See \
`config.log' for more details" "$LINENO" 5; }
4982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4985 $as_echo "$ac_cv_objext" >&6; }
4986 OBJEXT=$ac_cv_objext
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4990 if ${ac_cv_c_compiler_gnu+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
5007 if ac_fn_c_try_compile "$LINENO"; then :
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5018 if test $ac_compiler_gnu = yes; then
5023 ac_test_CFLAGS=${CFLAGS+set}
5024 ac_save_CFLAGS=$CFLAGS
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5027 if ${ac_cv_prog_cc_g+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5045 if ac_fn_c_try_compile "$LINENO"; then :
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5060 if ac_fn_c_try_compile "$LINENO"; then :
5063 ac_c_werror_flag=$ac_save_c_werror_flag
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5076 if ac_fn_c_try_compile "$LINENO"; then :
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ac_c_werror_flag=$ac_save_c_werror_flag
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5087 $as_echo "$ac_cv_prog_cc_g" >&6; }
5088 if test "$ac_test_CFLAGS" = set; then
5089 CFLAGS=$ac_save_CFLAGS
5090 elif test $ac_cv_prog_cc_g = yes; then
5091 if test "$GCC" = yes; then
5097 if test "$GCC" = yes; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5105 if ${ac_cv_prog_cc_c89+:} false; then :
5106 $as_echo_n "(cached) " >&6
5108 ac_cv_prog_cc_c89=no
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5114 #include <sys/types.h>
5115 #include <sys/stat.h>
5116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5117 struct buf { int x; };
5118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5119 static char *e (p, i)
5125 static char *f (char * (*g) (char **, int), char **p, ...)
5130 s = g (p, va_arg (v,int));
5135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5136 function prototypes and stuff, but not '\xHH' hex character constants.
5137 These don't provoke an error unfortunately, instead are silently treated
5138 as 'x'. The following induces an error, until -std is added to get
5139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5140 array size at least. It's necessary to write '\x00'==0 to get something
5141 that's true only with -std. */
5142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5145 inside strings and character constants. */
5147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5149 int test (int i, double x);
5150 struct s1 {int (*f) (int a);};
5151 struct s2 {int (*f) (double a);};
5152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5166 CC="$ac_save_CC $ac_arg"
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_cv_prog_cc_c89=$ac_arg
5170 rm -f core conftest.err conftest.$ac_objext
5171 test "x$ac_cv_prog_cc_c89" != "xno" && break
5173 rm -f conftest.$ac_ext
5178 case "x$ac_cv_prog_cc_c89" in
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5181 $as_echo "none needed" >&6; } ;;
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5184 $as_echo "unsupported" >&6; } ;;
5186 CC="$CC $ac_cv_prog_cc_c89"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5188 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5190 if test "x$ac_cv_prog_cc_c89" != xno; then :
5195 ac_cpp='$CPP $CPPFLAGS'
5196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 DEPDIR="${am__leading_dot}deps"
5201 ac_config_commands="$ac_config_commands depfiles"
5204 am_make=${MAKE-make}
5205 cat > confinc << 'END'
5207 @echo this is the am__doit target
5210 # If we don't find an include directive, just comment out the code.
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5212 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5216 # First try GNU make style include.
5217 echo "include confinc" > confmf
5218 # Ignore all kinds of additional output from `make'.
5219 case `$am_make -s -f confmf 2> /dev/null` in #(
5220 *the\ am__doit\ target*)
5226 # Now try BSD make style include.
5227 if test "$am__include" = "#"; then
5228 echo '.include
"confinc"' > confmf
5229 case `$am_make -s -f confmf 2> /dev/null` in #(
5230 *the\ am__doit\ target*)
5231 am__include=.include
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5240 $as_echo "$_am_result" >&6; }
5241 rm -f confinc confmf
5243 # Check whether --enable-dependency-tracking was given.
5244 if test "${enable_dependency_tracking+set}" = set; then :
5245 enableval=$enable_dependency_tracking;
5248 if test "x$enable_dependency_tracking" != xno; then
5249 am_depcomp="$ac_aux_dir/depcomp"
5252 if test "x$enable_dependency_tracking" != xno
; then
5262 depcc
="$CC" am_compiler_list
=
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265 $as_echo_n "checking dependency style of $depcc... " >&6; }
5266 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
5267 $as_echo_n "(cached) " >&6
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5288 am_cv_CC_dependencies_compiler_type
=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5293 case " $depcc " in #(
5294 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5297 for depmode
in $am_compiler_list; do
5298 # Setup a source with many dependencies, because some compilers
5299 # like to wrap large dependency lists on column 80 (with \), and
5300 # we should not choose a depcomp mode which is confused by this.
5302 # We need to recreate these files for each test, as the compiler may
5303 # overwrite some of them when testing with obscure command lines.
5304 # This happens at least with the AIX C compiler.
5306 for i
in 1 2 3 4 5 6; do
5307 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5308 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5309 # Solaris 8's {/usr,}/bin/sh.
5310 touch sub
/conftst
$i.h
5312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5314 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5315 # mode. It turns out that the SunPro C++ compiler does not properly
5316 # handle `-M -o', and we need to detect this. Also, some Intel
5317 # versions had trouble with output in subdirs
5318 am__obj
=sub
/conftest.
${OBJEXT-o}
5319 am__minus_obj
="-o $am__obj"
5322 # This depmode causes a compiler race in universal mode.
5323 test "$am__universal" = false ||
continue
5326 # after this tag, mechanisms are not by side-effect, so they'll
5327 # only be used when explicitly requested
5328 if test "x$enable_dependency_tracking" = xyes
; then
5334 msvisualcpp | msvcmsys
)
5335 # This compiler won't grok `-c -o', but also, the minuso test has
5336 # not run yet. These depmodes are late enough in the game, and
5337 # so weak that their functioning should not be impacted.
5338 am__obj
=conftest.
${OBJEXT-o}
5343 if depmode
=$depmode \
5344 source=sub
/conftest.c object
=$am__obj \
5345 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5346 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5347 >/dev
/null
2>conftest.err
&&
5348 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5349 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5350 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5351 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5352 # icc doesn't choke on unknown options, it will just issue warnings
5353 # or remarks (even with -Werror). So we grep stderr for any message
5354 # that says an option was ignored or not supported.
5355 # When given -MP, icc 7.0 and 7.1 complain thusly:
5356 # icc: Command line warning: ignoring option '-M'; no argument required
5357 # The diagnosis changed in icc 8.0:
5358 # icc: Command line remark: option '-MP' not supported
5359 if (grep 'ignoring option' conftest.err ||
5360 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5361 am_cv_CC_dependencies_compiler_type
=$depmode
5370 am_cv_CC_dependencies_compiler_type
=none
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5375 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5376 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5379 test "x$enable_dependency_tracking" != xno \
5380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5382 am__fastdepCC_FALSE
='#'
5384 am__fastdepCC_TRUE
='#'
5385 am__fastdepCC_FALSE
=
5389 if test "x$CC" != xcc
; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5391 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5394 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5396 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5397 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5398 if eval \
${ac_cv_prog_cc_${ac_cc}_c_o+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5412 # Make sure it works both with $CC and with simple cc.
5413 # We do the test twice because some compilers refuse to overwrite an
5414 # existing .o file with -o, though they will create one.
5415 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5417 if { { case "(($ac_try" in
5418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5422 $as_echo "$ac_try_echo"; } >&5
5423 (eval "$ac_try") 2>&5
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; } &&
5427 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5429 *) ac_try_echo
=$ac_try;;
5431 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5432 $as_echo "$ac_try_echo"; } >&5
5433 (eval "$ac_try") 2>&5
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; };
5438 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5439 if test "x$CC" != xcc
; then
5440 # Test first that cc exists at all.
5441 if { ac_try
='cc -c conftest.$ac_ext >&5'
5442 { { case "(($ac_try" in
5443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5447 $as_echo "$ac_try_echo"; } >&5
5448 (eval "$ac_try") 2>&5
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; }; then
5452 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5454 if { { case "(($ac_try" in
5455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5456 *) ac_try_echo
=$ac_try;;
5458 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5459 $as_echo "$ac_try_echo"; } >&5
5460 (eval "$ac_try") 2>&5
5462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5463 test $ac_status = 0; } &&
5464 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5469 $as_echo "$ac_try_echo"; } >&5
5470 (eval "$ac_try") 2>&5
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; };
5478 # cc exists but doesn't like -o.
5479 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5484 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5486 rm -f core conftest*
5489 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491 $as_echo "yes" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5496 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5500 # FIXME: we rely on the cache variable name because
5501 # there is no other way.
5503 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5504 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5505 if test "$am_t" != yes; then
5506 # Losing compiler, so override with the script.
5507 # FIXME: It is wrong to rewrite CC.
5508 # But if we don't then we get into trouble of one sort or another.
5509 # A longer-term fix would be to have automake use am__CC in this case,
5510 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5511 CC="$am_aux_dir/compile $CC"
5516 # Initialize gnulib right after verifying that the C compiler works.
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_RANLIB+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 if test -n "$RANLIB"; then
5526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 RANLIB=$ac_cv_prog_RANLIB
5546 if test -n "$RANLIB"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5548 $as_echo "$RANLIB" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5556 if test -z "$ac_cv_prog_RANLIB"; then
5557 ac_ct_RANLIB=$RANLIB
5558 # Extract the first word of "ranlib", so it can be a program name with args.
5559 set dummy ranlib; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 if test -n "$ac_ct_RANLIB"; then
5566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_ac_ct_RANLIB="ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5586 if test -n "$ac_ct_RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5588 $as_echo "$ac_ct_RANLIB" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5594 if test "x$ac_ct_RANLIB" = x; then
5597 case $cross_compiling:$ac_tool_warned in
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601 ac_tool_warned=yes ;;
5603 RANLIB=$ac_ct_RANLIB
5606 RANLIB="$ac_cv_prog_RANLIB"
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5616 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5617 # On Suns, sometimes $CPP names a directory.
5618 if test -n "$CPP" && test -d "$CPP"; then
5621 if test -z "$CPP"; then
5622 if ${ac_cv_prog_CPP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5625 # Double quotes because CPP needs to be expanded
5626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5629 for ac_c_preproc_warn_flag in '' yes
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5640 # include <limits.h>
5642 # include <assert.h>
5646 if ac_fn_c_try_cpp "$LINENO"; then :
5649 # Broken: fails on valid input.
5652 rm -f conftest.err conftest.i conftest.$ac_ext
5654 # OK, works on sane cases. Now check whether nonexistent headers
5655 # can be detected and how.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <ac_nonexistent.h>
5660 if ac_fn_c_try_cpp "$LINENO"; then :
5661 # Broken: success on invalid input.
5664 # Passes both tests.
5668 rm -f conftest.err conftest.i conftest.$ac_ext
5671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672 rm -f conftest.i conftest.err conftest.
$ac_ext
5673 if $ac_preproc_ok; then :
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5686 $as_echo "$CPP" >&6; }
5688 for ac_c_preproc_warn_flag
in '' yes
5690 # Use a header file that comes with gcc, so configuring glibc
5691 # with a fresh cross-compiler works.
5692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5693 # <limits.h> exists even on freestanding compilers.
5694 # On the NeXT, cc -E runs the code through the compiler's parser,
5695 # not just through cpp. "Syntax error" is here to catch this case.
5696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5699 # include <limits.h>
5701 # include <assert.h>
5705 if ac_fn_c_try_cpp
"$LINENO"; then :
5708 # Broken: fails on valid input.
5711 rm -f conftest.err conftest.i conftest.
$ac_ext
5713 # OK, works on sane cases. Now check whether nonexistent headers
5714 # can be detected and how.
5715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <ac_nonexistent.h>
5719 if ac_fn_c_try_cpp
"$LINENO"; then :
5720 # Broken: success on invalid input.
5723 # Passes both tests.
5727 rm -f conftest.err conftest.i conftest.
$ac_ext
5730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5731 rm -f conftest.i conftest.err conftest.
$ac_ext
5732 if $ac_preproc_ok; then :
5735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5737 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5738 See \`config.log' for more details" "$LINENO" 5; }
5742 ac_cpp
='$CPP $CPPFLAGS'
5743 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5749 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5750 if ${ac_cv_path_GREP+:} false
; then :
5751 $as_echo_n "(cached) " >&6
5753 if test -z "$GREP"; then
5754 ac_path_GREP_found
=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5757 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5760 test -z "$as_dir" && as_dir
=.
5761 for ac_prog
in grep ggrep
; do
5762 for ac_exec_ext
in '' $ac_executable_extensions; do
5763 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5764 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5765 # Check for GNU ac_path_GREP and select it if it is found.
5766 # Check for GNU $ac_path_GREP
5767 case `"$ac_path_GREP" --version 2>&1` in
5769 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5772 $as_echo_n 0123456789 >"conftest.in"
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo 'GREP' >> "conftest.nl"
5779 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5780 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5781 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5782 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_GREP
="$ac_path_GREP"
5785 ac_path_GREP_max
=$ac_count
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5790 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5793 $ac_path_GREP_found && break 3
5798 if test -z "$ac_cv_path_GREP"; then
5799 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5802 ac_cv_path_GREP
=$GREP
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5807 $as_echo "$ac_cv_path_GREP" >&6; }
5808 GREP
="$ac_cv_path_GREP"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5812 $as_echo_n "checking for egrep... " >&6; }
5813 if ${ac_cv_path_EGREP+:} false
; then :
5814 $as_echo_n "(cached) " >&6
5816 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5817 then ac_cv_path_EGREP
="$GREP -E"
5819 if test -z "$EGREP"; then
5820 ac_path_EGREP_found
=false
5821 # Loop through the user's path and test for each of PROGNAME-LIST
5822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5823 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5826 test -z "$as_dir" && as_dir
=.
5827 for ac_prog
in egrep; do
5828 for ac_exec_ext
in '' $ac_executable_extensions; do
5829 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5830 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5831 # Check for GNU ac_path_EGREP and select it if it is found.
5832 # Check for GNU $ac_path_EGREP
5833 case `"$ac_path_EGREP" --version 2>&1` in
5835 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5838 $as_echo_n 0123456789 >"conftest.in"
5841 cat "conftest.in" "conftest.in" >"conftest.tmp"
5842 mv "conftest.tmp" "conftest.in"
5843 cp "conftest.in" "conftest.nl"
5844 $as_echo 'EGREP' >> "conftest.nl"
5845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5846 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5847 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5849 # Best one so far, save it but keep looking for a better one
5850 ac_cv_path_EGREP
="$ac_path_EGREP"
5851 ac_path_EGREP_max
=$ac_count
5853 # 10*(2^10) chars as input seems more than enough
5854 test $ac_count -gt 10 && break
5856 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5859 $ac_path_EGREP_found && break 3
5864 if test -z "$ac_cv_path_EGREP"; then
5865 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5868 ac_cv_path_EGREP
=$EGREP
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5874 $as_echo "$ac_cv_path_EGREP" >&6; }
5875 EGREP
="$ac_cv_path_EGREP"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5879 $as_echo_n "checking for ANSI C header files... " >&6; }
5880 if ${ac_cv_header_stdc+:} false
; then :
5881 $as_echo_n "(cached) " >&6
5883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5898 if ac_fn_c_try_compile
"$LINENO"; then :
5899 ac_cv_header_stdc
=yes
5901 ac_cv_header_stdc
=no
5903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5905 if test $ac_cv_header_stdc = yes; then
5906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913 $EGREP "memchr" >/dev
/null
2>&1; then :
5916 ac_cv_header_stdc
=no
5922 if test $ac_cv_header_stdc = yes; then
5923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 $EGREP "free" >/dev
/null
2>&1; then :
5933 ac_cv_header_stdc
=no
5939 if test $ac_cv_header_stdc = yes; then
5940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5941 if test "$cross_compiling" = yes; then :
5944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5948 #if ((' ' & 0x0FF) == 0x020)
5949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5952 # define ISLOWER(c) \
5953 (('a' <= (c) && (c) <= 'i') \
5954 || ('j' <= (c) && (c) <= 'r') \
5955 || ('s' <= (c) && (c) <= 'z'))
5956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5964 for (i = 0; i < 256; i++)
5965 if (XOR (islower (i), ISLOWER (i))
5966 || toupper (i) != TOUPPER (i))
5971 if ac_fn_c_try_run
"$LINENO"; then :
5974 ac_cv_header_stdc
=no
5976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5983 $as_echo "$ac_cv_header_stdc" >&6; }
5984 if test $ac_cv_header_stdc = yes; then
5986 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5991 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5992 inttypes.h stdint.h unistd.h
5994 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5997 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5998 cat >>confdefs.h
<<_ACEOF
5999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6010 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6011 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
6018 if test "$MINIX" = yes; then
6020 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6023 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6026 $as_echo "#define _MINIX 1" >>confdefs.h
6033 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6040 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6041 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
6042 $as_echo_n "(cached) " >&6
6044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6047 # define __EXTENSIONS__ 1
6048 $ac_includes_default
6057 if ac_fn_c_try_compile
"$LINENO"; then :
6058 ac_cv_safe_to_define___extensions__
=yes
6060 ac_cv_safe_to_define___extensions__
=no
6062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6065 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6066 test $ac_cv_safe_to_define___extensions__ = yes &&
6067 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6069 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6071 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6073 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6075 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6086 # Code from module arg-nonnull:
6087 # Code from module c++defs:
6088 # Code from module crypto/md5:
6089 # Code from module dtoastr:
6090 # Code from module extensions:
6092 # Code from module getloadavg:
6093 # Code from module getopt-gnu:
6094 # Code from module getopt-posix:
6095 # Code from module gettext-h:
6096 # Code from module ignore-value:
6097 # Code from module include_next:
6098 # Code from module intprops:
6099 # Code from module mktime:
6100 # Code from module multiarch:
6101 # Code from module stdbool:
6102 # Code from module stddef:
6103 # Code from module stdint:
6104 # Code from module stdlib:
6105 # Code from module strftime:
6106 # Code from module time:
6107 # Code from module time_r:
6108 # Code from module unistd:
6109 # Code from module warn-on-use:
6112 # On Suns, sometimes $CPP names a directory.
6113 if test -n "$CPP" && test -d "$CPP"; then
6117 ## If not using gcc, and on Solaris, and no CPP specified, see if
6118 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6119 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
6120 test x
"$CPP" = x
; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6122 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6123 if ${emacs_cv_sunpro_c+:} false
; then :
6124 $as_echo_n "(cached) " >&6
6126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6140 if ac_fn_c_try_link
"$LINENO"; then :
6141 emacs_cv_sunpro_c
=yes
6143 emacs_cv_sunpro_c
=no
6145 rm -f core conftest.err conftest.
$ac_objext \
6146 conftest
$ac_exeext conftest.
$ac_ext
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6150 $as_echo "$emacs_cv_sunpro_c" >&6; }
6152 if test x
"$emacs_cv_sunpro_c" = xyes
; then
6153 NON_GNU_CPP
="$CC -E -Xs"
6157 #### Some systems specify a CPP to use unless we are using GCC.
6158 #### Now that we know whether we are using GCC, we can decide whether
6159 #### to use that one.
6160 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
6165 #### Some systems specify a CC to use unless we are using GCC.
6166 #### Now that we know whether we are using GCC, we can decide whether
6167 #### to use that one.
6168 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
6169 test x
$cc_specified != xyes
6174 if test x
$GCC = xyes
; then
6175 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
6177 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
6180 ### Use -Wdeclaration-after-statement if the compiler supports it
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6182 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6183 SAVE_CFLAGS
="$CFLAGS"
6184 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
6185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6196 if ac_fn_c_try_compile
"$LINENO"; then :
6201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6202 if test $has_option = yes; then
6203 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6206 $as_echo "$has_option" >&6; }
6207 CFLAGS
="$SAVE_CFLAGS"
6211 ### Use -Wold-style-definition if the compiler supports it
6212 # This can be removed when conversion to standard C is finished.
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6214 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6215 SAVE_CFLAGS
="$CFLAGS"
6216 CFLAGS
="$CFLAGS -Wold-style-definition"
6217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6228 if ac_fn_c_try_compile
"$LINENO"; then :
6233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6234 if test $has_option = yes; then
6235 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6238 $as_echo "$has_option" >&6; }
6239 CFLAGS
="$SAVE_CFLAGS"
6243 ### Use -Wimplicit-function-declaration if the compiler supports it
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6245 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6246 SAVE_CFLAGS
="$CFLAGS"
6247 CFLAGS
="$CFLAGS -Wimplicit-function-declaration"
6248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6259 if ac_fn_c_try_compile
"$LINENO"; then :
6264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6265 if test $has_option = yes; then
6266 C_WARNINGS_SWITCH
="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6269 $as_echo "$has_option" >&6; }
6270 CFLAGS
="$SAVE_CFLAGS"
6277 #### Some other nice autoconf tests.
6280 ac_cpp
='$CPP $CPPFLAGS'
6281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6285 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6286 # On Suns, sometimes $CPP names a directory.
6287 if test -n "$CPP" && test -d "$CPP"; then
6290 if test -z "$CPP"; then
6291 if ${ac_cv_prog_CPP+:} false
; then :
6292 $as_echo_n "(cached) " >&6
6294 # Double quotes because CPP needs to be expanded
6295 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6298 for ac_c_preproc_warn_flag
in '' yes
6300 # Use a header file that comes with gcc, so configuring glibc
6301 # with a fresh cross-compiler works.
6302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6303 # <limits.h> exists even on freestanding compilers.
6304 # On the NeXT, cc -E runs the code through the compiler's parser,
6305 # not just through cpp. "Syntax error" is here to catch this case.
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6309 # include <limits.h>
6311 # include <assert.h>
6315 if ac_fn_c_try_cpp
"$LINENO"; then :
6318 # Broken: fails on valid input.
6321 rm -f conftest.err conftest.i conftest.
$ac_ext
6323 # OK, works on sane cases. Now check whether nonexistent headers
6324 # can be detected and how.
6325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 #include <ac_nonexistent.h>
6329 if ac_fn_c_try_cpp
"$LINENO"; then :
6330 # Broken: success on invalid input.
6333 # Passes both tests.
6337 rm -f conftest.err conftest.i conftest.
$ac_ext
6340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6341 rm -f conftest.i conftest.err conftest.
$ac_ext
6342 if $ac_preproc_ok; then :
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6355 $as_echo "$CPP" >&6; }
6357 for ac_c_preproc_warn_flag
in '' yes
6359 # Use a header file that comes with gcc, so configuring glibc
6360 # with a fresh cross-compiler works.
6361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362 # <limits.h> exists even on freestanding compilers.
6363 # On the NeXT, cc -E runs the code through the compiler's parser,
6364 # not just through cpp. "Syntax error" is here to catch this case.
6365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6368 # include <limits.h>
6370 # include <assert.h>
6374 if ac_fn_c_try_cpp
"$LINENO"; then :
6377 # Broken: fails on valid input.
6380 rm -f conftest.err conftest.i conftest.
$ac_ext
6382 # OK, works on sane cases. Now check whether nonexistent headers
6383 # can be detected and how.
6384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 #include <ac_nonexistent.h>
6388 if ac_fn_c_try_cpp
"$LINENO"; then :
6389 # Broken: success on invalid input.
6392 # Passes both tests.
6396 rm -f conftest.err conftest.i conftest.
$ac_ext
6399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6400 rm -f conftest.i conftest.err conftest.
$ac_ext
6401 if $ac_preproc_ok; then :
6404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6406 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6407 See \`config.log' for more details" "$LINENO" 5; }
6411 ac_cpp
='$CPP $CPPFLAGS'
6412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6417 if test "x$RANLIB" = x
; then
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6420 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_RANLIB+:} false
; then :
6424 $as_echo_n "(cached) " >&6
6426 if test -n "$RANLIB"; then
6427 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir
=.
6434 for ac_exec_ext
in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 RANLIB
=$ac_cv_prog_RANLIB
6447 if test -n "$RANLIB"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6449 $as_echo "$RANLIB" >&6; }
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6457 if test -z "$ac_cv_prog_RANLIB"; then
6458 ac_ct_RANLIB
=$RANLIB
6459 # Extract the first word of "ranlib", so it can be a program name with args.
6460 set dummy ranlib
; ac_word
=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$ac_ct_RANLIB"; then
6467 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir
=.
6474 for ac_exec_ext
in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6487 if test -n "$ac_ct_RANLIB"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6489 $as_echo "$ac_ct_RANLIB" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6495 if test "x$ac_ct_RANLIB" = x
; then
6498 case $cross_compiling:$ac_tool_warned in
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned
=yes ;;
6504 RANLIB
=$ac_ct_RANLIB
6507 RANLIB
="$ac_cv_prog_RANLIB"
6512 ## Although we're running on an amd64 kernel, we're actually compiling for
6513 ## the x86 architecture. The user should probably have provided an
6514 ## explicit --build to `configure', but if everything else than the kernel
6515 ## is running in i386 mode, we can help them out.
6516 if test "$machine" = "amdx86-64"; then
6517 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6518 if test "x$ac_cv_have_decl_i386" = xyes
; then :
6522 if test "$ac_cv_have_decl_i386" = "yes"; then
6523 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6525 machfile
="m/${machine}.h"
6529 # Extract the first word of "install-info", so it can be a program name with args.
6530 set dummy install-info
; ac_word
=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6534 $as_echo_n "(cached) " >&6
6536 case $INSTALL_INFO in
6538 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir
=.
6546 for ac_exec_ext
in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6560 if test -n "$INSTALL_INFO"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6562 $as_echo "$INSTALL_INFO" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6569 # Extract the first word of "install-info", so it can be a program name with args.
6570 set dummy install-info
; ac_word
=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6574 $as_echo_n "(cached) " >&6
6576 case $INSTALL_INFO in
6578 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6582 for as_dir
in /usr
/sbin
6585 test -z "$as_dir" && as_dir
=.
6586 for ac_exec_ext
in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6600 if test -n "$INSTALL_INFO"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6602 $as_echo "$INSTALL_INFO" >&6; }
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6609 # Extract the first word of "install-info", so it can be a program name with args.
6610 set dummy install-info
; ac_word
=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
6614 $as_echo_n "(cached) " >&6
6616 case $INSTALL_INFO in
6618 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir
=.
6626 for ac_exec_ext
in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
6640 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6641 if test -n "$INSTALL_INFO"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6643 $as_echo "$INSTALL_INFO" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6650 # Extract the first word of "gzip", so it can be a program name with args.
6651 set dummy
gzip; ac_word
=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_path_GZIP_PROG+:} false
; then :
6655 $as_echo_n "(cached) " >&6
6659 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
6662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir
=.
6667 for ac_exec_ext
in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 GZIP_PROG
=$ac_cv_path_GZIP_PROG
6681 if test -n "$GZIP_PROG"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6683 $as_echo "$GZIP_PROG" >&6; }
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6692 ## Need makeinfo >= 4.6 (?) to build the manuals.
6693 # Extract the first word of "makeinfo", so it can be a program name with args.
6694 set dummy makeinfo
; ac_word
=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_path_MAKEINFO+:} false
; then :
6698 $as_echo_n "(cached) " >&6
6702 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
6705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir
=.
6710 for ac_exec_ext
in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
6724 MAKEINFO
=$ac_cv_path_MAKEINFO
6725 if test -n "$MAKEINFO"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6727 $as_echo "$MAKEINFO" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6734 if test "$MAKEINFO" != "no" && \
6735 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
6739 ## Makeinfo is unusual. For a released Emacs, the manuals are
6740 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6741 ## therefore in the category of "special tools" not normally required, which
6742 ## configure does not have to check for (eg autoconf itself).
6743 ## In a Bazaar checkout on the other hand, the manuals are not included.
6744 ## So makeinfo is a requirement to build from Bazaar, and configure
6745 ## should test for it as it does for any other build requirement.
6746 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6747 ## with pre-built manuals, from a Bazaar checkout.
6750 if test "$MAKEINFO" = "no"; then
6752 if test "x${with_makeinfo}" = "xno"; then
6754 elif test ! -e $srcdir/info
/emacs
; then
6755 as_fn_error $?
"You do not seem to have makeinfo >= 4.6, and your
6756 source tree does not seem to have pre-built manuals in the \`info' directory.
6757 Either install a suitable version of makeinfo, or re-run configure
6758 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6764 if test x
$GCC = xyes
; then
6765 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
6766 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
6768 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
6769 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6773 late_LDFLAGS
=$LDFLAGS
6774 if test x
$GCC = xyes
; then
6775 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
6777 LDFLAGS
="$LDFLAGS -znocombreloc"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6781 $as_echo_n "checking for -znocombreloc... " >&6; }
6782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6793 if ac_fn_c_try_link
"$LINENO"; then :
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6795 $as_echo "yes" >&6; }
6797 LDFLAGS
=$late_LDFLAGS
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6801 rm -f core conftest.err conftest.
$ac_objext \
6802 conftest
$ac_exeext conftest.
$ac_ext
6805 # The value of CPP is a quoted variable reference, so we need to do this
6806 # to get its actual value...
6807 CPP
=`eval "echo $CPP"`
6810 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
6812 your-opsys-here
) CANNOT_DUMP
=yes ;;
6815 test "$CANNOT_DUMP" = "yes" && \
6817 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6823 UNEXEC_OBJ
=unexelf.o
6825 # MSDOS uses unexcoff.o
6826 # MSWindows uses unexw32.o
6828 UNEXEC_OBJ
=unexaix.o
6834 UNEXEC_OBJ
=unexmacosx.o
6837 UNEXEC_OBJ
=unexhp9k800.o
6840 # Use the Solaris dldump() function, called from unexsol.c, to dump
6841 # emacs, instead of the generic ELF dump code found in unexelf.c.
6842 # The resulting binary has a complete symbol table, and is better
6843 # for debugging and other observability tools (debuggers, pstack, etc).
6845 # If you encounter a problem using dldump(), please consider sending
6846 # a message to the OpenSolaris tools-linking mailing list:
6847 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6849 # It is likely that dldump() works with older Solaris too, but this has
6850 # not been tested, so for now this change is for Solaris 10 or newer.
6851 UNEXEC_OBJ
=unexsol.o
6858 ## Let `ld' find image libs and similar things in /usr/local/lib.
6859 ## The system compiler, GCC, has apparently been modified to not
6860 ## look there, contrary to what a stock GCC would do.
6861 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
6865 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6866 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
6870 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6874 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6875 ## otherwise Emacs dumps core on elf systems.
6876 LD_SWITCH_SYSTEM
="-Z"
6881 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
6883 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6884 ## which has not been defined yet. When this was handled with cpp,
6885 ## it was expanded to null when configure sourced the s/*.h file.
6886 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6887 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6888 ## (or somesuch), but because it is supposed to go at the _front_
6889 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6890 ## Compare with the gnu-linux case below, which added to the end
6891 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6892 ## LD_SWITCH_SYSTEM_TEMACS.
6895 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6896 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6901 if test "$machine" = "alpha"; then
6902 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6903 if test "x$ac_cv_have_decl___ELF__" = xyes
; then :
6907 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6908 ## With ELF, make sure that all common symbols get allocated to in the
6909 ## data section. Otherwise, the dump of temacs may miss variables in
6910 ## the shared library that have been initialized. For example, with
6911 ## GNU libc, __malloc_initialized would normally be resolved to the
6912 ## shared library's .bss section, which is fatal.
6913 if test "x$GCC" = "xyes"; then
6914 C_SWITCH_MACHINE
="-fno-common"
6916 as_fn_error $?
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6919 UNEXEC_OBJ
=unexalpha.o
6927 ## Some programs in src produce warnings saying certain subprograms
6928 ## are too complex and need a MAXMEM value greater than 2000 for
6929 ## additional optimization. --nils@exp-math.uni-essen.de
6930 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6931 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
6932 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6933 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6939 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6940 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
6942 freebsd
) LIBS_SYSTEM
="-lutil" ;;
6944 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
6946 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
6948 ## Motif needs -lgen.
6949 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
6954 ### Make sure subsequent tests use flags consistent with the build flags.
6956 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
6957 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
6959 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6962 # Check whether --enable-largefile was given.
6963 if test "${enable_largefile+set}" = set; then :
6964 enableval
=$enable_largefile;
6967 if test "$enable_largefile" != no
; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6970 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6971 if ${ac_cv_sys_largefile_CC+:} false
; then :
6972 $as_echo_n "(cached) " >&6
6974 ac_cv_sys_largefile_CC
=no
6975 if test "$GCC" != yes; then
6978 # IRIX 6.2 and later do not support large files by default,
6979 # so use the C compiler's -n32 option if that helps.
6980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 #include <sys/types.h>
6983 /* Check that off_t can represent 2**63 - 1 correctly.
6984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6985 since some C++ compilers masquerading as C compilers
6986 incorrectly reject 9223372036854775807. */
6987 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6989 && LARGE_OFF_T % 2147483647 == 1)
6999 if ac_fn_c_try_compile
"$LINENO"; then :
7002 rm -f core conftest.err conftest.
$ac_objext
7004 if ac_fn_c_try_compile
"$LINENO"; then :
7005 ac_cv_sys_largefile_CC
=' -n32'; break
7007 rm -f core conftest.err conftest.
$ac_objext
7011 rm -f conftest.
$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7015 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7016 if test "$ac_cv_sys_largefile_CC" != no
; then
7017 CC
=$CC$ac_cv_sys_largefile_CC
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7021 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7022 if ${ac_cv_sys_file_offset_bits+:} false
; then :
7023 $as_echo_n "(cached) " >&6
7026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7029 /* Check that off_t can represent 2**63 - 1 correctly.
7030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7031 since some C++ compilers masquerading as C compilers
7032 incorrectly reject 9223372036854775807. */
7033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7035 && LARGE_OFF_T % 2147483647 == 1)
7045 if ac_fn_c_try_compile
"$LINENO"; then :
7046 ac_cv_sys_file_offset_bits
=no
; break
7048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 #define _FILE_OFFSET_BITS 64
7052 #include <sys/types.h>
7053 /* Check that off_t can represent 2**63 - 1 correctly.
7054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7055 since some C++ compilers masquerading as C compilers
7056 incorrectly reject 9223372036854775807. */
7057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7059 && LARGE_OFF_T % 2147483647 == 1)
7069 if ac_fn_c_try_compile
"$LINENO"; then :
7070 ac_cv_sys_file_offset_bits
=64; break
7072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7073 ac_cv_sys_file_offset_bits
=unknown
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7078 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7079 case $ac_cv_sys_file_offset_bits in #(
7082 cat >>confdefs.h
<<_ACEOF
7083 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7088 if test $ac_cv_sys_file_offset_bits = unknown
; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7090 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7091 if ${ac_cv_sys_large_files+:} false
; then :
7092 $as_echo_n "(cached) " >&6
7095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 /* Check that off_t can represent 2**63 - 1 correctly.
7099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7100 since some C++ compilers masquerading as C compilers
7101 incorrectly reject 9223372036854775807. */
7102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7104 && LARGE_OFF_T % 2147483647 == 1)
7114 if ac_fn_c_try_compile
"$LINENO"; then :
7115 ac_cv_sys_large_files
=no
; break
7117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 #define _LARGE_FILES 1
7121 #include <sys/types.h>
7122 /* Check that off_t can represent 2**63 - 1 correctly.
7123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7124 since some C++ compilers masquerading as C compilers
7125 incorrectly reject 9223372036854775807. */
7126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7128 && LARGE_OFF_T % 2147483647 == 1)
7138 if ac_fn_c_try_compile
"$LINENO"; then :
7139 ac_cv_sys_large_files
=1; break
7141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7142 ac_cv_sys_large_files
=unknown
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7147 $as_echo "$ac_cv_sys_large_files" >&6; }
7148 case $ac_cv_sys_large_files in #(
7151 cat >>confdefs.h
<<_ACEOF
7152 #define _LARGE_FILES $ac_cv_sys_large_files
7162 ## If user specified a crt-dir, use that unconditionally.
7163 if test "X$CRT_DIR" = "X"; then
7165 case "$canonical" in
7166 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
7167 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7168 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7169 ## For anything else (eg /usr/lib32), it is up the user to specify
7170 ## the location (bug#5655).
7171 ## Test for crtn.o, not just the directory, because sometimes the
7172 ## directory exists but does not have the relevant files (bug#1287).
7173 ## FIXME better to test for binary compatibility somehow.
7174 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
7177 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
7181 hpux10-20
) CRT_DIR
=/lib
;;
7184 ## Default is /usr/lib.
7185 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
7189 ## Some platforms don't use any of these files, so it is not
7190 ## appropriate to put this test outside the if block.
7191 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
7192 as_fn_error $?
"crt*.o not found in specified location." "$LINENO" 5
7205 START_FILES
='pre-crt0.o'
7208 ## Adding -lm confuses the dynamic linker, so omit it.
7210 START_FILES
='pre-crt0.o'
7213 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7214 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7216 gnu-linux | gnu-kfreebsd
)
7217 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7218 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7220 hpux10-20 | hpux11
)
7222 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
7225 if test -f $CRT_DIR/crti.o
; then
7226 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7227 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7229 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7230 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7241 if test "${with_sound}" != "no"; then
7242 # Sound support for GNU/Linux and the free BSDs.
7243 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
7245 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7246 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7247 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7248 cat >>confdefs.h
<<_ACEOF
7249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 have_sound_header
=yes
7256 # Emulation library used on NetBSD.
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7258 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7259 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false
; then :
7260 $as_echo_n "(cached) " >&6
7262 ac_check_lib_save_LIBS
=$LIBS
7263 LIBS
="-lossaudio $LIBS"
7264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7267 /* Override any GCC internal prototype to avoid an error.
7268 Use char because int might match the return type of a GCC
7269 builtin and then its argument prototype would still apply. */
7277 return _oss_ioctl ();
7282 if ac_fn_c_try_link
"$LINENO"; then :
7283 ac_cv_lib_ossaudio__oss_ioctl
=yes
7285 ac_cv_lib_ossaudio__oss_ioctl
=no
7287 rm -f core conftest.err conftest.
$ac_objext \
7288 conftest
$ac_exeext conftest.
$ac_ext
7289 LIBS
=$ac_check_lib_save_LIBS
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7292 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7293 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes
; then :
7302 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
7306 # Extract the first word of "pkg-config", so it can be a program name with args.
7307 set dummy pkg-config
; ac_word
=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7311 $as_echo_n "(cached) " >&6
7315 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir
=.
7323 for ac_exec_ext
in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7337 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7338 if test -n "$PKG_CONFIG"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7340 $as_echo "$PKG_CONFIG" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7348 if test "$PKG_CONFIG" = "no" ; then
7351 PKG_CONFIG_MIN_VERSION
=0.9.0
7352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7354 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7356 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7358 $as_echo "yes" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7362 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7363 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7365 $as_echo "$ALSA_CFLAGS" >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7368 $as_echo_n "checking ALSA_LIBS... " >&6; }
7369 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7371 $as_echo "$ALSA_LIBS" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7377 ## If we have a custom action on failure, don't print errors, but
7378 ## do set a variable so people can do so.
7379 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7391 if test $succeeded = yes; then
7397 if test $HAVE_ALSA = yes; then
7398 SAVE_CFLAGS
="$CFLAGS"
7399 SAVE_LDFLAGS
="$LDFLAGS"
7400 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
7401 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
7402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #include <asoundlib.h>
7408 snd_lib_error_set_handler (0);
7413 if ac_fn_c_try_compile
"$LINENO"; then :
7414 emacs_alsa_normal
=yes
7416 emacs_alsa_normal
=no
7418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7419 if test "$emacs_alsa_normal" != yes; then
7420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <alsa/asoundlib.h>
7426 snd_lib_error_set_handler (0);
7431 if ac_fn_c_try_compile
"$LINENO"; then :
7432 emacs_alsa_subdir
=yes
7434 emacs_alsa_subdir
=no
7436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7437 if test "$emacs_alsa_subdir" != yes; then
7438 as_fn_error $?
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7440 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7443 CFLAGS
="$SAVE_CFLAGS"
7444 LDFLAGS
="$SAVE_LDFLAGS"
7445 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
7446 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
7448 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7452 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
7454 gnu-linux|freebsd|netbsd
)
7456 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7465 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
7466 linux
/version.h sys
/systeminfo.h limits.h \
7467 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
7468 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
7469 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
7471 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7472 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7473 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7474 cat >>confdefs.h
<<_ACEOF
7475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7484 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <sys/personality.h>
7491 personality (PER_LINUX32)
7496 if ac_fn_c_try_compile
"$LINENO"; then :
7497 emacs_cv_personality_linux32
=yes
7499 emacs_cv_personality_linux32
=no
7501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7503 $as_echo "$emacs_cv_personality_linux32" >&6; }
7505 if test $emacs_cv_personality_linux32 = yes; then
7507 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7511 for ac_header
in term.h
7513 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
7514 if test "x$ac_cv_header_term_h" = xyes
; then :
7515 cat >>confdefs.h
<<_ACEOF
7516 #define HAVE_TERM_H 1
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7524 $as_echo_n "checking for ANSI C header files... " >&6; }
7525 if ${ac_cv_header_stdc+:} false
; then :
7526 $as_echo_n "(cached) " >&6
7528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7543 if ac_fn_c_try_compile
"$LINENO"; then :
7544 ac_cv_header_stdc
=yes
7546 ac_cv_header_stdc
=no
7548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7550 if test $ac_cv_header_stdc = yes; then
7551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7558 $EGREP "memchr" >/dev
/null
2>&1; then :
7561 ac_cv_header_stdc
=no
7567 if test $ac_cv_header_stdc = yes; then
7568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7575 $EGREP "free" >/dev
/null
2>&1; then :
7578 ac_cv_header_stdc
=no
7584 if test $ac_cv_header_stdc = yes; then
7585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7586 if test "$cross_compiling" = yes; then :
7589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7593 #if ((' ' & 0x0FF) == 0x020)
7594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7597 # define ISLOWER(c) \
7598 (('a' <= (c) && (c) <= 'i') \
7599 || ('j' <= (c) && (c) <= 'r') \
7600 || ('s' <= (c) && (c) <= 'z'))
7601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7609 for (i = 0; i < 256; i++)
7610 if (XOR (islower (i), ISLOWER (i))
7611 || toupper (i) != TOUPPER (i))
7616 if ac_fn_c_try_run
"$LINENO"; then :
7619 ac_cv_header_stdc
=no
7621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7622 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7628 $as_echo "$ac_cv_header_stdc" >&6; }
7629 if test $ac_cv_header_stdc = yes; then
7631 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7636 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7637 if ${ac_cv_header_time+:} false
; then :
7638 $as_echo_n "(cached) " >&6
7640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 #include <sys/types.h>
7643 #include <sys/time.h>
7649 if ((struct tm *) 0)
7655 if ac_fn_c_try_compile
"$LINENO"; then :
7656 ac_cv_header_time
=yes
7658 ac_cv_header_time
=no
7660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7663 $as_echo "$ac_cv_header_time" >&6; }
7664 if test $ac_cv_header_time = yes; then
7666 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7670 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7671 if test "x$ac_cv_have_decl_sys_siglist" = xyes
; then :
7677 cat >>confdefs.h
<<_ACEOF
7678 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7681 if test $ac_cv_have_decl_sys_siglist != yes; then
7682 # For Tru64, at least:
7683 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7684 if test "x$ac_cv_have_decl___sys_siglist" = xyes
; then :
7690 cat >>confdefs.h
<<_ACEOF
7691 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7694 if test $ac_cv_have_decl___sys_siglist = yes; then
7696 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7701 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7702 if ${ac_cv_header_sys_wait_h+:} 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>
7708 #include <sys/wait.h>
7710 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7726 if ac_fn_c_try_compile
"$LINENO"; then :
7727 ac_cv_header_sys_wait_h
=yes
7729 ac_cv_header_sys_wait_h
=no
7731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7734 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7735 if test $ac_cv_header_sys_wait_h = yes; then
7737 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7743 $as_echo_n "checking for struct utimbuf... " >&6; }
7744 if ${emacs_cv_struct_utimbuf+:} false
; then :
7745 $as_echo_n "(cached) " >&6
7747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749 #ifdef TIME_WITH_SYS_TIME
7750 #include <sys/time.h>
7753 #ifdef HAVE_SYS_TIME_H
7754 #include <sys/time.h>
7765 static struct utimbuf x; x.actime = x.modtime;
7770 if ac_fn_c_try_compile
"$LINENO"; then :
7771 emacs_cv_struct_utimbuf
=yes
7773 emacs_cv_struct_utimbuf
=no
7775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7778 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7779 if test $emacs_cv_struct_utimbuf = yes; then
7781 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7786 $as_echo_n "checking return type of signal handlers... " >&6; }
7787 if ${ac_cv_type_signal+:} false
; then :
7788 $as_echo_n "(cached) " >&6
7790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7792 #include <sys/types.h>
7798 return *(signal (0, 0)) (0) == 1;
7803 if ac_fn_c_try_compile
"$LINENO"; then :
7804 ac_cv_type_signal
=int
7806 ac_cv_type_signal
=void
7808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7811 $as_echo "$ac_cv_type_signal" >&6; }
7813 cat >>confdefs.h
<<_ACEOF
7814 #define RETSIGTYPE $ac_cv_type_signal
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7820 $as_echo_n "checking for speed_t... " >&6; }
7821 if ${emacs_cv_speed_t+:} false
; then :
7822 $as_echo_n "(cached) " >&6
7824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <termios.h>
7835 if ac_fn_c_try_compile
"$LINENO"; then :
7836 emacs_cv_speed_t
=yes
7840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7843 $as_echo "$emacs_cv_speed_t" >&6; }
7844 if test $emacs_cv_speed_t = yes; then
7846 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7851 $as_echo_n "checking for struct timeval... " >&6; }
7852 if ${emacs_cv_struct_timeval+:} false
; then :
7853 $as_echo_n "(cached) " >&6
7855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #ifdef TIME_WITH_SYS_TIME
7858 #include <sys/time.h>
7861 #ifdef HAVE_SYS_TIME_H
7862 #include <sys/time.h>
7870 static struct timeval x; x.tv_sec = x.tv_usec;
7875 if ac_fn_c_try_compile
"$LINENO"; then :
7876 emacs_cv_struct_timeval
=yes
7878 emacs_cv_struct_timeval
=no
7880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7883 $as_echo "$emacs_cv_struct_timeval" >&6; }
7884 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7885 if test $emacs_cv_struct_timeval = yes; then
7887 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7892 $as_echo_n "checking for struct exception... " >&6; }
7893 if ${emacs_cv_struct_exception+:} false
; then :
7894 $as_echo_n "(cached) " >&6
7896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7902 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7907 if ac_fn_c_try_compile
"$LINENO"; then :
7908 emacs_cv_struct_exception
=yes
7910 emacs_cv_struct_exception
=no
7912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7915 $as_echo "$emacs_cv_struct_exception" >&6; }
7916 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7917 if test $emacs_cv_struct_exception != yes; then
7919 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7923 for ac_header
in sys
/socket.h
7925 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7926 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
7927 cat >>confdefs.h
<<_ACEOF
7928 #define HAVE_SYS_SOCKET_H 1
7935 for ac_header
in net
/if.h
7937 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7938 #if HAVE_SYS_SOCKET_H
7939 #include <sys/socket.h>
7942 if test "x$ac_cv_header_net_if_h" = xyes
; then :
7943 cat >>confdefs.h
<<_ACEOF
7944 #define HAVE_NET_IF_H 1
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7953 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7954 if ${ac_cv_struct_tm+:} false
; then :
7955 $as_echo_n "(cached) " >&6
7957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 #include <sys/types.h>
7966 int *p = &tm.tm_sec;
7972 if ac_fn_c_try_compile
"$LINENO"; then :
7973 ac_cv_struct_tm
=time.h
7975 ac_cv_struct_tm
=sys
/time.h
7977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7980 $as_echo "$ac_cv_struct_tm" >&6; }
7981 if test $ac_cv_struct_tm = sys
/time.h
; then
7983 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7987 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7988 #include <$ac_cv_struct_tm>
7991 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
7993 cat >>confdefs.h
<<_ACEOF
7994 #define HAVE_STRUCT_TM_TM_ZONE 1
8000 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8002 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8005 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8007 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8013 cat >>confdefs.h
<<_ACEOF
8014 #define HAVE_DECL_TZNAME $ac_have_decl
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8018 $as_echo_n "checking for tzname... " >&6; }
8019 if ${ac_cv_var_tzname+:} false
; then :
8020 $as_echo_n "(cached) " >&6
8022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8025 #if !HAVE_DECL_TZNAME
8026 extern char *tzname[];
8032 return tzname[0][0];
8037 if ac_fn_c_try_link
"$LINENO"; then :
8038 ac_cv_var_tzname
=yes
8042 rm -f core conftest.err conftest.
$ac_objext \
8043 conftest
$ac_exeext conftest.
$ac_ext
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8046 $as_echo "$ac_cv_var_tzname" >&6; }
8047 if test $ac_cv_var_tzname = yes; then
8049 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8054 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8056 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
8058 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8062 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8063 #if HAVE_SYS_SOCKET_H
8064 #include <sys/socket.h>
8070 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes
; then :
8072 cat >>confdefs.h
<<_ACEOF
8073 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8078 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8079 #if HAVE_SYS_SOCKET_H
8080 #include <sys/socket.h>
8086 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes
; then :
8088 cat >>confdefs.h
<<_ACEOF
8089 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8094 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8095 #if HAVE_SYS_SOCKET_H
8096 #include <sys/socket.h>
8102 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes
; then :
8104 cat >>confdefs.h
<<_ACEOF
8105 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8110 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8111 #if HAVE_SYS_SOCKET_H
8112 #include <sys/socket.h>
8118 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes
; then :
8120 cat >>confdefs.h
<<_ACEOF
8121 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8126 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8127 #if HAVE_SYS_SOCKET_H
8128 #include <sys/socket.h>
8134 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes
; then :
8136 cat >>confdefs.h
<<_ACEOF
8137 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8146 $as_echo_n "checking for function prototypes... " >&6; }
8147 if test "$ac_cv_prog_cc_c89" != no
; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8149 $as_echo "yes" >&6; }
8151 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8154 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8162 $as_echo_n "checking for working volatile... " >&6; }
8163 if ${ac_cv_c_volatile+:} false
; then :
8164 $as_echo_n "(cached) " >&6
8166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8174 int * volatile y = (int *) 0;
8180 if ac_fn_c_try_compile
"$LINENO"; then :
8181 ac_cv_c_volatile
=yes
8185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8188 $as_echo "$ac_cv_c_volatile" >&6; }
8189 if test $ac_cv_c_volatile = no
; then
8191 $as_echo "#define volatile /**/" >>confdefs.h
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8196 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8197 if ${ac_cv_c_const+:} false
; then :
8198 $as_echo_n "(cached) " >&6
8200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8206 /* FIXME: Include the comments suggested by Paul. */
8208 /* Ultrix mips cc rejects this. */
8209 typedef int charset[2];
8211 /* SunOS 4.1.1 cc rejects this. */
8212 char const *const *pcpcc;
8214 /* NEC SVR4.0.2 mips cc rejects this. */
8215 struct point {int x, y;};
8216 static struct point const zero = {0,0};
8217 /* AIX XL C 1.02.0.0 rejects this.
8218 It does not let you subtract one const X* pointer from another in
8219 an arm of an if-expression whose if-part is not a constant
8221 const char *g = "string";
8222 pcpcc = &g + (g ? g-g : 0);
8223 /* HPUX 7.0 cc rejects these. */
8225 ppc = (char**) pcpcc;
8226 pcpcc = (char const *const *) ppc;
8227 { /* SCO 3.2v4 cc rejects this. */
8229 char const *s = 0 ? (char *) 0 : (char const *) 0;
8234 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8236 const int *foo = &x[0];
8239 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8240 typedef const int *iptr;
8244 { /* AIX XL C 1.02.0.0 rejects this saying
8245 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8246 struct s { int j; const int *ap[3]; };
8247 struct s *b; b->j = 5;
8249 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8253 return !cs[0] && !zero.x;
8260 if ac_fn_c_try_compile
"$LINENO"; then :
8265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8268 $as_echo "$ac_cv_c_const" >&6; }
8269 if test $ac_cv_c_const = no
; then
8271 $as_echo "#define const /**/" >>confdefs.h
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8276 $as_echo_n "checking for void * support... " >&6; }
8277 if ${emacs_cv_void_star+:} false
; then :
8278 $as_echo_n "(cached) " >&6
8280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8291 if ac_fn_c_try_compile
"$LINENO"; then :
8292 emacs_cv_void_star
=yes
8294 emacs_cv_void_star
=no
8296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8299 $as_echo "$emacs_cv_void_star" >&6; }
8300 if test $emacs_cv_void_star = yes; then
8301 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8304 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8309 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8310 if ${ac_cv_c_bigendian+:} false
; then :
8311 $as_echo_n "(cached) " >&6
8313 ac_cv_c_bigendian
=unknown
8314 # See if we're dealing with a universal compiler.
8315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 #ifndef __APPLE_CC__
8318 not a universal capable compiler
8323 if ac_fn_c_try_compile
"$LINENO"; then :
8325 # Check for potential -arch flags. It is not universal unless
8326 # there are at least two -arch flags with different values.
8329 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8330 if test -n "$ac_prev"; then
8332 i?
86 | x86_64 | ppc | ppc64
)
8333 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8336 ac_cv_c_bigendian
=universal
8342 elif test "x$ac_word" = "x-arch"; then
8347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 if test $ac_cv_c_bigendian = unknown
; then
8349 # See if sys/param.h defines the BYTE_ORDER macro.
8350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 #include <sys/types.h>
8353 #include <sys/param.h>
8358 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8359 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8368 if ac_fn_c_try_compile
"$LINENO"; then :
8369 # It does; now see whether it defined to BIG_ENDIAN or not.
8370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <sys/types.h>
8373 #include <sys/param.h>
8378 #if BYTE_ORDER != BIG_ENDIAN
8386 if ac_fn_c_try_compile
"$LINENO"; then :
8387 ac_cv_c_bigendian
=yes
8389 ac_cv_c_bigendian
=no
8391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8395 if test $ac_cv_c_bigendian = unknown
; then
8396 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8404 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8412 if ac_fn_c_try_compile
"$LINENO"; then :
8413 # It does; now see whether it defined to _BIG_ENDIAN or not.
8414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8429 if ac_fn_c_try_compile
"$LINENO"; then :
8430 ac_cv_c_bigendian
=yes
8432 ac_cv_c_bigendian
=no
8434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8438 if test $ac_cv_c_bigendian = unknown
; then
8439 # Compile a test program.
8440 if test "$cross_compiling" = yes; then :
8441 # Try to guess by grepping values from an object file.
8442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 short int ascii_mm[] =
8445 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8446 short int ascii_ii[] =
8447 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8448 int use_ascii (int i) {
8449 return ascii_mm[i] + ascii_ii[i];
8451 short int ebcdic_ii[] =
8452 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8453 short int ebcdic_mm[] =
8454 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8455 int use_ebcdic (int i) {
8456 return ebcdic_mm[i] + ebcdic_ii[i];
8463 return use_ascii (foo) == use_ebcdic (foo);
8468 if ac_fn_c_try_compile
"$LINENO"; then :
8469 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8470 ac_cv_c_bigendian
=yes
8472 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8473 if test "$ac_cv_c_bigendian" = unknown
; then
8474 ac_cv_c_bigendian
=no
8476 # finding both strings is unlikely to happen, but who knows?
8477 ac_cv_c_bigendian
=unknown
8481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 $ac_includes_default
8490 /* Are we little or big endian? From Harbison&Steele. */
8494 char c[sizeof (long int)];
8497 return u.c[sizeof (long int) - 1] == 1;
8503 if ac_fn_c_try_run
"$LINENO"; then :
8504 ac_cv_c_bigendian
=no
8506 ac_cv_c_bigendian
=yes
8508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8509 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8515 $as_echo "$ac_cv_c_bigendian" >&6; }
8516 case $ac_cv_c_bigendian in #(
8518 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8524 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8528 as_fn_error $?
"unknown endianness
8529 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8534 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8535 if ${emacs_cv_attribute_aligned+:} false
; then :
8536 $as_echo_n "(cached) " >&6
8538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 char __attribute__ ((__aligned__ (1 << 3))) c;
8549 if ac_fn_c_try_compile
"$LINENO"; then :
8550 emacs_cv_attribute_aligned
=yes
8552 emacs_cv_attribute_aligned
=no
8554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8557 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8558 if test $emacs_cv_attribute_aligned = yes; then
8560 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8565 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8567 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8568 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
8569 $as_echo_n "(cached) " >&6
8571 cat >conftest.
make <<\_ACEOF
8574 @
echo '@@@%%%=$(MAKE)=@@@%%%'
8576 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8577 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8579 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8581 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8585 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8587 $as_echo "yes" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 SET_MAKE
="MAKE=${MAKE-make}"
8599 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8601 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8603 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
8604 if test "x$testval" != x
; then
8607 ac_enable_autodepend
=no
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8610 $as_echo "$HAVE_GNU_MAKE" >&6; }
8611 if test $HAVE_GNU_MAKE = yes; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8613 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8614 SAVE_CFLAGS
="$CFLAGS"
8615 CFLAGS
="$CFLAGS -MMD -MF deps.d"
8616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8627 if ac_fn_c_try_compile
"$LINENO"; then :
8630 ac_enable_autodepend
=no
8632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8633 CFLAGS
="$SAVE_CFLAGS"
8634 test -f deps.d || ac_enable_autodepend
=no
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8637 $as_echo "$ac_enable_autodepend" >&6; }
8639 if test $ac_enable_autodepend = yes; then
8640 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
8641 ## In parallel builds, another make might create depdir between
8642 ## the first test and mkdir, so stick another test on the end.
8643 ## Or use mkinstalldirs? mkdir -p is not portable.
8644 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8645 deps_frag
=autodeps.mk
8648 deps_frag
=$srcdir/src
/$deps_frag
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8655 $as_echo_n "checking for long file names... " >&6; }
8656 if ${ac_cv_sys_long_file_names+:} false
; then :
8657 $as_echo_n "(cached) " >&6
8659 ac_cv_sys_long_file_names
=yes
8660 # Test for long file names in all the places we know might matter:
8661 # . the current directory, where building will happen
8662 # $prefix/lib where we will be installing things
8663 # $exec_prefix/lib likewise
8664 # $TMPDIR if set, where it might want to write temporary files
8665 # /tmp where it might want to write temporary files
8668 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
8669 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8670 # in the usual case where exec_prefix is '${prefix}'.
8672 . |
/* | ?
:[\\/]*) ;; #(
8675 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
8676 ac_xdir
=$ac_dir/cf$$
8677 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
8678 ac_tf1
=$ac_xdir/conftest9012345
8679 ac_tf2
=$ac_xdir/conftest9012346
8680 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8681 ac_cv_sys_long_file_names
=no
8682 rm -f -r "$ac_xdir" 2>/dev
/null
8683 test $ac_cv_sys_long_file_names = no
&& break
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8687 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8688 if test $ac_cv_sys_long_file_names = yes; then
8690 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8695 #### Choose a window system.
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8698 $as_echo_n "checking for X... " >&6; }
8701 # Check whether --with-x was given.
8702 if test "${with_x+set}" = set; then :
8706 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8707 if test "x$with_x" = xno
; then
8708 # The user explicitly disabled X.
8711 case $x_includes,$x_libraries in #(
8712 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
8713 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
8714 $as_echo_n "(cached) " >&6
8716 # One or both of the vars are not set, and there is no cached value.
8717 ac_x_includes
=no ac_x_libraries
=no
8718 rm -f -r conftest.dir
8719 if mkdir conftest.dir
; then
8721 cat >Imakefile
<<'_ACEOF'
8723 @echo incroot='${INCROOT}'
8725 @echo usrlibdir='${USRLIBDIR}'
8727 @echo libdir='${LIBDIR}'
8729 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8730 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8731 for ac_var
in incroot usrlibdir libdir
; do
8732 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8734 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8735 for ac_extension
in a so sl dylib la dll
; do
8736 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8737 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8738 ac_im_usrlibdir
=$ac_im_libdir; break
8741 # Screen out bogus values from the imake configuration. They are
8742 # bogus both because they are the default anyway, and because
8743 # using them would break gcc on systems where it needs fixed includes.
8744 case $ac_im_incroot in
8745 /usr
/include
) ac_x_includes
= ;;
8746 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8748 case $ac_im_usrlibdir in
8749 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
8750 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8754 rm -f -r conftest.dir
8757 # Standard set of common directories for X headers.
8758 # Check X11 before X11Rn because it is often a symlink to the current release.
8772 /usr/local/X11/include
8773 /usr/local/X11R7/include
8774 /usr/local/X11R6/include
8775 /usr/local/X11R5/include
8776 /usr/local/X11R4/include
8778 /usr/local/include/X11
8779 /usr/local/include/X11R7
8780 /usr/local/include/X11R6
8781 /usr/local/include/X11R5
8782 /usr/local/include/X11R4
8786 /usr/XFree86/include/X11
8790 /usr/unsupported/include
8792 /usr/local/x11r5/include
8793 /usr/lpp/Xamples/include
8795 /usr/openwin/include
8796 /usr/openwin/share/include'
8798 if test "$ac_x_includes" = no
; then
8799 # Guess where to find include files, by looking for Xlib.h.
8800 # First, try using that file with no special directory specified.
8801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include <X11/Xlib.h>
8805 if ac_fn_c_try_cpp
"$LINENO"; then :
8806 # We can compile using X headers with no special include directory.
8809 for ac_dir
in $ac_x_header_dirs; do
8810 if test -r "$ac_dir/X11/Xlib.h"; then
8811 ac_x_includes
=$ac_dir
8816 rm -f conftest.err conftest.i conftest.
$ac_ext
8817 fi # $ac_x_includes = no
8819 if test "$ac_x_libraries" = no
; then
8820 # Check for the libraries.
8821 # See if we find them without any special options.
8822 # Don't add to $LIBS permanently.
8825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <X11/Xlib.h>
8836 if ac_fn_c_try_link
"$LINENO"; then :
8838 # We can link X programs with no special library path.
8842 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8844 # Don't even attempt the hair of trying to link an X program!
8845 for ac_extension
in a so sl dylib la dll
; do
8846 if test -r "$ac_dir/libX11.$ac_extension"; then
8847 ac_x_libraries
=$ac_dir
8853 rm -f core conftest.err conftest.
$ac_objext \
8854 conftest
$ac_exeext conftest.
$ac_ext
8855 fi # $ac_x_libraries = no
8857 case $ac_x_includes,$ac_x_libraries in #(
8859 # Didn't find X, or a directory has "'" in its name.
8860 ac_cv_have_x
="have_x=no";; #(
8862 # Record where we found X for the cache.
8863 ac_cv_have_x
="have_x=yes\
8864 ac_x_includes='$ac_x_includes'\
8865 ac_x_libraries='$ac_x_libraries'"
8871 eval "$ac_cv_have_x"
8874 if test "$have_x" != yes; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8876 $as_echo "$have_x" >&6; }
8879 # If each of the values was on the command line, it overrides each guess.
8880 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8881 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8882 # Update the cache value to reflect the command line values.
8883 ac_cv_have_x
="have_x=yes\
8884 ac_x_includes='$x_includes'\
8885 ac_x_libraries='$x_libraries'"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8887 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8890 if test "$no_x" = yes; then
8896 ## Workaround for bug in autoconf <= 2.62.
8897 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8898 ## No need to do anything special for these standard directories.
8899 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
8901 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8905 LD_SWITCH_X_SITE_AUX
=
8906 LD_SWITCH_X_SITE_AUX_RPATH
=
8907 if test "${x_libraries}" != NONE
; then
8908 if test -n "${x_libraries}"; then
8909 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8910 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8911 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8913 x_default_search_path
=""
8914 x_search_path
=${x_libraries}
8915 if test -z "${x_search_path}"; then
8916 x_search_path
=/usr
/lib
8918 for x_library
in `echo ${x_search_path}: | \
8919 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8921 ${x_library}/X11/%L/%T/%N%C%S:\
8922 ${x_library}/X11/%l/%T/%N%C%S:\
8923 ${x_library}/X11/%T/%N%C%S:\
8924 ${x_library}/X11/%L/%T/%N%S:\
8925 ${x_library}/X11/%l/%T/%N%S:\
8926 ${x_library}/X11/%T/%N%S"
8927 if test x
"${x_default_search_path}" = x
; then
8928 x_default_search_path
=${x_search_path}
8930 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8937 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8938 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8941 if test x
"${x_includes}" = x
; then
8942 bitmapdir
=/usr
/include
/X11
/bitmaps
8944 # accumulate include directories that have X11 bitmap subdirectories
8946 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8947 if test -d "${bmd}/X11/bitmaps"; then
8948 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8950 if test -d "${bmd}/bitmaps"; then
8951 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8954 if test ${bmd_acc} != "dummyval"; then
8955 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8962 tmp_CPPFLAGS
="$CPPFLAGS"
8963 tmp_CFLAGS
="$CFLAGS"
8964 CPPFLAGS
="$CPPFLAGS -x objective-c"
8965 CFLAGS
="$CFLAGS -x objective-c"
8966 TEMACS_LDFLAGS2
="\${LDFLAGS}"
8967 if test "${with_ns}" != no
; then
8968 if test "${opsys}" = darwin
; then
8970 ns_appdir
=`pwd`/nextstep
/Emacs.app
8971 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
8972 ns_appresdir
=${ns_appdir}/Contents
/Resources
8973 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
8974 elif test -f $GNUSTEP_CONFIG_FILE; then
8976 ns_appdir
=`pwd`/nextstep
/Emacs.app
8977 ns_appbindir
=${ns_appdir}/
8978 ns_appresdir
=${ns_appdir}/Resources
8979 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
8980 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8981 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8982 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8983 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8984 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8985 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
8986 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8987 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
8988 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8989 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8990 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8995 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8996 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes
; then :
8999 as_fn_error $?
"\`--with-ns' was specified, but the include
9000 files are missing or cannot be compiled." "$LINENO" 5
9004 NS_HAVE_NSINTEGER
=yes
9005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 #include <Foundation/NSObjCRuntime.h>
9016 if ac_fn_c_try_compile
"$LINENO"; then :
9017 ns_have_nsinteger
=yes
9019 ns_have_nsinteger
=no
9021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9022 if test $ns_have_nsinteger = no
; then
9023 NS_HAVE_NSINTEGER
=no
9032 if test "${HAVE_NS}" = yes; then
9033 window_system
=nextstep
9035 # set up packaging dirs
9036 exec_prefix
=${ns_appbindir}
9037 libexecdir
=${ns_appbindir}/libexec
9038 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9039 prefix
=${ns_appresdir}
9041 ns_frag
=$srcdir/src
/ns.mk
9042 NS_OBJ
="fontset.o fringe.o image.o"
9043 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9044 NS_SUPPORT
="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9046 CFLAGS
="$tmp_CFLAGS"
9047 CPPFLAGS
="$tmp_CPPFLAGS"
9054 case "${window_system}" in
9058 case "${with_x_toolkit}" in
9059 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9060 motif
) USE_X_TOOLKIT
=MOTIF
;;
9062 USE_X_TOOLKIT
=none
;;
9063 gtk3
) with_gtk3
=yes
9064 USE_X_TOOLKIT
=none
;;
9065 no
) USE_X_TOOLKIT
=none
;;
9066 * ) USE_X_TOOLKIT
=maybe
;;
9076 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9077 # Extract the first word of "X", so it can be a program name with args.
9078 set dummy X
; ac_word
=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if ${ac_cv_prog_HAVE_XSERVER+:} false
; then :
9082 $as_echo_n "(cached) " >&6
9084 if test -n "$HAVE_XSERVER"; then
9085 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9091 test -z "$as_dir" && as_dir
=.
9092 for ac_exec_ext
in '' $ac_executable_extensions; do
9093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9094 ac_cv_prog_HAVE_XSERVER
="true"
9095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9105 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9106 if test -n "$HAVE_XSERVER"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9108 $as_echo "$HAVE_XSERVER" >&6; }
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9115 if test "$HAVE_XSERVER" = true ||
9116 test -n "$DISPLAY" ||
9117 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9118 as_fn_error $?
"You seem to be running X, but no X development libraries
9119 were found. You should install the relevant development files for X
9120 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9121 sure you have development files for image handling, i.e.
9122 tiff, gif, jpeg, png and xpm.
9123 If you are sure you want Emacs compiled without X window support, pass
9125 to configure." "$LINENO" 5
9129 ### If we're using X11, we should use the X menu package.
9132 yes ) HAVE_MENUS
=yes ;;
9135 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9136 # Assume not, until told otherwise.
9139 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9140 if test "x$ac_cv_func_malloc_get_state" = xyes
; then :
9146 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9147 if test "x$ac_cv_func_malloc_set_state" = xyes
; then :
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9154 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9155 if ${emacs_cv_var___after_morecore_hook+:} false
; then :
9156 $as_echo_n "(cached) " >&6
9158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160 extern void (* __after_morecore_hook)();
9164 __after_morecore_hook = 0
9169 if ac_fn_c_try_link
"$LINENO"; then :
9170 emacs_cv_var___after_morecore_hook
=yes
9172 emacs_cv_var___after_morecore_hook
=no
9174 rm -f core conftest.err conftest.
$ac_objext \
9175 conftest
$ac_exeext conftest.
$ac_ext
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9178 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9179 if test $emacs_cv_var___after_morecore_hook = no
; then
9186 ## darwin ld insists on the use of malloc routines in the System framework.
9187 darwin|sol2-10
) system_malloc
=yes ;;
9190 if test "${system_malloc}" = "yes"; then
9192 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9196 (The GNU allocators don't work with this system configuration.)"
9200 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9201 VMLIMIT_OBJ
=vm-limit.o
9206 if test "$doug_lea_malloc" = "yes" ; then
9207 if test "$GNU_MALLOC" = yes ; then
9209 (Using Doug Lea's new malloc from the GNU C Library.)"
9212 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9215 ## Use mmap directly for allocating larger buffers.
9216 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9217 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9218 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9220 gnu
*) REL_ALLOC
=no
;;
9224 if test x
"${REL_ALLOC}" = x
; then
9225 REL_ALLOC
=${GNU_MALLOC}
9228 use_mmap_for_buffers
=no
9230 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9236 for ac_header
in $ac_header_list
9238 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9239 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9241 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9242 cat >>confdefs.h
<<_ACEOF
9243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9257 for ac_func
in getpagesize
9259 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9260 if test "x$ac_cv_func_getpagesize" = xyes
; then :
9261 cat >>confdefs.h
<<_ACEOF
9262 #define HAVE_GETPAGESIZE 1
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9269 $as_echo_n "checking for working mmap... " >&6; }
9270 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
9271 $as_echo_n "(cached) " >&6
9273 if test "$cross_compiling" = yes; then :
9274 ac_cv_func_mmap_fixed_mapped
=no
9276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278 $ac_includes_default
9279 /* malloc might have been renamed as rpl_malloc. */
9282 /* Thanks to Mike Haertel and Jim Avera for this test.
9283 Here is a matrix of mmap possibilities:
9284 mmap private not fixed
9285 mmap private fixed at somewhere currently unmapped
9286 mmap private fixed at somewhere already mapped
9287 mmap shared not fixed
9288 mmap shared fixed at somewhere currently unmapped
9289 mmap shared fixed at somewhere already mapped
9290 For private mappings, we should verify that changes cannot be read()
9291 back from the file, nor mmap's back from the file at a different
9292 address. (There have been systems where private was not correctly
9293 implemented like the infamous i386 svr4.0, and systems where the
9294 VM page cache was not coherent with the file system buffer cache
9295 like early versions of FreeBSD and possibly contemporary NetBSD.)
9296 For shared mappings, we should conversely verify that changes get
9297 propagated back to all the places they're supposed to be.
9299 Grep wants private fixed already mapped.
9300 The main things grep needs to know about mmap are:
9301 * does it exist and is it safe to write into the mmap'd area
9302 * how to use it (BSD variants) */
9305 #include <sys/mman.h>
9307 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9311 /* This mess was copied from the GNU getpagesize.h. */
9312 #ifndef HAVE_GETPAGESIZE
9313 # ifdef _SC_PAGESIZE
9314 # define getpagesize() sysconf(_SC_PAGESIZE)
9315 # else /* no _SC_PAGESIZE */
9316 # ifdef HAVE_SYS_PARAM_H
9317 # include <sys/param.h>
9318 # ifdef EXEC_PAGESIZE
9319 # define getpagesize() EXEC_PAGESIZE
9320 # else /* no EXEC_PAGESIZE */
9322 # define getpagesize() NBPG * CLSIZE
9325 # endif /* no CLSIZE */
9326 # else /* no NBPG */
9328 # define getpagesize() NBPC
9329 # else /* no NBPC */
9331 # define getpagesize() PAGESIZE
9332 # endif /* PAGESIZE */
9333 # endif /* no NBPC */
9334 # endif /* no NBPG */
9335 # endif /* no EXEC_PAGESIZE */
9336 # else /* no HAVE_SYS_PARAM_H */
9337 # define getpagesize() 8192 /* punt totally */
9338 # endif /* no HAVE_SYS_PARAM_H */
9339 # endif /* no _SC_PAGESIZE */
9341 #endif /* no HAVE_GETPAGESIZE */
9346 char *data, *data2, *data3;
9351 pagesize = getpagesize ();
9353 /* First, make a file with some known garbage in it. */
9354 data = (char *) malloc (pagesize);
9357 for (i = 0; i < pagesize; ++i)
9358 *(data + i) = rand ();
9360 fd = creat ("conftest.mmap", 0600);
9363 if (write (fd, data, pagesize) != pagesize)
9367 /* Next, check that the tail of a page is zero-filled. File must have
9368 non-zero length, otherwise we risk SIGBUS for entire page. */
9369 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9373 if (write (fd2, cdata2, 1) != 1)
9375 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9376 if (data2 == MAP_FAILED)
9378 for (i = 0; i < pagesize; ++i)
9382 if (munmap (data2, pagesize))
9385 /* Next, try to mmap the file at a fixed address which already has
9386 something else allocated at it. If we can, also make sure that
9387 we see the same garbage. */
9388 fd = open ("conftest.mmap", O_RDWR);
9391 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9392 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9394 for (i = 0; i < pagesize; ++i)
9395 if (*(data + i) != *(data2 + i))
9398 /* Finally, make sure that changes to the mapped area do not
9399 percolate back to the file as seen by read(). (This is a bug on
9400 some variants of i386 svr4.0.) */
9401 for (i = 0; i < pagesize; ++i)
9402 *(data2 + i) = *(data2 + i) + 1;
9403 data3 = (char *) malloc (pagesize);
9406 if (read (fd, data3, pagesize) != pagesize)
9408 for (i = 0; i < pagesize; ++i)
9409 if (*(data + i) != *(data3 + i))
9415 if ac_fn_c_try_run
"$LINENO"; then :
9416 ac_cv_func_mmap_fixed_mapped
=yes
9418 ac_cv_func_mmap_fixed_mapped
=no
9420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9426 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9427 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9429 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9432 rm -f conftest.mmap conftest.txt
9434 if test $use_mmap_for_buffers = yes; then
9436 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9441 LIBS
="$LIBS_SYSTEM $LIBS"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9444 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9445 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
9446 $as_echo_n "(cached) " >&6
9448 ac_check_lib_save_LIBS
=$LIBS
9450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9453 /* Override any GCC internal prototype to avoid an error.
9454 Use char because int might match the return type of a GCC
9455 builtin and then its argument prototype would still apply. */
9463 return dnet_ntoa ();
9468 if ac_fn_c_try_link
"$LINENO"; then :
9469 ac_cv_lib_dnet_dnet_ntoa
=yes
9471 ac_cv_lib_dnet_dnet_ntoa
=no
9473 rm -f core conftest.err conftest.
$ac_objext \
9474 conftest
$ac_exeext conftest.
$ac_ext
9475 LIBS
=$ac_check_lib_save_LIBS
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9478 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9479 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
9480 cat >>confdefs.h
<<_ACEOF
9481 #define HAVE_LIBDNET 1
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9490 $as_echo_n "checking for main in -lXbsd... " >&6; }
9491 if ${ac_cv_lib_Xbsd_main+:} false
; then :
9492 $as_echo_n "(cached) " >&6
9494 ac_check_lib_save_LIBS
=$LIBS
9496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9508 if ac_fn_c_try_link
"$LINENO"; then :
9509 ac_cv_lib_Xbsd_main
=yes
9511 ac_cv_lib_Xbsd_main
=no
9513 rm -f core conftest.err conftest.
$ac_objext \
9514 conftest
$ac_exeext conftest.
$ac_ext
9515 LIBS
=$ac_check_lib_save_LIBS
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9518 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9519 if test "x$ac_cv_lib_Xbsd_main" = xyes
; then :
9520 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9525 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9526 if ${ac_cv_lib_pthreads_cma_open+:} false
; then :
9527 $as_echo_n "(cached) " >&6
9529 ac_check_lib_save_LIBS
=$LIBS
9530 LIBS
="-lpthreads $LIBS"
9531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9549 if ac_fn_c_try_link
"$LINENO"; then :
9550 ac_cv_lib_pthreads_cma_open
=yes
9552 ac_cv_lib_pthreads_cma_open
=no
9554 rm -f core conftest.err conftest.
$ac_objext \
9555 conftest
$ac_exeext conftest.
$ac_ext
9556 LIBS
=$ac_check_lib_save_LIBS
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9559 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9560 if test "x$ac_cv_lib_pthreads_cma_open" = xyes
; then :
9561 cat >>confdefs.h
<<_ACEOF
9562 #define HAVE_LIBPTHREADS 1
9565 LIBS
="-lpthreads $LIBS"
9570 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9571 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9572 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9573 ## added to LIBS in configure would never contain the pthreads part,
9574 ## but the value used in Makefiles might. FIXME?
9576 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9577 ## be harmless on older versions of X where it happens to exist.
9578 test "$opsys" = "aix4-2" && \
9579 test $ac_cv_lib_pthreads_cma_open = yes && \
9580 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9586 $as_echo_n "checking for -bbigtoc option... " >&6; }
9587 if ${gdb_cv_bigtoc+:} false
; then :
9588 $as_echo_n "(cached) " >&6
9592 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9593 *) gdb_cv_bigtoc
=-bbigtoc ;;
9596 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9608 if ac_fn_c_try_link
"$LINENO"; then :
9613 rm -f core conftest.err conftest.
$ac_objext \
9614 conftest
$ac_exeext conftest.
$ac_ext
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9618 $as_echo "$gdb_cv_bigtoc" >&6; }
9622 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9623 # used for the tests that follow. We set them back to REAL_CFLAGS and
9624 # REAL_CPPFLAGS later on.
9626 REAL_CFLAGS
="$CFLAGS"
9627 REAL_CPPFLAGS
="$CPPFLAGS"
9629 if test "${HAVE_X11}" = "yes"; then
9630 DEFS
="$C_SWITCH_X_SITE $DEFS"
9631 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9633 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9634 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9636 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9637 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9638 # but it's more convenient here to set LD_RUN_PATH
9639 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9640 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9641 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9645 if test "${opsys}" = "gnu-linux"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9647 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9654 XOpenDisplay ("foo");
9659 if ac_fn_c_try_link
"$LINENO"; then :
9660 xlinux_first_failure
=no
9662 xlinux_first_failure
=yes
9664 rm -f core conftest.err conftest.
$ac_objext \
9665 conftest
$ac_exeext conftest.
$ac_ext
9666 if test "${xlinux_first_failure}" = "yes"; then
9667 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9668 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9669 OLD_CPPFLAGS
="$CPPFLAGS"
9671 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9672 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9673 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9674 LIBS
="$LIBS -b i486-linuxaout"
9675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9681 XOpenDisplay ("foo");
9686 if ac_fn_c_try_link
"$LINENO"; then :
9687 xlinux_second_failure
=no
9689 xlinux_second_failure
=yes
9691 rm -f core conftest.err conftest.
$ac_objext \
9692 conftest
$ac_exeext conftest.
$ac_ext
9693 if test "${xlinux_second_failure}" = "yes"; then
9694 # If we get the same failure with -b, there is no use adding -b.
9695 # So take it out. This plays safe.
9696 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9697 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9698 CPPFLAGS
="$OLD_CPPFLAGS"
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9704 $as_echo "yes" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9712 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9713 # header files included from there.
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9715 $as_echo_n "checking for Xkb... " >&6; }
9716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 #include <X11/Xlib.h>
9719 #include <X11/XKBlib.h>
9723 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9728 if ac_fn_c_try_link
"$LINENO"; then :
9733 rm -f core conftest.err conftest.
$ac_objext \
9734 conftest
$ac_exeext conftest.
$ac_ext
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9736 $as_echo "$emacs_xkb" >&6; }
9737 if test $emacs_xkb = yes; then
9739 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9743 for ac_func
in XrmSetDatabase XScreenResourceString \
9744 XScreenNumberOfScreen XSetWMProtocols
9746 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9747 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9748 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9749 cat >>confdefs.h
<<_ACEOF
9750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9758 if test "${window_system}" = "x11"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9760 $as_echo_n "checking X11 version 6... " >&6; }
9761 if ${emacs_cv_x11_version_6+:} false
; then :
9762 $as_echo_n "(cached) " >&6
9764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 #include <X11/Xlib.h>
9770 #if XlibSpecificationRelease < 6
9778 if ac_fn_c_try_link
"$LINENO"; then :
9779 emacs_cv_x11_version_6
=yes
9781 emacs_cv_x11_version_6
=no
9783 rm -f core conftest.err conftest.
$ac_objext \
9784 conftest
$ac_exeext conftest.
$ac_ext
9787 if test $emacs_cv_x11_version_6 = yes; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9789 $as_echo "6 or newer" >&6; }
9791 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9794 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9796 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9801 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9807 $as_echo "before 6" >&6; }
9812 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9814 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
9815 if test "${with_rsvg}" != "no"; then
9816 RSVG_REQUIRED
=2.11.0
9817 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
9822 # Extract the first word of "pkg-config", so it can be a program name with args.
9823 set dummy pkg-config
; ac_word
=$2
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825 $as_echo_n "checking for $ac_word... " >&6; }
9826 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9827 $as_echo_n "(cached) " >&6
9831 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir
=.
9839 for ac_exec_ext
in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9849 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9853 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9854 if test -n "$PKG_CONFIG"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9856 $as_echo "$PKG_CONFIG" >&6; }
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; }
9864 if test "$PKG_CONFIG" = "no" ; then
9867 PKG_CONFIG_MIN_VERSION
=0.9.0
9868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9870 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9872 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9874 $as_echo "yes" >&6; }
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9878 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9879 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9881 $as_echo "$RSVG_CFLAGS" >&6; }
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9884 $as_echo_n "checking RSVG_LIBS... " >&6; }
9885 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9887 $as_echo "$RSVG_LIBS" >&6; }
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9893 ## If we have a custom action on failure, don't print errors, but
9894 ## do set a variable so people can do so.
9895 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9902 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9903 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9907 if test $succeeded = yes; then
9916 if test $HAVE_RSVG = yes; then
9918 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9920 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
9921 LIBS
="$RSVG_LIBS $LIBS"
9927 if test "${HAVE_X11}" = "yes"; then
9928 if test "${with_imagemagick}" != "no"; then
9929 IMAGEMAGICK_MODULE
="Wand"
9933 # Extract the first word of "pkg-config", so it can be a program name with args.
9934 set dummy pkg-config
; ac_word
=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9938 $as_echo_n "(cached) " >&6
9942 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9949 test -z "$as_dir" && as_dir
=.
9950 for ac_exec_ext
in '' $ac_executable_extensions; do
9951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9952 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9960 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9964 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9965 if test -n "$PKG_CONFIG"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9967 $as_echo "$PKG_CONFIG" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9975 if test "$PKG_CONFIG" = "no" ; then
9978 PKG_CONFIG_MIN_VERSION
=0.9.0
9979 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9981 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9983 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; }
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9989 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9990 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9992 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9995 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9996 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9998 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10002 IMAGEMAGICK_CFLAGS
=""
10003 IMAGEMAGICK_LIBS
=""
10004 ## If we have a custom action on failure, don't print errors, but
10005 ## do set a variable so people can do so.
10006 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10018 if test $succeeded = yes; then
10019 HAVE_IMAGEMAGICK
=yes
10027 if test $HAVE_IMAGEMAGICK = yes; then
10029 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10031 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10032 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10033 for ac_func
in MagickExportImagePixels
10035 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10036 if test "x$ac_cv_func_MagickExportImagePixels" = xyes
; then :
10037 cat >>confdefs.h
<<_ACEOF
10038 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10050 if test "${with_gtk3}" = "yes"; then
10053 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10058 # Extract the first word of "pkg-config", so it can be a program name with args.
10059 set dummy pkg-config
; ac_word
=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10063 $as_echo_n "(cached) " >&6
10065 case $PKG_CONFIG in
10067 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10071 for as_dir
in $PATH
10074 test -z "$as_dir" && as_dir
=.
10075 for ac_exec_ext
in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10089 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10090 if test -n "$PKG_CONFIG"; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10092 $as_echo "$PKG_CONFIG" >&6; }
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10100 if test "$PKG_CONFIG" = "no" ; then
10103 PKG_CONFIG_MIN_VERSION
=0.9.0
10104 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10106 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10108 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10110 $as_echo "yes" >&6; }
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10114 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10115 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10117 $as_echo "$GTK_CFLAGS" >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10120 $as_echo_n "checking GTK_LIBS... " >&6; }
10121 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10123 $as_echo "$GTK_LIBS" >&6; }
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10129 ## If we have a custom action on failure, don't print errors, but
10130 ## do set a variable so people can do so.
10131 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10143 if test $succeeded = yes; then
10149 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10150 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10154 if test "$pkg_check_gtk" != "yes"; then
10156 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10159 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10164 # Extract the first word of "pkg-config", so it can be a program name with args.
10165 set dummy pkg-config
; ac_word
=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10169 $as_echo_n "(cached) " >&6
10171 case $PKG_CONFIG in
10173 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10177 for as_dir
in $PATH
10180 test -z "$as_dir" && as_dir
=.
10181 for ac_exec_ext
in '' $ac_executable_extensions; do
10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10183 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10195 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10196 if test -n "$PKG_CONFIG"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10198 $as_echo "$PKG_CONFIG" >&6; }
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10206 if test "$PKG_CONFIG" = "no" ; then
10209 PKG_CONFIG_MIN_VERSION
=0.9.0
10210 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10212 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10214 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10216 $as_echo "yes" >&6; }
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10220 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10221 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10223 $as_echo "$GTK_CFLAGS" >&6; }
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10226 $as_echo_n "checking GTK_LIBS... " >&6; }
10227 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10229 $as_echo "$GTK_LIBS" >&6; }
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10235 ## If we have a custom action on failure, don't print errors, but
10236 ## do set a variable so people can do so.
10237 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10244 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10245 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10249 if test $succeeded = yes; then
10255 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10256 as_fn_error $?
"$GTK_PKG_ERRORS" "$LINENO" 5
10262 if test x
"$pkg_check_gtk" = xyes
; then
10266 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10267 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10268 LIBS
="$GTK_LIBS $LIBS"
10270 for ac_func
in gtk_main
10272 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10273 if test "x$ac_cv_func_gtk_main" = xyes
; then :
10274 cat >>confdefs.h
<<_ACEOF
10275 #define HAVE_GTK_MAIN 1
10281 if test "${GTK_COMPILES}" != "yes"; then
10282 if test "$USE_X_TOOLKIT" != "maybe"; then
10283 as_fn_error $?
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10288 $as_echo "#define USE_GTK 1" >>confdefs.h
10292 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10296 closing open displays. This is no problem if you just use
10297 one display, but if you use more than one and close one of them
10298 Emacs may crash." >&5
10299 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10300 closing open displays. This is no problem if you just use
10301 one display, but if you use more than one and close one of them
10302 Emacs may crash." >&2;}
10311 if test "${HAVE_GTK}" = "yes"; then
10313 if test "$with_toolkit_scroll_bars" != no
; then
10314 with_toolkit_scroll_bars
=yes
10317 HAVE_GTK_FILE_SELECTION
=no
10318 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10319 #include <gtk/gtk.h>
10321 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes
; then :
10322 HAVE_GTK_FILE_SELECTION
=yes
10324 HAVE_GTK_FILE_SELECTION
=no
10327 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10328 for ac_func
in gtk_file_selection_new
10330 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10331 if test "x$ac_cv_func_gtk_file_selection_new" = xyes
; then :
10332 cat >>confdefs.h
<<_ACEOF
10333 #define HAVE_GTK_FILE_SELECTION_NEW 1
10341 HAVE_GTK_AND_PTHREAD
=no
10342 for ac_header
in pthread.h
10344 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10345 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10346 cat >>confdefs.h
<<_ACEOF
10347 #define HAVE_PTHREAD_H 1
10354 if test "$ac_cv_header_pthread_h"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10356 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10357 if ${ac_cv_lib_pthread_pthread_self+:} false
; then :
10358 $as_echo_n "(cached) " >&6
10360 ac_check_lib_save_LIBS
=$LIBS
10361 LIBS
="-lpthread $LIBS"
10362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10365 /* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10371 char pthread_self ();
10375 return pthread_self ();
10380 if ac_fn_c_try_link
"$LINENO"; then :
10381 ac_cv_lib_pthread_pthread_self
=yes
10383 ac_cv_lib_pthread_pthread_self
=no
10385 rm -f core conftest.err conftest.
$ac_objext \
10386 conftest
$ac_exeext conftest.
$ac_ext
10387 LIBS
=$ac_check_lib_save_LIBS
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10390 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10391 if test "x$ac_cv_lib_pthread_pthread_self" = xyes
; then :
10392 HAVE_GTK_AND_PTHREAD
=yes
10396 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10397 case "${canonical}" in
10399 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
10402 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10406 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10407 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10408 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10409 gtk_orientable_set_orientation
10411 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10412 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10413 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10414 cat >>confdefs.h
<<_ACEOF
10415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10426 if test "${with_dbus}" = "yes"; then
10430 # Extract the first word of "pkg-config", so it can be a program name with args.
10431 set dummy pkg-config
; ac_word
=$2
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10433 $as_echo_n "checking for $ac_word... " >&6; }
10434 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10435 $as_echo_n "(cached) " >&6
10437 case $PKG_CONFIG in
10439 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10443 for as_dir
in $PATH
10446 test -z "$as_dir" && as_dir
=.
10447 for ac_exec_ext
in '' $ac_executable_extensions; do
10448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10449 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10461 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10462 if test -n "$PKG_CONFIG"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10464 $as_echo "$PKG_CONFIG" >&6; }
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10472 if test "$PKG_CONFIG" = "no" ; then
10475 PKG_CONFIG_MIN_VERSION
=0.9.0
10476 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10478 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10480 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10482 $as_echo "yes" >&6; }
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10486 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10487 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10489 $as_echo "$DBUS_CFLAGS" >&6; }
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10492 $as_echo_n "checking DBUS_LIBS... " >&6; }
10493 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10495 $as_echo "$DBUS_LIBS" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10501 ## If we have a custom action on failure, don't print errors, but
10502 ## do set a variable so people can do so.
10503 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10510 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10511 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10515 if test $succeeded = yes; then
10521 if test "$HAVE_DBUS" = yes; then
10522 LIBS
="$LIBS $DBUS_LIBS"
10524 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10526 for ac_func
in dbus_watch_get_unix_fd
10528 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10529 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes
; then :
10530 cat >>confdefs.h
<<_ACEOF
10531 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10537 DBUS_OBJ
=dbusbind.o
10543 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10547 # Extract the first word of "pkg-config", so it can be a program name with args.
10548 set dummy pkg-config
; ac_word
=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10552 $as_echo_n "(cached) " >&6
10554 case $PKG_CONFIG in
10556 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10560 for as_dir
in $PATH
10563 test -z "$as_dir" && as_dir
=.
10564 for ac_exec_ext
in '' $ac_executable_extensions; do
10565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10566 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10574 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10578 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10579 if test -n "$PKG_CONFIG"; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10581 $as_echo "$PKG_CONFIG" >&6; }
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10589 if test "$PKG_CONFIG" = "no" ; then
10592 PKG_CONFIG_MIN_VERSION
=0.9.0
10593 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10595 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10597 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10599 $as_echo "yes" >&6; }
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10603 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10604 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10606 $as_echo "$GCONF_CFLAGS" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10609 $as_echo_n "checking GCONF_LIBS... " >&6; }
10610 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10612 $as_echo "$GCONF_LIBS" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10618 ## If we have a custom action on failure, don't print errors, but
10619 ## do set a variable so people can do so.
10620 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10627 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10628 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10632 if test $succeeded = yes; then
10638 if test "$HAVE_GCONF" = yes; then
10640 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10642 for ac_func
in g_type_init
10644 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10645 if test "x$ac_cv_func_g_type_init" = xyes
; then :
10646 cat >>confdefs.h
<<_ACEOF
10647 #define HAVE_G_TYPE_INIT 1
10658 if test "${with_selinux}" = "yes"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10660 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10661 if ${ac_cv_lib_selinux_lgetfilecon+:} false
; then :
10662 $as_echo_n "(cached) " >&6
10664 ac_check_lib_save_LIBS
=$LIBS
10665 LIBS
="-lselinux $LIBS"
10666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10675 char lgetfilecon ();
10679 return lgetfilecon ();
10684 if ac_fn_c_try_link
"$LINENO"; then :
10685 ac_cv_lib_selinux_lgetfilecon
=yes
10687 ac_cv_lib_selinux_lgetfilecon
=no
10689 rm -f core conftest.err conftest.
$ac_objext \
10690 conftest
$ac_exeext conftest.
$ac_ext
10691 LIBS
=$ac_check_lib_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10694 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10695 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes
; then :
10696 HAVE_LIBSELINUX
=yes
10701 if test "$HAVE_LIBSELINUX" = yes; then
10703 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10705 LIBSELINUX_LIBS
=-lselinux
10711 if test "${with_gnutls}" = "yes" ; then
10715 # Extract the first word of "pkg-config", so it can be a program name with args.
10716 set dummy pkg-config
; ac_word
=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10720 $as_echo_n "(cached) " >&6
10722 case $PKG_CONFIG in
10724 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10728 for as_dir
in $PATH
10731 test -z "$as_dir" && as_dir
=.
10732 for ac_exec_ext
in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10746 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10747 if test -n "$PKG_CONFIG"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10749 $as_echo "$PKG_CONFIG" >&6; }
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10757 if test "$PKG_CONFIG" = "no" ; then
10760 PKG_CONFIG_MIN_VERSION
=0.9.0
10761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10763 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10765 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10767 $as_echo "yes" >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10771 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10772 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10774 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10777 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10778 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10780 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 LIBGNUTLS_CFLAGS
=""
10786 ## If we have a custom action on failure, don't print errors, but
10787 ## do set a variable so people can do so.
10788 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10800 if test $succeeded = yes; then
10806 if test "${HAVE_GNUTLS}" = "yes"; then
10808 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10817 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10818 if test "$with_xaw3d" != no
; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10820 $as_echo_n "checking for xaw3d... " >&6; }
10821 if ${emacs_cv_xaw3d+:} false
; then :
10822 $as_echo_n "(cached) " >&6
10824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 #include <X11/Intrinsic.h>
10828 #include <X11/Xaw3d/Simple.h>
10837 if ac_fn_c_try_link
"$LINENO"; then :
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10839 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10840 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false
; then :
10841 $as_echo_n "(cached) " >&6
10843 ac_check_lib_save_LIBS
=$LIBS
10844 LIBS
="-lXaw3d $LIBS"
10845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10854 char XawScrollbarSetThumb ();
10858 return XawScrollbarSetThumb ();
10863 if ac_fn_c_try_link
"$LINENO"; then :
10864 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10866 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10868 rm -f core conftest.err conftest.
$ac_objext \
10869 conftest
$ac_exeext conftest.
$ac_ext
10870 LIBS
=$ac_check_lib_save_LIBS
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10873 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10874 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes
; then :
10883 rm -f core conftest.err conftest.
$ac_objext \
10884 conftest
$ac_exeext conftest.
$ac_ext
10890 if test $emacs_cv_xaw3d = yes; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10892 $as_echo "yes; using Lucid toolkit" >&6; }
10893 USE_X_TOOLKIT
=LUCID
10897 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10903 $as_echo_n "checking for libXaw... " >&6; }
10904 if ${emacs_cv_xaw+:} false
; then :
10905 $as_echo_n "(cached) " >&6
10907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 #include <X11/Intrinsic.h>
10911 #include <X11/Xaw/Simple.h>
10920 if ac_fn_c_try_link
"$LINENO"; then :
10925 rm -f core conftest.err conftest.
$ac_objext \
10926 conftest
$ac_exeext conftest.
$ac_ext
10929 if test $emacs_cv_xaw = yes; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10931 $as_echo "yes; using Lucid toolkit" >&6; }
10932 USE_X_TOOLKIT
=LUCID
10934 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
10935 as_fn_error $?
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10938 $as_echo "no; do not use toolkit by default" >&6; }
10944 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10947 if test "${USE_X_TOOLKIT}" != "none"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10949 $as_echo_n "checking X11 toolkit version... " >&6; }
10950 if ${emacs_cv_x11_toolkit_version_6+:} false
; then :
10951 $as_echo_n "(cached) " >&6
10953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 #include <X11/Intrinsic.h>
10959 #if XtSpecificationRelease < 6
10967 if ac_fn_c_try_link
"$LINENO"; then :
10968 emacs_cv_x11_toolkit_version_6
=yes
10970 emacs_cv_x11_toolkit_version_6
=no
10972 rm -f core conftest.err conftest.
$ac_objext \
10973 conftest
$ac_exeext conftest.
$ac_ext
10976 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10977 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10979 $as_echo "6 or newer" >&6; }
10981 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10983 LIBXTR6
="-lSM -lICE"
10985 ## Use libw.a along with X11R6 Xt.
10986 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10990 $as_echo "before 6" >&6; }
10994 if test x
$HAVE_X11XTR6 = xyes
; then
10995 LIBS
="-lXt -lSM -lICE $LIBS"
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11000 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11001 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false
; then :
11002 $as_echo_n "(cached) " >&6
11004 ac_check_lib_save_LIBS
=$LIBS
11006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11015 char XmuConvertStandardSelection ();
11019 return XmuConvertStandardSelection ();
11024 if ac_fn_c_try_link
"$LINENO"; then :
11025 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11027 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11029 rm -f core conftest.err conftest.
$ac_objext \
11030 conftest
$ac_exeext conftest.
$ac_ext
11031 LIBS
=$ac_check_lib_save_LIBS
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11034 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11035 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes
; then :
11036 cat >>confdefs.h
<<_ACEOF
11037 #define HAVE_LIBXMU 1
11044 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11050 ## These systems don't supply Xmu.
11052 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11057 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11058 if test "${HAVE_X11}" = "yes"; then
11059 if test "${USE_X_TOOLKIT}" != "none"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11061 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11062 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false
; then :
11063 $as_echo_n "(cached) " >&6
11065 ac_check_lib_save_LIBS
=$LIBS
11066 LIBS
="-lXext $LIBS"
11067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11076 char XShapeQueryExtension ();
11080 return XShapeQueryExtension ();
11085 if ac_fn_c_try_link
"$LINENO"; then :
11086 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11088 ac_cv_lib_Xext_XShapeQueryExtension
=no
11090 rm -f core conftest.err conftest.
$ac_objext \
11091 conftest
$ac_exeext conftest.
$ac_ext
11092 LIBS
=$ac_check_lib_save_LIBS
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11095 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11096 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes
; then :
11097 cat >>confdefs.h
<<_ACEOF
11098 #define HAVE_LIBXEXT 1
11101 LIBS
="-lXext $LIBS"
11109 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11111 $as_echo_n "checking for Motif version 2.1... " >&6; }
11112 if ${emacs_cv_motif_version_2_1+:} false
; then :
11113 $as_echo_n "(cached) " >&6
11115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11121 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11124 Motif version prior to 2.1.
11130 if ac_fn_c_try_compile
"$LINENO"; then :
11131 emacs_cv_motif_version_2_1
=yes
11133 emacs_cv_motif_version_2_1
=no
11135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11138 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11139 if test $emacs_cv_motif_version_2_1 = yes; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11141 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11142 if ${ac_cv_lib_Xp_XpCreateContext+:} false
; then :
11143 $as_echo_n "(cached) " >&6
11145 ac_check_lib_save_LIBS
=$LIBS
11147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 /* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11156 char XpCreateContext ();
11160 return XpCreateContext ();
11165 if ac_fn_c_try_link
"$LINENO"; then :
11166 ac_cv_lib_Xp_XpCreateContext
=yes
11168 ac_cv_lib_Xp_XpCreateContext
=no
11170 rm -f core conftest.err conftest.
$ac_objext \
11171 conftest
$ac_exeext conftest.
$ac_ext
11172 LIBS
=$ac_check_lib_save_LIBS
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11175 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11176 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes
; then :
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11182 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11183 if ${emacs_cv_lesstif+:} false
; then :
11184 $as_echo_n "(cached) " >&6
11186 # We put this in CFLAGS temporarily to precede other -I options
11187 # that might be in CFLAGS temporarily.
11188 # We put this in CPPFLAGS where it precedes the other -I options.
11189 OLD_CPPFLAGS
=$CPPFLAGS
11191 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11192 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11195 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11204 if ac_fn_c_try_compile
"$LINENO"; then :
11205 emacs_cv_lesstif
=yes
11207 emacs_cv_lesstif
=no
11209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11212 $as_echo "$emacs_cv_lesstif" >&6; }
11213 if test $emacs_cv_lesstif = yes; then
11214 # Make sure this -I option remains in CPPFLAGS after it is set
11215 # back to REAL_CPPFLAGS.
11216 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11217 # have those other -I options anyway. Ultimately, having this
11218 # directory ultimately in CPPFLAGS will be enough.
11219 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11220 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11223 CPPFLAGS
=$OLD_CPPFLAGS
11229 USE_TOOLKIT_SCROLL_BARS
=no
11230 if test "${with_toolkit_scroll_bars}" != "no"; then
11231 if test "${USE_X_TOOLKIT}" != "none"; then
11232 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11233 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11236 USE_TOOLKIT_SCROLL_BARS
=yes
11237 elif test "${HAVE_XAW3D}" = "yes"; then
11238 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11240 USE_TOOLKIT_SCROLL_BARS
=yes
11242 elif test "${HAVE_GTK}" = "yes"; then
11243 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11245 USE_TOOLKIT_SCROLL_BARS
=yes
11246 elif test "${HAVE_NS}" = "yes"; then
11247 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11249 USE_TOOLKIT_SCROLL_BARS
=yes
11253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 #include <X11/Xlib.h>
11257 #include <X11/Xresource.h>
11266 if ac_fn_c_try_compile
"$LINENO"; then :
11269 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11277 if test "${with_xim}" != "no"; then
11279 $as_echo "#define USE_XIM 1" >>confdefs.h
11284 if test "${HAVE_XIM}" != "no"; then
11285 late_CFLAGS
=$CFLAGS
11286 if test "$GCC" = yes; then
11287 CFLAGS
="$CFLAGS --pedantic-errors"
11289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 #include <X11/Xlib.h>
11293 #include <X11/Xresource.h>
11302 XPointer *client_data;
11304 /* If we're not using GCC, it's probably not XFree86, and this is
11305 probably right, but we can't use something like --pedantic-errors. */
11306 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11307 char*, XIMProc, XPointer*);
11309 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11315 if ac_fn_c_try_compile
"$LINENO"; then :
11316 emacs_cv_arg6_star
=yes
11318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11319 if test "$emacs_cv_arg6_star" = yes; then
11320 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11323 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11326 CFLAGS
=$late_CFLAGS
11329 ### Start of font-backend (under any platform) section.
11330 # (nothing here yet -- this is a placeholder)
11331 ### End of font-backend (under any platform) section.
11333 ### Start of font-backend (under X11) section.
11334 if test "${HAVE_X11}" = "yes"; 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 fontconfig >= 2.2.0" >&5
11386 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11388 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 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 FONTCONFIG_CFLAGS" >&5
11394 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11395 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11397 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11400 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11401 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11403 $as_echo "$FONTCONFIG_LIBS" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 FONTCONFIG_CFLAGS
=""
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 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
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
11430 ## Use -lXft if available, unless `--with-xft=no'.
11432 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11435 if test "x${with_xft}" != "xno"; then
11440 # Extract the first word of "pkg-config", so it can be a program name with args.
11441 set dummy pkg-config
; ac_word
=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11445 $as_echo_n "(cached) " >&6
11447 case $PKG_CONFIG in
11449 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11453 for as_dir
in $PATH
11456 test -z "$as_dir" && as_dir
=.
11457 for ac_exec_ext
in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11467 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11471 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11472 if test -n "$PKG_CONFIG"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11474 $as_echo "$PKG_CONFIG" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11482 if test "$PKG_CONFIG" = "no" ; then
11485 PKG_CONFIG_MIN_VERSION
=0.9.0
11486 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11488 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11490 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11496 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11497 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11499 $as_echo "$XFT_CFLAGS" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11502 $as_echo_n "checking XFT_LIBS... " >&6; }
11503 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11505 $as_echo "$XFT_LIBS" >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11511 ## If we have a custom action on failure, don't print errors, but
11512 ## do set a variable so people can do so.
11513 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11520 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11521 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11525 if test $succeeded = yes; then
11531 ## Because xftfont.c uses XRenderQueryExtension, we also
11532 ## need to link to -lXrender.
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11535 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11536 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false
; then :
11537 $as_echo_n "(cached) " >&6
11539 ac_check_lib_save_LIBS
=$LIBS
11540 LIBS
="-lXrender $LIBS"
11541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11550 char XRenderQueryExtension ();
11554 return XRenderQueryExtension ();
11559 if ac_fn_c_try_link
"$LINENO"; then :
11560 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11562 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11564 rm -f core conftest.err conftest.
$ac_objext \
11565 conftest
$ac_exeext conftest.
$ac_ext
11566 LIBS
=$ac_check_lib_save_LIBS
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11569 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11570 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes
; then :
11574 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11575 OLD_CPPFLAGS
="$CPPFLAGS"
11576 OLD_CFLAGS
="$CFLAGS"
11578 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11579 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11580 XFT_LIBS
="-lXrender $XFT_LIBS"
11581 LIBS
="$XFT_LIBS $LIBS"
11582 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11583 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes
; then :
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11585 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11586 if ${ac_cv_lib_Xft_XftFontOpen+:} false
; then :
11587 $as_echo_n "(cached) " >&6
11589 ac_check_lib_save_LIBS
=$LIBS
11590 LIBS
="-lXft $XFT_LIBS $LIBS"
11591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11600 char XftFontOpen ();
11604 return XftFontOpen ();
11609 if ac_fn_c_try_link
"$LINENO"; then :
11610 ac_cv_lib_Xft_XftFontOpen
=yes
11612 ac_cv_lib_Xft_XftFontOpen
=no
11614 rm -f core conftest.err conftest.
$ac_objext \
11615 conftest
$ac_exeext conftest.
$ac_ext
11616 LIBS
=$ac_check_lib_save_LIBS
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11619 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11620 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes
; then :
11628 if test "${HAVE_XFT}" = "yes"; then
11630 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11633 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11635 CPPFLAGS
="$OLD_CPPFLAGS"
11636 CFLAGS
="$OLD_CFLAGS"
11638 fi # "${HAVE_XFT}" = "yes"
11639 fi # "$HAVE_XFT" != no
11640 fi # "x${with_xft}" != "xno"
11642 if test "$HAVE_XFT" != "yes"; then
11646 ## We used to allow building with FreeType and without Xft.
11647 ## However, the ftx font backend driver is not in good shape.
11648 HAVE_FREETYPE
=$HAVE_XFT
11651 if test "${HAVE_FREETYPE}" = "yes"; then
11653 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11655 if test "${with_libotf}" != "no"; then
11659 # Extract the first word of "pkg-config", so it can be a program name with args.
11660 set dummy pkg-config
; ac_word
=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11664 $as_echo_n "(cached) " >&6
11666 case $PKG_CONFIG in
11668 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11672 for as_dir
in $PATH
11675 test -z "$as_dir" && as_dir
=.
11676 for ac_exec_ext
in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11690 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11691 if test -n "$PKG_CONFIG"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11693 $as_echo "$PKG_CONFIG" >&6; }
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11701 if test "$PKG_CONFIG" = "no" ; then
11704 PKG_CONFIG_MIN_VERSION
=0.9.0
11705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11707 $as_echo_n "checking for libotf... " >&6; }
11709 if $PKG_CONFIG --exists "libotf" 2>&5; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11715 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11716 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11718 $as_echo "$LIBOTF_CFLAGS" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11721 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11722 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11724 $as_echo "$LIBOTF_LIBS" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11730 ## If we have a custom action on failure, don't print errors, but
11731 ## do set a variable so people can do so.
11732 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11744 if test $succeeded = yes; then
11750 if test "$HAVE_LIBOTF" = "yes"; then
11752 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11755 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11756 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false
; then :
11757 $as_echo_n "(cached) " >&6
11759 ac_check_lib_save_LIBS
=$LIBS
11761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11764 /* Override any GCC internal prototype to avoid an error.
11765 Use char because int might match the return type of a GCC
11766 builtin and then its argument prototype would still apply. */
11770 char OTF_get_variation_glyphs ();
11774 return OTF_get_variation_glyphs ();
11779 if ac_fn_c_try_link
"$LINENO"; then :
11780 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11782 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11784 rm -f core conftest.err conftest.
$ac_objext \
11785 conftest
$ac_exeext conftest.
$ac_ext
11786 LIBS
=$ac_check_lib_save_LIBS
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11789 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11790 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes
; then :
11791 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11793 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11796 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11798 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11806 if test "${HAVE_LIBOTF}" = yes; then
11807 if test "${with_m17n_flt}" != "no"; then
11811 # Extract the first word of "pkg-config", so it can be a program name with args.
11812 set dummy pkg-config
; ac_word
=$2
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11816 $as_echo_n "(cached) " >&6
11818 case $PKG_CONFIG in
11820 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11824 for as_dir
in $PATH
11827 test -z "$as_dir" && as_dir
=.
11828 for ac_exec_ext
in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11842 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11843 if test -n "$PKG_CONFIG"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11845 $as_echo "$PKG_CONFIG" >&6; }
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11853 if test "$PKG_CONFIG" = "no" ; then
11856 PKG_CONFIG_MIN_VERSION
=0.9.0
11857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11859 $as_echo_n "checking for m17n-flt... " >&6; }
11861 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11867 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11868 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11870 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11873 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11874 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11876 $as_echo "$M17N_FLT_LIBS" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11882 ## If we have a custom action on failure, don't print errors, but
11883 ## do set a variable so people can do so.
11884 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11896 if test $succeeded = yes; then
11902 if test "$HAVE_M17N_FLT" = "yes"; then
11904 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11916 ### End of font-backend (under X11) section.
11927 ### Use -lXpm if available, unless `--with-xpm=no'.
11930 if test "${HAVE_X11}" = "yes"; then
11931 if test "${with_xpm}" != "no"; then
11932 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11935 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11936 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false
; then :
11937 $as_echo_n "(cached) " >&6
11939 ac_check_lib_save_LIBS
=$LIBS
11940 LIBS
="-lXpm -lX11 $LIBS"
11941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11950 char XpmReadFileToPixmap ();
11954 return XpmReadFileToPixmap ();
11959 if ac_fn_c_try_link
"$LINENO"; then :
11960 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11962 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11964 rm -f core conftest.err conftest.
$ac_objext \
11965 conftest
$ac_exeext conftest.
$ac_ext
11966 LIBS
=$ac_check_lib_save_LIBS
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11969 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11970 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes
; then :
11977 if test "${HAVE_XPM}" = "yes"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11979 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 #include "X11/xpm.h"
11983 #ifndef XpmReturnAllocPixels
11984 no_return_alloc_pixels
11988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11989 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
11997 if test "${HAVE_XPM}" = "yes"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999 $as_echo "yes" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12007 if test "${HAVE_XPM}" = "yes"; then
12009 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12016 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12019 if test "${HAVE_X11}" = "yes"; then
12020 if test "${with_jpeg}" != "no"; then
12021 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12022 if test "x$ac_cv_header_jerror_h" = xyes
; then :
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12024 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12025 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false
; then :
12026 $as_echo_n "(cached) " >&6
12028 ac_check_lib_save_LIBS
=$LIBS
12029 LIBS
="-ljpeg $LIBS"
12030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h. */
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12039 char jpeg_destroy_compress ();
12043 return jpeg_destroy_compress ();
12048 if ac_fn_c_try_link
"$LINENO"; then :
12049 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12051 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12053 rm -f core conftest.err conftest.
$ac_objext \
12054 conftest
$ac_exeext conftest.
$ac_ext
12055 LIBS
=$ac_check_lib_save_LIBS
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12058 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12059 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes
; then :
12068 if test "${HAVE_JPEG}" = "yes"; then
12069 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073 #include <jpeglib.h>
12074 version=JPEG_LIB_VERSION
12077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12078 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12079 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12083 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12089 if test "${HAVE_JPEG}" = "yes"; then
12095 ### Use -lpng if available, unless `--with-png=no'.
12098 if test "${HAVE_X11}" = "yes"; then
12099 if test "${with_png}" != "no"; then
12100 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12101 # in /usr/include/libpng.
12102 for ac_header
in png.h libpng
/png.h
12104 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12105 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12106 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12107 cat >>confdefs.h
<<_ACEOF
12108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12115 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12117 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12118 if ${ac_cv_lib_png_png_get_channels+:} false
; then :
12119 $as_echo_n "(cached) " >&6
12121 ac_check_lib_save_LIBS
=$LIBS
12122 LIBS
="-lpng -lz -lm $LIBS"
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12132 char png_get_channels ();
12136 return png_get_channels ();
12141 if ac_fn_c_try_link
"$LINENO"; then :
12142 ac_cv_lib_png_png_get_channels
=yes
12144 ac_cv_lib_png_png_get_channels
=no
12146 rm -f core conftest.err conftest.
$ac_objext \
12147 conftest
$ac_exeext conftest.
$ac_ext
12148 LIBS
=$ac_check_lib_save_LIBS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12151 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12152 if test "x$ac_cv_lib_png_png_get_channels" = xyes
; then :
12159 if test "${HAVE_PNG}" = "yes"; then
12161 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12163 LIBPNG
="-lpng -lz -lm"
12168 ### Use -ltiff if available, unless `--with-tiff=no'.
12171 if test "${HAVE_X11}" = "yes"; then
12172 if test "${with_tiff}" != "no"; then
12173 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12174 if test "x$ac_cv_header_tiffio_h" = xyes
; then :
12176 # At least one tiff package requires the jpeg library.
12177 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12179 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12180 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false
; then :
12181 $as_echo_n "(cached) " >&6
12183 ac_check_lib_save_LIBS
=$LIBS
12184 LIBS
="-ltiff $tifflibs $LIBS"
12185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12194 char TIFFGetVersion ();
12198 return TIFFGetVersion ();
12203 if ac_fn_c_try_link
"$LINENO"; then :
12204 ac_cv_lib_tiff_TIFFGetVersion
=yes
12206 ac_cv_lib_tiff_TIFFGetVersion
=no
12208 rm -f core conftest.err conftest.
$ac_objext \
12209 conftest
$ac_exeext conftest.
$ac_ext
12210 LIBS
=$ac_check_lib_save_LIBS
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12213 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12214 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes
; then :
12223 if test "${HAVE_TIFF}" = "yes"; then
12225 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12232 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12235 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12236 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12237 if test "x$ac_cv_header_gif_lib_h" = xyes
; then :
12238 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12239 # Earlier versions can crash Emacs.
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12241 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12242 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false
; then :
12243 $as_echo_n "(cached) " >&6
12245 ac_check_lib_save_LIBS
=$LIBS
12247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12256 char EGifPutExtensionLast ();
12260 return EGifPutExtensionLast ();
12265 if ac_fn_c_try_link
"$LINENO"; then :
12266 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12268 ac_cv_lib_gif_EGifPutExtensionLast
=no
12270 rm -f core conftest.err conftest.
$ac_objext \
12271 conftest
$ac_exeext conftest.
$ac_ext
12272 LIBS
=$ac_check_lib_save_LIBS
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12275 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12276 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes
; then :
12286 if test "$HAVE_GIF" = yes; then
12288 elif test "$HAVE_GIF" = maybe
; then
12289 # If gif_lib.h but no libgif, try libungif.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12291 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12292 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false
; then :
12293 $as_echo_n "(cached) " >&6
12295 ac_check_lib_save_LIBS
=$LIBS
12296 LIBS
="-lungif $LIBS"
12297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12306 char EGifPutExtensionLast ();
12310 return EGifPutExtensionLast ();
12315 if ac_fn_c_try_link
"$LINENO"; then :
12316 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12318 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12320 rm -f core conftest.err conftest.
$ac_objext \
12321 conftest
$ac_exeext conftest.
$ac_ext
12322 LIBS
=$ac_check_lib_save_LIBS
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12325 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12326 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes
; then :
12332 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12335 if test "${HAVE_GIF}" = "yes"; then
12337 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12343 if test "${HAVE_X11}" = "yes"; then
12346 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12347 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12348 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12349 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12350 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12351 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12352 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12353 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12354 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12355 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12357 if test "X${MISSING}" != X
; then
12358 as_fn_error $?
"The following required libraries were not found:
12360 Maybe some development libraries/packages are missing?
12361 If you don't want to link with them give
12363 as options to configure" "$LINENO" 5
12367 ### Use -lgpm if available, unless `--with-gpm=no'.
12371 if test "${with_gpm}" != "no"; then
12372 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12373 if test "x$ac_cv_header_gpm_h" = xyes
; then :
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12375 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12376 if ${ac_cv_lib_gpm_Gpm_Open+:} false
; then :
12377 $as_echo_n "(cached) " >&6
12379 ac_check_lib_save_LIBS
=$LIBS
12381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12394 return Gpm_Open ();
12399 if ac_fn_c_try_link
"$LINENO"; then :
12400 ac_cv_lib_gpm_Gpm_Open
=yes
12402 ac_cv_lib_gpm_Gpm_Open
=no
12404 rm -f core conftest.err conftest.
$ac_objext \
12405 conftest
$ac_exeext conftest.
$ac_ext
12406 LIBS
=$ac_check_lib_save_LIBS
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12409 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12410 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes
; then :
12418 if test "${HAVE_GPM}" = "yes"; then
12420 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12423 ## May be reset below.
12424 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
12429 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12430 if test "x$ac_cv_header_malloc_malloc_h" = xyes
; then :
12432 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12439 ### Use NeXTstep API to implement GUI.
12440 if test "${HAVE_NS}" = "yes"; then
12442 $as_echo "#define HAVE_NS 1" >>confdefs.h
12444 if test "${NS_IMPL_COCOA}" = "yes"; then
12446 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12450 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12452 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12454 # See also .m.o rule in Makefile.in */
12455 # FIXME: are all these flags really needed? Document here why. */
12456 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
12457 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12459 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12461 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12464 # We also have mouse menus.
12470 ### Use session management (-lSM -lICE) if available
12473 if test "${HAVE_X11}" = "yes"; then
12474 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12475 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
; then :
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12477 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12478 if ${ac_cv_lib_SM_SmcOpenConnection+:} false
; then :
12479 $as_echo_n "(cached) " >&6
12481 ac_check_lib_save_LIBS
=$LIBS
12482 LIBS
="-lSM -lICE $LIBS"
12483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12486 /* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
12492 char SmcOpenConnection ();
12496 return SmcOpenConnection ();
12501 if ac_fn_c_try_link
"$LINENO"; then :
12502 ac_cv_lib_SM_SmcOpenConnection
=yes
12504 ac_cv_lib_SM_SmcOpenConnection
=no
12506 rm -f core conftest.err conftest.
$ac_objext \
12507 conftest
$ac_exeext conftest.
$ac_ext
12508 LIBS
=$ac_check_lib_save_LIBS
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12511 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12512 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes
; then :
12520 if test "${HAVE_X_SM}" = "yes"; then
12522 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12524 LIBXSM
="-lSM -lICE"
12527 *) LIBS
="$LIBXSM $LIBS" ;;
12533 ### Use libxml (-lxml2) if available
12534 if test "${with_xml2}" != "no"; then
12535 ### I'm not sure what the version number should be, so I just guessed.
12539 # Extract the first word of "pkg-config", so it can be a program name with args.
12540 set dummy pkg-config
; ac_word
=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
12544 $as_echo_n "(cached) " >&6
12546 case $PKG_CONFIG in
12548 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12552 for as_dir
in $PATH
12555 test -z "$as_dir" && as_dir
=.
12556 for ac_exec_ext
in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12570 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12571 if test -n "$PKG_CONFIG"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12573 $as_echo "$PKG_CONFIG" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12581 if test "$PKG_CONFIG" = "no" ; then
12584 PKG_CONFIG_MIN_VERSION
=0.9.0
12585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12587 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12589 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591 $as_echo "yes" >&6; }
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12595 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12596 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12598 $as_echo "$LIBXML2_CFLAGS" >&6; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12601 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12602 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12604 $as_echo "$LIBXML2_LIBS" >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12610 ## If we have a custom action on failure, don't print errors, but
12611 ## do set a variable so people can do so.
12612 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12619 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12620 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12624 if test $succeeded = yes; then
12630 if test "${HAVE_LIBXML2}" = "yes"; then
12631 LIBS
="$LIBXML2_LIBS $LIBS"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12633 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12634 if ${ac_cv_lib_xml2_htmlReadMemory+:} false
; then :
12635 $as_echo_n "(cached) " >&6
12637 ac_check_lib_save_LIBS
=$LIBS
12638 LIBS
="-lxml2 $LIBS"
12639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12648 char htmlReadMemory ();
12652 return htmlReadMemory ();
12657 if ac_fn_c_try_link
"$LINENO"; then :
12658 ac_cv_lib_xml2_htmlReadMemory
=yes
12660 ac_cv_lib_xml2_htmlReadMemory
=no
12662 rm -f core conftest.err conftest.
$ac_objext \
12663 conftest
$ac_exeext conftest.
$ac_ext
12664 LIBS
=$ac_check_lib_save_LIBS
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12667 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12668 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes
; then :
12674 if test "${HAVE_LIBXML2}" = "yes"; then
12676 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12687 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12689 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12690 if ${emacs_cv_netdb_declares_h_errno+:} false
; then :
12691 $as_echo_n "(cached) " >&6
12693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12704 if ac_fn_c_try_link
"$LINENO"; then :
12705 emacs_cv_netdb_declares_h_errno
=yes
12707 emacs_cv_netdb_declares_h_errno
=no
12709 rm -f core conftest.err conftest.
$ac_objext \
12710 conftest
$ac_exeext conftest.
$ac_ext
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12713 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12714 if test $emacs_cv_netdb_declares_h_errno = yes; then
12716 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12720 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12721 if test "x$ac_cv_type_size_t" = xyes
; then :
12725 cat >>confdefs.h
<<_ACEOF
12726 #define size_t unsigned int
12731 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12732 # for constant arguments. Useless!
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12734 $as_echo_n "checking for working alloca.h... " >&6; }
12735 if ${ac_cv_working_alloca_h+:} false
; then :
12736 $as_echo_n "(cached) " >&6
12738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12740 #include <alloca.h>
12744 char *p = (char *) alloca (2 * sizeof (int));
12750 if ac_fn_c_try_link
"$LINENO"; then :
12751 ac_cv_working_alloca_h
=yes
12753 ac_cv_working_alloca_h
=no
12755 rm -f core conftest.err conftest.
$ac_objext \
12756 conftest
$ac_exeext conftest.
$ac_ext
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12759 $as_echo "$ac_cv_working_alloca_h" >&6; }
12760 if test $ac_cv_working_alloca_h = yes; then
12762 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12767 $as_echo_n "checking for alloca... " >&6; }
12768 if ${ac_cv_func_alloca_works+:} false
; then :
12769 $as_echo_n "(cached) " >&6
12771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 # define alloca __builtin_alloca
12777 # include <malloc.h>
12778 # define alloca _alloca
12780 # ifdef HAVE_ALLOCA_H
12781 # include <alloca.h>
12786 # ifndef alloca /* predefined by HP cc +Olibcalls */
12787 void *alloca (size_t);
12797 char *p = (char *) alloca (1);
12803 if ac_fn_c_try_link
"$LINENO"; then :
12804 ac_cv_func_alloca_works
=yes
12806 ac_cv_func_alloca_works
=no
12808 rm -f core conftest.err conftest.
$ac_objext \
12809 conftest
$ac_exeext conftest.
$ac_ext
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12812 $as_echo "$ac_cv_func_alloca_works" >&6; }
12814 if test $ac_cv_func_alloca_works = yes; then
12816 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12820 # that cause trouble. Some versions do not even contain alloca or
12821 # contain a buggy version. If you still want to use their alloca,
12822 # use ar to extract alloca.o from them instead of compiling alloca.c.
12824 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12826 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12830 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12831 if ${ac_cv_os_cray+:} false
; then :
12832 $as_echo_n "(cached) " >&6
12834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12836 #if defined CRAY && ! defined CRAY2
12843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12844 $EGREP "webecray" >/dev
/null
2>&1; then :
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12853 $as_echo "$ac_cv_os_cray" >&6; }
12854 if test $ac_cv_os_cray = yes; then
12855 for ac_func
in _getb67 GETB67 getb67
; do
12856 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12857 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12858 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12860 cat >>confdefs.h
<<_ACEOF
12861 #define CRAY_STACKSEG_END $ac_func
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12871 $as_echo_n "checking stack direction for C alloca... " >&6; }
12872 if ${ac_cv_c_stack_direction+:} false
; then :
12873 $as_echo_n "(cached) " >&6
12875 if test "$cross_compiling" = yes; then :
12876 ac_cv_c_stack_direction
=0
12878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 $ac_includes_default
12882 find_stack_direction ()
12884 static char *addr = 0;
12889 return find_stack_direction ();
12892 return (&dummy > addr) ? 1 : -1;
12898 return find_stack_direction () < 0;
12901 if ac_fn_c_try_run
"$LINENO"; then :
12902 ac_cv_c_stack_direction
=1
12904 ac_cv_c_stack_direction
=-1
12906 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12907 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12912 $as_echo "$ac_cv_c_stack_direction" >&6; }
12913 cat >>confdefs.h
<<_ACEOF
12914 #define STACK_DIRECTION $ac_cv_c_stack_direction
12921 if test x
"$ac_cv_func_alloca_works" != xyes
; then
12922 as_fn_error $?
"a system implementation of alloca is required " "$LINENO" 5
12925 # fmod, logb, and frexp are found in -lm on most systems.
12926 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12928 $as_echo_n "checking for sqrt in -lm... " >&6; }
12929 if ${ac_cv_lib_m_sqrt+:} false
; then :
12930 $as_echo_n "(cached) " >&6
12932 ac_check_lib_save_LIBS
=$LIBS
12934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12952 if ac_fn_c_try_link
"$LINENO"; then :
12953 ac_cv_lib_m_sqrt
=yes
12955 ac_cv_lib_m_sqrt
=no
12957 rm -f core conftest.err conftest.
$ac_objext \
12958 conftest
$ac_exeext conftest.
$ac_ext
12959 LIBS
=$ac_check_lib_save_LIBS
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12962 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12963 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
12964 cat >>confdefs.h
<<_ACEOF
12965 #define HAVE_LIBM 1
12973 # Check for mail-locking functions in a "mail" library. Probably this should
12974 # have the same check as for liblockfile below.
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12976 $as_echo_n "checking for maillock in -lmail... " >&6; }
12977 if ${ac_cv_lib_mail_maillock+:} false
; then :
12978 $as_echo_n "(cached) " >&6
12980 ac_check_lib_save_LIBS
=$LIBS
12981 LIBS
="-lmail $LIBS"
12982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12985 /* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
12995 return maillock ();
13000 if ac_fn_c_try_link
"$LINENO"; then :
13001 ac_cv_lib_mail_maillock
=yes
13003 ac_cv_lib_mail_maillock
=no
13005 rm -f core conftest.err conftest.
$ac_objext \
13006 conftest
$ac_exeext conftest.
$ac_ext
13007 LIBS
=$ac_check_lib_save_LIBS
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13010 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13011 if test "x$ac_cv_lib_mail_maillock" = xyes
; then :
13017 if test $have_mail = yes; then
13019 LIBS
="$LIBS_MAIL $LIBS"
13021 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13027 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13028 if ${ac_cv_lib_lockfile_maillock+:} false
; then :
13029 $as_echo_n "(cached) " >&6
13031 ac_check_lib_save_LIBS
=$LIBS
13032 LIBS
="-llockfile $LIBS"
13033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13036 /* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
13046 return maillock ();
13051 if ac_fn_c_try_link
"$LINENO"; then :
13052 ac_cv_lib_lockfile_maillock
=yes
13054 ac_cv_lib_lockfile_maillock
=no
13056 rm -f core conftest.err conftest.
$ac_objext \
13057 conftest
$ac_exeext conftest.
$ac_ext
13058 LIBS
=$ac_check_lib_save_LIBS
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13061 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13062 if test "x$ac_cv_lib_lockfile_maillock" = xyes
; then :
13068 if test $have_lockfile = yes; then
13069 LIBS_MAIL
=-llockfile
13070 LIBS
="$LIBS_MAIL $LIBS"
13072 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13075 # If we have the shared liblockfile, assume we must use it for mail
13076 # locking (e.g. Debian). If we couldn't link against liblockfile
13077 # (no liblockfile.a installed), ensure that we don't need to.
13078 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13079 set dummy liblockfile.so
; ac_word
=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if ${ac_cv_prog_liblockfile+:} false
; then :
13083 $as_echo_n "(cached) " >&6
13085 if test -n "$liblockfile"; then
13086 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13089 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13090 for as_dir
in $as_dummy
13093 test -z "$as_dir" && as_dir
=.
13094 for ac_exec_ext
in '' $ac_executable_extensions; do
13095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13096 ac_cv_prog_liblockfile
="yes"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13107 liblockfile
=$ac_cv_prog_liblockfile
13108 if test -n "$liblockfile"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13110 $as_echo "$liblockfile" >&6; }
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13117 if test $ac_cv_prog_liblockfile = yes; then
13118 as_fn_error $?
"Shared liblockfile found but can't link against it.
13119 This probably means that movemail could lose mail.
13120 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13123 for ac_func
in touchlock
13125 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
13126 if test "x$ac_cv_func_touchlock" = xyes
; then :
13127 cat >>confdefs.h
<<_ACEOF
13128 #define HAVE_TOUCHLOCK 1
13134 for ac_header
in maillock.h
13136 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13137 if test "x$ac_cv_header_maillock_h" = xyes
; then :
13138 cat >>confdefs.h
<<_ACEOF
13139 #define HAVE_MAILLOCK_H 1
13148 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13149 ## interlock access to the mail spool. The alternative is a lock file named
13150 ## /usr/spool/mail/$USER.lock.
13153 aix4-2
) mail_lock
="lockf" ;;
13155 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13157 ## On GNU/Linux systems, both methods are used by various mail programs.
13158 ## I assume most people are using newer mailers that have heard of flock.
13159 ## Change this if you need to.
13160 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13161 ## configure gets the right answers, and that means *NOT* using flock.
13162 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13163 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13164 ## Debian maintainer hasn't provided a clean fix for Emacs.
13165 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13166 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13167 ## correct logic. -- fx
13168 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13169 ## liblockfile is a Free Software replacement for libmail, used on
13170 ## Debian systems and elsewhere. -rfr.
13173 if test $have_mail = yes ||
test $have_lockfile = yes; then
13174 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13180 case "$mail_lock" in
13182 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13186 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13189 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13194 for ac_func
in gethostname getdomainname dup2 \
13195 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
13196 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13197 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
13198 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13199 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13200 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13201 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13202 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13203 cfmakeraw cfsetspeed isnan copysign __executable_start
13205 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13206 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13207 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13208 cat >>confdefs.h
<<_ACEOF
13209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13217 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13218 if ${emacs_cv_func___builtin_unwind_init+:} false
; then :
13219 $as_echo_n "(cached) " >&6
13221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13227 __builtin_unwind_init ();
13232 if ac_fn_c_try_link
"$LINENO"; then :
13233 emacs_cv_func___builtin_unwind_init
=yes
13235 emacs_cv_func___builtin_unwind_init
=no
13237 rm -f core conftest.err conftest.
$ac_objext \
13238 conftest
$ac_exeext conftest.
$ac_ext
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13241 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13242 if test $emacs_cv_func___builtin_unwind_init = yes; then
13244 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13248 for ac_header
in sys
/un.h
13250 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13251 if test "x$ac_cv_header_sys_un_h" = xyes
; then :
13252 cat >>confdefs.h
<<_ACEOF
13253 #define HAVE_SYS_UN_H 1
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13262 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13263 if ${ac_cv_sys_largefile_source+:} false
; then :
13264 $as_echo_n "(cached) " >&6
13267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 #include <sys/types.h> /* for off_t */
13274 int (*fp) (FILE *, off_t, int) = fseeko;
13275 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13280 if ac_fn_c_try_link
"$LINENO"; then :
13281 ac_cv_sys_largefile_source
=no
; break
13283 rm -f core conftest.err conftest.
$ac_objext \
13284 conftest
$ac_exeext conftest.
$ac_ext
13285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287 #define _LARGEFILE_SOURCE 1
13288 #include <sys/types.h> /* for off_t */
13293 int (*fp) (FILE *, off_t, int) = fseeko;
13294 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13299 if ac_fn_c_try_link
"$LINENO"; then :
13300 ac_cv_sys_largefile_source
=1; break
13302 rm -f core conftest.err conftest.
$ac_objext \
13303 conftest
$ac_exeext conftest.
$ac_ext
13304 ac_cv_sys_largefile_source
=unknown
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13309 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13310 case $ac_cv_sys_largefile_source in #(
13313 cat >>confdefs.h
<<_ACEOF
13314 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13320 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13321 # in glibc 2.1.3, but that breaks too many other things.
13322 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13323 if test $ac_cv_sys_largefile_source != unknown
; then
13325 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13331 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13332 if ${ac_cv_func_getpgrp_void+:} false
; then :
13333 $as_echo_n "(cached) " >&6
13335 # Use it with a single arg.
13336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 $ac_includes_default
13347 if ac_fn_c_try_compile
"$LINENO"; then :
13348 ac_cv_func_getpgrp_void
=no
13350 ac_cv_func_getpgrp_void
=yes
13352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13356 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13357 if test $ac_cv_func_getpgrp_void = yes; then
13359 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13364 # Configure gnulib.
13375 LIBC_FATAL_STDERR_
=1
13376 export LIBC_FATAL_STDERR_
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13380 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13381 if ${ac_cv_c_bigendian+:} false
; then :
13382 $as_echo_n "(cached) " >&6
13384 ac_cv_c_bigendian
=unknown
13385 # See if we're dealing with a universal compiler.
13386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13388 #ifndef __APPLE_CC__
13389 not a universal capable compiler
13394 if ac_fn_c_try_compile
"$LINENO"; then :
13396 # Check for potential -arch flags. It is not universal unless
13397 # there are at least two -arch flags with different values.
13400 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13401 if test -n "$ac_prev"; then
13403 i?
86 | x86_64 | ppc | ppc64
)
13404 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13407 ac_cv_c_bigendian
=universal
13413 elif test "x$ac_word" = "x-arch"; then
13418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13419 if test $ac_cv_c_bigendian = unknown
; then
13420 # See if sys/param.h defines the BYTE_ORDER macro.
13421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 #include <sys/types.h>
13424 #include <sys/param.h>
13429 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13430 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13432 bogus endian macros
13439 if ac_fn_c_try_compile
"$LINENO"; then :
13440 # It does; now see whether it defined to BIG_ENDIAN or not.
13441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 #include <sys/types.h>
13444 #include <sys/param.h>
13449 #if BYTE_ORDER != BIG_ENDIAN
13457 if ac_fn_c_try_compile
"$LINENO"; then :
13458 ac_cv_c_bigendian
=yes
13460 ac_cv_c_bigendian
=no
13462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13466 if test $ac_cv_c_bigendian = unknown
; then
13467 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470 #include <limits.h>
13475 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13476 bogus endian macros
13483 if ac_fn_c_try_compile
"$LINENO"; then :
13484 # It does; now see whether it defined to _BIG_ENDIAN or not.
13485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h. */
13487 #include <limits.h>
13492 #ifndef _BIG_ENDIAN
13500 if ac_fn_c_try_compile
"$LINENO"; then :
13501 ac_cv_c_bigendian
=yes
13503 ac_cv_c_bigendian
=no
13505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13509 if test $ac_cv_c_bigendian = unknown
; then
13510 # Compile a test program.
13511 if test "$cross_compiling" = yes; then :
13512 # Try to guess by grepping values from an object file.
13513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515 short int ascii_mm[] =
13516 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13517 short int ascii_ii[] =
13518 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13519 int use_ascii (int i) {
13520 return ascii_mm[i] + ascii_ii[i];
13522 short int ebcdic_ii[] =
13523 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13524 short int ebcdic_mm[] =
13525 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13526 int use_ebcdic (int i) {
13527 return ebcdic_mm[i] + ebcdic_ii[i];
13534 return use_ascii (foo) == use_ebcdic (foo);
13539 if ac_fn_c_try_compile
"$LINENO"; then :
13540 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13541 ac_cv_c_bigendian
=yes
13543 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13544 if test "$ac_cv_c_bigendian" = unknown
; then
13545 ac_cv_c_bigendian
=no
13547 # finding both strings is unlikely to happen, but who knows?
13548 ac_cv_c_bigendian
=unknown
13552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 $ac_includes_default
13561 /* Are we little or big endian? From Harbison&Steele. */
13565 char c[sizeof (long int)];
13568 return u.c[sizeof (long int) - 1] == 1;
13574 if ac_fn_c_try_run
"$LINENO"; then :
13575 ac_cv_c_bigendian
=no
13577 ac_cv_c_bigendian
=yes
13579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13586 $as_echo "$ac_cv_c_bigendian" >&6; }
13587 case $ac_cv_c_bigendian in #(
13589 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13595 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13599 as_fn_error $?
"unknown endianness
13600 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13605 $as_echo_n "checking for inline... " >&6; }
13606 if ${ac_cv_c_inline+:} false
; then :
13607 $as_echo_n "(cached) " >&6
13610 for ac_kw
in inline __inline__ __inline
; do
13611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 #ifndef __cplusplus
13615 static $ac_kw foo_t static_foo () {return 0; }
13616 $ac_kw foo_t foo () {return 0; }
13620 if ac_fn_c_try_compile
"$LINENO"; then :
13621 ac_cv_c_inline
=$ac_kw
13623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13624 test "$ac_cv_c_inline" != no
&& break
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13629 $as_echo "$ac_cv_c_inline" >&6; }
13631 case $ac_cv_c_inline in
13634 case $ac_cv_c_inline in
13636 *) ac_val
=$ac_cv_c_inline;;
13638 cat >>confdefs.h
<<_ACEOF
13639 #ifndef __cplusplus
13640 #define inline $ac_val
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13648 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13649 if ${gl_cv_func_c99_strtold+:} false
; then :
13650 $as_echo_n "(cached) " >&6
13652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 /* On HP-UX before 11.23, strtold returns a struct instead of
13655 long double. Reject implementations like that, by requiring
13656 compatibility with the C99 prototype. */
13657 #include <stdlib.h>
13658 static long double (*p) (char const *, char **) = strtold;
13660 test (char const *nptr, char **endptr)
13663 r = strtold (nptr, endptr);
13669 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13674 if ac_fn_c_try_link
"$LINENO"; then :
13675 gl_cv_func_c99_strtold
=yes
13677 gl_cv_func_c99_strtold
=no
13679 rm -f core conftest.err conftest.
$ac_objext \
13680 conftest
$ac_exeext conftest.
$ac_ext
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13683 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13684 if test $gl_cv_func_c99_strtold = yes; then
13686 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13693 GNULIB_CALLOC_POSIX
=0;
13694 GNULIB_CANONICALIZE_FILE_NAME
=0;
13695 GNULIB_GETLOADAVG
=0;
13696 GNULIB_GETSUBOPT
=0;
13698 GNULIB_MALLOC_POSIX
=0;
13701 GNULIB_MKOSTEMPS
=0;
13707 GNULIB_REALLOC_POSIX
=0;
13714 GNULIB_SYSTEM_POSIX
=0;
13719 HAVE_CANONICALIZE_FILE_NAME
=1;
13720 HAVE_DECL_GETLOADAVG
=1;
13734 HAVE_DECL_SETENV
=1;
13738 HAVE_STRUCT_RANDOM_DATA
=1;
13739 HAVE_SYS_LOADAVG_H
=0;
13741 HAVE_DECL_UNSETENV
=1;
13743 REPLACE_CANONICALIZE_FILE_NAME
=0;
13748 REPLACE_REALPATH
=0;
13751 REPLACE_UNSETENV
=0;
13759 GNULIB_EUIDACCESS
=0;
13760 GNULIB_FACCESSAT
=0;
13764 GNULIB_FTRUNCATE
=0;
13766 GNULIB_GETDOMAINNAME
=0;
13767 GNULIB_GETDTABLESIZE
=0;
13768 GNULIB_GETGROUPS
=0;
13769 GNULIB_GETHOSTNAME
=0;
13771 GNULIB_GETLOGIN_R
=0;
13772 GNULIB_GETPAGESIZE
=0;
13773 GNULIB_GETUSERSHELL
=0;
13783 GNULIB_READLINKAT
=0;
13787 GNULIB_SYMLINKAT
=0;
13788 GNULIB_TTYNAME_R
=0;
13789 GNULIB_UNISTD_H_GETOPT
=0;
13790 GNULIB_UNISTD_H_SIGPIPE
=0;
13804 HAVE_GETDTABLESIZE
=1;
13806 HAVE_GETHOSTNAME
=1;
13808 HAVE_GETPAGESIZE
=1;
13823 HAVE_DECL_ENVIRON
=1;
13824 HAVE_DECL_FCHDIR
=1;
13825 HAVE_DECL_GETDOMAINNAME
=1;
13826 HAVE_DECL_GETLOGIN_R
=1;
13827 HAVE_DECL_GETPAGESIZE
=1;
13828 HAVE_DECL_GETUSERSHELL
=1;
13829 HAVE_DECL_TTYNAME_R
=1;
13831 HAVE_SYS_PARAM_H
=0;
13836 REPLACE_FCHOWNAT
=0;
13838 REPLACE_GETDOMAINNAME
=0;
13839 REPLACE_GETLOGIN_R
=0;
13840 REPLACE_GETGROUPS
=0;
13841 REPLACE_GETPAGESIZE
=0;
13848 REPLACE_READLINK
=0;
13852 REPLACE_TTYNAME_R
=0;
13854 REPLACE_UNLINKAT
=0;
13857 UNISTD_H_HAVE_WINSOCK2_H
=0;
13858 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13864 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13865 if ${gl_cv_have_include_next+:} false
; then :
13866 $as_echo_n "(cached) " >&6
13868 rm -rf conftestd1a conftestd1b conftestd2
13869 mkdir conftestd1a conftestd1b conftestd2
13870 cat <<EOF > conftestd1a/conftest.h
13871 #define DEFINED_IN_CONFTESTD1
13872 #include_next <conftest.h>
13873 #ifdef DEFINED_IN_CONFTESTD2
13876 #error "include_next doesn't work"
13879 cat <<EOF > conftestd1b/conftest.h
13880 #define DEFINED_IN_CONFTESTD1
13882 #include_next <conftest.h>
13883 #ifdef DEFINED_IN_CONFTESTD2
13886 #error "include_next doesn't work"
13889 cat <<EOF > conftestd2/conftest.h
13890 #ifndef DEFINED_IN_CONFTESTD1
13891 #error "include_next test doesn't work"
13893 #define DEFINED_IN_CONFTESTD2
13895 gl_save_CPPFLAGS
="$CPPFLAGS"
13896 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 #include <conftest.h>
13901 if ac_fn_c_try_compile
"$LINENO"; then :
13902 gl_cv_have_include_next
=yes
13904 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 #include <conftest.h>
13909 if ac_fn_c_try_compile
"$LINENO"; then :
13910 gl_cv_have_include_next
=buggy
13912 gl_cv_have_include_next
=no
13914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13918 CPPFLAGS
="$gl_save_CPPFLAGS"
13919 rm -rf conftestd1a conftestd1b conftestd2
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13923 $as_echo "$gl_cv_have_include_next" >&6; }
13924 PRAGMA_SYSTEM_HEADER
=
13925 if test $gl_cv_have_include_next = yes; then
13926 INCLUDE_NEXT
=include_next
13927 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13928 if test -n "$GCC"; then
13929 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
13932 if test $gl_cv_have_include_next = buggy
; then
13933 INCLUDE_NEXT
=include
13934 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
13936 INCLUDE_NEXT
=include
13937 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13944 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13945 if ${gl_cv_pragma_columns+:} false
; then :
13946 $as_echo_n "(cached) " >&6
13948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13957 $EGREP "choke me" >/dev
/null
2>&1; then :
13958 gl_cv_pragma_columns
=yes
13960 gl_cv_pragma_columns
=no
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13967 $as_echo "$gl_cv_pragma_columns" >&6; }
13968 if test $gl_cv_pragma_columns = yes; then
13969 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
13990 if test $gl_cv_have_include_next = yes; then
13991 gl_cv_next_getopt_h
='<'getopt.h
'>'
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13994 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13995 if ${gl_cv_next_getopt_h+:} false
; then :
13996 $as_echo_n "(cached) " >&6
13999 if test $ac_cv_header_getopt_h = yes; then
14002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14004 #include <getopt.h>
14008 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14009 *) gl_absname_cpp
="$ac_cpp" ;;
14011 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14012 sed -n '\#/getopt.h#{
14013 s#.*"\(.*/getopt.h\)".*#\1#
14019 gl_cv_next_getopt_h
='<'getopt.h
'>'
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14025 $as_echo "$gl_cv_next_getopt_h" >&6; }
14027 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
14029 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14031 gl_next_as_first_directive
='<'getopt.h
'>'
14033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14034 gl_next_as_first_directive
=$gl_cv_next_getopt_h
14036 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
14041 if test $ac_cv_header_getopt_h = yes; then
14050 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14051 for ac_header
in getopt.h
14053 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14054 if test "x$ac_cv_header_getopt_h" = xyes
; then :
14055 cat >>confdefs.h
<<_ACEOF
14056 #define HAVE_GETOPT_H 1
14060 gl_replace_getopt
=yes
14067 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14068 for ac_func
in getopt_long_only
14070 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14071 if test "x$ac_cv_func_getopt_long_only" = xyes
; then :
14072 cat >>confdefs.h
<<_ACEOF
14073 #define HAVE_GETOPT_LONG_ONLY 1
14077 gl_replace_getopt
=yes
14083 if test -z "$gl_replace_getopt"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14085 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14086 if ${gl_cv_func_getopt_posix+:} false
; then :
14087 $as_echo_n "(cached) " >&6
14090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <unistd.h>
14096 int *p = &optreset; return optreset;
14101 if ac_fn_c_try_compile
"$LINENO"; then :
14104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h. */
14106 #include <getopt.h>
14110 return !getopt_clip;
14115 if ac_fn_c_try_compile
"$LINENO"; then :
14120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14124 gl_save_CPPFLAGS
=$CPPFLAGS
14125 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14126 if test "$cross_compiling" = yes; then :
14128 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
14129 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
14130 *) gl_cv_func_getopt_posix
="guessing yes";;
14134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14137 #include <unistd.h>
14138 #include <stdlib.h>
14139 #include <string.h>
14149 argv[argc++] = "program";
14150 argv[argc++] = "-a";
14151 argv[argc++] = "foo";
14152 argv[argc++] = "bar";
14154 optind = OPTIND_MIN;
14157 c = getopt (argc, argv, "ab");
14160 c = getopt (argc, argv, "ab");
14163 if (!(optind == 2))
14166 /* Some internal state exists at this point. */
14172 argv[argc++] = "program";
14173 argv[argc++] = "donald";
14174 argv[argc++] = "-p";
14175 argv[argc++] = "billy";
14176 argv[argc++] = "duck";
14177 argv[argc++] = "-a";
14178 argv[argc++] = "bar";
14180 optind = OPTIND_MIN;
14183 c = getopt (argc, argv, "+abp:q:");
14186 if (!(strcmp (argv[0], "program") == 0))
14188 if (!(strcmp (argv[1], "donald") == 0))
14190 if (!(strcmp (argv[2], "-p") == 0))
14192 if (!(strcmp (argv[3], "billy") == 0))
14194 if (!(strcmp (argv[4], "duck") == 0))
14196 if (!(strcmp (argv[5], "-a") == 0))
14198 if (!(strcmp (argv[6], "bar") == 0))
14200 if (!(optind == 1))
14203 /* Detect MacOS 10.5, AIX 7.1 bug. */
14205 char *argv[3] = { "program", "-ab", NULL };
14206 optind = OPTIND_MIN;
14208 if (getopt (2, argv, "ab:") != 'a')
14210 if (getopt (2, argv, "ab:") != '?')
14222 if ac_fn_c_try_run
"$LINENO"; then :
14223 gl_cv_func_getopt_posix
=yes
14225 gl_cv_func_getopt_posix
=no
14227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14231 CPPFLAGS
=$gl_save_CPPFLAGS
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14235 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14236 case "$gl_cv_func_getopt_posix" in
14237 *no
) gl_replace_getopt
=yes ;;
14241 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14243 $as_echo_n "checking for working GNU getopt function... " >&6; }
14244 if ${gl_cv_func_getopt_gnu+:} false
; then :
14245 $as_echo_n "(cached) " >&6
14247 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14248 # optstring is necessary for programs like m4 that have POSIX-mandated
14249 # semantics for supporting options interspersed with files.
14250 # Also, since getopt_long is a GNU extension, we require optind=0.
14251 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14252 # so take care to revert to the correct (non-)export state.
14253 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14254 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14255 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
14256 x
) gl_had_POSIXLY_CORRECT
=yes ;;
14257 *) gl_had_POSIXLY_CORRECT
= ;;
14260 export POSIXLY_CORRECT
14261 if test "$cross_compiling" = yes; then :
14262 case $host_os:$ac_cv_have_decl_optreset in
14263 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
14264 *:yes) gl_cv_func_getopt_gnu
=no
;;
14265 *) gl_cv_func_getopt_gnu
=yes;;
14269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 #include <getopt.h>
14272 #include <stddef.h>
14273 #include <string.h>
14280 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14281 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14282 OSF/1 5.1, Solaris 10. */
14285 myargv[0] = "conftest";
14289 if (getopt (2, myargv, "+a") != '?')
14292 /* This code succeeds on glibc 2.8, mingw,
14293 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14294 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14296 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14299 if (getopt (4, argv, "p::") != 'p')
14301 else if (optarg != NULL)
14303 else if (getopt (4, argv, "p::") != -1)
14305 else if (optind != 2)
14308 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14310 char *argv[] = { "program", "foo", "-p", NULL };
14312 if (getopt (3, argv, "-p") != 1)
14314 else if (getopt (3, argv, "-p") != 'p')
14317 /* This code fails on glibc 2.11. */
14319 char *argv[] = { "program", "-b", "-a", NULL };
14320 optind = opterr = 0;
14321 if (getopt (3, argv, "+:a:b") != 'b')
14323 else if (getopt (3, argv, "+:a:b") != ':')
14332 if ac_fn_c_try_run
"$LINENO"; then :
14333 gl_cv_func_getopt_gnu
=yes
14335 gl_cv_func_getopt_gnu
=no
14337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14338 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14341 case $gl_had_POSIXLY_CORRECT in
14343 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
14344 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14349 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14350 if test "$gl_cv_func_getopt_gnu" = "no"; then
14351 gl_replace_getopt
=yes
14355 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14356 if test "x$ac_cv_have_decl_getenv" = xyes
; then :
14362 cat >>confdefs.h
<<_ACEOF
14363 #define HAVE_DECL_GETENV $ac_have_decl
14371 if test -n "$gl_replace_getopt"; then :
14377 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14381 GNULIB_UNISTD_H_GETOPT
=1
14390 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
14400 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
14412 GNULIB_NANOSLEEP
=0;
14416 HAVE_DECL_LOCALTIME_R
=1;
14420 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14421 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14422 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14423 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14428 for ac_func
in $ac_func_list
14430 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14431 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14432 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14433 cat >>confdefs.h
<<_ACEOF
14434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14443 gl_cv_c_multiarch
=no
14444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #ifndef __APPLE_CC__
14447 not a universal capable compiler
14452 if ac_fn_c_try_compile
"$LINENO"; then :
14456 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14457 if test -n "$prev"; then
14459 i?
86 | x86_64 | ppc | ppc64
)
14460 if test -z "$arch" ||
test "$arch" = "$word"; then
14463 gl_cv_c_multiarch
=yes
14469 if test "x$word" = "x-arch"; then
14476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14477 if test $gl_cv_c_multiarch = yes; then
14478 APPLE_UNIVERSAL_BUILD
=1
14480 APPLE_UNIVERSAL_BUILD
=0
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14485 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14486 if ${ac_cv_header_stdbool_h+:} false
; then :
14487 $as_echo_n "(cached) " >&6
14489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14492 #include <stdbool.h>
14494 "error: bool is not defined"
14497 "error: false is not defined"
14500 "error: false is not 0"
14503 "error: true is not defined"
14506 "error: true is not 1"
14508 #ifndef __bool_true_false_are_defined
14509 "error: __bool_true_false_are_defined is not defined"
14512 struct s { _Bool s: 1; _Bool t; } s;
14514 char a[true == 1 ? 1 : -1];
14515 char b[false == 0 ? 1 : -1];
14516 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14517 char d[(bool) 0.5 == true ? 1 : -1];
14518 /* See body of main program for 'e'. */
14519 char f[(_Bool) 0.0 == false ? 1 : -1];
14521 char h[sizeof (_Bool)];
14522 char i[sizeof s.t];
14523 enum { j = false, k = true, l = false * true, m = true * 256 };
14524 /* The following fails for
14525 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14527 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14528 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14529 /* Catch a bug in an HP-UX C compiler. See
14530 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14531 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14543 /* Refer to every declared value, to avoid compiler optimizations. */
14544 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14545 + !m + !n + !o + !p + !q + !pq);
14551 if ac_fn_c_try_compile
"$LINENO"; then :
14552 ac_cv_header_stdbool_h
=yes
14554 ac_cv_header_stdbool_h
=no
14556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14559 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14560 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14561 if test "x$ac_cv_type__Bool" = xyes
; then :
14563 cat >>confdefs.h
<<_ACEOF
14564 #define HAVE__BOOL 1
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14578 $as_echo_n "checking for wchar_t... " >&6; }
14579 if ${gt_cv_c_wchar_t+:} false
; then :
14580 $as_echo_n "(cached) " >&6
14582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <stddef.h>
14585 wchar_t foo = (wchar_t)'\0';
14594 if ac_fn_c_try_compile
"$LINENO"; then :
14595 gt_cv_c_wchar_t
=yes
14599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14602 $as_echo "$gt_cv_c_wchar_t" >&6; }
14603 if test $gt_cv_c_wchar_t = yes; then
14605 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14611 $as_echo_n "checking for unsigned long long int... " >&6; }
14612 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
14613 $as_echo_n "(cached) " >&6
14615 ac_cv_type_unsigned_long_long_int
=yes
14616 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14620 /* For now, do not test the preprocessor; as of 2007 there are too many
14621 implementations with broken preprocessors. Perhaps this can
14622 be revisited in 2012. In the meantime, code should not expect
14623 #if to work with literals wider than 32 bits. */
14624 /* Test literals. */
14625 long long int ll = 9223372036854775807ll;
14626 long long int nll = -9223372036854775807LL;
14627 unsigned long long int ull = 18446744073709551615ULL;
14628 /* Test constant expressions. */
14629 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14631 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14637 /* Test availability of runtime routines for shift and division. */
14638 long long int llmax = 9223372036854775807ll;
14639 unsigned long long int ullmax = 18446744073709551615ull;
14640 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14641 | (llmax / ll) | (llmax % ll)
14642 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14643 | (ullmax / ull) | (ullmax % ull));
14649 if ac_fn_c_try_link
"$LINENO"; then :
14652 ac_cv_type_unsigned_long_long_int
=no
14654 rm -f core conftest.err conftest.
$ac_objext \
14655 conftest
$ac_exeext conftest.
$ac_ext
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14659 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14660 if test $ac_cv_type_unsigned_long_long_int = yes; then
14662 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14669 $as_echo_n "checking for long long int... " >&6; }
14670 if ${ac_cv_type_long_long_int+:} false
; then :
14671 $as_echo_n "(cached) " >&6
14673 ac_cv_type_long_long_int
=yes
14674 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
14675 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
14676 if test $ac_cv_type_long_long_int = yes; then
14677 if test "$cross_compiling" = yes; then :
14680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #include <limits.h>
14685 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14686 # define LLONG_MAX (HALF - 1 + HALF)
14691 long long int n = 1;
14695 long long int m = n << i;
14698 if (LLONG_MAX / 2 < m)
14706 if ac_fn_c_try_run
"$LINENO"; then :
14709 ac_cv_type_long_long_int
=no
14711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14719 $as_echo "$ac_cv_type_long_long_int" >&6; }
14720 if test $ac_cv_type_long_long_int = yes; then
14722 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14731 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14733 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
14735 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14743 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14744 if ${ac_cv_c_restrict+:} false
; then :
14745 $as_echo_n "(cached) " >&6
14747 ac_cv_c_restrict
=no
14748 # The order here caters to the fact that C++ does not require restrict.
14749 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 typedef int * int_ptr;
14753 int foo (int_ptr $ac_kw ip) {
14760 int * $ac_kw t = s;
14767 if ac_fn_c_try_compile
"$LINENO"; then :
14768 ac_cv_c_restrict
=$ac_kw
14770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14771 test "$ac_cv_c_restrict" != no
&& break
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14776 $as_echo "$ac_cv_c_restrict" >&6; }
14778 case $ac_cv_c_restrict in
14780 no
) $as_echo "#define restrict /**/" >>confdefs.h
14782 *) cat >>confdefs.h
<<_ACEOF
14783 #define restrict $ac_cv_c_restrict
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14793 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14794 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14795 $as_echo_n "(cached) " >&6
14797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14804 static struct timespec x; x.tv_sec = x.tv_nsec;
14809 if ac_fn_c_try_compile
"$LINENO"; then :
14810 gl_cv_sys_struct_timespec_in_time_h
=yes
14812 gl_cv_sys_struct_timespec_in_time_h
=no
14814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14817 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14819 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14820 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14821 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14822 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14823 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14826 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14827 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14828 $as_echo_n "(cached) " >&6
14830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 #include <sys/time.h>
14837 static struct timespec x; x.tv_sec = x.tv_nsec;
14842 if ac_fn_c_try_compile
"$LINENO"; then :
14843 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14845 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14850 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14851 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14852 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14855 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14856 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14857 $as_echo_n "(cached) " >&6
14859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include <pthread.h>
14866 static struct timespec x; x.tv_sec = x.tv_nsec;
14871 if ac_fn_c_try_compile
"$LINENO"; then :
14872 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14874 gl_cv_sys_struct_timespec_in_pthread_h
=no
14876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14879 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14880 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14881 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14900 if test $gl_cv_have_include_next = yes; then
14901 gl_cv_next_time_h
='<'time.h
'>'
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14904 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14905 if ${gl_cv_next_time_h+:} false
; then :
14906 $as_echo_n "(cached) " >&6
14909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14915 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14916 *) gl_absname_cpp
="$ac_cpp" ;;
14918 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14919 sed -n '\#/time.h#{
14920 s#.*"\(.*/time.h\)".*#\1#
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14929 $as_echo "$gl_cv_next_time_h" >&6; }
14931 NEXT_TIME_H
=$gl_cv_next_time_h
14933 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14935 gl_next_as_first_directive
='<'time.h
'>'
14937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14938 gl_next_as_first_directive
=$gl_cv_next_time_h
14940 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14947 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14948 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
14954 cat >>confdefs.h
<<_ACEOF
14955 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14962 GL_COND_LIBTOOL_TRUE
=
14963 GL_COND_LIBTOOL_FALSE
='#'
14965 GL_COND_LIBTOOL_TRUE
='#'
14966 GL_COND_LIBTOOL_FALSE
=
14969 gl_cond_libtool
=false
14982 gl_source_base
='lib'
14983 # Code from module arg-nonnull:
14984 # Code from module c++defs:
14985 # Code from module crypto/md5:
14995 gl_LIBOBJS
="$gl_LIBOBJS md5.$ac_objext"
15002 # Code from module dtoastr:
15004 # Code from module extensions:
15005 # Code from module getloadavg:
15008 # Persuade glibc <stdlib.h> to declare getloadavg().
15011 # Make sure getloadavg.c is where it belongs, at configure-time.
15012 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15013 as_fn_error $?
"$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15017 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15018 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15019 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15020 if test "x$ac_cv_func_getloadavg" = xyes
; then :
15025 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15026 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15027 # to get the right answer into the cache.
15028 # For kstat on solaris, we need to test for libelf and libkvm to force the
15029 # definition of SVR4 below.
15030 if test $gl_have_func = no
; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15032 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15033 if ${ac_cv_lib_elf_elf_begin+:} false
; then :
15034 $as_echo_n "(cached) " >&6
15036 ac_check_lib_save_LIBS
=$LIBS
15038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15041 /* Override any GCC internal prototype to avoid an error.
15042 Use char because int might match the return type of a GCC
15043 builtin and then its argument prototype would still apply. */
15051 return elf_begin ();
15056 if ac_fn_c_try_link
"$LINENO"; then :
15057 ac_cv_lib_elf_elf_begin
=yes
15059 ac_cv_lib_elf_elf_begin
=no
15061 rm -f core conftest.err conftest.
$ac_objext \
15062 conftest
$ac_exeext conftest.
$ac_ext
15063 LIBS
=$ac_check_lib_save_LIBS
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15066 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15067 if test "x$ac_cv_lib_elf_elf_begin" = xyes
; then :
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15072 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15073 if ${ac_cv_lib_kvm_kvm_open+:} false
; then :
15074 $as_echo_n "(cached) " >&6
15076 ac_check_lib_save_LIBS
=$LIBS
15078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15081 /* Override any GCC internal prototype to avoid an error.
15082 Use char because int might match the return type of a GCC
15083 builtin and then its argument prototype would still apply. */
15091 return kvm_open ();
15096 if ac_fn_c_try_link
"$LINENO"; then :
15097 ac_cv_lib_kvm_kvm_open
=yes
15099 ac_cv_lib_kvm_kvm_open
=no
15101 rm -f core conftest.err conftest.
$ac_objext \
15102 conftest
$ac_exeext conftest.
$ac_ext
15103 LIBS
=$ac_check_lib_save_LIBS
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15106 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15107 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
; then :
15111 # Check for the 4.4BSD definition of getloadavg.
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15113 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15114 if ${ac_cv_lib_util_getloadavg+:} false
; then :
15115 $as_echo_n "(cached) " >&6
15117 ac_check_lib_save_LIBS
=$LIBS
15118 LIBS
="-lutil $LIBS"
15119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15122 /* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15128 char getloadavg ();
15132 return getloadavg ();
15137 if ac_fn_c_try_link
"$LINENO"; then :
15138 ac_cv_lib_util_getloadavg
=yes
15140 ac_cv_lib_util_getloadavg
=no
15142 rm -f core conftest.err conftest.
$ac_objext \
15143 conftest
$ac_exeext conftest.
$ac_ext
15144 LIBS
=$ac_check_lib_save_LIBS
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15147 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15148 if test "x$ac_cv_lib_util_getloadavg" = xyes
; then :
15149 LIBS
="-lutil $LIBS" gl_have_func
=yes
15154 if test $gl_have_func = no
; then
15155 # There is a commonly available library for RS/6000 AIX.
15156 # Since it is not a standard part of AIX, it might be installed locally.
15157 gl_getloadavg_LIBS
=$LIBS
15158 LIBS
="-L/usr/local/lib $LIBS"
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15160 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15161 if ${ac_cv_lib_getloadavg_getloadavg+:} false
; then :
15162 $as_echo_n "(cached) " >&6
15164 ac_check_lib_save_LIBS
=$LIBS
15165 LIBS
="-lgetloadavg $LIBS"
15166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15169 /* Override any GCC internal prototype to avoid an error.
15170 Use char because int might match the return type of a GCC
15171 builtin and then its argument prototype would still apply. */
15175 char getloadavg ();
15179 return getloadavg ();
15184 if ac_fn_c_try_link
"$LINENO"; then :
15185 ac_cv_lib_getloadavg_getloadavg
=yes
15187 ac_cv_lib_getloadavg_getloadavg
=no
15189 rm -f core conftest.err conftest.
$ac_objext \
15190 conftest
$ac_exeext conftest.
$ac_ext
15191 LIBS
=$ac_check_lib_save_LIBS
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15194 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15195 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
; then :
15196 LIBS
="-lgetloadavg $LIBS" gl_have_func
=yes
15198 LIBS
=$gl_getloadavg_LIBS
15203 # Set up the replacement function if necessary.
15204 if test $gl_have_func = no
; then
15213 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
15216 # Figure out what our getloadavg.c needs.
15218 # Solaris has libkstat which does not require root.
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15220 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15221 if ${ac_cv_lib_kstat_kstat_open+:} false
; then :
15222 $as_echo_n "(cached) " >&6
15224 ac_check_lib_save_LIBS
=$LIBS
15225 LIBS
="-lkstat $LIBS"
15226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15229 /* Override any GCC internal prototype to avoid an error.
15230 Use char because int might match the return type of a GCC
15231 builtin and then its argument prototype would still apply. */
15235 char kstat_open ();
15239 return kstat_open ();
15244 if ac_fn_c_try_link
"$LINENO"; then :
15245 ac_cv_lib_kstat_kstat_open
=yes
15247 ac_cv_lib_kstat_kstat_open
=no
15249 rm -f core conftest.err conftest.
$ac_objext \
15250 conftest
$ac_exeext conftest.
$ac_ext
15251 LIBS
=$ac_check_lib_save_LIBS
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15254 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15255 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
; then :
15256 cat >>confdefs.h
<<_ACEOF
15257 #define HAVE_LIBKSTAT 1
15260 LIBS
="-lkstat $LIBS"
15264 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func
=yes
15266 # On HPUX9, an unprivileged user can get load averages this way.
15267 if test $gl_have_func = no
; then
15268 for ac_func
in pstat_getdynamic
15270 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15271 if test "x$ac_cv_func_pstat_getdynamic" = xyes
; then :
15272 cat >>confdefs.h
<<_ACEOF
15273 #define HAVE_PSTAT_GETDYNAMIC 1
15281 # AIX has libperfstat which does not require root
15282 if test $gl_have_func = no
; then
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15284 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15285 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false
; then :
15286 $as_echo_n "(cached) " >&6
15288 ac_check_lib_save_LIBS
=$LIBS
15289 LIBS
="-lperfstat $LIBS"
15290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15299 char perfstat_cpu_total ();
15303 return perfstat_cpu_total ();
15308 if ac_fn_c_try_link
"$LINENO"; then :
15309 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
15311 ac_cv_lib_perfstat_perfstat_cpu_total
=no
15313 rm -f core conftest.err conftest.
$ac_objext \
15314 conftest
$ac_exeext conftest.
$ac_ext
15315 LIBS
=$ac_check_lib_save_LIBS
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15318 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15319 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
; then :
15320 cat >>confdefs.h
<<_ACEOF
15321 #define HAVE_LIBPERFSTAT 1
15324 LIBS
="-lperfstat $LIBS"
15328 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func
=yes
15331 if test $gl_have_func = no
; then
15332 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15333 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
; then :
15336 $as_echo "#define DGUX 1" >>confdefs.h
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15339 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15340 if ${ac_cv_lib_dgc_dg_sys_info+:} false
; then :
15341 $as_echo_n "(cached) " >&6
15343 ac_check_lib_save_LIBS
=$LIBS
15345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15348 /* Override any GCC internal prototype to avoid an error.
15349 Use char because int might match the return type of a GCC
15350 builtin and then its argument prototype would still apply. */
15354 char dg_sys_info ();
15358 return dg_sys_info ();
15363 if ac_fn_c_try_link
"$LINENO"; then :
15364 ac_cv_lib_dgc_dg_sys_info
=yes
15366 ac_cv_lib_dgc_dg_sys_info
=no
15368 rm -f core conftest.err conftest.
$ac_objext \
15369 conftest
$ac_exeext conftest.
$ac_ext
15370 LIBS
=$ac_check_lib_save_LIBS
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15373 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15374 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
; then :
15375 cat >>confdefs.h
<<_ACEOF
15376 #define HAVE_LIBDGC 1
15388 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15389 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15390 # Irix 4.0.5F has the header but not the library.
15391 if test $gl_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
15392 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15395 $as_echo "#define SVR4 1" >>confdefs.h
15399 if test $gl_have_func = no
; then
15400 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15401 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
; then :
15404 $as_echo "#define UMAX 1" >>confdefs.h
15407 $as_echo "#define UMAX4_3 1" >>confdefs.h
15414 if test $gl_have_func = no
; then
15415 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15416 if test "x$ac_cv_header_sys_cpustats_h" = xyes
; then :
15417 gl_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
15424 if test $gl_have_func = no
; then
15425 for ac_header
in mach
/mach.h
15427 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15428 if test "x$ac_cv_header_mach_mach_h" = xyes
; then :
15429 cat >>confdefs.h
<<_ACEOF
15430 #define HAVE_MACH_MACH_H 1
15439 for ac_header
in nlist.h
15441 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15442 if test "x$ac_cv_header_nlist_h" = xyes
; then :
15443 cat >>confdefs.h
<<_ACEOF
15444 #define HAVE_NLIST_H 1
15446 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15448 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
; then :
15450 cat >>confdefs.h
<<_ACEOF
15451 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h. */
15464 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15465 x.n_un.n_name = "";
15473 if ac_fn_c_try_link
"$LINENO"; then :
15475 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15478 rm -f core conftest.err conftest.
$ac_objext \
15479 conftest
$ac_exeext conftest.
$ac_ext
15489 if test "x$gl_save_LIBS" = x
; then
15490 GETLOADAVG_LIBS
=$LIBS
15492 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15497 # Test whether the system declares getloadavg. Solaris has the function
15498 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15499 for ac_header
in sys
/loadavg.h
15501 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15502 if test "x$ac_cv_header_sys_loadavg_h" = xyes
; then :
15503 cat >>confdefs.h
<<_ACEOF
15504 #define HAVE_SYS_LOADAVG_H 1
15511 if test $ac_cv_header_sys_loadavg_h = yes; then
15512 HAVE_SYS_LOADAVG_H
=1
15514 HAVE_SYS_LOADAVG_H
=0
15516 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15517 # include <sys/loadavg.h>
15519 #include <stdlib.h>
15521 if test "x$ac_cv_have_decl_getloadavg" = xyes
; then :
15524 HAVE_DECL_GETLOADAVG
=0
15531 GNULIB_GETLOADAVG
=1
15535 # Code from module getopt-gnu:
15542 # Code from module getopt-posix:
15548 if test -n "$gl_replace_getopt"; then :
15554 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15558 GNULIB_UNISTD_H_GETOPT
=1
15567 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
15577 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
15587 # Code from module gettext-h:
15590 # Code from module ignore-value:
15592 # Code from module include_next:
15593 # Code from module intprops:
15594 # Code from module mktime:
15600 if test $APPLE_UNIVERSAL_BUILD = 1; then
15601 # A universal build on Apple MacOS X platforms.
15602 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15603 # But we need a configuration result that is valid in both modes.
15604 ac_cv_func_working_mktime
=no
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15607 $as_echo_n "checking for working mktime... " >&6; }
15608 if ${ac_cv_func_working_mktime+:} false
; then :
15609 $as_echo_n "(cached) " >&6
15611 if test "$cross_compiling" = yes; then :
15612 ac_cv_func_working_mktime
=no
15614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 /* Test program from Paul Eggert and Tony Leneis. */
15617 #include <limits.h>
15618 #include <stdlib.h>
15621 #ifdef HAVE_UNISTD_H
15622 # include <unistd.h>
15626 # define alarm(X) /* empty */
15629 /* Work around redefinition to rpl_putenv by other config tests. */
15632 static time_t time_t_max;
15633 static time_t time_t_min;
15635 /* Values we'll use to set the TZ environment variable. */
15636 static char *tz_strings[] = {
15637 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15638 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15640 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15642 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15643 Based on a problem report from Andreas Jaeger. */
15645 spring_forward_gap ()
15647 /* glibc (up to about 1998-10-07) failed this test. */
15650 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15651 instead of "TZ=America/Vancouver" in order to detect the bug even
15652 on systems that don't support the Olson extension, or don't have the
15653 full zoneinfo tables installed. */
15654 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15663 return mktime (&tm) != (time_t) -1;
15667 mktime_test1 (time_t now)
15670 return ! (lt = localtime (&now)) || mktime (lt) == now;
15674 mktime_test (time_t now)
15676 return (mktime_test1 (now)
15677 && mktime_test1 ((time_t) (time_t_max - now))
15678 && mktime_test1 ((time_t) (time_t_min + now)));
15684 /* Based on code from Ariel Faigon. */
15694 return tm.tm_mon == 2 && tm.tm_mday == 31;
15698 bigtime_test (int j)
15702 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15703 now = mktime (&tm);
15704 if (now != (time_t) -1)
15706 struct tm *lt = localtime (&now);
15708 && lt->tm_year == tm.tm_year
15709 && lt->tm_mon == tm.tm_mon
15710 && lt->tm_mday == tm.tm_mday
15711 && lt->tm_hour == tm.tm_hour
15712 && lt->tm_min == tm.tm_min
15713 && lt->tm_sec == tm.tm_sec
15714 && lt->tm_yday == tm.tm_yday
15715 && lt->tm_wday == tm.tm_wday
15716 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15717 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15726 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15727 ignoring leap seconds. */
15728 unsigned long int answer = 2527315200UL;
15732 tm.tm_year = 2050 - 1900;
15735 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15738 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15739 instead of "TZ=America/Vancouver" in order to detect the bug even
15740 on systems that don't support the Olson extension, or don't have the
15741 full zoneinfo tables installed. */
15742 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15746 /* Check that the result is either a failure, or close enough
15747 to the correct answer that we can assume the discrepancy is
15748 due to leap seconds. */
15749 return (t == (time_t) -1
15750 || (0 < t && answer - 120 <= t && t <= answer + 120));
15759 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15760 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15762 /* This test makes some buggy mktime implementations loop.
15763 Give up after 60 seconds; a mktime slower than that
15764 isn't worth using anyway. */
15767 time_t_max = (! time_t_signed
15769 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15771 time_t_min = (! time_t_signed
15773 : time_t_signed_magnitude
15777 delta = time_t_max / 997; /* a suitable prime number */
15778 for (i = 0; i < N_STRINGS; i++)
15781 putenv (tz_strings[i]);
15783 for (t = 0; t <= time_t_max - delta; t += delta)
15784 if (! mktime_test (t))
15786 if (! (mktime_test ((time_t) 1)
15787 && mktime_test ((time_t) (60 * 60))
15788 && mktime_test ((time_t) (60 * 60 * 24))))
15791 for (j = 1; ; j <<= 1)
15792 if (! bigtime_test (j))
15794 else if (INT_MAX / 2 < j)
15796 if (! bigtime_test (INT_MAX))
15799 if (! irix_6_4_bug ())
15801 if (! spring_forward_gap ())
15803 if (! year_2050_test ())
15808 if ac_fn_c_try_run
"$LINENO"; then :
15809 ac_cv_func_working_mktime
=yes
15811 ac_cv_func_working_mktime
=no
15813 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15814 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15819 $as_echo "$ac_cv_func_working_mktime" >&6; }
15820 if test $ac_cv_func_working_mktime = no
; then
15829 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
15833 if test $ac_cv_func_working_mktime = no
; then
15849 # Code from module multiarch:
15851 # Code from module stdbool:
15855 # Define two additional variables used in the Makefile substitution.
15857 if test "$ac_cv_header_stdbool_h" = yes; then
15860 STDBOOL_H
='stdbool.h'
15864 if test "$ac_cv_type__Bool" = yes; then
15871 # Code from module stddef:
15875 if test $gt_cv_c_wchar_t = no
; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15880 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15881 if ${gl_cv_decl_null_works+:} false
; then :
15882 $as_echo_n "(cached) " >&6
15884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886 #include <stddef.h>
15887 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15897 if ac_fn_c_try_compile
"$LINENO"; then :
15898 gl_cv_decl_null_works
=yes
15900 gl_cv_decl_null_works
=no
15902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15905 $as_echo "$gl_cv_decl_null_works" >&6; }
15906 if test $gl_cv_decl_null_works = no
; then
15910 if test -n "$STDDEF_H"; then
15919 if test $gl_cv_have_include_next = yes; then
15920 gl_cv_next_stddef_h
='<'stddef.h
'>'
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15923 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15924 if ${gl_cv_next_stddef_h+:} false
; then :
15925 $as_echo_n "(cached) " >&6
15928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930 #include <stddef.h>
15934 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15935 *) gl_absname_cpp
="$ac_cpp" ;;
15937 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15938 sed -n '\#/stddef.h#{
15939 s#.*"\(.*/stddef.h\)".*#\1#
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15948 $as_echo "$gl_cv_next_stddef_h" >&6; }
15950 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
15952 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15954 gl_next_as_first_directive
='<'stddef.h
'>'
15956 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15957 gl_next_as_first_directive
=$gl_cv_next_stddef_h
15959 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
15966 # Code from module stdint:
15970 if test $ac_cv_type_long_long_int = yes; then
15971 HAVE_LONG_LONG_INT
=1
15973 HAVE_LONG_LONG_INT
=0
15977 if test $ac_cv_type_unsigned_long_long_int = yes; then
15978 HAVE_UNSIGNED_LONG_LONG_INT
=1
15980 HAVE_UNSIGNED_LONG_LONG_INT
=0
15985 if test $ac_cv_header_wchar_h = yes; then
15992 if test $ac_cv_header_inttypes_h = yes; then
15999 if test $ac_cv_header_sys_types_h = yes; then
16015 if test $gl_cv_have_include_next = yes; then
16016 gl_cv_next_stdint_h
='<'stdint.h
'>'
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16019 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16020 if ${gl_cv_next_stdint_h+:} false
; then :
16021 $as_echo_n "(cached) " >&6
16024 if test $ac_cv_header_stdint_h = yes; then
16027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 #include <stdint.h>
16033 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16034 *) gl_absname_cpp
="$ac_cpp" ;;
16036 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16037 sed -n '\#/stdint.h#{
16038 s#.*"\(.*/stdint.h\)".*#\1#
16044 gl_cv_next_stdint_h
='<'stdint.h
'>'
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16050 $as_echo "$gl_cv_next_stdint_h" >&6; }
16052 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16054 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16056 gl_next_as_first_directive
='<'stdint.h
'>'
16058 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16059 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16061 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16066 if test $ac_cv_header_stdint_h = yes; then
16073 if test $ac_cv_header_stdint_h = yes; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16075 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16076 if ${gl_cv_header_working_stdint_h+:} false
; then :
16077 $as_echo_n "(cached) " >&6
16079 gl_cv_header_working_stdint_h
=no
16080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16084 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16085 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16086 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16087 #include <stdint.h>
16088 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16089 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16090 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16094 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16095 included before <wchar.h>. */
16096 #include <stddef.h>
16097 #include <signal.h>
16099 # include <stdio.h>
16101 # include <wchar.h>
16106 int8_t a1 = INT8_MAX;
16107 int8_t a1min = INT8_MIN;
16110 int16_t a2 = INT16_MAX;
16111 int16_t a2min = INT16_MIN;
16114 int32_t a3 = INT32_MAX;
16115 int32_t a3min = INT32_MIN;
16118 int64_t a4 = INT64_MAX;
16119 int64_t a4min = INT64_MIN;
16122 uint8_t b1 = UINT8_MAX;
16124 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16127 uint16_t b2 = UINT16_MAX;
16130 uint32_t b3 = UINT32_MAX;
16133 uint64_t b4 = UINT64_MAX;
16135 int_least8_t c1 = INT8_C (0x7f);
16136 int_least8_t c1max = INT_LEAST8_MAX;
16137 int_least8_t c1min = INT_LEAST8_MIN;
16138 int_least16_t c2 = INT16_C (0x7fff);
16139 int_least16_t c2max = INT_LEAST16_MAX;
16140 int_least16_t c2min = INT_LEAST16_MIN;
16141 int_least32_t c3 = INT32_C (0x7fffffff);
16142 int_least32_t c3max = INT_LEAST32_MAX;
16143 int_least32_t c3min = INT_LEAST32_MIN;
16144 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16145 int_least64_t c4max = INT_LEAST64_MAX;
16146 int_least64_t c4min = INT_LEAST64_MIN;
16147 uint_least8_t d1 = UINT8_C (0xff);
16148 uint_least8_t d1max = UINT_LEAST8_MAX;
16149 uint_least16_t d2 = UINT16_C (0xffff);
16150 uint_least16_t d2max = UINT_LEAST16_MAX;
16151 uint_least32_t d3 = UINT32_C (0xffffffff);
16152 uint_least32_t d3max = UINT_LEAST32_MAX;
16153 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16154 uint_least64_t d4max = UINT_LEAST64_MAX;
16155 int_fast8_t e1 = INT_FAST8_MAX;
16156 int_fast8_t e1min = INT_FAST8_MIN;
16157 int_fast16_t e2 = INT_FAST16_MAX;
16158 int_fast16_t e2min = INT_FAST16_MIN;
16159 int_fast32_t e3 = INT_FAST32_MAX;
16160 int_fast32_t e3min = INT_FAST32_MIN;
16161 int_fast64_t e4 = INT_FAST64_MAX;
16162 int_fast64_t e4min = INT_FAST64_MIN;
16163 uint_fast8_t f1 = UINT_FAST8_MAX;
16164 uint_fast16_t f2 = UINT_FAST16_MAX;
16165 uint_fast32_t f3 = UINT_FAST32_MAX;
16166 uint_fast64_t f4 = UINT_FAST64_MAX;
16168 intptr_t g = INTPTR_MAX;
16169 intptr_t gmin = INTPTR_MIN;
16172 uintptr_t h = UINTPTR_MAX;
16174 intmax_t i = INTMAX_MAX;
16175 uintmax_t j = UINTMAX_MAX;
16177 #include <limits.h> /* for CHAR_BIT */
16178 #define TYPE_MINIMUM(t) \
16179 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16180 #define TYPE_MAXIMUM(t) \
16181 ((t) ((t) 0 < (t) -1 \
16183 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16186 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16187 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16189 /* Detect bug in FreeBSD 6.0 / ia64. */
16190 int check_SIG_ATOMIC:
16191 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16192 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16194 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16196 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16197 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16199 /* Detect bug in mingw. */
16201 WINT_MIN == TYPE_MINIMUM (wint_t)
16202 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16205 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16207 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16208 int check_UINT16_C:
16209 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16211 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16213 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16216 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16219 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16222 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16224 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16225 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16226 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16227 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16228 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16229 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16230 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16231 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16232 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16233 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16234 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16245 if ac_fn_c_try_compile
"$LINENO"; then :
16246 if test "$cross_compiling" = yes; then :
16247 gl_cv_header_working_stdint_h
=yes
16250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16254 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16255 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16256 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16257 #include <stdint.h>
16260 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16261 included before <wchar.h>. */
16262 #include <stddef.h>
16263 #include <signal.h>
16265 # include <stdio.h>
16267 # include <wchar.h>
16272 #include <string.h>
16273 #define MVAL(macro) MVAL1(macro)
16274 #define MVAL1(expression) #expression
16275 static const char *macro_values[] =
16309 for (mv = macro_values; *mv != NULL; mv++)
16311 const char *value = *mv;
16312 /* Test whether it looks like a cast expression. */
16313 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16314 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16315 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16316 || strncmp (value, "((int)"/*)*/, 6) == 0
16317 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16318 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16319 return mv - macro_values + 1;
16327 if ac_fn_c_try_run
"$LINENO"; then :
16328 gl_cv_header_working_stdint_h
=yes
16330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16340 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16342 if test "$gl_cv_header_working_stdint_h" = yes; then
16345 for ac_header
in sys
/inttypes.h sys
/bitypes.h
16347 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16348 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16349 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16350 cat >>confdefs.h
<<_ACEOF
16351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16358 if test $ac_cv_header_sys_inttypes_h = yes; then
16359 HAVE_SYS_INTTYPES_H
=1
16361 HAVE_SYS_INTTYPES_H
=0
16364 if test $ac_cv_header_sys_bitypes_h = yes; then
16365 HAVE_SYS_BITYPES_H
=1
16367 HAVE_SYS_BITYPES_H
=0
16373 if test $APPLE_UNIVERSAL_BUILD = 0; then
16376 for gltype
in ptrdiff_t size_t
; do
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16378 $as_echo_n "checking for bit size of $gltype... " >&6; }
16379 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
16380 $as_echo_n "(cached) " >&6
16382 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16383 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16384 included before <wchar.h>. */
16385 #include <stddef.h>
16386 #include <signal.h>
16388 # include <stdio.h>
16390 # include <wchar.h>
16393 #include <limits.h>"; then :
16399 eval gl_cv_bitsizeof_
${gltype}=\
$result
16402 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16404 $as_echo "$ac_res" >&6; }
16405 eval result
=\
$gl_cv_bitsizeof_${gltype}
16406 if test $result = unknown
; then
16409 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16410 cat >>confdefs.h
<<_ACEOF
16411 #define BITSIZEOF_${GLTYPE} $result
16414 eval BITSIZEOF_
${GLTYPE}=\
$result
16421 for gltype
in sig_atomic_t wchar_t wint_t
; do
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16423 $as_echo_n "checking for bit size of $gltype... " >&6; }
16424 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
16425 $as_echo_n "(cached) " >&6
16427 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16428 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16429 included before <wchar.h>. */
16430 #include <stddef.h>
16431 #include <signal.h>
16433 # include <stdio.h>
16435 # include <wchar.h>
16438 #include <limits.h>"; then :
16444 eval gl_cv_bitsizeof_
${gltype}=\
$result
16447 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16449 $as_echo "$ac_res" >&6; }
16450 eval result
=\
$gl_cv_bitsizeof_${gltype}
16451 if test $result = unknown
; then
16454 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16455 cat >>confdefs.h
<<_ACEOF
16456 #define BITSIZEOF_${GLTYPE} $result
16459 eval BITSIZEOF_
${GLTYPE}=\
$result
16465 for gltype
in sig_atomic_t wchar_t wint_t
; do
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16467 $as_echo_n "checking whether $gltype is signed... " >&6; }
16468 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
16469 $as_echo_n "(cached) " >&6
16471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16474 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16475 included before <wchar.h>. */
16476 #include <stddef.h>
16477 #include <signal.h>
16479 # include <stdio.h>
16481 # include <wchar.h>
16484 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16493 if ac_fn_c_try_compile
"$LINENO"; then :
16498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16499 eval gl_cv_type_
${gltype}_signed
=\
$result
16502 eval ac_res
=\
$gl_cv_type_${gltype}_signed
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16504 $as_echo "$ac_res" >&6; }
16505 eval result
=\
$gl_cv_type_${gltype}_signed
16506 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16507 if test "$result" = yes; then
16508 cat >>confdefs.h
<<_ACEOF
16509 #define HAVE_SIGNED_${GLTYPE} 1
16512 eval HAVE_SIGNED_
${GLTYPE}=1
16514 eval HAVE_SIGNED_
${GLTYPE}=0
16519 gl_cv_type_ptrdiff_t_signed
=yes
16520 gl_cv_type_size_t_signed
=no
16521 if test $APPLE_UNIVERSAL_BUILD = 0; then
16524 for gltype
in ptrdiff_t size_t
; do
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16526 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16527 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
16528 $as_echo_n "(cached) " >&6
16530 eval gl_cv_type_
${gltype}_suffix
=no
16531 eval result
=\
$gl_cv_type_${gltype}_signed
16532 if test "$result" = yes; then
16537 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
16539 '') gltype1
='int';;
16540 l
) gltype1
='long int';;
16541 ll
) gltype1
='long long int';;
16542 i64
) gltype1
='__int64';;
16543 u
) gltype1
='unsigned int';;
16544 ul
) gltype1
='unsigned long int';;
16545 ull
) gltype1
='unsigned long long int';;
16546 ui64
)gltype1
='unsigned __int64';;
16548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16551 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16552 included before <wchar.h>. */
16553 #include <stddef.h>
16554 #include <signal.h>
16556 # include <stdio.h>
16558 # include <wchar.h>
16561 extern $gltype foo;
16562 extern $gltype1 foo;
16571 if ac_fn_c_try_compile
"$LINENO"; then :
16572 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
16574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16575 eval result
=\
$gl_cv_type_${gltype}_suffix
16576 test "$result" != no
&& break
16579 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16581 $as_echo "$ac_res" >&6; }
16582 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16583 eval result
=\
$gl_cv_type_${gltype}_suffix
16584 test "$result" = no
&& result
=
16585 eval ${GLTYPE}_SUFFIX
=\
$result
16586 cat >>confdefs.h
<<_ACEOF
16587 #define ${GLTYPE}_SUFFIX $result
16596 for gltype
in sig_atomic_t wchar_t wint_t
; do
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16598 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16599 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
16600 $as_echo_n "(cached) " >&6
16602 eval gl_cv_type_
${gltype}_suffix
=no
16603 eval result
=\
$gl_cv_type_${gltype}_signed
16604 if test "$result" = yes; then
16609 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
16611 '') gltype1
='int';;
16612 l
) gltype1
='long int';;
16613 ll
) gltype1
='long long int';;
16614 i64
) gltype1
='__int64';;
16615 u
) gltype1
='unsigned int';;
16616 ul
) gltype1
='unsigned long int';;
16617 ull
) gltype1
='unsigned long long int';;
16618 ui64
)gltype1
='unsigned __int64';;
16620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16623 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16624 included before <wchar.h>. */
16625 #include <stddef.h>
16626 #include <signal.h>
16628 # include <stdio.h>
16630 # include <wchar.h>
16633 extern $gltype foo;
16634 extern $gltype1 foo;
16643 if ac_fn_c_try_compile
"$LINENO"; then :
16644 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
16646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16647 eval result
=\
$gl_cv_type_${gltype}_suffix
16648 test "$result" != no
&& break
16651 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16653 $as_echo "$ac_res" >&6; }
16654 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16655 eval result
=\
$gl_cv_type_${gltype}_suffix
16656 test "$result" = no
&& result
=
16657 eval ${GLTYPE}_SUFFIX
=\
$result
16658 cat >>confdefs.h
<<_ACEOF
16659 #define ${GLTYPE}_SUFFIX $result
16670 # Code from module stdlib:
16681 if test $gl_cv_have_include_next = yes; then
16682 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16685 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16686 if ${gl_cv_next_stdlib_h+:} false
; then :
16687 $as_echo_n "(cached) " >&6
16690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16692 #include <stdlib.h>
16696 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16697 *) gl_absname_cpp
="$ac_cpp" ;;
16699 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16700 sed -n '\#/stdlib.h#{
16701 s#.*"\(.*/stdlib.h\)".*#\1#
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16710 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16712 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
16714 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16716 gl_next_as_first_directive
='<'stdlib.h
'>'
16718 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16719 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
16721 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
16729 # Code from module strftime:
16740 gl_LIBOBJS
="$gl_LIBOBJS strftime.$ac_objext"
16743 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16751 $as_echo "#define my_strftime nstrftime" >>confdefs.h
16755 # Code from module time:
16759 # Code from module time_r:
16767 if test $ac_cv_have_decl_localtime_r = no
; then
16768 HAVE_DECL_LOCALTIME_R
=0
16772 if test $ac_cv_func_localtime_r = yes; then
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
16775 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
16776 if ${gl_cv_time_r_posix+:} false
; then :
16777 $as_echo_n "(cached) " >&6
16779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16785 /* We don't need to append 'restrict's to the argument types,
16786 even though the POSIX signature has the 'restrict's,
16787 since C99 says they can't affect type compatibility. */
16788 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
16790 /* Check the return type is a pointer.
16791 On HP-UX 10 it is 'int'. */
16792 *localtime_r (0, 0);
16798 if ac_fn_c_try_compile
"$LINENO"; then :
16799 gl_cv_time_r_posix
=yes
16801 gl_cv_time_r_posix
=no
16803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
16807 $as_echo "$gl_cv_time_r_posix" >&6; }
16808 if test $gl_cv_time_r_posix = yes; then
16809 REPLACE_LOCALTIME_R
=0
16811 REPLACE_LOCALTIME_R
=1
16816 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
16825 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
16839 # Code from module unistd:
16853 if test $gl_cv_have_include_next = yes; then
16854 gl_cv_next_unistd_h
='<'unistd.h
'>'
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16857 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16858 if ${gl_cv_next_unistd_h+:} false
; then :
16859 $as_echo_n "(cached) " >&6
16862 if test $ac_cv_header_unistd_h = yes; then
16865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867 #include <unistd.h>
16871 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16872 *) gl_absname_cpp
="$ac_cpp" ;;
16874 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16875 sed -n '\#/unistd.h#{
16876 s#.*"\(.*/unistd.h\)".*#\1#
16882 gl_cv_next_unistd_h
='<'unistd.h
'>'
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
16888 $as_echo "$gl_cv_next_unistd_h" >&6; }
16890 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
16892 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16894 gl_next_as_first_directive
='<'unistd.h
'>'
16896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16897 gl_next_as_first_directive
=$gl_cv_next_unistd_h
16899 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
16904 if test $ac_cv_header_unistd_h = yes; then
16913 # Code from module warn-on-use:
16914 # End of code from modules
16935 gl_source_base
='tests'
16936 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
16938 gl_module_indicator_condition
=$gltests_WITNESS
16948 LIBGNU_LIBDEPS
="$gl_libdeps"
16950 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
16955 for ac_func
in grantpt
16957 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
16958 if test "x$ac_cv_func_grantpt" = xyes
; then :
16959 cat >>confdefs.h
<<_ACEOF
16960 #define HAVE_GRANTPT 1
16967 # PTY-related GNU extensions.
16968 for ac_func
in getpt
16970 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
16971 if test "x$ac_cv_func_getpt" = xyes
; then :
16972 cat >>confdefs.h
<<_ACEOF
16973 #define HAVE_GETPT 1
16980 # Check this now, so that we will NOT find the above functions in ncurses.
16981 # That is because we have not set up to link ncurses in lib-src.
16982 # It's better to believe a function is not available
16983 # than to expect to find it in ncurses.
16984 # Also we need tputs and friends to be able to build at all.
16985 have_tputs_et_al
=true
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
16987 $as_echo_n "checking for library containing tputs... " >&6; }
16988 if ${ac_cv_search_tputs+:} false
; then :
16989 $as_echo_n "(cached) " >&6
16991 ac_func_search_save_LIBS
=$LIBS
16992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16995 /* Override any GCC internal prototype to avoid an error.
16996 Use char because int might match the return type of a GCC
16997 builtin and then its argument prototype would still apply. */
17010 for ac_lib
in '' ncurses terminfo termcap
; do
17011 if test -z "$ac_lib"; then
17012 ac_res
="none required"
17015 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17017 if ac_fn_c_try_link
"$LINENO"; then :
17018 ac_cv_search_tputs
=$ac_res
17020 rm -f core conftest.err conftest.
$ac_objext \
17022 if ${ac_cv_search_tputs+:} false
; then :
17026 if ${ac_cv_search_tputs+:} false
; then :
17029 ac_cv_search_tputs
=no
17031 rm conftest.
$ac_ext
17032 LIBS
=$ac_func_search_save_LIBS
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17035 $as_echo "$ac_cv_search_tputs" >&6; }
17036 ac_res
=$ac_cv_search_tputs
17037 if test "$ac_res" != no
; then :
17038 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17041 have_tputs_et_al
=false
17044 if test "$have_tputs_et_al" != true
; then
17045 as_fn_error $?
"I couldn't find termcap functions (tputs and friends).
17046 Maybe some development libraries/packages are missing? Try installing
17047 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17049 # Must define this when any termcap library is found.
17051 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17053 ## FIXME This was the cpp logic, but I am not sure it is right.
17054 ## The above test has not necessarily found libncurses.
17055 HAVE_LIBNCURSES
=yes
17057 ## Use terminfo instead of termcap?
17058 ## Note only system files NOT using terminfo are:
17059 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17060 ## darwin|gnu without ncurses.
17064 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17065 ## hpux10-20: Use the system provided termcap(3) library.
17066 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17067 ## is necessary. Otherwise Emacs dumps core when run -nw.
17068 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
17070 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17071 ## The ncurses library has been moved out of the System framework in
17072 ## Mac OS X 10.2. So if configure detects it, set the command-line
17073 ## option to use it.
17075 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17076 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17078 LIBS_TERMCAP
="-lncurses"
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17084 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17085 if ${emacs_cv_freebsd_terminfo+:} false
; then :
17086 $as_echo_n "(cached) " >&6
17088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 #include <osreldate.h>
17094 #if __FreeBSD_version < 400000
17102 if ac_fn_c_try_link
"$LINENO"; then :
17103 emacs_cv_freebsd_terminfo
=yes
17105 emacs_cv_freebsd_terminfo
=no
17107 rm -f core conftest.err conftest.
$ac_objext \
17108 conftest
$ac_exeext conftest.
$ac_ext
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17113 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17115 if test $emacs_cv_freebsd_terminfo = yes; then
17117 LIBS_TERMCAP
="-lncurses"
17119 LIBS_TERMCAP
="-ltermcap"
17124 if test $ac_cv_search_tputs = -lterminfo; then
17126 LIBS_TERMCAP
="-lterminfo"
17128 LIBS_TERMCAP
="-ltermcap"
17135 ## hpux: Make sure we get select from libc rather than from libcurses
17136 ## because libcurses on HPUX 10.10 has a broken version of select.
17137 ## We used to use -lc -lcurses, but this may be cleaner.
17138 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
17140 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
17142 ## Must use system termcap, if we use any termcap. It does special things.
17143 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
17146 TERMCAP_OBJ
=tparam.o
17147 if test $TERMINFO = yes; then
17149 $as_echo "#define TERMINFO 1" >>confdefs.h
17152 ## Default used to be -ltermcap. Add a case above if need something else.
17153 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
17155 TERMCAP_OBJ
=terminfo.o
17161 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 #include <netinet/in.h>
17166 #include <arpa/nameser.h>
17167 #include <resolv.h>
17176 if ac_fn_c_try_link
"$LINENO"; then :
17181 rm -f core conftest.err conftest.
$ac_objext \
17182 conftest
$ac_exeext conftest.
$ac_ext
17183 if test "$have_res_init" = no
; then
17185 LIBS
="$LIBS -lresolv"
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17187 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17190 #include <netinet/in.h>
17191 #include <arpa/nameser.h>
17192 #include <resolv.h>
17201 if ac_fn_c_try_link
"$LINENO"; then :
17206 rm -f core conftest.err conftest.
$ac_objext \
17207 conftest
$ac_exeext conftest.
$ac_ext
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17209 $as_echo "$have_res_init" >&6; }
17210 if test "$have_res_init" = yes ; then
17216 if test "$have_res_init" = yes; then
17218 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17222 # Do we need the Hesiod library to provide the support routines?
17224 if test "$with_hesiod" != no
; then
17225 # Don't set $LIBS here -- see comments above. FIXME which comments?
17226 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
17227 if test "x$ac_cv_func_res_send" = xyes
; then :
17230 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
17231 if test "x$ac_cv_func___res_send" = xyes
; then :
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17235 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17236 if ${ac_cv_lib_resolv_res_send+:} false
; then :
17237 $as_echo_n "(cached) " >&6
17239 ac_check_lib_save_LIBS
=$LIBS
17240 LIBS
="-lresolv $LIBS"
17241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17254 return res_send ();
17259 if ac_fn_c_try_link
"$LINENO"; then :
17260 ac_cv_lib_resolv_res_send
=yes
17262 ac_cv_lib_resolv_res_send
=no
17264 rm -f core conftest.err conftest.
$ac_objext \
17265 conftest
$ac_exeext conftest.
$ac_ext
17266 LIBS
=$ac_check_lib_save_LIBS
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17269 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17270 if test "x$ac_cv_lib_resolv_res_send" = xyes
; then :
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17274 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17275 if ${ac_cv_lib_resolv___res_send+:} false
; then :
17276 $as_echo_n "(cached) " >&6
17278 ac_check_lib_save_LIBS
=$LIBS
17279 LIBS
="-lresolv $LIBS"
17280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17289 char __res_send ();
17293 return __res_send ();
17298 if ac_fn_c_try_link
"$LINENO"; then :
17299 ac_cv_lib_resolv___res_send
=yes
17301 ac_cv_lib_resolv___res_send
=no
17303 rm -f core conftest.err conftest.
$ac_objext \
17304 conftest
$ac_exeext conftest.
$ac_ext
17305 LIBS
=$ac_check_lib_save_LIBS
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17308 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
17309 if test "x$ac_cv_lib_resolv___res_send" = xyes
; then :
17319 if test "$resolv" = yes ; then
17324 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
17325 if test "x$ac_cv_func_hes_getmailhost" = xyes
; then :
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17329 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
17330 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false
; then :
17331 $as_echo_n "(cached) " >&6
17333 ac_check_lib_save_LIBS
=$LIBS
17334 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17338 /* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17344 char hes_getmailhost ();
17348 return hes_getmailhost ();
17353 if ac_fn_c_try_link
"$LINENO"; then :
17354 ac_cv_lib_hesiod_hes_getmailhost
=yes
17356 ac_cv_lib_hesiod_hes_getmailhost
=no
17358 rm -f core conftest.err conftest.
$ac_objext \
17359 conftest
$ac_exeext conftest.
$ac_ext
17360 LIBS
=$ac_check_lib_save_LIBS
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17363 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
17364 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes
; then :
17373 if test x
"$hesiod" = xyes
; then
17375 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17382 # Do we need libresolv (due to res_init or Hesiod)?
17383 if test "$resolv" = yes ; then
17385 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17393 # These tell us which Kerberos-related libraries to use.
17400 if test "${with_kerberos}" != no
; then
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17402 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
17403 if ${ac_cv_lib_com_err_com_err+:} false
; then :
17404 $as_echo_n "(cached) " >&6
17406 ac_check_lib_save_LIBS
=$LIBS
17407 LIBS
="-lcom_err $LIBS"
17408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17411 /* Override any GCC internal prototype to avoid an error.
17412 Use char because int might match the return type of a GCC
17413 builtin and then its argument prototype would still apply. */
17426 if ac_fn_c_try_link
"$LINENO"; then :
17427 ac_cv_lib_com_err_com_err
=yes
17429 ac_cv_lib_com_err_com_err
=no
17431 rm -f core conftest.err conftest.
$ac_objext \
17432 conftest
$ac_exeext conftest.
$ac_ext
17433 LIBS
=$ac_check_lib_save_LIBS
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17436 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
17437 if test "x$ac_cv_lib_com_err_com_err" = xyes
; then :
17443 if test $have_com_err = yes; then
17444 COM_ERRLIB
=-lcom_err
17445 LIBS
="$COM_ERRLIB $LIBS"
17447 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17451 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
17452 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false
; then :
17453 $as_echo_n "(cached) " >&6
17455 ac_check_lib_save_LIBS
=$LIBS
17456 LIBS
="-lcrypto $LIBS"
17457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h. */
17460 /* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17466 char mit_des_cbc_encrypt ();
17470 return mit_des_cbc_encrypt ();
17475 if ac_fn_c_try_link
"$LINENO"; then :
17476 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17478 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17480 rm -f core conftest.err conftest.
$ac_objext \
17481 conftest
$ac_exeext conftest.
$ac_ext
17482 LIBS
=$ac_check_lib_save_LIBS
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17485 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
17486 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes
; then :
17492 if test $have_crypto = yes; then
17494 LIBS
="$CRYPTOLIB $LIBS"
17496 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17500 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
17501 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false
; then :
17502 $as_echo_n "(cached) " >&6
17504 ac_check_lib_save_LIBS
=$LIBS
17505 LIBS
="-lk5crypto $LIBS"
17506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17509 /* Override any GCC internal prototype to avoid an error.
17510 Use char because int might match the return type of a GCC
17511 builtin and then its argument prototype would still apply. */
17515 char mit_des_cbc_encrypt ();
17519 return mit_des_cbc_encrypt ();
17524 if ac_fn_c_try_link
"$LINENO"; then :
17525 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17527 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17529 rm -f core conftest.err conftest.
$ac_objext \
17530 conftest
$ac_exeext conftest.
$ac_ext
17531 LIBS
=$ac_check_lib_save_LIBS
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17534 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
17535 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes
; then :
17541 if test $have_k5crypto = yes; then
17542 CRYPTOLIB
=-lk5crypto
17543 LIBS
="$CRYPTOLIB $LIBS"
17545 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17549 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17550 if ${ac_cv_lib_krb5_krb5_init_context+:} false
; then :
17551 $as_echo_n "(cached) " >&6
17553 ac_check_lib_save_LIBS
=$LIBS
17554 LIBS
="-lkrb5 $LIBS"
17555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17558 /* Override any GCC internal prototype to avoid an error.
17559 Use char because int might match the return type of a GCC
17560 builtin and then its argument prototype would still apply. */
17564 char krb5_init_context ();
17568 return krb5_init_context ();
17573 if ac_fn_c_try_link
"$LINENO"; then :
17574 ac_cv_lib_krb5_krb5_init_context
=yes
17576 ac_cv_lib_krb5_krb5_init_context
=no
17578 rm -f core conftest.err conftest.
$ac_objext \
17579 conftest
$ac_exeext conftest.
$ac_ext
17580 LIBS
=$ac_check_lib_save_LIBS
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17583 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17584 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
; then :
17590 if test $have_krb5=yes; then
17592 LIBS
="$KRB5LIB $LIBS"
17594 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17597 if test "${with_kerberos5}" = no
; then
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17599 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17600 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false
; then :
17601 $as_echo_n "(cached) " >&6
17603 ac_check_lib_save_LIBS
=$LIBS
17604 LIBS
="-ldes425 $LIBS"
17605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17606 /* end confdefs.h. */
17608 /* Override any GCC internal prototype to avoid an error.
17609 Use char because int might match the return type of a GCC
17610 builtin and then its argument prototype would still apply. */
17614 char des_cbc_encrypt ();
17618 return des_cbc_encrypt ();
17623 if ac_fn_c_try_link
"$LINENO"; then :
17624 ac_cv_lib_des425_des_cbc_encrypt
=yes
17626 ac_cv_lib_des425_des_cbc_encrypt
=no
17628 rm -f core conftest.err conftest.
$ac_objext \
17629 conftest
$ac_exeext conftest.
$ac_ext
17630 LIBS
=$ac_check_lib_save_LIBS
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17633 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17634 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes
; then :
17640 if test $have_des425 = yes; then
17642 LIBS
="$DESLIB $LIBS"
17644 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17648 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17649 if ${ac_cv_lib_des_des_cbc_encrypt+:} false
; then :
17650 $as_echo_n "(cached) " >&6
17652 ac_check_lib_save_LIBS
=$LIBS
17654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17657 /* Override any GCC internal prototype to avoid an error.
17658 Use char because int might match the return type of a GCC
17659 builtin and then its argument prototype would still apply. */
17663 char des_cbc_encrypt ();
17667 return des_cbc_encrypt ();
17672 if ac_fn_c_try_link
"$LINENO"; then :
17673 ac_cv_lib_des_des_cbc_encrypt
=yes
17675 ac_cv_lib_des_des_cbc_encrypt
=no
17677 rm -f core conftest.err conftest.
$ac_objext \
17678 conftest
$ac_exeext conftest.
$ac_ext
17679 LIBS
=$ac_check_lib_save_LIBS
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17682 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17683 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes
; then :
17689 if test $have_des = yes; then
17691 LIBS
="$DESLIB $LIBS"
17693 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17698 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
17699 if ${ac_cv_lib_krb4_krb_get_cred+:} false
; then :
17700 $as_echo_n "(cached) " >&6
17702 ac_check_lib_save_LIBS
=$LIBS
17703 LIBS
="-lkrb4 $LIBS"
17704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17713 char krb_get_cred ();
17717 return krb_get_cred ();
17722 if ac_fn_c_try_link
"$LINENO"; then :
17723 ac_cv_lib_krb4_krb_get_cred
=yes
17725 ac_cv_lib_krb4_krb_get_cred
=no
17727 rm -f core conftest.err conftest.
$ac_objext \
17728 conftest
$ac_exeext conftest.
$ac_ext
17729 LIBS
=$ac_check_lib_save_LIBS
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17732 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
17733 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes
; then :
17739 if test $have_krb4 = yes; then
17741 LIBS
="$KRB4LIB $LIBS"
17743 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
17747 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
17748 if ${ac_cv_lib_krb_krb_get_cred+:} false
; then :
17749 $as_echo_n "(cached) " >&6
17751 ac_check_lib_save_LIBS
=$LIBS
17753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17756 /* Override any GCC internal prototype to avoid an error.
17757 Use char because int might match the return type of a GCC
17758 builtin and then its argument prototype would still apply. */
17762 char krb_get_cred ();
17766 return krb_get_cred ();
17771 if ac_fn_c_try_link
"$LINENO"; then :
17772 ac_cv_lib_krb_krb_get_cred
=yes
17774 ac_cv_lib_krb_krb_get_cred
=no
17776 rm -f core conftest.err conftest.
$ac_objext \
17777 conftest
$ac_exeext conftest.
$ac_ext
17778 LIBS
=$ac_check_lib_save_LIBS
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
17781 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
17782 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes
; then :
17788 if test $have_krb = yes; then
17790 LIBS
="$KRB4LIB $LIBS"
17792 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
17798 if test "${with_kerberos5}" != no
; then
17799 for ac_header
in krb5.h
17801 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
17802 if test "x$ac_cv_header_krb5_h" = xyes
; then :
17803 cat >>confdefs.h
<<_ACEOF
17804 #define HAVE_KRB5_H 1
17806 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
17808 if test "x$ac_cv_member_krb5_error_text" = xyes
; then :
17810 cat >>confdefs.h
<<_ACEOF
17811 #define HAVE_KRB5_ERROR_TEXT 1
17816 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
17818 if test "x$ac_cv_member_krb5_error_e_text" = xyes
; then :
17820 cat >>confdefs.h
<<_ACEOF
17821 #define HAVE_KRB5_ERROR_E_TEXT 1
17832 for ac_header
in des.h
17834 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
17835 if test "x$ac_cv_header_des_h" = xyes
; then :
17836 cat >>confdefs.h
<<_ACEOF
17837 #define HAVE_DES_H 1
17841 for ac_header
in kerberosIV
/des.h
17843 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
17844 if test "x$ac_cv_header_kerberosIV_des_h" = xyes
; then :
17845 cat >>confdefs.h
<<_ACEOF
17846 #define HAVE_KERBEROSIV_DES_H 1
17850 for ac_header
in kerberos
/des.h
17852 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
17853 if test "x$ac_cv_header_kerberos_des_h" = xyes
; then :
17854 cat >>confdefs.h
<<_ACEOF
17855 #define HAVE_KERBEROS_DES_H 1
17870 for ac_header
in krb.h
17872 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
17873 if test "x$ac_cv_header_krb_h" = xyes
; then :
17874 cat >>confdefs.h
<<_ACEOF
17875 #define HAVE_KRB_H 1
17879 for ac_header
in kerberosIV
/krb.h
17881 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
17882 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes
; then :
17883 cat >>confdefs.h
<<_ACEOF
17884 #define HAVE_KERBEROSIV_KRB_H 1
17888 for ac_header
in kerberos
/krb.h
17890 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
17891 if test "x$ac_cv_header_kerberos_krb_h" = xyes
; then :
17892 cat >>confdefs.h
<<_ACEOF
17893 #define HAVE_KERBEROS_KRB_H 1
17909 for ac_header
in com_err.h
17911 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
17912 if test "x$ac_cv_header_com_err_h" = xyes
; then :
17913 cat >>confdefs.h
<<_ACEOF
17914 #define HAVE_COM_ERR_H 1
17929 # Solaris requires -lintl if you want strerror (which calls dgettext)
17930 # to return localized messages.
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
17932 $as_echo_n "checking for dgettext in -lintl... " >&6; }
17933 if ${ac_cv_lib_intl_dgettext+:} false
; then :
17934 $as_echo_n "(cached) " >&6
17936 ac_check_lib_save_LIBS
=$LIBS
17937 LIBS
="-lintl $LIBS"
17938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17951 return dgettext ();
17956 if ac_fn_c_try_link
"$LINENO"; then :
17957 ac_cv_lib_intl_dgettext
=yes
17959 ac_cv_lib_intl_dgettext
=no
17961 rm -f core conftest.err conftest.
$ac_objext \
17962 conftest
$ac_exeext conftest.
$ac_ext
17963 LIBS
=$ac_check_lib_save_LIBS
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
17966 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17967 if test "x$ac_cv_lib_intl_dgettext" = xyes
; then :
17968 cat >>confdefs.h
<<_ACEOF
17969 #define HAVE_LIBINTL 1
17972 LIBS
="-lintl $LIBS"
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
17978 $as_echo_n "checking whether localtime caches TZ... " >&6; }
17979 if ${emacs_cv_localtime_cache+:} false
; then :
17980 $as_echo_n "(cached) " >&6
17982 if test x
$ac_cv_func_tzset = xyes
; then
17983 if test "$cross_compiling" = yes; then :
17984 # If we have tzset, assume the worst when cross-compiling.
17985 emacs_cv_localtime_cache
=yes
17987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17990 char TZ_GMT0[] = "TZ=GMT0";
17991 char TZ_PST8[] = "TZ=PST8";
17994 time_t now = time ((time_t *) 0);
17995 int hour_GMT0, hour_unset;
17996 if (putenv (TZ_GMT0) != 0)
17998 hour_GMT0 = localtime (&now)->tm_hour;
18000 hour_unset = localtime (&now)->tm_hour;
18001 if (putenv (TZ_PST8) != 0)
18003 if (localtime (&now)->tm_hour == hour_GMT0)
18006 if (localtime (&now)->tm_hour != hour_unset)
18011 if ac_fn_c_try_run
"$LINENO"; then :
18012 emacs_cv_localtime_cache
=no
18014 emacs_cv_localtime_cache
=yes
18016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18017 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18021 # If we lack tzset, report that localtime does not cache TZ,
18022 # since we can't invalidate the cache if we don't have tzset.
18023 emacs_cv_localtime_cache
=no
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18027 $as_echo "$emacs_cv_localtime_cache" >&6; }
18028 if test $emacs_cv_localtime_cache = yes; then
18030 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18034 if test "x$HAVE_TIMEVAL" = xyes
; then
18035 for ac_func
in gettimeofday
18037 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18038 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
18039 cat >>confdefs.h
<<_ACEOF
18040 #define HAVE_GETTIMEOFDAY 1
18046 if test $ac_cv_func_gettimeofday = yes; then
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18048 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18049 if ${emacs_cv_gettimeofday_two_arguments+:} false
; then :
18050 $as_echo_n "(cached) " >&6
18052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18055 #ifdef TIME_WITH_SYS_TIME
18056 #include <sys/time.h>
18059 #ifdef HAVE_SYS_TIME_H
18060 #include <sys/time.h>
18068 struct timeval time;
18069 gettimeofday (&time, 0);
18074 if ac_fn_c_try_compile
"$LINENO"; then :
18075 emacs_cv_gettimeofday_two_arguments
=yes
18077 emacs_cv_gettimeofday_two_arguments
=no
18079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18082 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18083 if test $emacs_cv_gettimeofday_two_arguments = no
; then
18085 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18092 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
18093 if test "x$ac_cv_func_socket" = xyes
; then :
18099 if test $ok_so_far = yes; then
18100 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18101 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
18109 if test $ok_so_far = yes; then
18110 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18111 if test "x$ac_cv_header_arpa_inet_h" = xyes
; then :
18119 if test $ok_so_far = yes; then
18121 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18125 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
18127 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18132 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18133 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18135 $as_echo "yes" >&6; }
18137 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18141 $as_echo "no" >&6; }
18144 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18145 if test "x$ac_cv_type_pid_t" = xyes
; then :
18149 cat >>confdefs.h
<<_ACEOF
18155 for ac_header
in vfork.h
18157 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18158 if test "x$ac_cv_header_vfork_h" = xyes
; then :
18159 cat >>confdefs.h
<<_ACEOF
18160 #define HAVE_VFORK_H 1
18167 for ac_func
in fork vfork
18169 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18171 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18172 cat >>confdefs.h
<<_ACEOF
18173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18179 if test "x$ac_cv_func_fork" = xyes
; then
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18181 $as_echo_n "checking for working fork... " >&6; }
18182 if ${ac_cv_func_fork_works+:} false
; then :
18183 $as_echo_n "(cached) " >&6
18185 if test "$cross_compiling" = yes; then :
18186 ac_cv_func_fork_works
=cross
18188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18190 $ac_includes_default
18195 /* By Ruediger Kuhlmann. */
18196 return fork () < 0;
18202 if ac_fn_c_try_run
"$LINENO"; then :
18203 ac_cv_func_fork_works
=yes
18205 ac_cv_func_fork_works
=no
18207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18213 $as_echo "$ac_cv_func_fork_works" >&6; }
18216 ac_cv_func_fork_works
=$ac_cv_func_fork
18218 if test "x$ac_cv_func_fork_works" = xcross
; then
18220 *-*-amigaos* |
*-*-msdosdjgpp*)
18221 # Override, as these systems have only a dummy fork() stub
18222 ac_cv_func_fork_works
=no
18225 ac_cv_func_fork_works
=yes
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18229 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18231 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18232 if test "x$ac_cv_func_vfork" = xyes
; then
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18234 $as_echo_n "checking for working vfork... " >&6; }
18235 if ${ac_cv_func_vfork_works+:} false
; then :
18236 $as_echo_n "(cached) " >&6
18238 if test "$cross_compiling" = yes; then :
18239 ac_cv_func_vfork_works
=cross
18241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18243 /* Thanks to Paul Eggert for this test. */
18244 $ac_includes_default
18245 #include <sys/wait.h>
18246 #ifdef HAVE_VFORK_H
18247 # include <vfork.h>
18249 /* On some sparc systems, changes by the child to local and incoming
18250 argument registers are propagated back to the parent. The compiler
18251 is told about this with #include <vfork.h>, but some compilers
18252 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18253 static variable whose address is put into a register that is
18254 clobbered by the vfork. */
18257 sparc_address_test (int arg)
18259 sparc_address_test (arg) int arg;
18262 static pid_t child;
18280 pid_t parent = getpid ();
18283 sparc_address_test (0);
18288 /* Here is another test for sparc vfork register problems. This
18289 test uses lots of local variables, at least as many local
18290 variables as main has allocated so far including compiler
18291 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18292 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18293 reuse the register of parent for one of the local variables,
18294 since it will think that parent can't possibly be used any more
18295 in this routine. Assigning to the local variable will thus
18296 munge parent in the parent process. */
18298 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18299 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18300 /* Convince the compiler that p..p7 are live; otherwise, it might
18301 use the same hardware register for all 8 local variables. */
18302 if (p != p1 || p != p2 || p != p3 || p != p4
18303 || p != p5 || p != p6 || p != p7)
18306 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18307 from child file descriptors. If the child closes a descriptor
18308 before it execs or exits, this munges the parent's descriptor
18309 as well. Test for this by closing stdout in the child. */
18310 _exit(close(fileno(stdout)) != 0);
18315 while (wait(&status) != child)
18318 /* Was there some problem with vforking? */
18321 /* Did the child fail? (This shouldn't happen.) */
18324 /* Did the vfork/compiler bug occur? */
18325 || parent != getpid()
18327 /* Did the file descriptor bug occur? */
18328 || fstat(fileno(stdout), &st) != 0
18333 if ac_fn_c_try_run
"$LINENO"; then :
18334 ac_cv_func_vfork_works
=yes
18336 ac_cv_func_vfork_works
=no
18338 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18339 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18344 $as_echo "$ac_cv_func_vfork_works" >&6; }
18347 if test "x$ac_cv_func_fork_works" = xcross
; then
18348 ac_cv_func_vfork_works
=$ac_cv_func_vfork
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18350 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18353 if test "x$ac_cv_func_vfork_works" = xyes
; then
18355 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18359 $as_echo "#define vfork fork" >>confdefs.h
18362 if test "x$ac_cv_func_fork_works" = xyes
; then
18364 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18370 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18371 if ${emacs_cv_langinfo_codeset+:} false
; then :
18372 $as_echo_n "(cached) " >&6
18374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376 #include <langinfo.h>
18380 char* cs = nl_langinfo(CODESET);
18385 if ac_fn_c_try_link
"$LINENO"; then :
18386 emacs_cv_langinfo_codeset
=yes
18388 emacs_cv_langinfo_codeset
=no
18390 rm -f core conftest.err conftest.
$ac_objext \
18391 conftest
$ac_exeext conftest.
$ac_ext
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18395 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
18396 if test $emacs_cv_langinfo_codeset = yes; then
18398 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18402 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18403 if test "x$ac_cv_type_size_t" = xyes
; then :
18405 cat >>confdefs.h
<<_ACEOF
18406 #define HAVE_SIZE_T 1
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18414 $as_echo_n "checking for mbstate_t... " >&6; }
18415 if ${ac_cv_type_mbstate_t+:} false
; then :
18416 $as_echo_n "(cached) " >&6
18418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18420 $ac_includes_default
18421 # include <wchar.h>
18425 mbstate_t x; return sizeof x;
18430 if ac_fn_c_try_compile
"$LINENO"; then :
18431 ac_cv_type_mbstate_t
=yes
18433 ac_cv_type_mbstate_t
=no
18435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18438 $as_echo "$ac_cv_type_mbstate_t" >&6; }
18439 if test $ac_cv_type_mbstate_t = yes; then
18441 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18445 $as_echo "#define mbstate_t int" >>confdefs.h
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18450 $as_echo_n "checking for C restricted array declarations... " >&6; }
18451 if ${emacs_cv_c_restrict_arr+:} false
; then :
18452 $as_echo_n "(cached) " >&6
18454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 void fred (int x[__restrict]);
18465 if ac_fn_c_try_compile
"$LINENO"; then :
18466 emacs_cv_c_restrict_arr
=yes
18468 emacs_cv_c_restrict_arr
=no
18470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18473 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
18474 if test "$emacs_cv_c_restrict_arr" = yes; then
18476 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
18482 # Set up the CFLAGS for real compilation, so we can substitute it.
18483 CFLAGS
="$REAL_CFLAGS"
18484 CPPFLAGS
="$REAL_CPPFLAGS"
18486 ## Hack to detect a buggy GCC version.
18487 if test "x$GCC" = xyes \
18488 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18489 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
18490 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
18491 as_fn_error $?
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
18494 version
=$PACKAGE_VERSION
18496 ### Specify what sort of things we'll be editing into Makefile and config.h.
18497 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18521 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18522 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18523 ## end of LIBX_BASE, but nothing ever set it.
18528 ## Used in lwlib/Makefile.in.
18530 if test -n "${machfile}"; then
18531 M_FILE
="\$(srcdir)/${machfile}"
18535 S_FILE
="\$(srcdir)/${opsysfile}"
18546 cat >>confdefs.h
<<_ACEOF
18547 #define EMACS_CONFIGURATION "${canonical}"
18551 cat >>confdefs.h
<<_ACEOF
18552 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18555 if test -n "$machfile"; then
18557 cat >>confdefs.h
<<_ACEOF
18558 #define config_machfile "${machfile}"
18563 cat >>confdefs.h
<<_ACEOF
18564 #define config_opsysfile "${opsysfile}"
18571 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18573 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18576 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18578 if test "$HAVE_XFT" = "yes"; then
18579 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18580 elif test "$HAVE_FREETYPE" = "yes"; then
18581 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
18591 if test "${USE_X_TOOLKIT}" != "none" ; then
18592 WIDGET_OBJ
=widget.o
18594 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18596 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18598 $as_echo "#define USE_LUCID 1" >>confdefs.h
18600 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18602 $as_echo "#define USE_MOTIF 1" >>confdefs.h
18607 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18608 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
18612 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18613 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18614 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
18618 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18619 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
18622 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
18628 case "$USE_X_TOOLKIT" in
18629 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
18630 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
18631 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
18635 if test "$USE_X_TOOLKIT" = "none"; then
18636 LIBXT_OTHER
="\$(LIBXSM)"
18637 OLDXMENU_TARGET
="really-oldXMenu"
18639 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18640 OLDXMENU_TARGET
="really-lwlib"
18644 ## The X Menu stuff is present in the X10 distribution, but missing
18645 ## from X11. If we have X10, just use the installed library;
18646 ## otherwise, use our own copy.
18647 if test "${HAVE_X11}" = "yes" ; then
18649 $as_echo "#define HAVE_X11 1" >>confdefs.h
18652 if test "$USE_X_TOOLKIT" = "none"; then
18653 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
18655 OLDXMENU
="\${lwlibdir}/liblw.a"
18657 LIBXMENU
="\$(OLDXMENU)"
18658 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
18659 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
18661 ## For a syntactically valid Makefile; not actually used for anything.
18662 ## See comments in src/Makefile.in.
18664 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18665 if test "${HAVE_X_WINDOWS}" = "yes"; then
18674 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
18687 if test "${HAVE_MENUS}" = "yes" ; then
18689 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
18693 if test "${GNU_MALLOC}" = "yes" ; then
18695 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
18700 if test "${REL_ALLOC}" = "yes" ; then
18702 $as_echo "#define REL_ALLOC 1" >>confdefs.h
18705 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
18709 if test "$opsys" = "cygwin"; then
18710 CYGWIN_OBJ
="sheap.o"
18711 ## Cygwin differs because of its unexec().
18713 POST_ALLOC_OBJ
=lastfile.o
18716 PRE_ALLOC_OBJ
=lastfile.o
18725 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
18728 ## The -headerpad option tells ld (see man page) to leave room at the
18729 ## end of the header for adding load commands. Needed for dumping.
18730 ## 0x690 is the total size of 30 segment load commands (at 56
18731 ## each); under Cocoa 31 commands are required.
18732 if test "$HAVE_NS" = "yes"; then
18733 libs_nsgui
="-framework AppKit"
18734 headerpad_extra
=6C8
18737 headerpad_extra
=690
18739 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
18741 ## This is here because src/Makefile.in did some extra fiddling around
18742 ## with LD_SWITCH_SYSTEM. The cpp logic was:
18743 ## #ifndef LD_SWITCH_SYSTEM
18744 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
18745 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
18746 ## not using gcc, darwin system not on an alpha (ie darwin, since
18747 ## darwin + alpha does not occur).
18748 ## Because this was done in src/Makefile.in, the resulting part of
18749 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
18750 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
18751 ## rather than LD_SWITCH_SYSTEM.
18752 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
18753 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
18756 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
18757 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
18758 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
18759 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
18760 ## had different values in configure (in ac_link) and src/Makefile.in.
18761 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
18762 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
18764 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
18767 if test "$NS_IMPL_GNUSTEP" = "yes"; then
18768 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
18777 ## gnu: GNU needs its own crt0.
18778 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
18780 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
18781 ## library search parth, i.e. it won't search /usr/lib for libc and
18782 ## friends. Using -nostartfiles instead avoids this problem, and
18783 ## will also work on earlier NetBSD releases.
18784 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
18786 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
18787 ## MkLinux/LinuxPPC needs this.
18788 ## ibms390x only supports opsys = gnu-linux so it can be added here.
18791 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
18797 if test "x$ORDINARY_LINK" = "xyes"; then
18801 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
18804 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
18805 ## freebsd, gnu-* not on macppc|ibms390x.
18806 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
18808 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
18809 ## places that are difficult to figure out at make time. Fortunately,
18810 ## these same versions allow you to pass arbitrary flags on to the
18811 ## linker, so there is no reason not to use it as a linker.
18813 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
18814 ## searching for libraries in its internal directories, so we have to
18815 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
18816 LD_FIRSTFLAG
="-nostdlib"
18819 ## FIXME? What setting of EDIT_LDFLAGS should this have?
18820 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
18825 ## FIXME? The logic here is not precisely the same as that above.
18826 ## There is no check here for a pre-defined LD_FIRSTFLAG.
18827 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
18829 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
18832 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
18835 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
18836 ## build on ARM EABI under GNU/Linux. (Bug#5518)
18842 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
18843 ## immediately undefine it again and redefine it to empty.
18844 ## Was the C_SWITCH_X_SITE part really necessary?
18845 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
18851 ## Ask GCC where to find libgcc.a.
18852 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
18859 ## If we're using X11/GNUstep, define some consequences.
18860 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
18862 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
18865 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
18867 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
18868 TOOLTIP_SUPPORT
="\${lispsource}/mouse.elc"
18870 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
18871 test "$HAVE_X_WINDOWS" = "yes" && \
18872 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
18882 #### Report on what we decided to do.
18883 #### Report GTK as a toolkit, even if it doesn't use Xt.
18884 #### It makes printing result more understandable as using GTK sets
18885 #### toolkit_scroll_bars to yes by default.
18886 if test "${HAVE_GTK}" = "yes"; then
18891 if test -n "$machfile"; then
18892 and_machfile
=" and \`${machfile}'"
18896 Configured for \`${canonical}'.
18898 Where should the build process find the source code? ${srcdir}
18899 What operating system and machine description files should Emacs use?
18900 \`${opsysfile}'${and_machfile}
18901 What compiler should emacs be built with? ${CC} ${CFLAGS}
18902 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18903 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18904 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18905 What window system should Emacs use? ${window_system}
18906 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18908 if test -n "${x_includes}"; then
18909 echo " Where do we find X Windows header files? ${x_includes}"
18911 echo " Where do we find X Windows header files? Standard dirs"
18913 if test -n "${x_libraries}"; then
18914 echo " Where do we find X Windows libraries? ${x_libraries}"
18916 echo " Where do we find X Windows libraries? Standard dirs"
18919 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18920 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18921 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18922 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18923 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
18924 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18925 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
18926 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
18928 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
18929 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
18930 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
18931 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
18932 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
18933 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
18935 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
18936 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
18937 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
18938 echo " Does Emacs use -lxft? ${HAVE_XFT}"
18940 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18943 if test $USE_XASSERTS = yes; then
18944 echo " Compiling with asserts turned on."
18945 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
18950 if test "$HAVE_NS" = "yes"; then
18952 echo "You must run \"make install\" in order to test the built application.
18953 The installed application will go to nextstep/Emacs.app and can be
18954 run or moved from there."
18955 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
18956 echo "The application will be fully self-contained."
18958 echo "The lisp resources for the application will be installed under ${prefix}.
18959 You may need to run \"make install\" with sudo. The application will fail
18960 to run if these resources are not installed."
18966 # Remove any trailing slashes in these variables.
18967 test "${prefix}" != NONE
&&
18968 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18969 test "${exec_prefix}" != NONE
&&
18970 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18972 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"
18974 ac_config_commands
="$ac_config_commands default"
18976 cat >confcache
<<\_ACEOF
18977 # This file is a shell script that caches the results of configure
18978 # tests run on this system so they can be shared between configure
18979 # scripts and configure runs, see configure's option --config-cache.
18980 # It is not useful on other systems. If it contains results you don't
18981 # want to keep, you may remove or edit it.
18983 # config.status only pays attention to the cache file if you give it
18984 # the --recheck option to rerun configure.
18986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18988 # following values.
18992 # The following way of writing the cache mishandles newlines in values,
18993 # but we know of no workaround that is simple, portable, and efficient.
18994 # So, we kill variables containing newlines.
18995 # Ultrix sh set writes to stderr and can't be redirected directly,
18996 # and sets the high bit in the cache file unless we assign to the vars.
18998 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18999 eval ac_val
=\$
$ac_var
19003 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19004 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19007 _ | IFS | as_nl
) ;; #(
19008 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19009 *) { eval $ac_var=; unset $ac_var;} ;;
19015 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19016 *${as_nl}ac_space
=\
*)
19017 # `set' does not quote correctly, so add quotes: double-quote
19018 # substitution turns \\\\ into \\, and sed turns \\ into \.
19021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19024 # `set' quotes correctly as required by POSIX, so do not add quotes.
19025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19034 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19036 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19038 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19039 if test -w "$cache_file"; then
19040 if test "x$cache_file" != "x/dev/null"; then
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19042 $as_echo "$as_me: updating cache $cache_file" >&6;}
19043 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19044 cat confcache
>"$cache_file"
19046 case $cache_file in #(
19048 mv -f confcache
"$cache_file"$$
&&
19049 mv -f "$cache_file"$$
"$cache_file" ;; #(
19051 mv -f confcache
"$cache_file" ;;
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19057 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19062 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19063 # Let make expand exec_prefix.
19064 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19066 DEFS
=-DHAVE_CONFIG_H
19071 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19072 # 1. Remove the extension, and $U if already installed.
19073 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19074 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19076 # will be set to the directory where LIBOBJS objects are built.
19077 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19078 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19080 LIBOBJS
=$ac_libobjs
19082 LTLIBOBJS
=$ac_ltlibobjs
19085 if test -n "$EXEEXT"; then
19087 am__EXEEXT_FALSE
='#'
19089 am__EXEEXT_TRUE
='#'
19093 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19094 as_fn_error $?
"conditional \"AMDEP\" was never defined.
19095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19098 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
19099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19102 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19103 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
19104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19110 if test -n "$gl_LIBOBJS"; then
19111 # Remove the extension.
19112 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19113 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19114 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19115 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19118 gl_LIBOBJS
=$gl_libobjs
19120 gl_LTLIBOBJS
=$gl_ltlibobjs
19126 if test -n "$gltests_LIBOBJS"; then
19127 # Remove the extension.
19128 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19129 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19130 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19131 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19134 gltests_LIBOBJS
=$gltests_libobjs
19136 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19140 : "${CONFIG_STATUS=./config.status}"
19142 ac_clean_files_save
=$ac_clean_files
19143 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19145 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19147 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19149 # Generated by $as_me.
19150 # Run this file to recreate the current configuration.
19151 # Compiler output produced by configure, useful for debugging
19152 # configure, is in config.log if it exists.
19155 ac_cs_recheck=false
19158 SHELL=\${CONFIG_SHELL-$SHELL}
19161 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19162 ## -------------------- ##
19163 ## M4sh Initialization. ##
19164 ## -------------------- ##
19166 # Be more Bourne compatible
19167 DUALCASE
=1; export DUALCASE
# for MKS sh
19168 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19172 # is contrary to our usage. Disable this feature.
19173 alias -g '${1+"$@"}'='"$@"'
19174 setopt NO_GLOB_SUBST
19176 case `(set -o) 2>/dev/null` in #(
19188 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19189 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19192 # Prefer a ksh shell builtin over an external printf program on Solaris,
19193 # but without wasting forks for bash or zsh.
19194 if test -z "$BASH_VERSION$ZSH_VERSION" \
19195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19196 as_echo='print
-r --'
19197 as_echo_n='print
-rn --'
19198 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19199 as_echo='printf %s
\n'
19200 as_echo_n='printf %s
'
19202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19203 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19204 as_echo_n='/usr
/ucb
/echo -n'
19206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19207 as_echo_n_body='eval
19211 expr "X$arg" : "X\\(.*\\)$as_nl";
19212 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19214 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19216 export as_echo_n_body
19217 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19219 export as_echo_body
19220 as_echo='sh
-c $as_echo_body as_echo
'
19223 # The user is always right.
19224 if test "${PATH_SEPARATOR+set}" != set; then
19226 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19227 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19234 # We need space, tab and new line, in precisely that order. Quoting is
19235 # there to prevent editors from complaining about space-tab.
19236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19237 # splitting by setting IFS to empty value.)
19240 # Find who we are. Look in the path if we contain no directory separator.
19243 *[\\/]* ) as_myself=$0 ;;
19244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19245 for as_dir in $PATH
19248 test -z "$as_dir" && as_dir=.
19249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19255 # We did not find ourselves, most probably we were run as `sh COMMAND'
19256 # in which case we are not to be found in the path.
19257 if test "x$as_myself" = x
; then
19260 if test ! -f "$as_myself"; then
19261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19265 # Unset variables that we do not need and which cause bugs (e.g. in
19266 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19267 # suppresses any "Segmentation fault" message there. '((' could
19268 # trigger a bug in pdksh 5.2.14.
19269 for as_var
in BASH_ENV ENV MAIL MAILPATH
19270 do eval test x\
${$as_var+set} = xset \
19271 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19284 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19287 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19288 # ----------------------------------------
19289 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19290 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19291 # script with STATUS, using 1 if that was 0.
19294 as_status
=$1; test $as_status -eq 0 && as_status
=1
19296 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19299 $as_echo "$as_me: error: $2" >&2
19300 as_fn_exit
$as_status
19304 # as_fn_set_status STATUS
19305 # -----------------------
19306 # Set $? to STATUS, without forking.
19307 as_fn_set_status
()
19310 } # as_fn_set_status
19312 # as_fn_exit STATUS
19313 # -----------------
19314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19318 as_fn_set_status
$1
19324 # Portably unset VAR.
19327 { eval $1=; unset $1;}
19329 as_unset
=as_fn_unset
19330 # as_fn_append VAR VALUE
19331 # ----------------------
19332 # Append the text in VALUE to the end of the definition contained in VAR. Take
19333 # advantage of any shell optimizations that allow amortized linear growth over
19334 # repeated appends, instead of the typical quadratic growth present in naive
19336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19337 eval 'as_fn_append ()
19348 # as_fn_arith ARG...
19349 # ------------------
19350 # Perform arithmetic evaluation on the ARGs, and store the result in the
19351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19352 # must be portable across $(()) and expr.
19353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19354 eval 'as_fn_arith ()
19361 as_val
=`expr "$@" || test $? -eq 1`
19366 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19367 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19373 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19374 as_basename
=basename
19379 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19385 as_me
=`$as_basename -- "$0" ||
19386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19387 X"$0" : 'X\(//\)$' \| \
19388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19390 sed '/^.*\/\([^/][^/]*\)\/*$/{
19404 # Avoid depending upon Character Ranges.
19405 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19406 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19407 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19408 as_cr_digits
='0123456789'
19409 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19411 ECHO_C
= ECHO_N
= ECHO_T
=
19412 case `echo -n x` in #(((((
19414 case `echo 'xy\c'` in
19415 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19417 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19424 rm -f conf$$ conf$$.exe conf$$.
file
19425 if test -d conf$$.dir
; then
19426 rm -f conf$$.dir
/conf$$.
file
19429 mkdir conf$$.dir
2>/dev
/null
19431 if (echo >conf$$.
file) 2>/dev
/null
; then
19432 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19434 # ... but there are two gotchas:
19435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19437 # In both cases, we have to default to `cp -p'.
19438 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19440 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19448 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19449 rmdir conf$$.dir
2>/dev
/null
19454 # Create "$as_dir" as a directory, including parents if necessary.
19459 -*) as_dir
=.
/$as_dir;;
19461 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19465 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19466 *) as_qdir
=$as_dir;;
19468 as_dirs
="'$as_qdir' $as_dirs"
19469 as_dir
=`$as_dirname -- "$as_dir" ||
19470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19471 X"$as_dir" : 'X\(//\)[^/]' \| \
19472 X"$as_dir" : 'X\(//\)$' \| \
19473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19474 $as_echo X"$as_dir" |
19475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19479 /^X\(\/\/\)[^/].*/{
19492 test -d "$as_dir" && break
19494 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19495 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19499 if mkdir
-p .
2>/dev
/null
; then
19500 as_mkdir_p
='mkdir -p "$as_dir"'
19502 test -d .
/-p && rmdir .
/-p
19506 if test -x / >/dev
/null
2>&1; then
19507 as_test_x
='test -x'
19509 if ls -dL / >/dev
/null
2>&1; then
19516 if test -d "$1"; then
19522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19523 ???[sx]*):;;*)false;;esac;fi
19527 as_executable_p
=$as_test_x
19529 # Sed expression to map a string onto a valid CPP name.
19530 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19532 # Sed expression to map a string onto a valid variable name.
19533 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19537 ## ----------------------------------- ##
19538 ## Main body of $CONFIG_STATUS script. ##
19539 ## ----------------------------------- ##
19541 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19544 # Save the log message, to keep $0 and so on meaningful, and to
19545 # report actual input values of CONFIG_FILES etc. instead of their
19546 # values after options handling.
19548 This file was extended by emacs $as_me 24.0.50, which was
19549 generated by GNU Autoconf 2.68. Invocation command line was
19551 CONFIG_FILES = $CONFIG_FILES
19552 CONFIG_HEADERS = $CONFIG_HEADERS
19553 CONFIG_LINKS = $CONFIG_LINKS
19554 CONFIG_COMMANDS = $CONFIG_COMMANDS
19557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19562 case $ac_config_files in *"
19563 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19566 case $ac_config_headers in *"
19567 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19572 # Files that config.status was made for.
19573 config_files="$ac_config_files"
19574 config_headers="$ac_config_headers"
19575 config_commands="$ac_config_commands"
19579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19581 \`$as_me' instantiates files and other configuration actions
19582 from templates according to the current configuration. Unless the files
19583 and actions are specified as TAGs, all are instantiated by default.
19585 Usage: $0 [OPTION]... [TAG]...
19587 -h, --help print this help, then exit
19588 -V, --version print version number and configuration settings, then exit
19589 --config print configuration, then exit
19590 -q, --quiet, --silent
19591 do not print progress messages
19592 -d, --debug don't remove temporary files
19593 --recheck update $as_me by reconfiguring in the same conditions
19594 --file=FILE[:TEMPLATE]
19595 instantiate the configuration file FILE
19596 --header=FILE[:TEMPLATE]
19597 instantiate the configuration header FILE
19599 Configuration files:
19602 Configuration headers:
19605 Configuration commands:
19608 Report bugs to the package provider."
19611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19614 emacs config.status 24.0.50
19615 configured by $0, generated by GNU Autoconf 2.68,
19616 with options \\"\$ac_cs_config\\"
19618 Copyright (C) 2010 Free Software Foundation, Inc.
19619 This config.status script is free software; the Free Software Foundation
19620 gives unlimited permission to copy, distribute and modify it."
19627 test -n "\$AWK" || AWK=awk
19630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19631 # The default lists apply if the user does not specify any file.
19637 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19638 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19642 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19654 # Handling of the options.
19655 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19657 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19658 $as_echo "$ac_cs_version"; exit ;;
19659 --config |
--confi |
--conf |
--con |
--co |
--c )
19660 $as_echo "$ac_cs_config"; exit ;;
19661 --debug |
--debu |
--deb |
--de |
--d |
-d )
19663 --file |
--fil |
--fi |
--f )
19666 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19667 '') as_fn_error $?
"missing file argument" ;;
19669 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19670 ac_need_defaults
=false
;;
19671 --header |
--heade |
--head |
--hea )
19674 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19676 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19677 ac_need_defaults
=false
;;
19679 # Conflict between --help and --header
19680 as_fn_error $?
"ambiguous option: \`$1'
19681 Try \`$0 --help' for more information.";;
19682 --help |
--hel |
-h )
19683 $as_echo "$ac_cs_usage"; exit ;;
19684 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19685 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19688 # This is an error.
19689 -*) as_fn_error $?
"unrecognized option: \`$1'
19690 Try \`$0 --help' for more information." ;;
19692 *) as_fn_append ac_config_targets
" $1"
19693 ac_need_defaults
=false
;;
19699 ac_configure_extra_args
=
19701 if $ac_cs_silent; then
19703 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19708 if \$ac_cs_recheck; then
19709 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19711 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19712 CONFIG_SHELL='$SHELL'
19713 export CONFIG_SHELL
19718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19722 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19723 ## Running $as_me. ##
19729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19733 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19734 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
19738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19740 # Handling of arguments.
19741 for ac_config_target
in $ac_config_targets
19743 case $ac_config_target in
19744 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19745 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19746 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19747 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
19748 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
19749 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
19750 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
19751 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
19752 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
19753 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
19754 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
19755 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
19756 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
19757 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
19758 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
19759 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19761 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19766 # If the user did not use the arguments to specify the items to instantiate,
19767 # then the envvar interface is used. Set only those that are not.
19768 # We use the long form for the default assignment because of an extremely
19769 # bizarre bug on SunOS 4.1.3.
19770 if $ac_need_defaults; then
19771 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19772 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19776 # Have a temporary directory for convenience. Make it in the build tree
19777 # simply because there is no reason against having it here, and in addition,
19778 # creating and moving files from /tmp can sometimes cause problems.
19779 # Hook for its removal unless debugging.
19780 # Note that there is a small window in which the directory will not be cleaned:
19781 # after its creation but before its name has been assigned to `$tmp'.
19785 trap 'exit_status=$?
19786 : "${ac_tmp:=$tmp}"
19787 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19789 trap 'as_fn_exit 1' 1 2 13 15
19791 # Create a (secure) tmp directory for tmp files.
19794 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19798 tmp
=.
/conf$$
-$RANDOM
19799 (umask 077 && mkdir
"$tmp")
19800 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19803 # Set up the scripts for CONFIG_FILES section.
19804 # No need to generate them if there are no CONFIG_FILES.
19805 # This happens for instance with `./config.status config.h'.
19806 if test -n "$CONFIG_FILES"; then
19808 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19809 ac_cs_awk_getline
=:
19810 ac_cs_awk_pipe_init
=
19811 ac_cs_awk_read_file
='
19812 while ((getline aline < (F[key])) > 0)
19815 ac_cs_awk_pipe_fini
=
19817 ac_cs_awk_getline
=false
19818 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19819 ac_cs_awk_read_file
='
19821 print "cat " F[key] " &&"
19822 '$ac_cs_awk_pipe_init
19823 # The final `:' finishes the AND list.
19824 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19826 ac_cr
=`echo X | tr X '\015'`
19827 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19828 # But we know of no other shell where ac_cr would be empty at this
19829 # point, so we can use a bashism as a fallback.
19830 if test "x$ac_cr" = x
; then
19831 eval ac_cr
=\$
\'\\r
\'
19833 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19834 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19837 ac_cs_awk_cr
=$ac_cr
19840 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19843 # Create commands to substitute file output variables.
19845 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19846 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19847 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19850 } >conf$
$files.sh
&&
19851 . .
/conf$
$files.sh ||
19852 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19853 rm -f conf$
$files.sh
19856 echo "cat >conf$$subs.awk <<_ACEOF" &&
19857 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19859 } >conf$$subs.sh ||
19860 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19861 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19863 for ac_last_try in false false false false false :; do
19864 . ./conf$$subs.sh ||
19865 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19867 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19868 if test $ac_delim_n = $ac_delim_num; then
19870 elif $ac_last_try; then
19871 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19873 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19876 rm -f conf$$subs.sh
19878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19879 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19883 s/^/S["/; s
/!.
*/"]=/
19893 s/\(.\{148\}\)..*/\1/
19895 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19900 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19907 s/\(.\{148\}\)..*/\1/
19909 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19913 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19918 ' <conf$$subs.awk | sed '
19923 ' >>$CONFIG_STATUS || ac_write_fail=1
19924 rm -f conf$$subs.awk
19925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19927 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19928 for (key in S) S_is_set[key] = 1
19930 \$ac_cs_awk_pipe_init
19934 nfields = split(line, field, "@
")
19936 len = length(field[1])
19937 for (i = 2; i < nfields; i++) {
19939 keylen = length(key)
19940 if (S_is_set[key]) {
19942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19943 len += length(value) + length(field[++i])
19948 if (nfields == 3 && !substed) {
19950 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19951 \$ac_cs_awk_read_file
19957 \$ac_cs_awk_pipe_fini
19960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19961 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19962 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19965 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19966 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19969 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19970 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19971 # trailing colons and then remove the whole line if VPATH becomes empty
19972 # (actually we leave an empty line to preserve line numbers).
19973 if test "x
$srcdir" = x.; then
19974 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19993 fi # test -n "$CONFIG_FILES"
19995 # Set up the scripts for CONFIG_HEADERS section.
19996 # No need to generate them if there are no CONFIG_HEADERS.
19997 # This happens for instance with `./config.status Makefile'.
19998 if test -n "$CONFIG_HEADERS"; then
19999 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20003 # Transform confdefs.h into an awk script `defines.awk', embedded as
20004 # here-document in config.status, that substitutes the proper values into
20005 # config.h.in to produce config.h.
20007 # Create a delimiter string that does not exist in confdefs.h, to ease
20008 # handling of long lines.
20010 for ac_last_try in false false :; do
20011 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20012 if test -z "$ac_tt"; then
20014 elif $ac_last_try; then
20015 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20017 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20021 # For the awk script, D is an array of macro values keyed by name,
20022 # likewise P contains macro parameters if any. Preserve backslash
20023 # newline sequences.
20025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20027 s/.\{148\}/&'"$ac_delim"'/g
20030 s/^[ ]*#[ ]*define[ ][ ]*/ /
20037 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20039 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20044 D["\
1"]=" \
3\\\\\\n
"\\/p
20046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20051 s/.\{148\}/&'"$ac_delim"'/g
20056 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20059 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20061 ' <confdefs.h | sed '
20062 s/'"$ac_delim"'/"\\\
20063 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20066 for (key in D) D_is_set[key] = 1
20069 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20071 split(line, arg, " ")
20072 if (arg[1] == "#") {
20076 defundef
= substr
(arg
[1], 2)
20079 split(mac1
, mac2
, "(") #)
20081 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20082 if (D_is_set
[macro
]) {
20083 # Preserve the white space surrounding the "#".
20084 print prefix
"define", macro P
[macro
] D
[macro
]
20087 # Replace #undef with comments. This is necessary, for example,
20088 # in the case of _POSIX_SOURCE, which is predefined and required
20089 # on some systems where configure will not decide to define it.
20090 if (defundef
== "undef") {
20091 print
"/*", prefix defundef
, macro
, "*/"
20099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20100 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20101 fi # test -n "$CONFIG_HEADERS"
20104 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20109 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20111 case $ac_mode$ac_tag in
20113 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20114 :[FH
]-) ac_tag
=-:-;;
20115 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20132 -) ac_f
="$ac_tmp/stdin";;
20133 *) # Look for the file first in the build tree, then in the source tree
20134 # (if the path is not absolute). The absolute path cannot be DOS-style,
20135 # because $ac_f cannot contain `:'.
20139 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20141 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20143 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20144 as_fn_append ac_file_inputs
" '$ac_f'"
20147 # Let's still pretend it is `configure' which instantiates (i.e., don't
20148 # use $as_me), people would be surprised to read:
20149 # /* config.h. Generated by config.status. */
20150 configure_input
='Generated from '`
20151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20153 if test x
"$ac_file" != x-
; then
20154 configure_input
="$ac_file. $configure_input"
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20156 $as_echo "$as_me: creating $ac_file" >&6;}
20158 # Neutralize special characters interpreted by sed in replacement strings.
20159 case $configure_input in #(
20160 *\
&* |
*\|
* |
*\\* )
20161 ac_sed_conf_input
=`$as_echo "$configure_input" |
20162 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20163 *) ac_sed_conf_input
=$configure_input;;
20167 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20168 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20173 ac_dir
=`$as_dirname -- "$ac_file" ||
20174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20175 X"$ac_file" : 'X\(//\)[^/]' \| \
20176 X"$ac_file" : 'X\(//\)$' \| \
20177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20178 $as_echo X"$ac_file" |
20179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20183 /^X\(\/\/\)[^/].*/{
20196 as_dir
="$ac_dir"; as_fn_mkdir_p
20200 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20202 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20203 # A ".." for each directory in $ac_dir_suffix.
20204 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20205 case $ac_top_builddir_sub in
20206 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20207 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20210 ac_abs_top_builddir
=$ac_pwd
20211 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20212 # for backward compatibility:
20213 ac_top_builddir
=$ac_top_build_prefix
20216 .
) # We are building in place.
20218 ac_top_srcdir
=$ac_top_builddir_sub
20219 ac_abs_top_srcdir
=$ac_pwd ;;
20220 [\\/]* | ?
:[\\/]* ) # Absolute name.
20221 ac_srcdir
=$srcdir$ac_dir_suffix;
20222 ac_top_srcdir
=$srcdir
20223 ac_abs_top_srcdir
=$srcdir ;;
20224 *) # Relative name.
20225 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20226 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20227 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20229 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20239 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20240 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20242 ac_MKDIR_P
=$MKDIR_P
20244 [\\/$
]* | ?
:[\\/]* ) ;;
20245 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20250 # If the template does not know about datarootdir, expand it.
20251 # FIXME: This hack should be removed a few years after 2.60.
20252 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20264 *datarootdir
*) ac_datarootdir_seen
=yes;;
20265 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20270 ac_datarootdir_hack='
20271 s&@datadir@&$datadir&g
20272 s&@docdir@&$docdir&g
20273 s&@infodir@&$infodir&g
20274 s&@localedir@&$localedir&g
20275 s&@mandir@&$mandir&g
20276 s&\\\${datarootdir}&$datarootdir&g' ;;
20280 # Neutralize VPATH when `$srcdir' = `.'.
20281 # Shell code in configure.ac might set extrasub.
20282 # FIXME: do we really want to maintain this feature?
20283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20284 ac_sed_extra="$ac_vpsub
20287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20289 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20290 s|@configure_input@|
$ac_sed_conf_input|
;t t
20291 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20292 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20293 s
&@srcdir@
&$ac_srcdir&;t t
20294 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20295 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20296 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20297 s
&@builddir@
&$ac_builddir&;t t
20298 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20299 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20300 s
&@INSTALL@
&$ac_INSTALL&;t t
20301 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20302 $ac_datarootdir_hack
20304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20305 if $ac_cs_awk_getline; then
20306 $AWK -f "$ac_tmp/subs.
awk"
20308 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20310 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20312 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20313 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20314 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20315 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20317 which seems to be undefined. Please make sure it is defined" >&5
20318 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20319 which seems to be undefined. Please make sure it is defined" >&2;}
20321 rm -f "$ac_tmp/stdin"
20323 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20324 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20332 if test x"$ac_file" != x-; then
20334 $as_echo "/* $configure_input */" \
20335 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20336 } >"$ac_tmp/config.h" \
20337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20338 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20340 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20343 mv "$ac_tmp/config.h" "$ac_file" \
20344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20347 $as_echo "/* $configure_input */" \
20348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20349 || as_fn_error $? "could not create -" "$LINENO" 5
20351 # Compute "$ac_file"'s index
in $config_headers.
20354 for _am_header
in $config_headers :; do
20355 case $_am_header in
20356 $_am_arg |
$_am_arg:* )
20359 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20362 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20363 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20364 X"$_am_arg" : 'X\(//\)[^/]' \| \
20365 X"$_am_arg" : 'X\(//\)$' \| \
20366 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20367 $as_echo X"$_am_arg" |
20368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20372 /^X\(\/\/\)[^/].*/{
20384 s/.*/./; q'`/stamp-h
$_am_stamp_count
20387 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20388 $as_echo "$as_me: executing $ac_file commands" >&6;}
20393 case $ac_file$ac_mode in
20394 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20395 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20396 # are listed without --file. Let's play safe and only enable the eval
20397 # if we detect the quoting.
20398 case $CONFIG_FILES in
20399 *\'*) eval set x
"$CONFIG_FILES" ;;
20400 *) set x
$CONFIG_FILES ;;
20405 # Strip MF so we end up with the name of the file.
20406 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20407 # Check whether this is an Automake generated Makefile or not.
20408 # We used to match only the files named `Makefile.in', but
20409 # some people rename them; so instead we look at the file content.
20410 # Grep'ing the first line is not enough: some people post-process
20411 # each Makefile.in and add a new line on top of each file to say so.
20412 # Grep'ing the whole file is not good either: AIX grep has a line
20413 # limit of 2048, but all sed's we know have understand at least 4000.
20414 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20415 dirpart
=`$as_dirname -- "$mf" ||
20416 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20417 X"$mf" : 'X\(//\)[^/]' \| \
20418 X"$mf" : 'X\(//\)$' \| \
20419 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20425 /^X\(\/\/\)[^/].*/{
20441 # Extract the definition of DEPDIR, am__include, and am__quote
20442 # from the Makefile without running `make'.
20443 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20444 test -z "$DEPDIR" && continue
20445 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20446 test -z "am__include" && continue
20447 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20448 # When using ansi2knr, U may be empty or an underscore; expand it
20449 U
=`sed -n 's/^U = //p' < "$mf"`
20450 # Find all dependency output files, they are included files with
20451 # $(DEPDIR) in their names. We invoke sed twice because it is the
20452 # simplest approach to changing $(DEPDIR) to its actual value in the
20454 for file in `sed -n "
20455 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20456 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20457 # Make sure the directory exists.
20458 test -f "$dirpart/$file" && continue
20459 fdir
=`$as_dirname -- "$file" ||
20460 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20461 X"$file" : 'X\(//\)[^/]' \| \
20462 X"$file" : 'X\(//\)$' \| \
20463 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20464 $as_echo X"$file" |
20465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20469 /^X\(\/\/\)[^/].*/{
20482 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
20483 # echo "creating $dirpart/$file"
20484 echo '# dummy' > "$dirpart/$file"
20491 ### Make the necessary directories, if they don't exist.
20492 for dir
in etc lisp
; do
20493 test -d ${dir} || mkdir
${dir}
20496 echo creating src
/epaths.h
20497 ${MAKE-make} epaths-force
20499 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
20500 echo creating src
/.gdbinit
20501 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
20512 ac_clean_files
=$ac_clean_files_save
20514 test $ac_write_fail = 0 ||
20515 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20518 # configure is writing to config.log, and then calls config.status.
20519 # config.status does its own redirection, appending to config.log.
20520 # Unfortunately, on DOS this fails, as config.log is still kept open
20521 # by configure, so config.status won't be able to write to it; its
20522 # output is simply discarded. So we exec the FD to /dev/null,
20523 # effectively closing config.log, so it can be properly (re)opened and
20524 # appended to by config.status. When coming back to configure, we
20525 # need to make the FD available again.
20526 if test "$no_create" != yes; then
20528 ac_config_status_args
=
20529 test "$silent" = yes &&
20530 ac_config_status_args
="$ac_config_status_args --quiet"
20532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20535 # would make configure fail if this is the last instruction.
20536 $ac_cs_success || as_fn_exit
1
20538 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20540 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}