2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.90.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.90'
553 PACKAGE_STRING
='emacs 24.0.90'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
642 x_default_search_path
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
669 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
670 gl_GNULIB_ENABLED_dosname_FALSE
671 gl_GNULIB_ENABLED_dosname_TRUE
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
677 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
679 TIME_H_DEFINES_STRUCT_TIMESPEC
680 NEXT_AS_FIRST_DIRECTIVE_TIME_H
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
686 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
695 REPLACE_STDIO_WRITE_FUNCS
696 REPLACE_STDIO_READ_FUNCS
705 REPLACE_OBSTACK_PRINTF
727 HAVE_DECL_OBSTACK_PRINTF
733 GNULIB_VSPRINTF_POSIX
737 GNULIB_VFPRINTF_POSIX
744 GNULIB_STDIO_H_SIGPIPE
745 GNULIB_STDIO_H_NONBLOCKING
759 GNULIB_OBSTACK_PRINTF_POSIX
760 GNULIB_OBSTACK_PRINTF
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
796 GL_GENERATE_STDARG_H_FALSE
797 GL_GENERATE_STDARG_H_TRUE
799 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
808 HAVE_DECL_LOCALTIME_R
846 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
848 UINT64_MAX_EQ_ULONG_MAX
849 UINT32_MAX_LT_UINTMAX_MAX
852 INT64_MAX_EQ_LONG_MAX
853 INT32_MAX_LT_INTMAX_MAX
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
872 HAVE_SIGNED_SIG_ATOMIC_T
875 BITSIZEOF_SIG_ATOMIC_T
878 APPLE_UNIVERSAL_BUILD
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
887 HAVE_UNSIGNED_LONG_LONG_INT
891 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
908 REPLACE_CANONICALIZE_FILE_NAME
913 HAVE_STRUCT_RANDOM_DATA
932 HAVE_CANONICALIZE_FILE_NAME
959 GNULIB_CANONICALIZE_FILE_NAME
963 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
964 UNISTD_H_HAVE_WINSOCK2_H
984 REPLACE_GETDOMAINNAME
994 HAVE_DECL_GETUSERSHELL
995 HAVE_DECL_GETPAGESIZE
997 HAVE_DECL_GETDOMAINNAME
1033 GNULIB_UNISTD_H_SIGPIPE
1034 GNULIB_UNISTD_H_NONBLOCKING
1035 GNULIB_UNISTD_H_GETOPT
1059 GNULIB_GETDTABLESIZE
1060 GNULIB_GETDOMAINNAME
1073 GL_GENERATE_ALLOCA_H_FALSE
1074 GL_GENERATE_ALLOCA_H_TRUE
1077 GL_COND_LIBTOOL_FALSE
1078 GL_COND_LIBTOOL_TRUE
1126 LD_SWITCH_X_SITE_AUX_RPATH
1127 LD_SWITCH_X_SITE_AUX
1190 INSTALL_STRIP_PROGRAM
1232 program_transform_name
1243 ac_subst_files
='deps_frag
1247 enable_option_checking
1270 with_toolkit_scroll_bars
1281 with_pkg_config_prog
1285 enable_ns_self_contained
1287 enable_maintainer_mode
1288 enable_locallisppath
1290 enable_use_lisp_union_type
1293 enable_dependency_tracking
1297 ac_precious_vars
='build_alias
1309 # Initialize some variables set by options.
1311 ac_init_version
=false
1312 ac_unrecognized_opts
=
1313 ac_unrecognized_sep
=
1314 # The variables have the same names as the options, with
1315 # dashes changed to underlines.
1316 cache_file
=/dev
/null
1323 program_transform_name
=s
,x
,x
,
1331 # Installation directory options.
1332 # These are left unexpanded so users can "make install exec_prefix=/foo"
1333 # and all the variables that are supposed to be based on exec_prefix
1334 # by default will actually change.
1335 # Use braces instead of parens because sh, perl, etc. also accept them.
1336 # (The list follows the same order as the GNU Coding Standards.)
1337 bindir
='${exec_prefix}/bin'
1338 sbindir
='${exec_prefix}/sbin'
1339 libexecdir
='${exec_prefix}/libexec'
1340 datarootdir
='${prefix}/share'
1341 datadir
='${datarootdir}'
1342 sysconfdir
='${prefix}/etc'
1343 sharedstatedir
='${prefix}/com'
1344 localstatedir
='${prefix}/var'
1345 includedir
='${prefix}/include'
1346 oldincludedir
='/usr/include'
1347 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1348 infodir
='${datarootdir}/info'
1353 libdir
='${exec_prefix}/lib'
1354 localedir
='${datarootdir}/locale'
1355 mandir
='${datarootdir}/man'
1361 # If the previous option needs an argument, assign it.
1362 if test -n "$ac_prev"; then
1363 eval $ac_prev=\
$ac_option
1369 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1373 # Accept the important Cygnus configure options, so we can diagnose typos.
1375 case $ac_dashdash$ac_option in
1379 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1381 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1382 bindir
=$ac_optarg ;;
1384 -build |
--build |
--buil |
--bui |
--bu)
1385 ac_prev
=build_alias
;;
1386 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1387 build_alias
=$ac_optarg ;;
1389 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1390 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1391 ac_prev
=cache_file
;;
1392 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1393 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1394 cache_file
=$ac_optarg ;;
1396 --config-cache |
-C)
1397 cache_file
=config.cache
;;
1399 -datadir |
--datadir |
--datadi |
--datad)
1401 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1402 datadir
=$ac_optarg ;;
1404 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1405 |
--dataroo |
--dataro |
--datar)
1406 ac_prev
=datarootdir
;;
1407 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1408 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1409 datarootdir
=$ac_optarg ;;
1411 -disable-* |
--disable-*)
1412 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1413 # Reject names that are not valid shell variable names.
1414 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1415 as_fn_error
"invalid feature name: $ac_useropt"
1416 ac_useropt_orig
=$ac_useropt
1417 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1418 case $ac_user_opts in
1420 "enable_
$ac_useropt"
1422 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1423 ac_unrecognized_sep
=', ';;
1425 eval enable_
$ac_useropt=no
;;
1427 -docdir |
--docdir |
--docdi |
--doc |
--do)
1429 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1430 docdir
=$ac_optarg ;;
1432 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1434 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1435 dvidir
=$ac_optarg ;;
1437 -enable-* |
--enable-*)
1438 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1439 # Reject names that are not valid shell variable names.
1440 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1441 as_fn_error
"invalid feature name: $ac_useropt"
1442 ac_useropt_orig
=$ac_useropt
1443 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1444 case $ac_user_opts in
1446 "enable_
$ac_useropt"
1448 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1449 ac_unrecognized_sep
=', ';;
1451 eval enable_
$ac_useropt=\
$ac_optarg ;;
1453 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1454 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1455 |
--exec |
--exe |
--ex)
1456 ac_prev
=exec_prefix
;;
1457 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1458 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1459 |
--exec=* |
--exe=* |
--ex=*)
1460 exec_prefix
=$ac_optarg ;;
1462 -gas |
--gas |
--ga |
--g)
1463 # Obsolete; use --with-gas.
1466 -help |
--help |
--hel |
--he |
-h)
1467 ac_init_help
=long
;;
1468 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1469 ac_init_help
=recursive
;;
1470 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1471 ac_init_help
=short
;;
1473 -host |
--host |
--hos |
--ho)
1474 ac_prev
=host_alias
;;
1475 -host=* |
--host=* |
--hos=* |
--ho=*)
1476 host_alias
=$ac_optarg ;;
1478 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1480 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1482 htmldir
=$ac_optarg ;;
1484 -includedir |
--includedir |
--includedi |
--included |
--include \
1485 |
--includ |
--inclu |
--incl |
--inc)
1486 ac_prev
=includedir
;;
1487 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1488 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1489 includedir
=$ac_optarg ;;
1491 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1493 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1494 infodir
=$ac_optarg ;;
1496 -libdir |
--libdir |
--libdi |
--libd)
1498 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1499 libdir
=$ac_optarg ;;
1501 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1502 |
--libexe |
--libex |
--libe)
1503 ac_prev
=libexecdir
;;
1504 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1505 |
--libexe=* |
--libex=* |
--libe=*)
1506 libexecdir
=$ac_optarg ;;
1508 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1509 ac_prev
=localedir
;;
1510 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1511 localedir
=$ac_optarg ;;
1513 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1514 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1515 ac_prev
=localstatedir
;;
1516 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1517 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1518 localstatedir
=$ac_optarg ;;
1520 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1522 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1523 mandir
=$ac_optarg ;;
1525 -nfp |
--nfp |
--nf)
1526 # Obsolete; use --without-fp.
1529 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1530 |
--no-cr |
--no-c |
-n)
1533 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1534 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1537 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1538 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1539 |
--oldin |
--oldi |
--old |
--ol |
--o)
1540 ac_prev
=oldincludedir
;;
1541 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1542 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1543 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1544 oldincludedir
=$ac_optarg ;;
1546 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1548 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1549 prefix
=$ac_optarg ;;
1551 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1552 |
--program-pre |
--program-pr |
--program-p)
1553 ac_prev
=program_prefix
;;
1554 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1555 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1556 program_prefix
=$ac_optarg ;;
1558 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1559 |
--program-suf |
--program-su |
--program-s)
1560 ac_prev
=program_suffix
;;
1561 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1562 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1563 program_suffix
=$ac_optarg ;;
1565 -program-transform-name |
--program-transform-name \
1566 |
--program-transform-nam |
--program-transform-na \
1567 |
--program-transform-n |
--program-transform- \
1568 |
--program-transform |
--program-transfor \
1569 |
--program-transfo |
--program-transf \
1570 |
--program-trans |
--program-tran \
1571 |
--progr-tra |
--program-tr |
--program-t)
1572 ac_prev
=program_transform_name
;;
1573 -program-transform-name=* |
--program-transform-name=* \
1574 |
--program-transform-nam=* |
--program-transform-na=* \
1575 |
--program-transform-n=* |
--program-transform-=* \
1576 |
--program-transform=* |
--program-transfor=* \
1577 |
--program-transfo=* |
--program-transf=* \
1578 |
--program-trans=* |
--program-tran=* \
1579 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1580 program_transform_name
=$ac_optarg ;;
1582 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1584 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1585 pdfdir
=$ac_optarg ;;
1587 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1589 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1592 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1593 |
-silent |
--silent |
--silen |
--sile |
--sil)
1596 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1598 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1600 sbindir
=$ac_optarg ;;
1602 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1603 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1604 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1606 ac_prev
=sharedstatedir
;;
1607 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1608 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1609 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1611 sharedstatedir
=$ac_optarg ;;
1613 -site |
--site |
--sit)
1615 -site=* |
--site=* |
--sit=*)
1618 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1620 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1621 srcdir
=$ac_optarg ;;
1623 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1624 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1625 ac_prev
=sysconfdir
;;
1626 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1627 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1628 sysconfdir
=$ac_optarg ;;
1630 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1631 ac_prev
=target_alias
;;
1632 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1633 target_alias
=$ac_optarg ;;
1635 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1638 -version |
--version |
--versio |
--versi |
--vers |
-V)
1639 ac_init_version
=: ;;
1642 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1643 # Reject names that are not valid shell variable names.
1644 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1645 as_fn_error
"invalid package name: $ac_useropt"
1646 ac_useropt_orig
=$ac_useropt
1647 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1648 case $ac_user_opts in
1652 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1653 ac_unrecognized_sep
=', ';;
1655 eval with_
$ac_useropt=\
$ac_optarg ;;
1657 -without-* |
--without-*)
1658 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1659 # Reject names that are not valid shell variable names.
1660 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1661 as_fn_error
"invalid package name: $ac_useropt"
1662 ac_useropt_orig
=$ac_useropt
1663 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1664 case $ac_user_opts in
1668 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1669 ac_unrecognized_sep
=', ';;
1671 eval with_
$ac_useropt=no
;;
1674 # Obsolete; use --with-x.
1677 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1678 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1679 ac_prev
=x_includes
;;
1680 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1681 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1682 x_includes
=$ac_optarg ;;
1684 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1685 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1686 ac_prev
=x_libraries
;;
1687 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1688 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1689 x_libraries
=$ac_optarg ;;
1691 -*) as_fn_error
"unrecognized option: \`$ac_option'
1692 Try \`$0 --help' for more information."
1696 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1697 # Reject names that are not valid shell variable names.
1698 case $ac_envvar in #(
1699 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1700 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1702 eval $ac_envvar=\
$ac_optarg
1703 export $ac_envvar ;;
1706 # FIXME: should be removed in autoconf 3.0.
1707 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1708 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1709 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1710 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1716 if test -n "$ac_prev"; then
1717 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1718 as_fn_error
"missing argument to $ac_option"
1721 if test -n "$ac_unrecognized_opts"; then
1722 case $enable_option_checking in
1724 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1725 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1729 # Check all directory arguments for consistency.
1730 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1731 datadir sysconfdir sharedstatedir localstatedir includedir \
1732 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1733 libdir localedir mandir
1735 eval ac_val
=\$
$ac_var
1736 # Remove trailing slashes.
1739 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1740 eval $ac_var=\
$ac_val;;
1742 # Be sure to have absolute directory names.
1744 [\\/$
]* | ?
:[\\/]* ) continue;;
1745 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1747 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1750 # There might be people who depend on the old broken behavior: `$host'
1751 # used to hold the argument of --host etc.
1752 # FIXME: To remove some day.
1755 target
=$target_alias
1757 # FIXME: To remove some day.
1758 if test "x$host_alias" != x
; then
1759 if test "x$build_alias" = x
; then
1760 cross_compiling
=maybe
1761 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1762 If a cross compiler is detected then cross compile mode will be used." >&2
1763 elif test "x$build_alias" != "x$host_alias"; then
1769 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1771 test "$silent" = yes && exec 6>/dev
/null
1774 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1775 ac_ls_di
=`ls -di .` &&
1776 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1777 as_fn_error
"working directory cannot be determined"
1778 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1779 as_fn_error
"pwd does not report name of working directory"
1782 # Find the source files, if location was not specified.
1783 if test -z "$srcdir"; then
1784 ac_srcdir_defaulted
=yes
1785 # Try the directory containing this script, then the parent directory.
1786 ac_confdir
=`$as_dirname -- "$as_myself" ||
1787 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1788 X"$as_myself" : 'X\(//\)[^/]' \| \
1789 X"$as_myself" : 'X\(//\)$' \| \
1790 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1791 $as_echo X"$as_myself" |
1792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1810 if test ! -r "$srcdir/$ac_unique_file"; then
1814 ac_srcdir_defaulted
=no
1816 if test ! -r "$srcdir/$ac_unique_file"; then
1817 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1818 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1820 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1822 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1824 # When building in place, set srcdir=.
1825 if test "$ac_abs_confdir" = "$ac_pwd"; then
1828 # Remove unnecessary trailing slashes from srcdir.
1829 # Double slashes in file names in object file debugging info
1830 # mess up M-x gdb in Emacs.
1832 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1834 for ac_var
in $ac_precious_vars; do
1835 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1836 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1837 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1838 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1842 # Report the --help message.
1844 if test "$ac_init_help" = "long"; then
1845 # Omit some internal or obsolete options to make the list less imposing.
1846 # This message is too long to be a string in the A/UX 3.1 sh.
1848 \`configure' configures emacs 24.0.90 to adapt to many kinds of systems.
1850 Usage: $0 [OPTION]... [VAR=VALUE]...
1852 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1853 VAR=VALUE. See below for descriptions of some of the useful variables.
1855 Defaults for the options are specified in brackets.
1858 -h, --help display this help and exit
1859 --help=short display options specific to this package
1860 --help=recursive display the short help of all the included packages
1861 -V, --version display version information and exit
1862 -q, --quiet, --silent do not print \`checking...' messages
1863 --cache-file=FILE cache test results in FILE [disabled]
1864 -C, --config-cache alias for \`--cache-file=config.cache'
1865 -n, --no-create do not create output files
1866 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1868 Installation directories:
1869 --prefix=PREFIX install architecture-independent files in PREFIX
1870 [$ac_default_prefix]
1871 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1874 By default, \`make install' will install all the files in
1875 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1876 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1877 for instance \`--prefix=\$HOME'.
1879 For better control, use the options below.
1881 Fine tuning of the installation directories:
1882 --bindir=DIR user executables [EPREFIX/bin]
1883 --sbindir=DIR system admin executables [EPREFIX/sbin]
1884 --libexecdir=DIR program executables [EPREFIX/libexec]
1885 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1886 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1887 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1888 --libdir=DIR object code libraries [EPREFIX/lib]
1889 --includedir=DIR C header files [PREFIX/include]
1890 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1891 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1892 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1893 --infodir=DIR info documentation [DATAROOTDIR/info]
1894 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1895 --mandir=DIR man documentation [DATAROOTDIR/man]
1896 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1897 --htmldir=DIR html documentation [DOCDIR]
1898 --dvidir=DIR dvi documentation [DOCDIR]
1899 --pdfdir=DIR pdf documentation [DOCDIR]
1900 --psdir=DIR ps documentation [DOCDIR]
1906 --program-prefix=PREFIX prepend PREFIX to installed program names
1907 --program-suffix=SUFFIX append SUFFIX to installed program names
1908 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1911 --x-includes=DIR X include files are
in DIR
1912 --x-libraries=DIR X library files are
in DIR
1915 --build=BUILD configure
for building on BUILD
[guessed
]
1916 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1920 if test -n "$ac_init_help"; then
1921 case $ac_init_help in
1922 short | recursive
) echo "Configuration of emacs 24.0.90:";;
1927 --disable-option-checking ignore unrecognized
--enable/--with options
1928 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1929 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1930 --disable-ns-self-contained
1931 disable self contained build under NeXTstep
1932 --enable-asserts compile code with asserts enabled
1933 --enable-maintainer-mode
1934 enable make rules and dependencies not useful
(and
1935 sometimes confusing
) to the casual installer
1936 --enable-locallisppath=PATH
1937 directories Emacs should search
for lisp files
1938 specific to this site
1939 --enable-checking[=LIST
]
1940 enable expensive run-time checks. With LIST
, enable
1941 only specific categories of checks. Categories are
:
1942 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1943 stringfreelist
, xmallocoverrun
, conslist
1944 --enable-use-lisp-union-type
1945 use a union
for the Lisp_Object data
type. This is
1946 only useful
for development
for catching certain
1948 --enable-profiling build emacs with profiling support. This might not
1949 work on all platforms
1950 --enable-autodepend automatically generate dependencies to .h-files.
1951 Requires GNU Make and Gcc. Enabled
if GNU Make and
1953 --disable-dependency-tracking speeds up one-time build
1954 --enable-dependency-tracking do not reject slow dependency extractors
1955 --disable-largefile omit support
for large files
1958 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1959 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1960 --without-pop don
't support POP mail retrieval with movemail
1961 --with-kerberos support Kerberos-authenticated POP
1962 --with-kerberos5 support Kerberos version 5 authenticated POP
1963 --with-hesiod support Hesiod to get the POP server host
1964 --with-mmdf support MMDF mailboxes
1965 --with-mail-unlink unlink, rather than empty, mail spool after reading
1966 --with-mailhost=HOSTNAME
1967 string giving default POP mail host
1968 --without-sound don't compile with sound support
1969 --without-sync-input process async input synchronously
1970 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1971 lucid or athena
, motif
, no
)
1972 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
1973 --without-xpm don
't compile with XPM image support
1974 --without-jpeg don't compile with JPEG image support
1975 --without-tiff don
't compile with TIFF image support
1976 --without-gif don't compile with GIF image support
1977 --without-png don
't compile with PNG image support
1978 --without-rsvg don't compile with SVG image support
1979 --without-xml2 don
't compile with XML parsing support
1980 --without-imagemagick don't compile with ImageMagick image support
1981 --without-xft don
't use XFT for anti aliased fonts
1982 --without-libotf don't use libotf
for OpenType font support
1983 --without-m17n-flt don
't use m17n-flt for text shaping
1984 --without-toolkit-scroll-bars
1985 don't use Motif or Xaw3d scroll bars
1986 --without-xaw3d don
't use Xaw3d
1987 --without-xim don't use X11 XIM
1988 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
1989 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1991 --without-dbus don't compile with D-Bus support
1992 --without-gconf don
't compile with GConf support
1993 --without-selinux don't compile with SELinux support
1994 --without-gnutls don
't use -lgnutls for SSL/TLS support
1995 --without-makeinfo don't require makeinfo
for building manuals
1996 --without-compress-info don
't compress the installed Info pages
1997 --with-pkg-config-prog=PATH
1998 path to pkg-config for finding GTK and librsvg
1999 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2000 /usr/lib, or /usr/lib64 on some platforms.
2001 --with-gameuser=USER user for shared game score files
2002 --with-gnustep-conf=PATH
2003 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2004 or /etc/GNUstep/GNUstep.conf
2005 --with-x use the X Window System
2007 Some influential environment variables:
2008 CC C compiler command
2009 CFLAGS C compiler flags
2010 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2011 nonstandard directory <lib dir>
2012 LIBS libraries to pass to the linker, e.g. -l<library>
2013 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2014 you have headers in a nonstandard directory <include dir>
2016 XMKMF Path to xmkmf, Makefile generator for X Window System
2018 Use these variables to override the choices made by `configure' or to
help
2019 it to
find libraries and programs with nonstandard names
/locations.
2021 Report bugs to the package provider.
2026 if test "$ac_init_help" = "recursive"; then
2027 # If there are subdirs, report their specific --help.
2028 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2029 test -d "$ac_dir" ||
2030 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2035 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2037 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2038 # A ".." for each directory in $ac_dir_suffix.
2039 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2040 case $ac_top_builddir_sub in
2041 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2042 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2045 ac_abs_top_builddir
=$ac_pwd
2046 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2047 # for backward compatibility:
2048 ac_top_builddir
=$ac_top_build_prefix
2051 .
) # We are building in place.
2053 ac_top_srcdir
=$ac_top_builddir_sub
2054 ac_abs_top_srcdir
=$ac_pwd ;;
2055 [\\/]* | ?
:[\\/]* ) # Absolute name.
2056 ac_srcdir
=$srcdir$ac_dir_suffix;
2057 ac_top_srcdir
=$srcdir
2058 ac_abs_top_srcdir
=$srcdir ;;
2060 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2061 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2062 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2064 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2066 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2067 # Check for guested configure.
2068 if test -f "$ac_srcdir/configure.gnu"; then
2070 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2071 elif test -f "$ac_srcdir/configure"; then
2073 $SHELL "$ac_srcdir/configure" --help=recursive
2075 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2077 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2081 test -n "$ac_init_help" && exit $ac_status
2082 if $ac_init_version; then
2084 emacs configure
24.0.90
2085 generated by GNU Autoconf
2.65
2087 Copyright
(C
) 2009 Free Software Foundation
, Inc.
2088 This configure
script is free software
; the Free Software Foundation
2089 gives unlimited permission to copy
, distribute and modify it.
2094 ## ------------------------ ##
2095 ## Autoconf initialization. ##
2096 ## ------------------------ ##
2098 # ac_fn_c_try_compile LINENO
2099 # --------------------------
2100 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_c_try_compile
()
2103 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2104 rm -f conftest.
$ac_objext
2105 if { { ac_try
="$ac_compile"
2107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_compile") 2>conftest.err
2114 if test -s conftest.err; then
2115 grep -v '^ *+' conftest.err >conftest.er1
2116 cat conftest.er1 >&5
2117 mv -f conftest.er1 conftest.err
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && {
2121 test -z "$ac_c_werror_flag" ||
2122 test ! -s conftest.err
2123 } && test -s conftest.$ac_objext; then :
2126 $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 as_fn_set_status $ac_retval
2134 } # ac_fn_c_try_compile
2136 # ac_fn_c_try_cpp LINENO
2137 # ----------------------
2138 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if { { ac_try="$ac_cpp conftest.$ac_ext"
2144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2145 *) ac_try_echo
=$ac_try;;
2147 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2151 if test -s conftest.err
; then
2152 grep -v '^ *+' conftest.err
>conftest.er1
2153 cat conftest.er1
>&5
2154 mv -f conftest.er1 conftest.err
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } >/dev
/null
&& {
2158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2159 test ! -s conftest.err
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.
$ac_ext >&5
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2169 as_fn_set_status
$ac_retval
2173 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2174 # -------------------------------------------------------
2175 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2176 # the include files in INCLUDES and setting the cache variable VAR
2178 ac_fn_c_check_header_mongrel
()
2180 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2181 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 $as_echo_n "checking for $2... " >&6; }
2184 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2185 $as_echo_n "(cached) " >&6
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2191 # Is the header compilable?
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2193 $as_echo_n "checking $2 usability... " >&6; }
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2199 if ac_fn_c_try_compile
"$LINENO"; then :
2200 ac_header_compiler
=yes
2202 ac_header_compiler
=no
2204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2206 $as_echo "$ac_header_compiler" >&6; }
2208 # Is the header present?
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2210 $as_echo_n "checking $2 presence... " >&6; }
2211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2215 if ac_fn_c_try_cpp
"$LINENO"; then :
2216 ac_header_preproc
=yes
2218 ac_header_preproc
=no
2220 rm -f conftest.err conftest.
$ac_ext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2222 $as_echo "$ac_header_preproc" >&6; }
2224 # So? What about this header?
2225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2228 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2230 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2234 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2236 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2238 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2240 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2242 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2250 eval "$3=\$ac_header_compiler"
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2258 } # ac_fn_c_check_header_mongrel
2260 # ac_fn_c_try_run LINENO
2261 # ----------------------
2262 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2263 # that executables *can* be run.
2266 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2267 if { { ac_try
="$ac_link"
2269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_link") 2>&5
2276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2277 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2278 { { case "(($ac_try" in
2279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2280 *) ac_try_echo
=$ac_try;;
2282 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2283 $as_echo "$ac_try_echo"; } >&5
2284 (eval "$ac_try") 2>&5
2286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287 test $ac_status = 0; }; }; then :
2290 $as_echo "$as_me: program exited with status $ac_status" >&5
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2294 ac_retval
=$ac_status
2296 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2297 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2298 as_fn_set_status
$ac_retval
2302 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2303 # -------------------------------------------------------
2304 # Tests whether HEADER exists and can be compiled using the include files in
2305 # INCLUDES, setting the cache variable VAR accordingly.
2306 ac_fn_c_check_header_compile
()
2308 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 $as_echo_n "(cached) " >&6
2314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2319 if ac_fn_c_try_compile
"$LINENO"; then :
2324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328 $as_echo "$ac_res" >&6; }
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2331 } # ac_fn_c_check_header_compile
2333 # ac_fn_c_try_link LINENO
2334 # -----------------------
2335 # Try to link conftest.$ac_ext, and return whether this succeeded.
2338 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2339 rm -f conftest.
$ac_objext conftest
$ac_exeext
2340 if { { ac_try
="$ac_link"
2342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2346 $as_echo "$ac_try_echo"; } >&5
2347 (eval "$ac_link") 2>conftest.err
2349 if test -s conftest.err; then
2350 grep -v '^ *+' conftest.err >conftest.er1
2351 cat conftest.er1 >&5
2352 mv -f conftest.er1 conftest.err
2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355 test $ac_status = 0; } && {
2356 test -z "$ac_c_werror_flag" ||
2357 test ! -s conftest.err
2358 } && test -s conftest$ac_exeext && {
2359 test "$cross_compiling" = yes ||
2360 $as_test_x conftest$ac_exeext
2364 $as_echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2369 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2370 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2371 # interfere with the next link command; also delete a directory that is
2372 # left behind by Apple's compiler. We do this before executing the actions.
2373 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375 as_fn_set_status $ac_retval
2377 } # ac_fn_c_try_link
2379 # ac_fn_c_check_decl LINENO SYMBOL VAR
2380 # ------------------------------------
2381 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2382 ac_fn_c_check_decl ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2386 $as_echo_n "checking whether $2 is declared... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2404 if ac_fn_c_try_compile "$LINENO"; then :
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416 } # ac_fn_c_check_decl
2418 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2419 # ----------------------------------------------
2420 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2421 ac_fn_c_check_header_preproc ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2433 if ac_fn_c_try_cpp "$LINENO"; then :
2438 rm -f conftest.err conftest.$ac_ext
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_check_header_preproc
2447 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2448 # ----------------------------------------------------
2449 # Tries to find if the field MEMBER exists in type AGGR, after including
2450 # INCLUDES, setting cache variable VAR accordingly.
2451 ac_fn_c_check_member ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2455 $as_echo_n "checking for $2.$3... " >&6; }
2456 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2472 if ac_fn_c_try_compile "$LINENO"; then :
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2482 if (sizeof ac_aggr.$3)
2488 if ac_fn_c_try_compile "$LINENO"; then :
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499 $as_echo "$ac_res" >&6; }
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502 } # ac_fn_c_check_member
2504 # ac_fn_c_check_func LINENO FUNC VAR
2505 # ----------------------------------
2506 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2507 ac_fn_c_check_func ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2519 #define $2 innocuous_$2
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char $2 (); below.
2523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2524 <limits.h> exists even on freestanding compilers. */
2527 # include <limits.h>
2529 # include <assert.h>
2534 /* Override any GCC internal prototype to avoid an error.
2535 Use char because int might match the return type of a GCC
2536 builtin and then its argument prototype would still apply. */
2541 /* The GNU C library defines this for functions which it implements
2542 to always fail with ENOSYS. Some functions are actually named
2543 something starting with __ and the normal name is an alias. */
2544 #if defined __stub_$2 || defined __stub___$2
2556 if ac_fn_c_try_link "$LINENO"; then :
2561 rm -f core conftest.err conftest.$ac_objext \
2562 conftest$ac_exeext conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_func
2573 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2574 # ----------------------------------------------------
2575 # Tries to find if the field MEMBER exists in type AGGR, after including
2576 # INCLUDES, setting cache variable VAR accordingly.
2577 ac_fn_c_check_member ()
2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2581 $as_echo_n "checking for $2.$3... " >&6; }
2582 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2583 $as_echo_n "(cached) " >&6
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2598 if ac_fn_c_try_compile "$LINENO"; then :
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2608 if (sizeof ac_aggr.$3)
2614 if ac_fn_c_try_compile "$LINENO"; then :
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2625 $as_echo "$ac_res" >&6; }
2626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2628 } # ac_fn_c_check_member
2630 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2631 # -------------------------------------------
2632 # Tests whether TYPE exists after having included INCLUDES, setting cache
2633 # variable VAR accordingly.
2634 ac_fn_c_check_type ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2638 $as_echo_n "checking for $2... " >&6; }
2639 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2640 $as_echo_n "(cached) " >&6
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2655 if ac_fn_c_try_compile "$LINENO"; then :
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2668 if ac_fn_c_try_compile "$LINENO"; then :
2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2682 } # ac_fn_c_check_type
2684 >>>>>>> MERGE-SOURCE
2685 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2686 # --------------------------------------------
2687 # Tries to find the compile-time value of EXPR in a program that includes
2688 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2690 ac_fn_c_compute_int ()
2692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693 if test "$cross_compiling" = yes; then
2694 # Depending upon the size, compute the lo and hi bounds.
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2701 static int test_array [1 - 2 * !(($2) >= 0)];
2708 if ac_fn_c_try_compile "$LINENO"; then :
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2717 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2724 if ac_fn_c_try_compile "$LINENO"; then :
2725 ac_hi=$ac_mid; break
2727 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2728 if test $ac_lo -le $ac_mid; then
2732 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2743 static int test_array [1 - 2 * !(($2) < 0)];
2750 if ac_fn_c_try_compile "$LINENO"; then :
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2759 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767 ac_lo=$ac_mid; break
2769 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2770 if test $ac_mid -le $ac_hi; then
2774 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 # Binary search between lo and hi bounds.
2785 while test "x$ac_lo" != "x$ac_hi"; do
2786 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h. */
2793 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2800 if ac_fn_c_try_compile "$LINENO"; then :
2803 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813 /* end confdefs.h. */
2815 static long int longval () { return $2; }
2816 static unsigned long int ulongval () { return $2; }
2823 FILE *f = fopen ("conftest.val", "w");
2828 long int i = longval ();
2831 fprintf (f, "%ld", i);
2835 unsigned long int i = ulongval ();
2838 fprintf (f, "%lu", i);
2840 /* Do not output a trailing newline, as this causes \r\n confusion
2841 on some platforms. */
2842 return ferror (f) || fclose (f) != 0;
2848 if ac_fn_c_try_run "$LINENO"; then :
2849 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2854 conftest.$ac_objext conftest.beam conftest.$ac_ext
2858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2859 as_fn_set_status $ac_retval
2861 } # ac_fn_c_compute_int
2863 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2864 # -------------------------------------------
2865 # Tests whether TYPE exists after having included INCLUDES, setting cache
2866 # variable VAR accordingly.
2867 ac_fn_c_check_type ()
2869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2871 $as_echo_n "checking for $2... " >&6; }
2872 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2873 $as_echo_n "(cached) " >&6
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2888 if ac_fn_c_try_compile "$LINENO"; then :
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2901 if ac_fn_c_try_compile "$LINENO"; then :
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2912 $as_echo "$ac_res" >&6; }
2913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2915 } # ac_fn_c_check_type
2916 cat >config.log <<_ACEOF
2917 This file contains any messages produced by compilers while
2918 running configure, to aid debugging if configure makes a mistake.
2920 It was created by emacs $as_me 24.0.90, which was
2921 generated by GNU Autoconf 2.65. Invocation command line was
2933 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2934 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2935 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2936 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2937 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2939 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2940 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2942 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2943 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2944 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2945 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2946 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2947 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2948 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 $as_echo "PATH: $as_dir"
2973 # Keep a trace of the command line.
2974 # Strip out --no-create and --no-recursion so they do not pile up.
2975 # Strip out --silent because we don't want to record it for future runs.
2976 # Also quote any args containing shell meta-characters.
2977 # Make two passes to allow for proper duplicate-argument suppression.
2981 ac_must_keep_next=false
2987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2989 | -silent | --silent | --silen | --sile | --sil)
2992 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2997 as_fn_append ac_configure_args1 " '$ac_arg'"
2998 if test $ac_must_keep_next = true; then
2999 ac_must_keep_next=false # Got value, back to normal.
3002 *=* | --config-cache | -C | -disable-* | --disable-* \
3003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3005 | -with-* | --with-* | -without-* | --without-* | --x)
3006 case "$ac_configure_args0 " in
3007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3010 -* ) ac_must_keep_next=true ;;
3013 as_fn_append ac_configure_args " '$ac_arg'"
3018 { ac_configure_args0=; unset ac_configure_args0;}
3019 { ac_configure_args1=; unset ac_configure_args1;}
3021 # When interrupted or exit'd, cleanup temporary files, and complete
3022 # config.log. We remove comments because anyway the quotes in there
3023 # would cause problems or look ugly.
3024 # WARNING: Use '\'' to represent an apostrophe within the trap.
3025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3026 trap 'exit_status=$?
3027 # Save into config.log some information that might help in debugging.
3032 ## ---------------- ##
3033 ## Cache variables. ##
3034 ## ---------------- ##
3037 # The following way of writing the cache mishandles newlines in values,
3039 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3040 eval ac_val=\$$ac_var
3044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3048 _ | IFS | as_nl) ;; #(
3049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3050 *) { eval $ac_var=; unset $ac_var;} ;;
3055 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3056 *${as_nl}ac_space=\ *)
3058 "s/'\''/'\''\\\\'\'''\''/g;
3059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3070 ## ----------------- ##
3071 ## Output variables. ##
3072 ## ----------------- ##
3075 for ac_var in $ac_subst_vars
3077 eval ac_val=\$$ac_var
3079 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3081 $as_echo "$ac_var='\''$ac_val'\''"
3085 if test -n "$ac_subst_files"; then
3087 ## ------------------- ##
3088 ## File substitutions. ##
3089 ## ------------------- ##
3092 for ac_var in $ac_subst_files
3094 eval ac_val=\$$ac_var
3096 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3098 $as_echo "$ac_var='\''$ac_val'\''"
3103 if test -s confdefs.h; then
3113 test "$ac_signal" != 0 &&
3114 $as_echo "$as_me: caught signal $ac_signal"
3115 $as_echo "$as_me: exit $exit_status"
3117 rm -f core *.core core.conftest.* &&
3118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3121 for ac_signal in 1 2 13 15; do
3122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3127 rm -f -r conftest* confdefs.h
3129 $as_echo "/* confdefs.h */" > confdefs.h
3131 # Predefined preprocessor variables.
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_NAME "$PACKAGE_NAME"
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_STRING "$PACKAGE_STRING"
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3153 cat >>confdefs.h <<_ACEOF
3154 #define PACKAGE_URL "$PACKAGE_URL"
3158 # Let the site file select an alternate cache file if it wants to.
3159 # Prefer an explicitly selected file to automatically selected ones.
3162 if test -n "$CONFIG_SITE"; then
3163 ac_site_file1=$CONFIG_SITE
3164 elif test "x$prefix" != xNONE; then
3165 ac_site_file1=$prefix/share/config.site
3166 ac_site_file2=$prefix/etc/config.site
3168 ac_site_file1=$ac_default_prefix/share/config.site
3169 ac_site_file2=$ac_default_prefix/etc/config.site
3171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3173 test "x$ac_site_file" = xNONE && continue
3174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3177 sed 's/^/| /' "$ac_site_file" >&5
3182 if test -r "$cache_file"; then
3183 # Some versions of bash will fail to source /dev/null (special files
3184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3187 $as_echo "$as_me: loading cache $cache_file" >&6;}
3189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3190 *) . "./$cache_file";;
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3195 $as_echo "$as_me: creating cache $cache_file" >&6;}
3199 as_fn_append ac_header_list " stdlib.h"
3200 as_fn_append ac_header_list " unistd.h"
3201 as_fn_append ac_header_list " sys/param.h"
3202 as_fn_append ac_func_list " readlinkat"
3203 gl_getopt_required=GNU
3204 as_fn_append ac_header_list " getopt.h"
3205 as_fn_append ac_header_list " wchar.h"
3206 as_fn_append ac_header_list " stdint.h"
3207 as_fn_append ac_header_list " inttypes.h"
3208 as_fn_append ac_func_list " lstat"
3209 as_fn_append ac_func_list " alarm"
3210 as_fn_append ac_func_list " readlink"
3211 as_fn_append ac_header_list " sys/socket.h"
3212 as_fn_append ac_func_list " tzset"
3213 as_fn_append ac_func_list " strtoimax"
3214 as_fn_append ac_func_list " strtoumax"
3215 as_fn_append ac_func_list " symlink"
3216 as_fn_append ac_header_list " sys/stat.h"
3217 as_fn_append ac_header_list " sys/time.h"
3218 as_fn_append ac_func_list " localtime_r"
3219 # Check that the precious variables saved in the cache have kept the same
3221 ac_cache_corrupted=false
3222 for ac_var in $ac_precious_vars; do
3223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3224 eval ac_new_set=\$ac_env_${ac_var}_set
3225 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3226 eval ac_new_val=\$ac_env_${ac_var}_value
3227 case $ac_old_set,$ac_new_set in
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3230 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3231 ac_cache_corrupted=: ;;
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3234 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3235 ac_cache_corrupted=: ;;
3238 if test "x$ac_old_val" != "x$ac_new_val"; then
3239 # differences in whitespace do not lead to failure.
3240 ac_old_val_w=`echo x
$ac_old_val`
3241 ac_new_val_w=`echo x
$ac_new_val`
3242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3245 ac_cache_corrupted=:
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3249 eval $ac_var=\$ac_old_val
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3252 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3257 # Pass precious variables to config.status.
3258 if test "$ac_new_set" = set; then
3260 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3261 *) ac_arg=$ac_var=$ac_new_val ;;
3263 case " $ac_configure_args " in
3264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3265 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3269 if $ac_cache_corrupted; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3273 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3274 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3276 ## -------------------- ##
3277 ## Main body of script. ##
3278 ## -------------------- ##
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3287 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3291 for ac_dir in build-aux "$srcdir"/build-aux; do
3292 for ac_t in install-sh install.sh shtool; do
3293 if test -f "$ac_dir/$ac_t"; then
3295 ac_install_sh="$ac_aux_dir/$ac_t -c"
3300 if test -z "$ac_aux_dir"; then
3301 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3304 # These three variables are undocumented and unsupported,
3305 # and are intended to be withdrawn in a future Autoconf release.
3306 # They can cause serious problems if a builder's source tree is in a directory
3307 # whose full name contains unusual characters.
3308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3313 am__api_version='1.11'
3315 # Find a good install program. We prefer a C program (faster),
3316 # so one script is as good as another. But avoid the broken or
3317 # incompatible versions:
3318 # SysV /etc/install, /usr/sbin/install
3319 # SunOS /usr/etc/install
3320 # IRIX /sbin/install
3322 # AmigaOS /C/install, which installs bootblocks on floppy discs
3323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3326 # OS/2's system install, which has a completely different semantic
3327 # ./install, which can be erroneously created by make from ./install.sh.
3328 # Reject install programs that cannot install multiple files.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3331 if test -z "$INSTALL"; then
3332 if test "${ac_cv_path_install+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 # Account for people who put trailing slashes in PATH elements.
3341 case $as_dir/ in #((
3342 ./ | .// | /[cC]/* | \
3343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3344 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3347 # OSF1 and SCO ODT 3.0 have their own names for install.
3348 # Don't use installbsd from OSF since it installs stuff as root
3350 for ac_prog in ginstall scoinst install; do
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3353 if test $ac_prog = install &&
3354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3355 # AIX install. It has an incompatible calling convention.
3357 elif test $ac_prog = install &&
3358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3359 # program-specific install script used by HP pwplus--don't use.
3362 rm -rf conftest.one conftest.two conftest.dir
3363 echo one > conftest.one
3364 echo two > conftest.two
3366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3367 test -s conftest.one && test -s conftest.two &&
3368 test -s conftest.dir/conftest.one &&
3369 test -s conftest.dir/conftest.two
3371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3384 rm -rf conftest.one conftest.two conftest.dir
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL=$ac_cv_path_install
3390 # As a last resort, use the slow shell script. Don't cache a
3391 # value for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the value is a relative name.
3394 INSTALL=$ac_install_sh
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3398 $as_echo "$INSTALL" >&6; }
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3409 $as_echo_n "checking whether build environment is sane... " >&6; }
3412 echo timestamp > conftest.file
3413 # Reject unsafe characters in $srcdir or the absolute working directory
3414 # name. Accept space and tab only in the latter.
3418 *[\\\"\#\$\&\'\`$am_lf]*)
3419 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3422 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3423 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3426 # Do `set' in a subshell so we don't clobber the current shell's
3427 # arguments. Must try -L first in case configure is actually a
3428 # symlink; some systems play weird games with the mod time of symlinks
3429 # (eg FreeBSD returns the mod time of the symlink's containing
3432 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3433 if test "$*" = "X"; then
3435 set X
`ls -t "$srcdir/configure" conftest.file`
3438 if test "$*" != "X $srcdir/configure conftest.file" \
3439 && test "$*" != "X conftest.file $srcdir/configure"; then
3441 # If neither matched, then we have a broken ls. This can happen
3442 # if, for instance, CONFIG_SHELL is bash and it inherits a
3443 # broken ls alias from the environment. This has actually
3444 # happened. Such a system could not be considered "sane".
3445 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3446 alias in your environment" "$LINENO" 5
3449 test "$2" = conftest.
file
3455 as_fn_error
"newly created file is older than distributed files!
3456 Check your system clock" "$LINENO" 5
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460 test "$program_prefix" != NONE
&&
3461 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3462 # Use a double $ so make ignores it.
3463 test "$program_suffix" != NONE
&&
3464 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3465 # Double any \ or $.
3466 # By default was `s,x,x', remove it if useless.
3467 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3468 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3470 # expand $ac_aux_dir to an absolute path
3471 am_aux_dir
=`cd $ac_aux_dir && pwd`
3473 if test x
"${MISSING+set}" != xset
; then
3476 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3478 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3481 # Use eval to expand $SHELL
3482 if eval "$MISSING --run true"; then
3483 am_missing_run
="$MISSING --run "
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3490 if test x
"${install_sh}" != xset
; then
3493 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3495 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3499 # Installed binaries are usually stripped using `strip' when the user
3500 # run `make install-strip'. However `strip' might not be the right
3501 # tool to use in cross-compilation environments, therefore Automake
3502 # will honor the `STRIP' environment variable to overrule this program.
3503 if test "$cross_compiling" != no
; then
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3506 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if test "${ac_cv_prog_STRIP+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3512 if test -n "$STRIP"; then
3513 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3519 test -z "$as_dir" && as_dir
=.
3520 for ac_exec_ext
in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3522 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 STRIP
=$ac_cv_prog_STRIP
3533 if test -n "$STRIP"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3535 $as_echo "$STRIP" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3543 if test -z "$ac_cv_prog_STRIP"; then
3545 # Extract the first word of "strip", so it can be a program name with args.
3546 set dummy strip
; ac_word
=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$ac_ct_STRIP"; then
3553 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir
=.
3560 for ac_exec_ext
in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_ac_ct_STRIP
="strip"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3573 if test -n "$ac_ct_STRIP"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3575 $as_echo "$ac_ct_STRIP" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3581 if test "x$ac_ct_STRIP" = x
; then
3584 case $cross_compiling:$ac_tool_warned in
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned
=yes ;;
3593 STRIP
="$ac_cv_prog_STRIP"
3597 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3601 if test -z "$MKDIR_P"; then
3602 if test "${ac_cv_path_mkdir+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3609 test -z "$as_dir" && as_dir
=.
3610 for ac_prog
in mkdir gmkdir
; do
3611 for ac_exec_ext
in '' $ac_executable_extensions; do
3612 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3614 'mkdir (GNU coreutils) '* | \
3615 'mkdir (coreutils) '* | \
3616 'mkdir (fileutils) '4.1*)
3617 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3627 test -d .
/--version && rmdir .
/--version
3628 if test "${ac_cv_path_mkdir+set}" = set; then
3629 MKDIR_P
="$ac_cv_path_mkdir -p"
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for MKDIR_P within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 MKDIR_P
="$ac_install_sh -d"
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3639 $as_echo "$MKDIR_P" >&6; }
3644 [\\/$
]* | ?
:[\\/]*) ;;
3645 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3648 for ac_prog
in gawk mawk nawk
awk
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy
$ac_prog; ac_word
=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_AWK+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -n "$AWK"; then
3658 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_AWK
="$ac_prog"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 if test -n "$AWK"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3680 $as_echo "$AWK" >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3687 test -n "$AWK" && break
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3693 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3694 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3695 $as_echo_n "(cached) " >&6
3697 cat >conftest.
make <<\_ACEOF
3700 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3705 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3707 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3711 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 SET_MAKE
="MAKE=${MAKE-make}"
3721 rm -rf .tst
2>/dev
/null
3722 mkdir .tst
2>/dev
/null
3723 if test -d .tst
; then
3728 rmdir .tst
2>/dev
/null
3730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3732 # is not polluted with repeated "-I."
3733 am__isrc
=' -I$(srcdir)'
3734 # test to see if srcdir already configured
3735 if test -f $srcdir/config.status
; then
3736 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3740 # test whether we have cygpath
3741 if test -z "$CYGPATH_W"; then
3742 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3743 CYGPATH_W
='cygpath -w'
3750 # Define the identity of the package.
3755 cat >>confdefs.h
<<_ACEOF
3756 #define PACKAGE "$PACKAGE"
3760 cat >>confdefs.h
<<_ACEOF
3761 #define VERSION "$VERSION"
3764 # Some tools Automake needs.
3766 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3769 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3772 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3775 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3778 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3780 # We need awk for the "check" target. The system "awk" is bad on
3782 # Always define AMTAR for backward compatibility.
3784 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3786 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3795 lispdir
='${datadir}/emacs/${version}/lisp'
3796 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3797 '${datadir}/emacs/site-lisp'
3798 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3799 etcdir
='${datadir}/emacs/${version}/etc'
3800 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3801 docdir
='${datadir}/emacs/${version}/etc'
3802 gamedir
='${localstatedir}/games/emacs'
3807 # Check whether --with-pop was given.
3808 if test "${with_pop+set}" = set; then :
3814 if test "$with_pop" = yes; then
3815 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3820 # Check whether --with-kerberos was given.
3821 if test "${with_kerberos+set}" = set; then :
3822 withval
=$with_kerberos;
3827 if test "$with_kerberos" != no
; then
3828 $as_echo "#define KERBEROS 1" >>confdefs.h
3833 # Check whether --with-kerberos5 was given.
3834 if test "${with_kerberos5+set}" = set; then :
3835 withval
=$with_kerberos5;
3840 if test "${with_kerberos5}" != no
; then
3841 if test "${with_kerberos}" = no
; then
3843 $as_echo "#define KERBEROS 1" >>confdefs.h
3847 $as_echo "#define KERBEROS5 1" >>confdefs.h
3852 # Check whether --with-hesiod was given.
3853 if test "${with_hesiod+set}" = set; then :
3854 withval
=$with_hesiod;
3859 if test "$with_hesiod" != no
; then
3861 $as_echo "#define HESIOD 1" >>confdefs.h
3866 # Check whether --with-mmdf was given.
3867 if test "${with_mmdf+set}" = set; then :
3873 if test "$with_mmdf" != no
; then
3875 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3880 # Check whether --with-mail-unlink was given.
3881 if test "${with_mail_unlink+set}" = set; then :
3882 withval
=$with_mail_unlink;
3887 if test "$with_mail_unlink" != no
; then
3889 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3894 # Check whether --with-mailhost was given.
3895 if test "${with_mailhost+set}" = set; then :
3896 withval
=$with_mailhost;
3897 cat >>confdefs.h
<<_ACEOF
3898 #define MAILHOST "$withval"
3905 # Check whether --with-sound was given.
3906 if test "${with_sound+set}" = set; then :
3907 withval
=$with_sound;
3914 # Check whether --with-sync-input was given.
3915 if test "${with_sync_input+set}" = set; then :
3916 withval
=$with_sync_input;
3921 if test "$with_sync_input" = yes; then
3923 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3928 # Check whether --with-x-toolkit was given.
3929 if test "${with_x_toolkit+set}" = set; then :
3930 withval
=$with_x_toolkit; case "${withval}" in
3931 y | ye |
yes ) val
=gtk
;;
3933 l | lu | luc | luci | lucid
) val
=lucid
;;
3934 a |
at | ath | athe | athen | athena
) val
=athena
;;
3935 m | mo | mot | moti | motif
) val
=motif
;;
3936 g | gt | gtk
) val
=gtk
;;
3939 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3940 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3941 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3950 # Check whether --with-wide-int was given.
3951 if test "${with_wide_int+set}" = set; then :
3952 withval
=$with_wide_int;
3957 if test "$with_wide_int" = yes; then
3959 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3964 # Check whether --with-xpm was given.
3965 if test "${with_xpm+set}" = set; then :
3972 # Check whether --with-jpeg was given.
3973 if test "${with_jpeg+set}" = set; then :
3980 # Check whether --with-tiff was given.
3981 if test "${with_tiff+set}" = set; then :
3988 # Check whether --with-gif was given.
3989 if test "${with_gif+set}" = set; then :
3996 # Check whether --with-png was given.
3997 if test "${with_png+set}" = set; then :
4004 # Check whether --with-rsvg was given.
4005 if test "${with_rsvg+set}" = set; then :
4012 # Check whether --with-xml2 was given.
4013 if test "${with_xml2+set}" = set; then :
4020 # Check whether --with-imagemagick was given.
4021 if test "${with_imagemagick+set}" = set; then :
4022 withval
=$with_imagemagick;
4024 with_imagemagick
=yes
4029 # Check whether --with-xft was given.
4030 if test "${with_xft+set}" = set; then :
4037 # Check whether --with-libotf was given.
4038 if test "${with_libotf+set}" = set; then :
4039 withval
=$with_libotf;
4045 # Check whether --with-m17n-flt was given.
4046 if test "${with_m17n_flt+set}" = set; then :
4047 withval
=$with_m17n_flt;
4054 # Check whether --with-toolkit-scroll-bars was given.
4055 if test "${with_toolkit_scroll_bars+set}" = set; then :
4056 withval
=$with_toolkit_scroll_bars;
4058 with_toolkit_scroll_bars
=yes
4062 # Check whether --with-xaw3d was given.
4063 if test "${with_xaw3d+set}" = set; then :
4064 withval
=$with_xaw3d;
4070 # Check whether --with-xim was given.
4071 if test "${with_xim+set}" = set; then :
4078 # Check whether --with-ns was given.
4079 if test "${with_ns+set}" = set; then :
4087 # Check whether --with-gpm was given.
4088 if test "${with_gpm+set}" = set; then :
4095 # Check whether --with-dbus was given.
4096 if test "${with_dbus+set}" = set; then :
4103 # Check whether --with-gconf was given.
4104 if test "${with_gconf+set}" = set; then :
4105 withval
=$with_gconf;
4111 # Check whether --with-selinux was given.
4112 if test "${with_selinux+set}" = set; then :
4113 withval
=$with_selinux;
4119 # Check whether --with-gnutls was given.
4120 if test "${with_gnutls+set}" = set; then :
4121 withval
=$with_gnutls;
4127 ## For the times when you want to build Emacs but don't have
4128 ## a suitable makeinfo, and can live without the manuals.
4130 # Check whether --with-makeinfo was given.
4131 if test "${with_makeinfo+set}" = set; then :
4132 withval
=$with_makeinfo;
4138 ## This is an option because I do not know if all info/man support
4139 ## compressed files, nor how to test if they do so.
4141 # Check whether --with-compress-info was given.
4142 if test "${with_compress_info+set}" = set; then :
4143 withval
=$with_compress_info;
4145 with_compress_info
=yes
4148 if test $with_compress_info = yes; then
4156 # Check whether --with-pkg-config-prog was given.
4157 if test "${with_pkg_config_prog+set}" = set; then :
4158 withval
=$with_pkg_config_prog;
4161 if test "X${with_pkg_config_prog}" != X
; then
4162 if test "${with_pkg_config_prog}" != yes; then
4163 PKG_CONFIG
="${with_pkg_config_prog}"
4169 # Check whether --with-crt-dir was given.
4170 if test "${with_crt_dir+set}" = set; then :
4171 withval
=$with_crt_dir;
4174 CRT_DIR
="${with_crt_dir}"
4177 # Check whether --with-gameuser was given.
4178 if test "${with_gameuser+set}" = set; then :
4179 withval
=$with_gameuser;
4182 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4183 && gameuser
="${with_gameuser}"
4184 test "X$gameuser" = X
&& gameuser
=games
4187 # Check whether --with-gnustep-conf was given.
4188 if test "${with_gnustep_conf+set}" = set; then :
4189 withval
=$with_gnustep_conf;
4192 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4193 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4194 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4195 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4197 # Check whether --enable-ns-self-contained was given.
4198 if test "${enable_ns_self_contained+set}" = set; then :
4199 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4201 EN_NS_SELF_CONTAINED
=yes
4205 # Check whether --enable-asserts was given.
4206 if test "${enable_asserts+set}" = set; then :
4207 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4213 # Check whether --enable-maintainer-mode was given.
4214 if test "${enable_maintainer_mode+set}" = set; then :
4215 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4217 USE_MAINTAINER_MODE
=yes
4220 if test $USE_MAINTAINER_MODE = yes; then
4227 # Check whether --enable-locallisppath was given.
4228 if test "${enable_locallisppath+set}" = set; then :
4229 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4231 elif test "${enableval}" != "yes"; then
4232 locallisppath
=${enableval}
4237 # Check whether --enable-checking was given.
4238 if test "${enable_checking+set}" = set; then :
4239 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4242 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4243 for check
in $ac_checking_flags
4246 # these set all the flags to specific states
4247 yes) ac_enable_checking
=1 ;;
4248 no
) ac_enable_checking
= ;
4249 ac_gc_check_stringbytes
= ;
4250 ac_gc_check_string_overrun
= ;
4251 ac_gc_check_string_free_list
= ;
4252 ac_xmalloc_overrun
= ;
4253 ac_gc_check_cons_list
= ;;
4254 all
) ac_enable_checking
=1 ;
4255 ac_gc_check_stringbytes
=1 ;
4256 ac_gc_check_string_overrun
=1 ;
4257 ac_gc_check_string_free_list
=1 ;
4258 ac_xmalloc_overrun
=1 ;
4259 ac_gc_check_cons_list
=1 ;;
4260 # these enable particular checks
4261 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4262 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4263 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4264 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4265 conslist
) ac_gc_check_cons_list
=1 ;;
4266 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4271 if test x
$ac_enable_checking != x
; then
4273 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4276 if test x
$ac_gc_check_stringbytes != x
; then
4278 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4281 if test x
$ac_gc_check_string_overrun != x
; then
4283 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4286 if test x
$ac_gc_check_string_free_list != x
; then
4288 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4291 if test x
$ac_xmalloc_overrun != x
; then
4293 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4296 if test x
$ac_gc_check_cons_list != x
; then
4298 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4302 # Check whether --enable-use-lisp-union-type was given.
4303 if test "${enable_use_lisp_union_type+set}" = set; then :
4304 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4306 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4313 # Check whether --enable-profiling was given.
4314 if test "${enable_profiling+set}" = set; then :
4315 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4318 if test x
$ac_enable_profiling != x
; then
4319 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4325 # Check whether --enable-autodepend was given.
4326 if test "${enable_autodepend+set}" = set; then :
4327 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4329 ac_enable_autodepend
=yes
4333 #### Make srcdir absolute, if it isn't already. It's important to
4334 #### avoid running the path through pwd unnecessarily, since pwd can
4335 #### give you automounter prefixes, which can go away. We do all this
4336 #### so Emacs can find its files when run uninstalled.
4337 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4342 ## We may be able to use the $PWD environment variable to make this
4343 ## absolute. But sometimes PWD is inaccurate.
4344 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4345 ## but that tested only for a well-formed and valid PWD,
4346 ## it did not object when PWD was well-formed and valid but just wrong.
4347 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4351 srcdir
="`(cd ${srcdir}; pwd)`"
4354 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4357 #### Given the configuration name, set machfile and opsysfile to the
4358 #### names of the m/*.h and s/*.h files we should use.
4360 ### Canonicalize the configuration name.
4362 # Make sure we can run config.sub.
4363 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4364 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4367 $as_echo_n "checking build system type... " >&6; }
4368 if test "${ac_cv_build+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4371 ac_build_alias
=$build_alias
4372 test "x$ac_build_alias" = x
&&
4373 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4374 test "x$ac_build_alias" = x
&&
4375 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4376 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4377 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4381 $as_echo "$ac_cv_build" >&6; }
4382 case $ac_cv_build in
4384 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4387 ac_save_IFS
=$IFS; IFS
='-'
4393 # Remember, the first character of IFS is used to create $*,
4394 # except with old shells:
4397 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4401 $as_echo_n "checking host system type... " >&6; }
4402 if test "${ac_cv_host+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4405 if test "x$host_alias" = x
; then
4406 ac_cv_host
=$ac_cv_build
4408 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4409 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4414 $as_echo "$ac_cv_host" >&6; }
4417 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4420 ac_save_IFS
=$IFS; IFS
='-'
4426 # Remember, the first character of IFS is used to create $*,
4427 # except with old shells:
4430 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4434 configuration
=${host_alias-${build_alias-$host}}
4438 ### If you add support for a new configuration, add code to this
4439 ### switch statement to recognize your configuration name and select
4440 ### the appropriate operating system and machine description files.
4442 ### You would hope that you could choose an m/*.h file pretty much
4443 ### based on the machine portion of the configuration name, and an s/*.h
4444 ### file based on the operating system portion. However, it turns out
4445 ### that each m/*.h file is pretty manufacturer-specific - for
4446 ### example mips.h is MIPS
4447 ### So we basically have to have a special case for each
4448 ### configuration name.
4450 ### As far as handling version numbers on operating systems is
4451 ### concerned, make sure things will fail in a fixable way. If
4452 ### /etc/MACHINES doesn't say anything about version numbers, be
4453 ### prepared to handle anything reasonably. If version numbers
4454 ### matter, be sure /etc/MACHINES says something about it.
4456 machine
='' opsys
='' unported
=no
4457 case "${canonical}" in
4459 ## GNU/Linux and similar ports
4462 case ${canonical} in
4463 alpha
*) machine
=alpha
;;
4464 s390-
*) machine
=ibms390
;;
4465 s390x-
*) machine
=ibms390x
;;
4466 powerpc
*) machine
=macppc
;;
4467 sparc
*) machine
=sparc
;;
4468 ia64
*) machine
=ia64
;;
4469 m68k
*) machine
=m68k
;;
4470 x86_64
*) machine
=amdx86-64
;;
4477 case "${canonical}" in
4478 alpha
*) machine
=alpha
;;
4479 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4480 ia64-
*) machine
=ia64
;;
4481 i
[3456]86-*) machine
=intel386
;;
4482 powerpc-
*) machine
=macppc
;;
4483 sparc-
*) machine
=sparc
;;
4484 sparc64-
*) machine
=sparc
;;
4488 ## FreeBSD kernel + glibc based userland
4491 case "${canonical}" in
4492 alpha
*) machine
=alpha
;;
4493 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4494 ia64-
*) machine
=ia64
;;
4495 i
[3456]86-*) machine
=intel386
;;
4496 powerpc-
*) machine
=macppc
;;
4497 sparc-
*) machine
=sparc
;;
4498 sparc64-
*) machine
=sparc
;;
4505 case "${canonical}" in
4506 alpha
*) machine
=alpha
;;
4507 x86_64-
*) machine
=amdx86-64
;;
4508 i
[3456]86-*) machine
=intel386
;;
4509 m68k-
*) machine
=m68k
;;
4510 powerpc-
*) machine
=macppc
;;
4511 sparc
*-) machine
=sparc
;;
4512 vax-
*) machine
=vax
;;
4519 case "${canonical}" in
4520 alpha
*) machine
=alpha
;;
4521 x86_64-
*) machine
=amdx86-64
;;
4522 i386-
*) machine
=intel386
;;
4523 powerpc-
*) machine
=macppc
;;
4524 sparc
*) machine
=sparc
;;
4525 vax-
*) machine
=vax
;;
4529 ## Apple Darwin / Mac OS X
4531 case "${canonical}" in
4532 i
[3456]86-* ) machine
=intel386
;;
4533 powerpc-
* ) machine
=macppc
;;
4534 x86_64-
* ) machine
=amdx86-64
;;
4538 # Define CPP as follows to make autoconf work correctly.
4539 CPP
="${CC-cc} -E -no-cpp-precomp"
4540 # Use fink packages if available.
4541 if test -d /sw
/include
&& test -d /sw
/lib
; then
4542 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4543 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4544 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4548 ## HP 9000 series 700 and 800, running HP/UX
4549 hppa
*-hp-hpux10.2
* )
4552 hppa
*-hp-hpux1[1-9]* )
4554 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4558 rs6000-ibm-aix4.
[23]* )
4559 machine
=ibmrs6000 opsys
=aix4-2
4561 powerpc-ibm-aix4.
[23]* )
4562 machine
=ibmrs6000 opsys
=aix4-2
4564 rs6000-ibm-aix
[56]* )
4565 machine
=ibmrs6000 opsys
=aix4-2
4567 powerpc-ibm-aix
[56]* )
4568 machine
=ibmrs6000 opsys
=aix4-2
4571 ## Silicon Graphics machines
4574 machine
=iris4d opsys
=irix6-5
4575 # Without defining _LANGUAGE_C, things get masked out in the headers
4576 # so that, for instance, grepping for `free' in stdlib.h fails and
4577 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4578 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4579 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4584 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4585 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4586 case "${canonical}" in
4587 i
[3456]86-*-* ) machine
=intel386
;;
4588 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4589 sparc
* ) machine
=sparc
;;
4592 case "${canonical}" in
4593 *-sunos5.6
* |
*-solaris2.6
* )
4595 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4598 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4600 emacs_check_sunpro_c
=yes
4601 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4603 *-sunos5* |
*-solaris* )
4605 emacs_check_sunpro_c
=yes
4606 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4609 ## Watch out for a compiler that we know will not work.
4610 case "${canonical}" in
4611 *-solaris* |
*-sunos5* )
4612 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4613 ## /usr/ucb/cc doesn't work;
4614 ## we should find some other compiler that does work.
4622 ## Intel 386 machines where we don't care about the manufacturer.
4625 case "${canonical}" in
4626 *-cygwin ) opsys
=cygwin
;;
4627 *-darwin* ) opsys
=darwin
4628 CPP
="${CC-cc} -E -no-cpp-precomp"
4630 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4631 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4632 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4633 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4642 ### If the code above didn't choose an operating system, just choose
4643 ### an operating system based on the configuration name. You really
4644 ### only want to use this when you have no idea what the right
4645 ### operating system is; if you know what operating systems a machine
4646 ### runs, it's cleaner to make it explicit in the case statement
4648 if test x
"${opsys}" = x
; then
4649 case "${canonical}" in
4650 *-gnu* ) opsys
=gnu
;;
4659 if test $unported = yes; then
4660 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4661 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4664 if test -n "$machine"; then
4665 machfile
="m/${machine}.h"
4669 opsysfile
="s/${opsys}.h"
4672 #### Choose a compiler.
4673 test -n "$CC" && cc_specified
=yes
4675 # Save the value of CFLAGS that the user specified.
4676 SPECIFIED_CFLAGS
="$CFLAGS"
4679 ac_cpp
='$CPP $CPPFLAGS'
4680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4685 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_CC+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$CC"; then
4692 ac_cv_prog_CC
="$CC" # Let the user override the test.
4694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir
=.
4699 for ac_exec_ext
in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4722 if test -z "$ac_cv_prog_CC"; then
4724 # Extract the first word of "gcc", so it can be a program name with args.
4725 set dummy gcc
; ac_word
=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$ac_ct_CC"; then
4732 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir
=.
4739 for ac_exec_ext
in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_ac_ct_CC
="gcc"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4752 if test -n "$ac_ct_CC"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4754 $as_echo "$ac_ct_CC" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4760 if test "x$ac_ct_CC" = x
; then
4763 case $cross_compiling:$ac_tool_warned in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned
=yes ;;
4775 if test -z "$CC"; then
4776 if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4778 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_CC+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4784 if test -n "$CC"; then
4785 ac_cv_prog_CC
="$CC" # Let the user override the test.
4787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir
=.
4792 for ac_exec_ext
in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 if test -n "$CC"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4807 $as_echo "$CC" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4816 if test -z "$CC"; then
4817 # Extract the first word of "cc", so it can be a program name with args.
4818 set dummy cc
; ac_word
=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_prog_CC+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC
="$CC" # Let the user override the test.
4828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir
=.
4833 for ac_exec_ext
in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4836 ac_prog_rejected
=yes
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 if test $ac_prog_rejected = yes; then
4848 # We found a bogon in the path, so make sure we never use it.
4849 set dummy
$ac_cv_prog_CC
4851 if test $# != 0; then
4852 # We chose a different compiler from the bogus one.
4853 # However, it has the same basename, so the bogon will be chosen
4854 # first if we set CC to just the basename; use the full file name.
4856 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4862 if test -n "$CC"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4864 $as_echo "$CC" >&6; }
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4872 if test -z "$CC"; then
4873 if test -n "$ac_tool_prefix"; then
4874 for ac_prog
in cl.exe
4876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4877 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if test "${ac_cv_prog_CC+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4883 if test -n "$CC"; then
4884 ac_cv_prog_CC
="$CC" # Let the user override the test.
4886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir
=.
4891 for ac_exec_ext
in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 if test -n "$CC"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4906 $as_echo "$CC" >&6; }
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$CC" && break
4916 if test -z "$CC"; then
4918 for ac_prog
in cl.exe
4920 # Extract the first word of "$ac_prog", so it can be a program name with args.
4921 set dummy
$ac_prog; ac_word
=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4927 if test -n "$ac_ct_CC"; then
4928 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4934 test -z "$as_dir" && as_dir
=.
4935 for ac_exec_ext
in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_ac_ct_CC
="$ac_prog"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4948 if test -n "$ac_ct_CC"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4950 $as_echo "$ac_ct_CC" >&6; }
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4957 test -n "$ac_ct_CC" && break
4960 if test "x$ac_ct_CC" = x
; then
4963 case $cross_compiling:$ac_tool_warned in
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned
=yes ;;
4976 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978 as_fn_error
"no acceptable C compiler found in \$PATH
4979 See \`config.log' for more details." "$LINENO" 5; }
4981 # Provide some information about the compiler.
4982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4985 for ac_option
in --version -v -V -qversion; do
4986 { { ac_try
="$ac_compiler $ac_option >&5"
4988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4992 $as_echo "$ac_try_echo"; } >&5
4993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4995 if test -s conftest.err; then
4997 ... rest of stderr output deleted ...
4998 10q' conftest.err >conftest.er1
4999 cat conftest.er1 >&5
5001 rm -f conftest.er1 conftest.err
5002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; }
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5017 ac_clean_files_save=$ac_clean_files
5018 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5019 # Try to create an executable without -o first, disregard a.out.
5020 # It will help us diagnose broken compilers, and finding out an intuition
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5023 $as_echo_n "checking whether the C compiler works... " >&6; }
5024 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5026 # The possible output files:
5027 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5030 for ac_file in $ac_files
5033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5039 if { { ac_try="$ac_link_default"
5041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5042 *) ac_try_echo
=$ac_try;;
5044 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5045 $as_echo "$ac_try_echo"; } >&5
5046 (eval "$ac_link_default") 2>&5
5048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5049 test $ac_status = 0; }; then :
5050 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5051 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5052 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5053 # so that the user can short-circuit this test for compilers unknown to
5055 for ac_file
in $ac_files ''
5057 test -f "$ac_file" ||
continue
5059 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5062 # We found the default executable, but exeext='' is most
5066 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5068 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5070 # We set ac_cv_exeext here because the later test for it is not
5071 # safe: cross compilers may not add the suffix if given an `-o'
5072 # argument, so we may need to know it at that point already.
5073 # Even if this section looks crufty: it has the advantage of
5080 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5085 if test -z "$ac_file"; then :
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 $as_echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.
$ac_ext >&5
5091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5093 { as_fn_set_status
77
5094 as_fn_error
"C compiler cannot create executables
5095 See \`config.log' for more details." "$LINENO" 5; }; }
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5101 $as_echo_n "checking for C compiler default output file name... " >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5103 $as_echo "$ac_file" >&6; }
5104 ac_exeext
=$ac_cv_exeext
5106 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5107 ac_clean_files
=$ac_clean_files_save
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5109 $as_echo_n "checking for suffix of executables... " >&6; }
5110 if { { ac_try
="$ac_link"
5112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5116 $as_echo "$ac_try_echo"; } >&5
5117 (eval "$ac_link") 2>&5
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }; then :
5121 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5122 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5123 # work properly (i.e., refer to `conftest.exe'), while it won't with
5125 for ac_file
in conftest.exe conftest conftest.
*; do
5126 test -f "$ac_file" ||
continue
5128 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5129 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5137 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5138 See \`config.log' for more details." "$LINENO" 5; }
5140 rm -f conftest conftest
$ac_cv_exeext
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5142 $as_echo "$ac_cv_exeext" >&6; }
5144 rm -f conftest.
$ac_ext
5145 EXEEXT
=$ac_cv_exeext
5147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5153 FILE *f = fopen ("conftest.out", "w");
5154 return ferror (f) || fclose (f) != 0;
5160 ac_clean_files
="$ac_clean_files conftest.out"
5161 # Check that the compiler produces executables we can run. If not, either
5162 # the compiler is broken, or we cross compile.
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5164 $as_echo_n "checking whether we are cross compiling... " >&6; }
5165 if test "$cross_compiling" != yes; then
5166 { { ac_try
="$ac_link"
5168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_link") 2>&5
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }
5177 if { ac_try='./conftest$ac_cv_exeext'
5178 { { case "(($ac_try" in
5179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5180 *) ac_try_echo
=$ac_try;;
5182 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5183 $as_echo "$ac_try_echo"; } >&5
5184 (eval "$ac_try") 2>&5
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }; }; then
5190 if test "$cross_compiling" = maybe
; then
5193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195 as_fn_error
"cannot run C compiled programs.
5196 If you meant to cross compile, use \`--host'.
5197 See \`config.log' for more details." "$LINENO" 5; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5202 $as_echo "$cross_compiling" >&6; }
5204 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5205 ac_clean_files
=$ac_clean_files_save
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5207 $as_echo_n "checking for suffix of object files... " >&6; }
5208 if test "${ac_cv_objext+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5222 rm -f conftest.o conftest.obj
5223 if { { ac_try
="$ac_compile"
5225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5229 $as_echo "$ac_try_echo"; } >&5
5230 (eval "$ac_compile") 2>&5
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }; then :
5234 for ac_file in conftest.o conftest.obj conftest.*; do
5235 test -f "$ac_file" || continue;
5237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5248 as_fn_error "cannot compute suffix of object files
: cannot compile
5249 See \
`config.log' for more details." "$LINENO" 5; }
5251 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5254 $as_echo "$ac_cv_objext" >&6; }
5255 OBJEXT=$ac_cv_objext
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5258 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5259 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5276 if ac_fn_c_try_compile "$LINENO"; then :
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5286 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5287 if test $ac_compiler_gnu = yes; then
5292 ac_test_CFLAGS=${CFLAGS+set}
5293 ac_save_CFLAGS=$CFLAGS
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5295 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5296 if test "${ac_cv_prog_cc_g+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5299 ac_save_c_werror_flag=$ac_c_werror_flag
5300 ac_c_werror_flag=yes
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5314 if ac_fn_c_try_compile "$LINENO"; then :
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5329 if ac_fn_c_try_compile "$LINENO"; then :
5332 ac_c_werror_flag=$ac_save_c_werror_flag
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5345 if ac_fn_c_try_compile "$LINENO"; then :
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_c_werror_flag=$ac_save_c_werror_flag
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5356 $as_echo "$ac_cv_prog_cc_g" >&6; }
5357 if test "$ac_test_CFLAGS" = set; then
5358 CFLAGS=$ac_save_CFLAGS
5359 elif test $ac_cv_prog_cc_g = yes; then
5360 if test "$GCC" = yes; then
5366 if test "$GCC" = yes; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5373 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5374 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5377 ac_cv_prog_cc_c89=no
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5383 #include <sys/types.h>
5384 #include <sys/stat.h>
5385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5386 struct buf { int x; };
5387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5388 static char *e (p, i)
5394 static char *f (char * (*g) (char **, int), char **p, ...)
5399 s = g (p, va_arg (v,int));
5404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5405 function prototypes and stuff, but not '\xHH' hex character constants.
5406 These don't provoke an error unfortunately, instead are silently treated
5407 as 'x'. The following induces an error, until -std is added to get
5408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5409 array size at least. It's necessary to write '\x00'==0 to get something
5410 that's true only with -std. */
5411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5414 inside strings and character constants. */
5416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5418 int test (int i, double x);
5419 struct s1 {int (*f) (int a);};
5420 struct s2 {int (*f) (double a);};
5421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5435 CC="$ac_save_CC $ac_arg"
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 ac_cv_prog_cc_c89=$ac_arg
5439 rm -f core conftest.err conftest.$ac_objext
5440 test "x$ac_cv_prog_cc_c89" != "xno" && break
5442 rm -f conftest.$ac_ext
5447 case "x$ac_cv_prog_cc_c89" in
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5450 $as_echo "none needed" >&6; } ;;
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5453 $as_echo "unsupported" >&6; } ;;
5455 CC="$CC $ac_cv_prog_cc_c89"
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5457 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5459 if test "x$ac_cv_prog_cc_c89" != xno; then :
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468 DEPDIR="${am__leading_dot}deps"
5470 ac_config_commands="$ac_config_commands depfiles"
5473 am_make=${MAKE-make}
5474 cat > confinc << 'END'
5476 @echo this is the am__doit target
5479 # If we don't find an include directive, just comment out the code.
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5481 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5485 # First try GNU make style include.
5486 echo "include confinc" > confmf
5487 # Ignore all kinds of additional output from `make'.
5488 case `$am_make -s -f confmf 2> /dev/null` in #(
5489 *the\ am__doit\ target*)
5495 # Now try BSD make style include.
5496 if test "$am__include" = "#"; then
5497 echo '.include
"confinc"' > confmf
5498 case `$am_make -s -f confmf 2> /dev/null` in #(
5499 *the\ am__doit\ target*)
5500 am__include=.include
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5509 $as_echo "$_am_result" >&6; }
5510 rm -f confinc confmf
5512 # Check whether --enable-dependency-tracking was given.
5513 if test "${enable_dependency_tracking+set}" = set; then :
5514 enableval=$enable_dependency_tracking;
5517 if test "x$enable_dependency_tracking" != xno; then
5518 am_depcomp="$ac_aux_dir/depcomp"
5521 if test "x$enable_dependency_tracking" != xno
; then
5531 depcc
="$CC" am_compiler_list
=
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5534 $as_echo_n "checking dependency style of $depcc... " >&6; }
5535 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5539 # We make a subdir and do the tests there. Otherwise we can end up
5540 # making bogus files that we don't know about and never remove. For
5541 # instance it was reported that on HP-UX the gcc test will end up
5542 # making a dummy file named `D' -- because `-MD' means `put the output
5545 # Copy depcomp to subdir because otherwise we won't find it if we're
5546 # using a relative directory.
5547 cp "$am_depcomp" conftest.dir
5549 # We will build objects and dependencies in a subdirectory because
5550 # it helps to detect inapplicable dependency modes. For instance
5551 # both Tru64's cc and ICC support -MD to output dependencies as a
5552 # side effect of compilation, but ICC will put the dependencies in
5553 # the current directory while Tru64 will put them in the object
5557 am_cv_CC_dependencies_compiler_type
=none
5558 if test "$am_compiler_list" = ""; then
5559 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5562 case " $depcc " in #(
5563 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5566 for depmode
in $am_compiler_list; do
5567 # Setup a source with many dependencies, because some compilers
5568 # like to wrap large dependency lists on column 80 (with \), and
5569 # we should not choose a depcomp mode which is confused by this.
5571 # We need to recreate these files for each test, as the compiler may
5572 # overwrite some of them when testing with obscure command lines.
5573 # This happens at least with the AIX C compiler.
5575 for i
in 1 2 3 4 5 6; do
5576 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5577 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5578 # Solaris 8's {/usr,}/bin/sh.
5579 touch sub
/conftst
$i.h
5581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5583 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5584 # mode. It turns out that the SunPro C++ compiler does not properly
5585 # handle `-M -o', and we need to detect this. Also, some Intel
5586 # versions had trouble with output in subdirs
5587 am__obj
=sub
/conftest.
${OBJEXT-o}
5588 am__minus_obj
="-o $am__obj"
5591 # This depmode causes a compiler race in universal mode.
5592 test "$am__universal" = false ||
continue
5595 # after this tag, mechanisms are not by side-effect, so they'll
5596 # only be used when explicitly requested
5597 if test "x$enable_dependency_tracking" = xyes
; then
5603 msvisualcpp | msvcmsys
)
5604 # This compiler won't grok `-c -o', but also, the minuso test has
5605 # not run yet. These depmodes are late enough in the game, and
5606 # so weak that their functioning should not be impacted.
5607 am__obj
=conftest.
${OBJEXT-o}
5612 if depmode
=$depmode \
5613 source=sub
/conftest.c object
=$am__obj \
5614 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5615 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5616 >/dev
/null
2>conftest.err
&&
5617 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5618 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5619 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5620 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5621 # icc doesn't choke on unknown options, it will just issue warnings
5622 # or remarks (even with -Werror). So we grep stderr for any message
5623 # that says an option was ignored or not supported.
5624 # When given -MP, icc 7.0 and 7.1 complain thusly:
5625 # icc: Command line warning: ignoring option '-M'; no argument required
5626 # The diagnosis changed in icc 8.0:
5627 # icc: Command line remark: option '-MP' not supported
5628 if (grep 'ignoring option' conftest.err ||
5629 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5630 am_cv_CC_dependencies_compiler_type
=$depmode
5639 am_cv_CC_dependencies_compiler_type
=none
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5644 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5645 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5648 test "x$enable_dependency_tracking" != xno \
5649 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5651 am__fastdepCC_FALSE
='#'
5653 am__fastdepCC_TRUE
='#'
5654 am__fastdepCC_FALSE
=
5658 if test "x$CC" != xcc
; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5660 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5663 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5665 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5666 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5667 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5668 $as_echo_n "(cached) " >&6
5670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5681 # Make sure it works both with $CC and with simple cc.
5682 # We do the test twice because some compilers refuse to overwrite an
5683 # existing .o file with -o, though they will create one.
5684 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5686 if { { case "(($ac_try" in
5687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5691 $as_echo "$ac_try_echo"; } >&5
5692 (eval "$ac_try") 2>&5
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; } &&
5696 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5698 *) ac_try_echo
=$ac_try;;
5700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5701 $as_echo "$ac_try_echo"; } >&5
5702 (eval "$ac_try") 2>&5
5704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705 test $ac_status = 0; };
5707 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5708 if test "x$CC" != xcc
; then
5709 # Test first that cc exists at all.
5710 if { ac_try
='cc -c conftest.$ac_ext >&5'
5711 { { case "(($ac_try" in
5712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716 $as_echo "$ac_try_echo"; } >&5
5717 (eval "$ac_try") 2>&5
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }; }; then
5721 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5723 if { { case "(($ac_try" in
5724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5725 *) ac_try_echo
=$ac_try;;
5727 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5728 $as_echo "$ac_try_echo"; } >&5
5729 (eval "$ac_try") 2>&5
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; } &&
5733 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5738 $as_echo "$ac_try_echo"; } >&5
5739 (eval "$ac_try") 2>&5
5741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742 test $ac_status = 0; };
5747 # cc exists but doesn't like -o.
5748 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5753 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5755 rm -f core conftest*
5758 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5760 $as_echo "yes" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5765 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5769 # FIXME: we rely on the cache variable name because
5770 # there is no other way.
5772 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5773 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5774 if test "$am_t" != yes; then
5775 # Losing compiler, so override with the script.
5776 # FIXME: It is wrong to rewrite CC.
5777 # But if we don't then we get into trouble of one sort or another.
5778 # A longer-term fix would be to have automake use am__CC in this case,
5779 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5780 CC="$am_aux_dir/compile $CC"
5785 # Initialize gnulib right after verifying that the C compiler works.
5788 ac_cpp='$CPP $CPPFLAGS'
5789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5793 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5794 # On Suns, sometimes $CPP names a directory.
5795 if test -n "$CPP" && test -d "$CPP"; then
5798 if test -z "$CPP"; then
5799 if test "${ac_cv_prog_CPP+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5802 # Double quotes because CPP needs to be expanded
5803 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5806 for ac_c_preproc_warn_flag in '' yes
5808 # Use a header file that comes with gcc, so configuring glibc
5809 # with a fresh cross-compiler works.
5810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5811 # <limits.h> exists even on freestanding compilers.
5812 # On the NeXT, cc -E runs the code through the compiler's parser,
5813 # not just through cpp. "Syntax error" is here to catch this case.
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5817 # include <limits.h>
5819 # include <assert.h>
5823 if ac_fn_c_try_cpp "$LINENO"; then :
5826 # Broken: fails on valid input.
5829 rm -f conftest.err conftest.$ac_ext
5831 # OK, works on sane cases. Now check whether nonexistent headers
5832 # can be detected and how.
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5837 if ac_fn_c_try_cpp "$LINENO"; then :
5838 # Broken: success on invalid input.
5841 # Passes both tests.
5845 rm -f conftest.err conftest.$ac_ext
5848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849 rm -f conftest.err conftest.
$ac_ext
5850 if $ac_preproc_ok; then :
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5863 $as_echo "$CPP" >&6; }
5865 for ac_c_preproc_warn_flag
in '' yes
5867 # Use a header file that comes with gcc, so configuring glibc
5868 # with a fresh cross-compiler works.
5869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5870 # <limits.h> exists even on freestanding compilers.
5871 # On the NeXT, cc -E runs the code through the compiler's parser,
5872 # not just through cpp. "Syntax error" is here to catch this case.
5873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5876 # include <limits.h>
5878 # include <assert.h>
5882 if ac_fn_c_try_cpp
"$LINENO"; then :
5885 # Broken: fails on valid input.
5888 rm -f conftest.err conftest.
$ac_ext
5890 # OK, works on sane cases. Now check whether nonexistent headers
5891 # can be detected and how.
5892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #include <ac_nonexistent.h>
5896 if ac_fn_c_try_cpp
"$LINENO"; then :
5897 # Broken: success on invalid input.
5900 # Passes both tests.
5904 rm -f conftest.err conftest.
$ac_ext
5907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908 rm -f conftest.err conftest.
$ac_ext
5909 if $ac_preproc_ok; then :
5912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5914 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5915 See \`config.log' for more details." "$LINENO" 5; }
5919 ac_cpp
='$CPP $CPPFLAGS'
5920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5926 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5927 if test "${ac_cv_path_GREP+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5930 if test -z "$GREP"; then
5931 ac_path_GREP_found
=false
5932 # Loop through the user's path and test for each of PROGNAME-LIST
5933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5934 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5937 test -z "$as_dir" && as_dir
=.
5938 for ac_prog
in grep ggrep
; do
5939 for ac_exec_ext
in '' $ac_executable_extensions; do
5940 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5941 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5942 # Check for GNU ac_path_GREP and select it if it is found.
5943 # Check for GNU $ac_path_GREP
5944 case `"$ac_path_GREP" --version 2>&1` in
5946 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5949 $as_echo_n 0123456789 >"conftest.in"
5952 cat "conftest.in" "conftest.in" >"conftest.tmp"
5953 mv "conftest.tmp" "conftest.in"
5954 cp "conftest.in" "conftest.nl"
5955 $as_echo 'GREP' >> "conftest.nl"
5956 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5957 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5958 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5959 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5960 # Best one so far, save it but keep looking for a better one
5961 ac_cv_path_GREP
="$ac_path_GREP"
5962 ac_path_GREP_max
=$ac_count
5964 # 10*(2^10) chars as input seems more than enough
5965 test $ac_count -gt 10 && break
5967 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5970 $ac_path_GREP_found && break 3
5975 if test -z "$ac_cv_path_GREP"; then
5976 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5979 ac_cv_path_GREP
=$GREP
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5984 $as_echo "$ac_cv_path_GREP" >&6; }
5985 GREP
="$ac_cv_path_GREP"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5989 $as_echo_n "checking for egrep... " >&6; }
5990 if test "${ac_cv_path_EGREP+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5993 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5994 then ac_cv_path_EGREP
="$GREP -E"
5996 if test -z "$EGREP"; then
5997 ac_path_EGREP_found
=false
5998 # Loop through the user's path and test for each of PROGNAME-LIST
5999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6000 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6003 test -z "$as_dir" && as_dir
=.
6004 for ac_prog
in egrep; do
6005 for ac_exec_ext
in '' $ac_executable_extensions; do
6006 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6007 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6008 # Check for GNU ac_path_EGREP and select it if it is found.
6009 # Check for GNU $ac_path_EGREP
6010 case `"$ac_path_EGREP" --version 2>&1` in
6012 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6015 $as_echo_n 0123456789 >"conftest.in"
6018 cat "conftest.in" "conftest.in" >"conftest.tmp"
6019 mv "conftest.tmp" "conftest.in"
6020 cp "conftest.in" "conftest.nl"
6021 $as_echo 'EGREP' >> "conftest.nl"
6022 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6023 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6024 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6025 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6026 # Best one so far, save it but keep looking for a better one
6027 ac_cv_path_EGREP
="$ac_path_EGREP"
6028 ac_path_EGREP_max
=$ac_count
6030 # 10*(2^10) chars as input seems more than enough
6031 test $ac_count -gt 10 && break
6033 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6036 $ac_path_EGREP_found && break 3
6041 if test -z "$ac_cv_path_EGREP"; then
6042 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6045 ac_cv_path_EGREP
=$EGREP
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6051 $as_echo "$ac_cv_path_EGREP" >&6; }
6052 EGREP
="$ac_cv_path_EGREP"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6058 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6059 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6073 gl_cv_c_amsterdam_compiler
=yes
6075 gl_cv_c_amsterdam_compiler
=no
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6082 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6083 if test -z "$AR"; then
6084 if test $gl_cv_c_amsterdam_compiler = yes; then
6086 if test -z "$ARFLAGS"; then
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6092 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_AR+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6098 if test -n "$AR"; then
6099 ac_cv_prog_AR
="$AR" # Let the user override the test.
6101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir
=.
6106 for ac_exec_ext
in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 if test -n "$AR"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6121 $as_echo "$AR" >&6; }
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6129 if test -z "$ac_cv_prog_AR"; then
6131 # Extract the first word of "ar", so it can be a program name with args.
6132 set dummy
ar; ac_word
=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6138 if test -n "$ac_ct_AR"; then
6139 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir
=.
6146 for ac_exec_ext
in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_ac_ct_AR
="ar"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6159 if test -n "$ac_ct_AR"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6161 $as_echo "$ac_ct_AR" >&6; }
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6167 if test "x$ac_ct_AR" = x
; then
6170 case $cross_compiling:$ac_tool_warned in
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned
=yes ;;
6182 if test -z "$ARFLAGS"; then
6187 if test -z "$ARFLAGS"; then
6193 if test -z "$RANLIB"; then
6194 if test $gl_cv_c_amsterdam_compiler = yes; then
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6199 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$RANLIB"; then
6206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir
=.
6213 for ac_exec_ext
in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 RANLIB
=$ac_cv_prog_RANLIB
6226 if test -n "$RANLIB"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6228 $as_echo "$RANLIB" >&6; }
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6236 if test -z "$ac_cv_prog_RANLIB"; then
6237 ac_ct_RANLIB
=$RANLIB
6238 # Extract the first word of "ranlib", so it can be a program name with args.
6239 set dummy ranlib
; ac_word
=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6245 if test -n "$ac_ct_RANLIB"; then
6246 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir
=.
6253 for ac_exec_ext
in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6266 if test -n "$ac_ct_RANLIB"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6268 $as_echo "$ac_ct_RANLIB" >&6; }
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6274 if test "x$ac_ct_RANLIB" = x
; then
6277 case $cross_compiling:$ac_tool_warned in
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned
=yes ;;
6283 RANLIB
=$ac_ct_RANLIB
6286 RANLIB
="$ac_cv_prog_RANLIB"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6294 $as_echo_n "checking for ANSI C header files... " >&6; }
6295 if test "${ac_cv_header_stdc+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6313 if ac_fn_c_try_compile
"$LINENO"; then :
6314 ac_cv_header_stdc
=yes
6316 ac_cv_header_stdc
=no
6318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6320 if test $ac_cv_header_stdc = yes; then
6321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6328 $EGREP "memchr" >/dev
/null
2>&1; then :
6331 ac_cv_header_stdc
=no
6337 if test $ac_cv_header_stdc = yes; then
6338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6345 $EGREP "free" >/dev
/null
2>&1; then :
6348 ac_cv_header_stdc
=no
6354 if test $ac_cv_header_stdc = yes; then
6355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6356 if test "$cross_compiling" = yes; then :
6359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6363 #if ((' ' & 0x0FF) == 0x020)
6364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6367 # define ISLOWER(c) \
6368 (('a' <= (c) && (c) <= 'i') \
6369 || ('j' <= (c) && (c) <= 'r') \
6370 || ('s' <= (c) && (c) <= 'z'))
6371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6379 for (i = 0; i < 256; i++)
6380 if (XOR (islower (i), ISLOWER (i))
6381 || toupper (i) != TOUPPER (i))
6386 if ac_fn_c_try_run
"$LINENO"; then :
6389 ac_cv_header_stdc
=no
6391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6398 $as_echo "$ac_cv_header_stdc" >&6; }
6399 if test $ac_cv_header_stdc = yes; then
6401 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6405 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6406 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6407 inttypes.h stdint.h unistd.h
6409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6412 eval as_val
=\$
$as_ac_Header
6413 if test "x$as_val" = x
""yes; then :
6414 cat >>confdefs.h
<<_ACEOF
6415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6426 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6427 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6434 if test "$MINIX" = yes; then
6436 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6439 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6442 $as_echo "#define _MINIX 1" >>confdefs.h
6449 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6456 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6457 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6463 # define __EXTENSIONS__ 1
6464 $ac_includes_default
6473 if ac_fn_c_try_compile
"$LINENO"; then :
6474 ac_cv_safe_to_define___extensions__
=yes
6476 ac_cv_safe_to_define___extensions__
=no
6478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6481 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6482 test $ac_cv_safe_to_define___extensions__ = yes &&
6483 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6485 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6487 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6489 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6491 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6493 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6502 # Check whether --enable-largefile was given.
6503 if test "${enable_largefile+set}" = set; then :
6504 enableval
=$enable_largefile;
6507 if test "$enable_largefile" != no
; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6510 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6511 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6514 ac_cv_sys_largefile_CC
=no
6515 if test "$GCC" != yes; then
6518 # IRIX 6.2 and later do not support large files by default,
6519 # so use the C compiler's -n32 option if that helps.
6520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522 #include <sys/types.h>
6523 /* Check that off_t can represent 2**63 - 1 correctly.
6524 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6525 since some C++ compilers masquerading as C compilers
6526 incorrectly reject 9223372036854775807. */
6527 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6528 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6529 && LARGE_OFF_T % 2147483647 == 1)
6539 if ac_fn_c_try_compile
"$LINENO"; then :
6542 rm -f core conftest.err conftest.
$ac_objext
6544 if ac_fn_c_try_compile
"$LINENO"; then :
6545 ac_cv_sys_largefile_CC
=' -n32'; break
6547 rm -f core conftest.err conftest.
$ac_objext
6551 rm -f conftest.
$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6555 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6556 if test "$ac_cv_sys_largefile_CC" != no
; then
6557 CC
=$CC$ac_cv_sys_largefile_CC
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6561 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6562 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 #include <sys/types.h>
6569 /* Check that off_t can represent 2**63 - 1 correctly.
6570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6571 since some C++ compilers masquerading as C compilers
6572 incorrectly reject 9223372036854775807. */
6573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6575 && LARGE_OFF_T % 2147483647 == 1)
6585 if ac_fn_c_try_compile
"$LINENO"; then :
6586 ac_cv_sys_file_offset_bits
=no
; break
6588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 #define _FILE_OFFSET_BITS 64
6592 #include <sys/types.h>
6593 /* Check that off_t can represent 2**63 - 1 correctly.
6594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6595 since some C++ compilers masquerading as C compilers
6596 incorrectly reject 9223372036854775807. */
6597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6599 && LARGE_OFF_T % 2147483647 == 1)
6609 if ac_fn_c_try_compile
"$LINENO"; then :
6610 ac_cv_sys_file_offset_bits
=64; break
6612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6613 ac_cv_sys_file_offset_bits
=unknown
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6618 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6619 case $ac_cv_sys_file_offset_bits in #(
6622 cat >>confdefs.h
<<_ACEOF
6623 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6628 if test $ac_cv_sys_file_offset_bits = unknown
; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6630 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6631 if test "${ac_cv_sys_large_files+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <sys/types.h>
6638 /* Check that off_t can represent 2**63 - 1 correctly.
6639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6640 since some C++ compilers masquerading as C compilers
6641 incorrectly reject 9223372036854775807. */
6642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6644 && LARGE_OFF_T % 2147483647 == 1)
6654 if ac_fn_c_try_compile
"$LINENO"; then :
6655 ac_cv_sys_large_files
=no
; break
6657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #define _LARGE_FILES 1
6661 #include <sys/types.h>
6662 /* Check that off_t can represent 2**63 - 1 correctly.
6663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6664 since some C++ compilers masquerading as C compilers
6665 incorrectly reject 9223372036854775807. */
6666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6668 && LARGE_OFF_T % 2147483647 == 1)
6678 if ac_fn_c_try_compile
"$LINENO"; then :
6679 ac_cv_sys_large_files
=1; break
6681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6682 ac_cv_sys_large_files
=unknown
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6687 $as_echo "$ac_cv_sys_large_files" >&6; }
6688 case $ac_cv_sys_large_files in #(
6691 cat >>confdefs.h
<<_ACEOF
6692 #define _LARGE_FILES $ac_cv_sys_large_files
6702 case $ac_cv_prog_cc_stdc in #(
6704 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6707 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6708 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6711 ac_cv_prog_cc_c99
=no
6713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6716 #include <stdbool.h>
6721 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6722 #define debug(...) fprintf (stderr, __VA_ARGS__)
6723 #define showlist(...) puts (#__VA_ARGS__)
6724 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6726 test_varargs_macros (void)
6731 debug ("X = %d\n", x);
6732 showlist (The first, second, and third items.);
6733 report (x>y, "x is %d but y is %d", x, y);
6736 // Check long long types.
6737 #define BIG64 18446744073709551615ull
6738 #define BIG32 4294967295ul
6739 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6741 your preprocessor is broken;
6745 your preprocessor is broken;
6747 static long long int bignum = -9223372036854775807LL;
6748 static unsigned long long int ubignum = BIG64;
6750 struct incomplete_array
6758 const wchar_t *name;
6762 typedef const char *ccp;
6765 test_restrict (ccp restrict text)
6767 // See if C++-style comments work.
6768 // Iterate through items via the restricted pointer.
6769 // Also check for declarations in for loops.
6770 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6775 // Check varargs and va_copy.
6777 test_varargs (const char *format, ...)
6780 va_start (args, format);
6782 va_copy (args_copy, args);
6793 str = va_arg (args_copy, const char *);
6796 number = va_arg (args_copy, int);
6799 fnumber = va_arg (args_copy, double);
6814 _Bool success = false;
6817 if (test_restrict ("String literal") == 0)
6819 char *restrict newvar = "Another string";
6822 test_varargs ("s, d' f .", "string", 65, 34.234);
6823 test_varargs_macros ();
6825 // Check flexible array members.
6826 struct incomplete_array *ia =
6827 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6829 for (int i = 0; i < ia->datasize; ++i)
6830 ia->data[i] = i * 1.234;
6832 // Check named initializers.
6833 struct named_init ni = {
6835 .name = L"Test wide string",
6836 .average = 543.34343,
6841 int dynamic_array[ni.number];
6842 dynamic_array[ni.number - 1] = 543;
6844 // work around unused variable warnings
6845 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6846 || dynamic_array[ni.number - 1] != 543);
6852 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6854 CC
="$ac_save_CC $ac_arg"
6855 if ac_fn_c_try_compile
"$LINENO"; then :
6856 ac_cv_prog_cc_c99
=$ac_arg
6858 rm -f core conftest.err conftest.
$ac_objext
6859 test "x$ac_cv_prog_cc_c99" != "xno" && break
6861 rm -f conftest.
$ac_ext
6866 case "x$ac_cv_prog_cc_c99" in
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6869 $as_echo "none needed" >&6; } ;;
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6872 $as_echo "unsupported" >&6; } ;;
6874 CC
="$CC $ac_cv_prog_cc_c99"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6876 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6878 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6879 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6882 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6883 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6886 ac_cv_prog_cc_c89
=no
6888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6892 #include <sys/types.h>
6893 #include <sys/stat.h>
6894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6895 struct buf { int x; };
6896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6897 static char *e (p, i)
6903 static char *f (char * (*g) (char **, int), char **p, ...)
6908 s = g (p, va_arg (v,int));
6913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6914 function prototypes and stuff, but not '\xHH' hex character constants.
6915 These don't provoke an error unfortunately, instead are silently treated
6916 as 'x'. The following induces an error, until -std is added to get
6917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6918 array size at least. It's necessary to write '\x00'==0 to get something
6919 that's true only with -std. */
6920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6923 inside strings and character constants. */
6925 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6927 int test (int i, double x);
6928 struct s1 {int (*f) (int a);};
6929 struct s2 {int (*f) (double a);};
6930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6936 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6941 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6942 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6944 CC
="$ac_save_CC $ac_arg"
6945 if ac_fn_c_try_compile
"$LINENO"; then :
6946 ac_cv_prog_cc_c89
=$ac_arg
6948 rm -f core conftest.err conftest.
$ac_objext
6949 test "x$ac_cv_prog_cc_c89" != "xno" && break
6951 rm -f conftest.
$ac_ext
6956 case "x$ac_cv_prog_cc_c89" in
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6959 $as_echo "none needed" >&6; } ;;
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6962 $as_echo "unsupported" >&6; } ;;
6964 CC
="$CC $ac_cv_prog_cc_c89"
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6966 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6968 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6969 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6971 ac_cv_prog_cc_stdc
=no
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6978 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6979 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6983 case $ac_cv_prog_cc_stdc in #(
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6986 $as_echo "unsupported" >&6; } ;; #(
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6989 $as_echo "none needed" >&6; } ;; #(
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6992 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6997 # Code from module alloca-opt:
6998 # Code from module allocator:
6999 # Code from module careadlinkat:
7000 # Code from module crypto/md5:
7001 # Code from module crypto/sha1:
7002 # Code from module crypto/sha256:
7003 # Code from module crypto/sha512:
7004 # Code from module dosname:
7005 # Code from module dtoastr:
7006 # Code from module dup2:
7007 # Code from module extensions:
7009 # Code from module filemode:
7010 # Code from module getloadavg:
7011 # Code from module getopt-gnu:
7012 # Code from module getopt-posix:
7013 # Code from module gettext-h:
7014 # Code from module ignore-value:
7015 # Code from module include_next:
7016 # Code from module intprops:
7017 # Code from module inttypes-incomplete:
7018 # Code from module largefile:
7020 # Code from module lstat:
7021 # Code from module mktime:
7022 # Code from module multiarch:
7025 # Code from module nocrash:
7026 # Code from module pthread_sigmask:
7027 >>>>>>> MERGE-SOURCE
7028 # Code from module readlink:
7031 # Code from module signal:
7032 # Code from module sigprocmask:
7033 # Code from module snippet/_Noreturn:
7034 # Code from module snippet/arg-nonnull:
7035 # Code from module snippet/c++defs:
7036 # Code from module snippet/warn-on-use:
7037 >>>>>>> MERGE-SOURCE
7038 # Code from module socklen:
7039 # Code from module ssize_t:
7040 # Code from module stat:
7041 # Code from module stdarg:
7045 # Code from module stdbool:
7046 # Code from module stddef:
7047 # Code from module stdint:
7048 # Code from module stdio:
7049 # Code from module stdlib:
7050 # Code from module strftime:
7051 # Code from module strtoull:
7052 # Code from module strtoumax:
7053 # Code from module symlink:
7054 # Code from module sys_stat:
7055 # Code from module time:
7056 # Code from module time_r:
7057 # Code from module u64:
7058 # Code from module unistd:
7059 # Code from module verify:
7062 # On Suns, sometimes $CPP names a directory.
7063 if test -n "$CPP" && test -d "$CPP"; then
7067 ## If not using gcc, and on Solaris, and no CPP specified, see if
7068 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7069 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7070 test x"$CPP" = x; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7072 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7073 if test "${emacs_cv_sunpro_c+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7090 if ac_fn_c_try_link "$LINENO"; then :
7091 emacs_cv_sunpro_c=yes
7093 emacs_cv_sunpro_c=no
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7100 $as_echo "$emacs_cv_sunpro_c" >&6; }
7102 if test x"$emacs_cv_sunpro_c" = xyes; then
7103 NON_GNU_CPP="$CC -E -Xs"
7107 #### Some systems specify a CPP to use unless we are using GCC.
7108 #### Now that we know whether we are using GCC, we can decide whether
7109 #### to use that one.
7110 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7115 #### Some systems specify a CC to use unless we are using GCC.
7116 #### Now that we know whether we are using GCC, we can decide whether
7117 #### to use that one.
7118 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7119 test x$cc_specified != xyes
7124 if test x$GCC = xyes; then
7125 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7127 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7130 ### Use -Wdeclaration-after-statement if the compiler supports it
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7132 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7133 SAVE_CFLAGS="$CFLAGS"
7134 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7146 if ac_fn_c_try_compile "$LINENO"; then :
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 if test $has_option = yes; then
7153 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7156 $as_echo "$has_option" >&6; }
7157 CFLAGS="$SAVE_CFLAGS"
7161 ### Use -Wold-style-definition if the compiler supports it
7162 # This can be removed when conversion to standard C is finished.
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7164 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7165 SAVE_CFLAGS="$CFLAGS"
7166 CFLAGS="$CFLAGS -Wold-style-definition"
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7178 if ac_fn_c_try_compile "$LINENO"; then :
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 if test $has_option = yes; then
7185 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7188 $as_echo "$has_option" >&6; }
7189 CFLAGS="$SAVE_CFLAGS"
7193 ### Use -Wimplicit-function-declaration if the compiler supports it
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7195 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7196 SAVE_CFLAGS="$CFLAGS"
7197 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7209 if ac_fn_c_try_compile "$LINENO"; then :
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 if test $has_option = yes; then
7216 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7219 $as_echo "$has_option" >&6; }
7220 CFLAGS="$SAVE_CFLAGS"
7227 #### Some other nice autoconf tests.
7230 ac_cpp='$CPP $CPPFLAGS'
7231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7235 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7236 # On Suns, sometimes $CPP names a directory.
7237 if test -n "$CPP" && test -d "$CPP"; then
7240 if test -z "$CPP"; then
7241 if test "${ac_cv_prog_CPP+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7244 # Double quotes because CPP needs to be expanded
7245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7248 for ac_c_preproc_warn_flag in '' yes
7250 # Use a header file that comes with gcc, so configuring glibc
7251 # with a fresh cross-compiler works.
7252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253 # <limits.h> exists even on freestanding compilers.
7254 # On the NeXT, cc -E runs the code through the compiler's parser,
7255 # not just through cpp. "Syntax error" is here to catch this case.
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7259 # include <limits.h>
7261 # include <assert.h>
7265 if ac_fn_c_try_cpp "$LINENO"; then :
7268 # Broken: fails on valid input.
7271 rm -f conftest.err conftest.$ac_ext
7273 # OK, works on sane cases. Now check whether nonexistent headers
7274 # can be detected and how.
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 #include <ac_nonexistent.h>
7279 if ac_fn_c_try_cpp "$LINENO"; then :
7280 # Broken: success on invalid input.
7283 # Passes both tests.
7287 rm -f conftest.err conftest.$ac_ext
7290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7291 rm -f conftest.err conftest.$ac_ext
7292 if $ac_preproc_ok; then :
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7305 $as_echo "$CPP" >&6; }
7307 for ac_c_preproc_warn_flag in '' yes
7309 # Use a header file that comes with gcc, so configuring glibc
7310 # with a fresh cross-compiler works.
7311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7312 # <limits.h> exists even on freestanding compilers.
7313 # On the NeXT, cc -E runs the code through the compiler's parser,
7314 # not just through cpp. "Syntax error" is here to catch this case.
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7318 # include <limits.h>
7320 # include <assert.h>
7324 if ac_fn_c_try_cpp "$LINENO"; then :
7327 # Broken: fails on valid input.
7330 rm -f conftest.err conftest.$ac_ext
7332 # OK, works on sane cases. Now check whether nonexistent headers
7333 # can be detected and how.
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 #include <ac_nonexistent.h>
7338 if ac_fn_c_try_cpp "$LINENO"; then :
7339 # Broken: success on invalid input.
7342 # Passes both tests.
7346 rm -f conftest.err conftest.$ac_ext
7349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7350 rm -f conftest.err conftest.$ac_ext
7351 if $ac_preproc_ok; then :
7354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7356 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7357 See \`config.log' for more details." "$LINENO" 5; }
7361 ac_cpp='$CPP $CPPFLAGS'
7362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7367 if test "x$RANLIB" = x; then
7368 if test -n "$ac_tool_prefix"; then
7369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7376 if test -n "$RANLIB"; then
7377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 RANLIB=$ac_cv_prog_RANLIB
7397 if test -n "$RANLIB"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7399 $as_echo "$RANLIB" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7407 if test -z "$ac_cv_prog_RANLIB"; then
7408 ac_ct_RANLIB=$RANLIB
7409 # Extract the first word of "ranlib", so it can be a program name with args.
7410 set dummy ranlib; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7416 if test -n "$ac_ct_RANLIB"; then
7417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426 ac_cv_prog_ac_ct_RANLIB="ranlib"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7437 if test -n "$ac_ct_RANLIB"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7439 $as_echo "$ac_ct_RANLIB" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7445 if test "x$ac_ct_RANLIB" = x; then
7448 case $cross_compiling:$ac_tool_warned in
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7454 RANLIB=$ac_ct_RANLIB
7457 RANLIB="$ac_cv_prog_RANLIB"
7462 ## Although we're running on an amd64 kernel, we're actually compiling for
7463 ## the x86 architecture. The user should probably have provided an
7464 ## explicit --build to `configure', but if everything else than the kernel
7465 ## is running in i386 mode, we can help them out.
7466 if test "$machine" = "amdx86-64"; then
7467 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7468 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7472 if test "$ac_cv_have_decl_i386" = "yes"; then
7473 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7475 machfile="m/${machine}.h"
7479 # Extract the first word of "install-info", so it can be a program name with args.
7480 set dummy install-info; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7486 case $INSTALL_INFO in
7488 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7510 if test -n "$INSTALL_INFO"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7512 $as_echo "$INSTALL_INFO" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7519 # Extract the first word of "install-info", so it can be a program name with args.
7520 set dummy install-info; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7526 case $INSTALL_INFO in
7528 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in /usr/sbin
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7550 if test -n "$INSTALL_INFO"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7552 $as_echo "$INSTALL_INFO" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7559 # Extract the first word of "install-info", so it can be a program name with args.
7560 set dummy install-info; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7566 case $INSTALL_INFO in
7568 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7590 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7591 if test -n "$INSTALL_INFO"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7593 $as_echo "$INSTALL_INFO" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7600 # Extract the first word of "gzip", so it can be a program name with args.
7601 set dummy gzip; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7609 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 GZIP_PROG=$ac_cv_path_GZIP_PROG
7631 if test -n "$GZIP_PROG"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7633 $as_echo "$GZIP_PROG" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7642 ## Need makeinfo >= 4.6 (?) to build the manuals.
7643 # Extract the first word of "makeinfo", so it can be a program name with args.
7644 set dummy makeinfo; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7652 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7674 MAKEINFO=$ac_cv_path_MAKEINFO
7675 if test -n "$MAKEINFO"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7677 $as_echo "$MAKEINFO" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7684 if test "$MAKEINFO" != "no" && \
7685 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
7689 ## Makeinfo is unusual. For a released Emacs, the manuals are
7690 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7691 ## therefore in the category of "special tools" not normally required, which
7692 ## configure does not have to check for (eg autoconf itself).
7693 ## In a Bazaar checkout on the other hand, the manuals are not included.
7694 ## So makeinfo is a requirement to build from Bazaar, and configure
7695 ## should test for it as it does for any other build requirement.
7696 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7697 ## with pre-built manuals, from a Bazaar checkout.
7700 if test "$MAKEINFO" = "no"; then
7702 if test "x${with_makeinfo}" = "xno"; then
7704 elif test ! -e $srcdir/info/emacs; then
7705 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7706 source tree does not seem to have pre-built manuals in the \`info' directory.
7707 Either install a suitable version of makeinfo, or re-run configure
7708 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7714 if test x$GCC = xyes; then
7715 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7716 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7718 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7719 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7723 late_LDFLAGS=$LDFLAGS
7724 if test x$GCC = xyes; then
7725 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7727 LDFLAGS="$LDFLAGS -znocombreloc"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7731 $as_echo_n "checking for -znocombreloc... " >&6; }
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7743 if ac_fn_c_try_link "$LINENO"; then :
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7745 $as_echo "yes" >&6; }
7747 LDFLAGS=$late_LDFLAGS
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7751 rm -f core conftest.err conftest.$ac_objext \
7752 conftest$ac_exeext conftest.$ac_ext
7755 # The value of CPP is a quoted variable reference, so we need to do this
7756 # to get its actual value...
7757 CPP=`eval "echo $CPP"`
7760 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7762 your-opsys-here) CANNOT_DUMP=yes ;;
7765 test "$CANNOT_DUMP" = "yes" && \
7767 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7773 UNEXEC_OBJ=unexelf.o
7775 # MSDOS uses unexcoff.o
7776 # MSWindows uses unexw32.o
7778 UNEXEC_OBJ=unexaix.o
7784 UNEXEC_OBJ=unexmacosx.o
7787 UNEXEC_OBJ=unexhp9k800.o
7790 # Use the Solaris dldump() function, called from unexsol.c, to dump
7791 # emacs, instead of the generic ELF dump code found in unexelf.c.
7792 # The resulting binary has a complete symbol table, and is better
7793 # for debugging and other observability tools (debuggers, pstack, etc).
7795 # If you encounter a problem using dldump(), please consider sending
7796 # a message to the OpenSolaris tools-linking mailing list:
7797 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7799 # It is likely that dldump() works with older Solaris too, but this has
7800 # not been tested, so for now this change is for Solaris 10 or newer.
7801 UNEXEC_OBJ=unexsol.o
7808 ## Let `ld' find image libs and similar things in /usr/local/lib.
7809 ## The system compiler, GCC, has apparently been modified to not
7810 ## look there, contrary to what a stock GCC would do.
7811 LD_SWITCH_SYSTEM=-L/usr/local/lib
7815 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7816 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7820 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7824 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7825 ## otherwise Emacs dumps core on elf systems.
7826 LD_SWITCH_SYSTEM="-Z"
7831 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7833 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7834 ## which has not been defined yet. When this was handled with cpp,
7835 ## it was expanded to null when configure sourced the s/*.h file.
7836 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7837 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7838 ## (or somesuch), but because it is supposed to go at the _front_
7839 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7840 ## Compare with the gnu-linux case below, which added to the end
7841 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7842 ## LD_SWITCH_SYSTEM_TEMACS.
7845 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7846 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7851 if test "$machine" = "alpha"; then
7852 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7853 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7857 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7858 ## With ELF, make sure that all common symbols get allocated to in the
7859 ## data section. Otherwise, the dump of temacs may miss variables in
7860 ## the shared library that have been initialized. For example, with
7861 ## GNU libc, __malloc_initialized would normally be resolved to the
7862 ## shared library's .bss section, which is fatal.
7863 if test "x$GCC" = "xyes"; then
7864 C_SWITCH_MACHINE="-fno-common"
7866 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7869 UNEXEC_OBJ=unexalpha.o
7877 ## Some programs in src produce warnings saying certain subprograms
7878 ## are too complex and need a MAXMEM value greater than 2000 for
7879 ## additional optimization. --nils@exp-math.uni-essen.de
7880 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7881 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7882 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7883 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7889 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7890 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7892 freebsd) LIBS_SYSTEM="-lutil" ;;
7894 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7896 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7898 ## Motif needs -lgen.
7899 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7904 ### Make sure subsequent tests use flags consistent with the build flags.
7906 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7907 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7909 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7912 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7915 # Check whether --enable-largefile was given.
7916 if test "${enable_largefile+set}" = set; then :
7917 enableval=$enable_largefile;
7920 if test "$enable_largefile" != no; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7923 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7924 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7927 ac_cv_sys_largefile_CC=no
7928 if test "$GCC" != yes; then
7931 # IRIX 6.2 and later do not support large files by default,
7932 # so use the C compiler's -n32 option if that helps.
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 #include <sys/types.h>
7936 /* Check that off_t can represent 2**63 - 1 correctly.
7937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7938 since some C++ compilers masquerading as C compilers
7939 incorrectly reject 9223372036854775807. */
7940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7942 && LARGE_OFF_T % 2147483647 == 1)
7952 if ac_fn_c_try_compile "$LINENO"; then :
7955 rm -f core conftest.err conftest.$ac_objext
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958 ac_cv_sys_largefile_CC=' -n32'; break
7960 rm -f core conftest.err conftest.$ac_objext
7964 rm -f conftest.$ac_ext
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7968 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7969 if test "$ac_cv_sys_largefile_CC" != no; then
7970 CC=$CC$ac_cv_sys_largefile_CC
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7974 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7975 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #include <sys/types.h>
7982 /* Check that off_t can represent 2**63 - 1 correctly.
7983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7984 since some C++ compilers masquerading as C compilers
7985 incorrectly reject 9223372036854775807. */
7986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7988 && LARGE_OFF_T % 2147483647 == 1)
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 ac_cv_sys_file_offset_bits=no; break
8001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 #define _FILE_OFFSET_BITS 64
8005 #include <sys/types.h>
8006 /* Check that off_t can represent 2**63 - 1 correctly.
8007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8008 since some C++ compilers masquerading as C compilers
8009 incorrectly reject 9223372036854775807. */
8010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8012 && LARGE_OFF_T % 2147483647 == 1)
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023 ac_cv_sys_file_offset_bits=64; break
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 ac_cv_sys_file_offset_bits=unknown
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8031 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8032 case $ac_cv_sys_file_offset_bits in #(
8035 cat >>confdefs.h <<_ACEOF
8036 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8041 if test $ac_cv_sys_file_offset_bits = unknown; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8043 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8044 if test "${ac_cv_sys_large_files+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 #include <sys/types.h>
8051 /* Check that off_t can represent 2**63 - 1 correctly.
8052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8053 since some C++ compilers masquerading as C compilers
8054 incorrectly reject 9223372036854775807. */
8055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8057 && LARGE_OFF_T % 2147483647 == 1)
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 ac_cv_sys_large_files=no; break
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #define _LARGE_FILES 1
8074 #include <sys/types.h>
8075 /* Check that off_t can represent 2**63 - 1 correctly.
8076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8077 since some C++ compilers masquerading as C compilers
8078 incorrectly reject 9223372036854775807. */
8079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8081 && LARGE_OFF_T % 2147483647 == 1)
8091 if ac_fn_c_try_compile "$LINENO"; then :
8092 ac_cv_sys_large_files=1; break
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 ac_cv_sys_large_files=unknown
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8100 $as_echo "$ac_cv_sys_large_files" >&6; }
8101 case $ac_cv_sys_large_files in #(
8104 cat >>confdefs.h <<_ACEOF
8105 #define _LARGE_FILES $ac_cv_sys_large_files
8117 ## If user specified a crt-dir, use that unconditionally.
8118 if test "X$CRT_DIR" = "X"; then
8120 case "$canonical" in
8121 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8122 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8123 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8124 ## For anything else (eg /usr/lib32), it is up the user to specify
8125 ## the location (bug#5655).
8126 ## Test for crtn.o, not just the directory, because sometimes the
8127 ## directory exists but does not have the relevant files (bug#1287).
8128 ## FIXME better to test for binary compatibility somehow.
8129 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8132 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8136 hpux10-20) CRT_DIR=/lib ;;
8139 ## Default is /usr/lib.
8140 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
8142 ## If we're using gcc, try to determine it automatically by asking
8143 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8144 ## system-dependent default from above.]
8145 if test "x${GCC}" = xyes; then
8146 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
8149 CRT_DIR=`$as_dirname -- "$crt_file" ||
8150 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8151 X"$crt_file" : 'X\(//\)[^/]' \| \
8152 X"$crt_file" : 'X\(//\)$' \| \
8153 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8154 $as_echo X"$crt_file" |
8155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8178 ## Some platforms don't use any of these files, so it is not
8179 ## appropriate to put this test outside the if block.
8180 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
8181 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
8194 START_FILES='pre-crt0.o'
8197 ## Adding -lm confuses the dynamic linker, so omit it.
8199 START_FILES='pre-crt0.o'
8202 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8203 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8205 gnu-linux | gnu-kfreebsd )
8206 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8207 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8209 hpux10-20 | hpux11 )
8211 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8214 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8215 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8226 for file in x $LIB_STANDARD $START_FILES; do
8228 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8232 if test "x$crt_files" != x; then
8234 ## If user specified a crt-dir, use that unconditionally.
8237 if test "X$CRT_DIR" = "X"; then
8239 CRT_DIR=/usr/lib # default
8241 case "$canonical" in
8242 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8243 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8244 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8245 ## For anything else (eg /usr/lib32), it is up the user to specify
8246 ## the location (bug#5655).
8247 ## Test for crtn.o, not just the directory, because sometimes the
8248 ## directory exists but does not have the relevant files (bug#1287).
8249 ## FIXME better to test for binary compatibility somehow.
8250 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8253 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8257 hpux10-20) CRT_DIR=/lib ;;
8260 test "x${GCC}" = xyes && crt_gcc=yes
8266 for file in $crt_files; do
8268 ## If we're using gcc, try to determine it automatically by asking
8269 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8270 ## system-dependent default from above.]
8271 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8273 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8276 CRT_DIR=`$as_dirname -- "$crt_file" ||
8277 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8278 X"$crt_file" : 'X\(//\)[^/]' \| \
8279 X"$crt_file" : 'X\(//\)$' \| \
8280 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8281 $as_echo X"$crt_file" |
8282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8305 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8308 test "x$crt_missing" = x || \
8309 as_fn_error "Required file(s) not found:$crt_missing
8310 Try using the --with-crt-dir option." "$LINENO" 5
8312 fi # crt_files != ""
8318 if test -f $CRT_DIR/crti.o; then
8320 test -f $CRT_DIR/crtn.o || \
8321 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8323 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8324 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8330 >>>>>>> MERGE-SOURCE
8334 if test "${with_sound}" != "no"; then
8335 # Sound support for GNU/Linux and the free BSDs.
8336 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8340 eval as_val=\$$as_ac_Header
8341 if test "x$as_val" = x""yes; then :
8342 cat >>confdefs.h <<_ACEOF
8343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8345 have_sound_header=yes
8350 # Emulation library used on NetBSD.
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8352 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8353 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8356 ac_check_lib_save_LIBS=$LIBS
8357 LIBS="-lossaudio $LIBS"
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8371 return _oss_ioctl ();
8376 if ac_fn_c_try_link "$LINENO"; then :
8377 ac_cv_lib_ossaudio__oss_ioctl=yes
8379 ac_cv_lib_ossaudio__oss_ioctl=no
8381 rm -f core conftest.err conftest.$ac_objext \
8382 conftest$ac_exeext conftest.$ac_ext
8383 LIBS=$ac_check_lib_save_LIBS
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8386 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8387 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8396 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8400 # Extract the first word of "pkg-config", so it can be a program name with args.
8401 set dummy pkg-config; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8431 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8432 if test -n "$PKG_CONFIG"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8434 $as_echo "$PKG_CONFIG" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8442 if test "$PKG_CONFIG" = "no" ; then
8445 PKG_CONFIG_MIN_VERSION=0.9.0
8446 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8448 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8450 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8456 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8457 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8459 $as_echo "$ALSA_CFLAGS" >&6; }
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8462 $as_echo_n "checking ALSA_LIBS... " >&6; }
8463 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8465 $as_echo "$ALSA_LIBS" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8471 ## If we have a custom action on failure, don't print errors, but
8472 ## do set a variable so people can do so.
8473 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8485 if test $succeeded = yes; then
8491 if test $HAVE_ALSA = yes; then
8492 SAVE_CFLAGS="$CFLAGS"
8493 SAVE_LDFLAGS="$LDFLAGS"
8494 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8495 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <asoundlib.h>
8502 snd_lib_error_set_handler (0);
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 emacs_alsa_normal=yes
8510 emacs_alsa_normal=no
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 if test "$emacs_alsa_normal" != yes; then
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #include <alsa/asoundlib.h>
8520 snd_lib_error_set_handler (0);
8525 if ac_fn_c_try_compile "$LINENO"; then :
8526 emacs_alsa_subdir=yes
8528 emacs_alsa_subdir=no
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8531 if test "$emacs_alsa_subdir" != yes; then
8532 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8534 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8537 CFLAGS="$SAVE_CFLAGS"
8538 LDFLAGS="$SAVE_LDFLAGS"
8539 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8540 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8542 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8546 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8548 gnu-linux|freebsd|netbsd)
8550 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8559 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8560 linux/version.h sys/systeminfo.h \
8561 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8562 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8563 sys/utsname.h pwd.h utmp.h dirent.h util.h
8565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8567 eval as_val=\$$as_ac_Header
8568 if test "x$as_val" = x""yes; then :
8569 cat >>confdefs.h <<_ACEOF
8570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8579 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #include <sys/personality.h>
8586 personality (PER_LINUX32)
8591 if ac_fn_c_try_compile "$LINENO"; then :
8592 emacs_cv_personality_linux32=yes
8594 emacs_cv_personality_linux32=no
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8598 $as_echo "$emacs_cv_personality_linux32" >&6; }
8600 if test $emacs_cv_personality_linux32 = yes; then
8602 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8606 for ac_header in term.h
8608 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8609 if test "x$ac_cv_header_term_h" = x""yes; then :
8610 cat >>confdefs.h <<_ACEOF
8611 #define HAVE_TERM_H 1
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8619 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8620 if test "${ac_cv_header_time+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 #include <sys/types.h>
8626 #include <sys/time.h>
8632 if ((struct tm *) 0)
8638 if ac_fn_c_try_compile "$LINENO"; then :
8639 ac_cv_header_time=yes
8641 ac_cv_header_time=no
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8646 $as_echo "$ac_cv_header_time" >&6; }
8647 if test $ac_cv_header_time = yes; then
8649 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8653 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8654 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8660 cat >>confdefs.h <<_ACEOF
8661 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8664 if test $ac_cv_have_decl_sys_siglist != yes; then
8665 # For Tru64, at least:
8666 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8667 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8673 cat >>confdefs.h <<_ACEOF
8674 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8677 if test $ac_cv_have_decl___sys_siglist = yes; then
8679 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8684 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8685 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8686 $as_echo_n "(cached) " >&6
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #include <sys/types.h>
8691 #include <sys/wait.h>
8693 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8704 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8709 if ac_fn_c_try_compile "$LINENO"; then :
8710 ac_cv_header_sys_wait_h=yes
8712 ac_cv_header_sys_wait_h=no
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8717 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8718 if test $ac_cv_header_sys_wait_h = yes; then
8720 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8726 $as_echo_n "checking for struct utimbuf... " >&6; }
8727 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #ifdef TIME_WITH_SYS_TIME
8733 #include <sys/time.h>
8736 #ifdef HAVE_SYS_TIME_H
8737 #include <sys/time.h>
8748 static struct utimbuf x; x.actime = x.modtime;
8753 if ac_fn_c_try_compile "$LINENO"; then :
8754 emacs_cv_struct_utimbuf=yes
8756 emacs_cv_struct_utimbuf=no
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8761 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8762 if test $emacs_cv_struct_utimbuf = yes; then
8764 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8769 $as_echo_n "checking for speed_t... " >&6; }
8770 if test "${emacs_cv_speed_t+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 #include <termios.h>
8784 if ac_fn_c_try_compile "$LINENO"; then :
8785 emacs_cv_speed_t=yes
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8792 $as_echo "$emacs_cv_speed_t" >&6; }
8793 if test $emacs_cv_speed_t = yes; then
8795 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8800 $as_echo_n "checking for struct timeval... " >&6; }
8801 if test "${emacs_cv_struct_timeval+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #ifdef TIME_WITH_SYS_TIME
8807 #include <sys/time.h>
8810 #ifdef HAVE_SYS_TIME_H
8811 #include <sys/time.h>
8819 static struct timeval x; x.tv_sec = x.tv_usec;
8824 if ac_fn_c_try_compile "$LINENO"; then :
8825 emacs_cv_struct_timeval=yes
8827 emacs_cv_struct_timeval=no
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8832 $as_echo "$emacs_cv_struct_timeval" >&6; }
8833 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8834 if test $emacs_cv_struct_timeval = yes; then
8836 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8841 $as_echo_n "checking for struct exception... " >&6; }
8842 if test "${emacs_cv_struct_exception+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8851 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8856 if ac_fn_c_try_compile "$LINENO"; then :
8857 emacs_cv_struct_exception=yes
8859 emacs_cv_struct_exception=no
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8864 $as_echo "$emacs_cv_struct_exception" >&6; }
8865 HAVE_EXCEPTION=$emacs_cv_struct_exception
8866 if test $emacs_cv_struct_exception != yes; then
8868 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8874 for ac_header in sys/socket.h
8876 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8877 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8878 cat >>confdefs.h <<_ACEOF
8879 #define HAVE_SYS_SOCKET_H 1
8886 >>>>>>> MERGE-SOURCE
8887 for ac_header in net/if.h
8889 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8890 #if HAVE_SYS_SOCKET_H
8891 #include <sys/socket.h>
8894 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_NET_IF_H 1
8905 for ac_header in ifaddrs.h
8907 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8908 #if HAVE_SYS_SOCKET_H
8909 #include <sys/socket.h>
8912 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8913 cat >>confdefs.h <<_ACEOF
8914 #define HAVE_IFADDRS_H 1
8921 for ac_header in net/if_dl.h
8923 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8924 #if HAVE_SYS_SOCKET_H
8925 #include <sys/socket.h>
8928 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8929 cat >>confdefs.h <<_ACEOF
8930 #define HAVE_NET_IF_DL_H 1
8937 for ac_func in getifaddrs freeifaddrs
8939 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8940 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8941 eval as_val=\$$as_ac_var
8942 if test "x$as_val" = x""yes; then :
8943 cat >>confdefs.h <<_ACEOF
8944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8950 >>>>>>> MERGE-SOURCE
8952 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8953 #if HAVE_SYS_SOCKET_H
8954 #include <sys/socket.h>
8960 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8968 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8969 #if HAVE_SYS_SOCKET_H
8970 #include <sys/socket.h>
8976 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8978 cat >>confdefs.h <<_ACEOF
8979 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8984 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8985 #if HAVE_SYS_SOCKET_H
8986 #include <sys/socket.h>
8992 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8994 cat >>confdefs.h <<_ACEOF
8995 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9000 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9001 #if HAVE_SYS_SOCKET_H
9002 #include <sys/socket.h>
9008 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9010 cat >>confdefs.h <<_ACEOF
9011 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9016 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9017 #if HAVE_SYS_SOCKET_H
9018 #include <sys/socket.h>
9024 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9034 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9035 #if HAVE_SYS_SOCKET_H
9036 #include <sys/socket.h>
9042 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9050 >>>>>>> MERGE-SOURCE
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9055 $as_echo_n "checking for function prototypes... " >&6; }
9056 if test "$ac_cv_prog_cc_c89" != no; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9058 $as_echo "yes" >&6; }
9060 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9063 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9071 $as_echo_n "checking for working volatile... " >&6; }
9072 if test "${ac_cv_c_volatile+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9083 int * volatile y = (int *) 0;
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 ac_cv_c_volatile=yes
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9097 $as_echo "$ac_cv_c_volatile" >&6; }
9098 if test $ac_cv_c_volatile = no; then
9100 $as_echo "#define volatile /**/" >>confdefs.h
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9105 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9106 if test "${ac_cv_c_const+set}" = set; then :
9107 $as_echo_n "(cached) " >&6
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9115 /* FIXME: Include the comments suggested by Paul. */
9117 /* Ultrix mips cc rejects this. */
9118 typedef int charset[2];
9120 /* SunOS 4.1.1 cc rejects this. */
9121 char const *const *pcpcc;
9123 /* NEC SVR4.0.2 mips cc rejects this. */
9124 struct point {int x, y;};
9125 static struct point const zero = {0,0};
9126 /* AIX XL C 1.02.0.0 rejects this.
9127 It does not let you subtract one const X* pointer from another in
9128 an arm of an if-expression whose if-part is not a constant
9130 const char *g = "string";
9131 pcpcc = &g + (g ? g-g : 0);
9132 /* HPUX 7.0 cc rejects these. */
9134 ppc = (char**) pcpcc;
9135 pcpcc = (char const *const *) ppc;
9136 { /* SCO 3.2v4 cc rejects this. */
9138 char const *s = 0 ? (char *) 0 : (char const *) 0;
9143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9145 const int *foo = &x[0];
9148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9149 typedef const int *iptr;
9153 { /* AIX XL C 1.02.0.0 rejects this saying
9154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9155 struct s { int j; const int *ap[3]; };
9156 struct s *b; b->j = 5;
9158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9162 return !cs[0] && !zero.x;
9169 if ac_fn_c_try_compile "$LINENO"; then :
9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9177 $as_echo "$ac_cv_c_const" >&6; }
9178 if test $ac_cv_c_const = no; then
9180 $as_echo "#define const /**/" >>confdefs.h
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9185 $as_echo_n "checking for void * support... " >&6; }
9186 if test "${emacs_cv_void_star+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9200 if ac_fn_c_try_compile "$LINENO"; then :
9201 emacs_cv_void_star=yes
9203 emacs_cv_void_star=no
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9208 $as_echo "$emacs_cv_void_star" >&6; }
9209 if test $emacs_cv_void_star = yes; then
9210 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9213 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9218 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9219 if test "${ac_cv_c_bigendian+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9222 ac_cv_c_bigendian=unknown
9223 # See if we're dealing with a universal compiler.
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 #ifndef __APPLE_CC__
9227 not a universal capable compiler
9232 if ac_fn_c_try_compile "$LINENO"; then :
9234 # Check for potential -arch flags. It is not universal unless
9235 # there are at least two -arch flags with different values.
9238 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9239 if test -n "$ac_prev"; then
9241 i?86 | x86_64 | ppc | ppc64)
9242 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9245 ac_cv_c_bigendian=universal
9251 elif test "x$ac_word" = "x-arch"; then
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 if test $ac_cv_c_bigendian = unknown; then
9258 # See if sys/param.h defines the BYTE_ORDER macro.
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 #include <sys/types.h>
9262 #include <sys/param.h>
9267 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9268 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9277 if ac_fn_c_try_compile "$LINENO"; then :
9278 # It does; now see whether it defined to BIG_ENDIAN or not.
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 #include <sys/types.h>
9282 #include <sys/param.h>
9287 #if BYTE_ORDER != BIG_ENDIAN
9295 if ac_fn_c_try_compile "$LINENO"; then :
9296 ac_cv_c_bigendian=yes
9298 ac_cv_c_bigendian=no
9300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 if test $ac_cv_c_bigendian = unknown; then
9305 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9313 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 # It does; now see whether it defined to _BIG_ENDIAN or not.
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9338 if ac_fn_c_try_compile "$LINENO"; then :
9339 ac_cv_c_bigendian=yes
9341 ac_cv_c_bigendian=no
9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 if test $ac_cv_c_bigendian = unknown; then
9348 # Compile a test program.
9349 if test "$cross_compiling" = yes; then :
9350 # Try to guess by grepping values from an object file.
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 short int ascii_mm[] =
9354 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9355 short int ascii_ii[] =
9356 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9357 int use_ascii (int i) {
9358 return ascii_mm[i] + ascii_ii[i];
9360 short int ebcdic_ii[] =
9361 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9362 short int ebcdic_mm[] =
9363 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9364 int use_ebcdic (int i) {
9365 return ebcdic_mm[i] + ebcdic_ii[i];
9372 return use_ascii (foo) == use_ebcdic (foo);
9377 if ac_fn_c_try_compile "$LINENO"; then :
9378 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9379 ac_cv_c_bigendian=yes
9381 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9382 if test "$ac_cv_c_bigendian" = unknown; then
9383 ac_cv_c_bigendian=no
9385 # finding both strings is unlikely to happen, but who knows?
9386 ac_cv_c_bigendian=unknown
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 $ac_includes_default
9399 /* Are we little or big endian? From Harbison&Steele. */
9403 char c[sizeof (long int)];
9406 return u.c[sizeof (long int) - 1] == 1;
9412 if ac_fn_c_try_run "$LINENO"; then :
9413 ac_cv_c_bigendian=no
9415 ac_cv_c_bigendian=yes
9417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9418 conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9424 $as_echo "$ac_cv_c_bigendian" >&6; }
9425 case $ac_cv_c_bigendian in #(
9427 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9433 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9437 as_fn_error "unknown endianness
9438 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9443 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9444 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9445 $as_echo_n "(cached) " >&6
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449 char __attribute__ ((__aligned__ (1 << 3))) c;
9458 if ac_fn_c_try_compile "$LINENO"; then :
9459 emacs_cv_attribute_aligned=yes
9461 emacs_cv_attribute_aligned=no
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9466 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9467 if test $emacs_cv_attribute_aligned = yes; then
9469 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9474 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9476 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9477 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9478 $as_echo_n "(cached) " >&6
9480 cat >conftest.make <<\_ACEOF
9483 @echo '@@@%%%=$(MAKE)=@@@%%%'
9485 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9486 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9488 eval ac_cv_prog_make_${ac_make}_set=yes;;
9490 eval ac_cv_prog_make_${ac_make}_set=no;;
9494 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9496 $as_echo "yes" >&6; }
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9501 SET_MAKE="MAKE=${MAKE-make}"
9508 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9510 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9512 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9513 if test "x$testval" != x; then
9516 ac_enable_autodepend=no
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9519 $as_echo "$HAVE_GNU_MAKE" >&6; }
9520 if test $HAVE_GNU_MAKE = yes; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9522 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9523 SAVE_CFLAGS="$CFLAGS"
9524 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9536 if ac_fn_c_try_compile "$LINENO"; then :
9539 ac_enable_autodepend=no
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542 CFLAGS="$SAVE_CFLAGS"
9543 test -f deps.d || ac_enable_autodepend=no
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9546 $as_echo "$ac_enable_autodepend" >&6; }
9548 if test $ac_enable_autodepend = yes; then
9549 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9550 ## In parallel builds, another make might create depdir between
9551 ## the first test and mkdir, so stick another test on the end.
9552 ## Or use install-sh -d? mkdir -p is not portable.
9553 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9554 deps_frag=autodeps.mk
9557 deps_frag=$srcdir/src/$deps_frag
9563 lisp_frag=$srcdir/src/lisp.mk
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9568 $as_echo_n "checking for long file names... " >&6; }
9569 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9572 ac_cv_sys_long_file_names=yes
9573 # Test for long file names in all the places we know might matter:
9574 # . the current directory, where building will happen
9575 # $prefix/lib where we will be installing things
9576 # $exec_prefix/lib likewise
9577 # $TMPDIR if set, where it might want to write temporary files
9578 # /tmp where it might want to write temporary files
9581 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9582 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9583 # in the usual case where exec_prefix is '${prefix}'.
9585 . | /* | ?:[\\/]*) ;; #(
9588 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9589 ac_xdir=$ac_dir/cf$$
9590 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9591 ac_tf1=$ac_xdir/conftest9012345
9592 ac_tf2=$ac_xdir/conftest9012346
9593 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9594 ac_cv_sys_long_file_names=no
9595 rm -f -r "$ac_xdir" 2>/dev/null
9596 test $ac_cv_sys_long_file_names = no && break
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9600 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9601 if test $ac_cv_sys_long_file_names = yes; then
9603 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9608 #### Choose a window system.
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9611 $as_echo_n "checking for X... " >&6; }
9614 # Check whether --with-x was given.
9615 if test "${with_x+set}" = set; then :
9619 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9620 if test "x$with_x" = xno; then
9621 # The user explicitly disabled X.
9624 case $x_includes,$x_libraries in #(
9625 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9626 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9629 # One or both of the vars are not set, and there is no cached value.
9630 ac_x_includes=no ac_x_libraries=no
9631 rm -f -r conftest.dir
9632 if mkdir conftest.dir; then
9634 cat >Imakefile <<'_ACEOF'
9636 @echo incroot='${INCROOT}'
9638 @echo usrlibdir='${USRLIBDIR}'
9640 @echo libdir='${LIBDIR}'
9642 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9644 for ac_var in incroot usrlibdir libdir; do
9645 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9647 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9648 for ac_extension in a so sl dylib la dll; do
9649 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9650 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9651 ac_im_usrlibdir=$ac_im_libdir; break
9654 # Screen out bogus values from the imake configuration. They are
9655 # bogus both because they are the default anyway, and because
9656 # using them would break gcc on systems where it needs fixed includes.
9657 case $ac_im_incroot in
9658 /usr/include) ac_x_includes= ;;
9659 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9661 case $ac_im_usrlibdir in
9662 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9663 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9667 rm -f -r conftest.dir
9670 # Standard set of common directories for X headers.
9671 # Check X11 before X11Rn because it is often a symlink to the current release.
9685 /usr/local/X11/include
9686 /usr/local/X11R7/include
9687 /usr/local/X11R6/include
9688 /usr/local/X11R5/include
9689 /usr/local/X11R4/include
9691 /usr/local/include/X11
9692 /usr/local/include/X11R7
9693 /usr/local/include/X11R6
9694 /usr/local/include/X11R5
9695 /usr/local/include/X11R4
9699 /usr/XFree86/include/X11
9703 /usr/unsupported/include
9705 /usr/local/x11r5/include
9706 /usr/lpp/Xamples/include
9708 /usr/openwin/include
9709 /usr/openwin/share/include'
9711 if test "$ac_x_includes" = no; then
9712 # Guess where to find include files, by looking for Xlib.h.
9713 # First, try using that file with no special directory specified.
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 #include <X11/Xlib.h>
9718 if ac_fn_c_try_cpp "$LINENO"; then :
9719 # We can compile using X headers with no special include directory.
9722 for ac_dir in $ac_x_header_dirs; do
9723 if test -r "$ac_dir/X11/Xlib.h"; then
9724 ac_x_includes=$ac_dir
9729 rm -f conftest.err conftest.$ac_ext
9730 fi # $ac_x_includes = no
9732 if test "$ac_x_libraries" = no; then
9733 # Check for the libraries.
9734 # See if we find them without any special options.
9735 # Don't add to $LIBS permanently.
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 #include <X11/Xlib.h>
9749 if ac_fn_c_try_link "$LINENO"; then :
9751 # We can link X programs with no special library path.
9755 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9757 # Don't even attempt the hair of trying to link an X program!
9758 for ac_extension in a so sl dylib la dll; do
9759 if test -r "$ac_dir/libX11.$ac_extension"; then
9760 ac_x_libraries=$ac_dir
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768 fi # $ac_x_libraries = no
9770 case $ac_x_includes,$ac_x_libraries in #(
9772 # Didn't find X, or a directory has "'" in its name.
9773 ac_cv_have_x="have_x=no";; #(
9775 # Record where we found X for the cache.
9776 ac_cv_have_x="have_x=yes\
9777 ac_x_includes='$ac_x_includes'\
9778 ac_x_libraries='$ac_x_libraries'"
9784 eval "$ac_cv_have_x"
9787 if test "$have_x" != yes; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9789 $as_echo "$have_x" >&6; }
9792 # If each of the values was on the command line, it overrides each guess.
9793 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9794 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9795 # Update the cache value to reflect the command line values.
9796 ac_cv_have_x="have_x=yes\
9797 ac_x_includes='$x_includes'\
9798 ac_x_libraries='$x_libraries'"
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9800 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9803 if test "$no_x" = yes; then
9809 ## Workaround for bug in autoconf <= 2.62.
9810 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9811 ## No need to do anything special for these standard directories.
9812 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9814 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9818 LD_SWITCH_X_SITE_AUX=
9819 LD_SWITCH_X_SITE_AUX_RPATH=
9820 if test "${x_libraries}" != NONE; then
9821 if test -n "${x_libraries}"; then
9822 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9823 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9824 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9826 x_default_search_path=""
9827 x_search_path=${x_libraries}
9828 if test -z "${x_search_path}"; then
9829 x_search_path=/usr/lib
9831 for x_library in `echo ${x_search_path}: | \
9832 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9834 ${x_library}/X11/%L/%T/%N%C%S:\
9835 ${x_library}/X11/%l/%T/%N%C%S:\
9836 ${x_library}/X11/%T/%N%C%S:\
9837 ${x_library}/X11/%L/%T/%N%S:\
9838 ${x_library}/X11/%l/%T/%N%S:\
9839 ${x_library}/X11/%T/%N%S"
9840 if test x"${x_default_search_path}" = x; then
9841 x_default_search_path=${x_search_path}
9843 x_default_search_path="${x_search_path}:${x_default_search_path}"
9850 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9851 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9854 if test x"${x_includes}" = x; then
9855 bitmapdir=/usr/include/X11/bitmaps
9857 # accumulate include directories that have X11 bitmap subdirectories
9859 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9860 if test -d "${bmd}/X11/bitmaps"; then
9861 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9863 if test -d "${bmd}/bitmaps"; then
9864 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9867 if test ${bmd_acc} != "dummyval"; then
9868 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9875 tmp_CPPFLAGS="$CPPFLAGS"
9876 tmp_CFLAGS="$CFLAGS"
9877 CPPFLAGS="$CPPFLAGS -x objective-c"
9878 CFLAGS="$CFLAGS -x objective-c"
9879 TEMACS_LDFLAGS2="\${LDFLAGS}"
9881 if test "${with_ns}" != no; then
9882 if test "${opsys}" = darwin; then
9884 ns_appdir=`pwd`/nextstep/Emacs.app
9885 ns_appbindir=${ns_appdir}/Contents/MacOS/
9886 ns_appresdir=${ns_appdir}/Contents/Resources
9887 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9888 elif test -f $GNUSTEP_CONFIG_FILE; then
9890 ns_appdir=`pwd`/nextstep/Emacs.app
9891 ns_appbindir=${ns_appdir}/
9892 ns_appresdir=${ns_appdir}/Resources
9893 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9894 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9895 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9896 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9897 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9898 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9899 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9900 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9901 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9902 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9903 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9904 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9909 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9910 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9911 $as_echo_n "(cached) " >&6
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 #include <GNUstepBase/GSConfig.h>
9919 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9928 if ac_fn_c_try_compile "$LINENO"; then :
9929 emacs_cv_objc_exceptions=yes
9931 emacs_cv_objc_exceptions=no
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9936 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9937 if test $emacs_cv_objc_exceptions = yes; then
9939 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9941 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9945 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9947 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9948 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9951 as_fn_error "\`--with-ns' was specified, but the include
9952 files are missing or cannot be compiled." "$LINENO" 5
9956 NS_HAVE_NSINTEGER=yes
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959 #include <Foundation/NSObjCRuntime.h>
9968 if ac_fn_c_try_compile "$LINENO"; then :
9969 ns_have_nsinteger=yes
9971 ns_have_nsinteger=no
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9974 if test $ns_have_nsinteger = no; then
9975 NS_HAVE_NSINTEGER=no
9983 if test "${HAVE_NS}" = yes; then
9984 window_system=nextstep
9986 # set up packaging dirs
9987 exec_prefix=${ns_appbindir}
9988 libexecdir=${ns_appbindir}/libexec
9989 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9990 prefix=${ns_appresdir}
9992 ns_frag=$srcdir/src/ns.mk
9993 NS_OBJ="fontset.o fringe.o image.o"
9994 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9996 CFLAGS="$tmp_CFLAGS"
9997 CPPFLAGS="$tmp_CPPFLAGS"
10003 case "${window_system}" in
10007 case "${with_x_toolkit}" in
10008 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10009 motif ) USE_X_TOOLKIT=MOTIF ;;
10011 USE_X_TOOLKIT=none ;;
10012 gtk3 ) with_gtk3=yes
10013 USE_X_TOOLKIT=none ;;
10014 no ) USE_X_TOOLKIT=none ;;
10015 * ) USE_X_TOOLKIT=maybe ;;
10025 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10026 # Extract the first word of "X", so it can be a program name with args.
10027 set dummy X; ac_word=$2
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 $as_echo_n "checking for $ac_word... " >&6; }
10030 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10033 if test -n "$HAVE_XSERVER"; then
10034 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037 for as_dir in $PATH
10040 test -z "$as_dir" && as_dir=.
10041 for ac_exec_ext in '' $ac_executable_extensions; do
10042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10043 ac_cv_prog_HAVE_XSERVER="true"
10044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10054 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10055 if test -n "$HAVE_XSERVER"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10057 $as_echo "$HAVE_XSERVER" >&6; }
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10064 if test "$HAVE_XSERVER" = true ||
10065 test -n "$DISPLAY" ||
10066 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10067 as_fn_error "You seem to be running X, but no X development libraries
10068 were found. You should install the relevant development files for X
10069 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10070 sure you have development files for image handling, i.e.
10071 tiff, gif, jpeg, png and xpm.
10072 If you are sure you want Emacs compiled without X window support, pass
10074 to configure." "$LINENO" 5
10078 ### If we're using X11, we should use the X menu package.
10080 case ${HAVE_X11} in
10081 yes ) HAVE_MENUS=yes ;;
10084 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10085 # Assume not, until told otherwise.
10087 doug_lea_malloc=yes
10088 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10089 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10095 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10096 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10103 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10104 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 extern void (* __after_morecore_hook)();
10113 __after_morecore_hook = 0
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 emacs_cv_var___after_morecore_hook=yes
10121 emacs_cv_var___after_morecore_hook=no
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10127 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10128 if test $emacs_cv_var___after_morecore_hook = no; then
10135 ## darwin ld insists on the use of malloc routines in the System framework.
10136 darwin|sol2-10) system_malloc=yes ;;
10139 if test "${system_malloc}" = "yes"; then
10141 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10144 GNU_MALLOC_reason="
10145 (The GNU allocators don't work with this system configuration.)"
10149 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10150 VMLIMIT_OBJ=vm-limit.o
10155 if test "$doug_lea_malloc" = "yes" ; then
10156 if test "$GNU_MALLOC" = yes ; then
10157 GNU_MALLOC_reason="
10158 (Using Doug Lea's new malloc from the GNU C Library.)"
10161 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10164 ## Use mmap directly for allocating larger buffers.
10165 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10166 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10167 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10169 gnu*) REL_ALLOC=no ;;
10173 if test x"${REL_ALLOC}" = x; then
10174 REL_ALLOC=${GNU_MALLOC}
10177 use_mmap_for_buffers=no
10179 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10185 for ac_header in $ac_header_list
10187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10190 eval as_val=\$$as_ac_Header
10191 if test "x$as_val" = x""yes; then :
10192 cat >>confdefs.h <<_ACEOF
10193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10207 for ac_func in getpagesize
10209 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10210 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_GETPAGESIZE 1
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10219 $as_echo_n "checking for working mmap... " >&6; }
10220 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10223 if test "$cross_compiling" = yes; then :
10224 ac_cv_func_mmap_fixed_mapped=no
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 $ac_includes_default
10229 /* malloc might have been renamed as rpl_malloc. */
10232 /* Thanks to Mike Haertel and Jim Avera for this test.
10233 Here is a matrix of mmap possibilities:
10234 mmap private not fixed
10235 mmap private fixed at somewhere currently unmapped
10236 mmap private fixed at somewhere already mapped
10237 mmap shared not fixed
10238 mmap shared fixed at somewhere currently unmapped
10239 mmap shared fixed at somewhere already mapped
10240 For private mappings, we should verify that changes cannot be read()
10241 back from the file, nor mmap's back from the file at a different
10242 address. (There have been systems where private was not correctly
10243 implemented like the infamous i386 svr4.0, and systems where the
10244 VM page cache was not coherent with the file system buffer cache
10245 like early versions of FreeBSD and possibly contemporary NetBSD.)
10246 For shared mappings, we should conversely verify that changes get
10247 propagated back to all the places they're supposed to be.
10249 Grep wants private fixed already mapped.
10250 The main things grep needs to know about mmap are:
10251 * does it exist and is it safe to write into the mmap'd area
10252 * how to use it (BSD variants) */
10255 #include <sys/mman.h>
10257 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10261 /* This mess was copied from the GNU getpagesize.h. */
10262 #ifndef HAVE_GETPAGESIZE
10263 # ifdef _SC_PAGESIZE
10264 # define getpagesize() sysconf(_SC_PAGESIZE)
10265 # else /* no _SC_PAGESIZE */
10266 # ifdef HAVE_SYS_PARAM_H
10267 # include <sys/param.h>
10268 # ifdef EXEC_PAGESIZE
10269 # define getpagesize() EXEC_PAGESIZE
10270 # else /* no EXEC_PAGESIZE */
10272 # define getpagesize() NBPG * CLSIZE
10275 # endif /* no CLSIZE */
10276 # else /* no NBPG */
10278 # define getpagesize() NBPC
10279 # else /* no NBPC */
10281 # define getpagesize() PAGESIZE
10282 # endif /* PAGESIZE */
10283 # endif /* no NBPC */
10284 # endif /* no NBPG */
10285 # endif /* no EXEC_PAGESIZE */
10286 # else /* no HAVE_SYS_PARAM_H */
10287 # define getpagesize() 8192 /* punt totally */
10288 # endif /* no HAVE_SYS_PARAM_H */
10289 # endif /* no _SC_PAGESIZE */
10291 #endif /* no HAVE_GETPAGESIZE */
10296 char *data, *data2, *data3;
10297 const char *cdata2;
10301 pagesize = getpagesize ();
10303 /* First, make a file with some known garbage in it. */
10304 data = (char *) malloc (pagesize);
10307 for (i = 0; i < pagesize; ++i)
10308 *(data + i) = rand ();
10310 fd = creat ("conftest.mmap", 0600);
10313 if (write (fd, data, pagesize) != pagesize)
10317 /* Next, check that the tail of a page is zero-filled. File must have
10318 non-zero length, otherwise we risk SIGBUS for entire page. */
10319 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10323 if (write (fd2, cdata2, 1) != 1)
10325 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10326 if (data2 == MAP_FAILED)
10328 for (i = 0; i < pagesize; ++i)
10332 if (munmap (data2, pagesize))
10335 /* Next, try to mmap the file at a fixed address which already has
10336 something else allocated at it. If we can, also make sure that
10337 we see the same garbage. */
10338 fd = open ("conftest.mmap", O_RDWR);
10341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10344 for (i = 0; i < pagesize; ++i)
10345 if (*(data + i) != *(data2 + i))
10348 /* Finally, make sure that changes to the mapped area do not
10349 percolate back to the file as seen by read(). (This is a bug on
10350 some variants of i386 svr4.0.) */
10351 for (i = 0; i < pagesize; ++i)
10352 *(data2 + i) = *(data2 + i) + 1;
10353 data3 = (char *) malloc (pagesize);
10356 if (read (fd, data3, pagesize) != pagesize)
10358 for (i = 0; i < pagesize; ++i)
10359 if (*(data + i) != *(data3 + i))
10365 if ac_fn_c_try_run "$LINENO"; then :
10366 ac_cv_func_mmap_fixed_mapped=yes
10368 ac_cv_func_mmap_fixed_mapped=no
10370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10371 conftest.$ac_objext conftest.beam conftest.$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10376 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10379 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10382 rm -f conftest.mmap conftest.txt
10384 if test $use_mmap_for_buffers = yes; then
10386 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10391 LIBS="$LIBS_SYSTEM $LIBS"
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10394 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10395 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
10398 ac_check_lib_save_LIBS=$LIBS
10399 LIBS="-ldnet $LIBS"
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10403 /* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10413 return dnet_ntoa ();
10418 if ac_fn_c_try_link "$LINENO"; then :
10419 ac_cv_lib_dnet_dnet_ntoa=yes
10421 ac_cv_lib_dnet_dnet_ntoa=no
10423 rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425 LIBS=$ac_check_lib_save_LIBS
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10428 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10429 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10430 cat >>confdefs.h <<_ACEOF
10431 #define HAVE_LIBDNET 1
10434 LIBS="-ldnet $LIBS"
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10440 $as_echo_n "checking for main in -lXbsd... " >&6; }
10441 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10444 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lXbsd $LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10458 if ac_fn_c_try_link "$LINENO"; then :
10459 ac_cv_lib_Xbsd_main=yes
10461 ac_cv_lib_Xbsd_main=no
10463 rm -f core conftest.err conftest.$ac_objext \
10464 conftest$ac_exeext conftest.$ac_ext
10465 LIBS=$ac_check_lib_save_LIBS
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10468 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10469 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10470 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10475 for ac_header in pthread.h
10477 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10478 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10479 cat >>confdefs.h <<_ACEOF
10480 #define HAVE_PTHREAD_H 1
10487 if test "$ac_cv_header_pthread_h"; then
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10489 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10490 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10493 ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-lpthread $LIBS"
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10504 char pthread_self ();
10508 return pthread_self ();
10513 if ac_fn_c_try_link "$LINENO"; then :
10514 ac_cv_lib_pthread_pthread_self=yes
10516 ac_cv_lib_pthread_pthread_self=no
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 LIBS=$ac_check_lib_save_LIBS
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10523 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10524 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10529 if test "$HAVE_PTHREAD" = yes; then
10530 case "${canonical}" in
10532 *) LIB_PTHREAD="-lpthread" ;;
10535 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10541 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10542 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-lpthreads $LIBS"
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10550 /* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
10560 return cma_open ();
10565 if ac_fn_c_try_link "$LINENO"; then :
10566 ac_cv_lib_pthreads_cma_open=yes
10568 ac_cv_lib_pthreads_cma_open=no
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10575 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10576 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10577 cat >>confdefs.h <<_ACEOF
10578 #define HAVE_LIBPTHREADS 1
10581 LIBS="-lpthreads $LIBS"
10586 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10587 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10588 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10589 ## added to LIBS in configure would never contain the pthreads part,
10590 ## but the value used in Makefiles might. FIXME?
10592 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10593 ## be harmless on older versions of X where it happens to exist.
10594 test "$opsys" = "aix4-2" && \
10595 test $ac_cv_lib_pthreads_cma_open = yes && \
10596 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10602 $as_echo_n "checking for -bbigtoc option... " >&6; }
10603 if test "${gdb_cv_bigtoc+set}" = set; then :
10604 $as_echo_n "(cached) " >&6
10608 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10609 *) gdb_cv_bigtoc=-bbigtoc ;;
10612 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10624 if ac_fn_c_try_link "$LINENO"; then :
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10634 $as_echo "$gdb_cv_bigtoc" >&6; }
10638 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10639 # used for the tests that follow. We set them back to REAL_CFLAGS and
10640 # REAL_CPPFLAGS later on.
10642 REAL_CFLAGS="$CFLAGS"
10643 REAL_CPPFLAGS="$CPPFLAGS"
10645 if test "${HAVE_X11}" = "yes"; then
10646 DEFS="$C_SWITCH_X_SITE $DEFS"
10647 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10649 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10650 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10652 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10653 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10654 # but it's more convenient here to set LD_RUN_PATH
10655 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10656 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10657 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10661 if test "${opsys}" = "gnu-linux"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10663 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10670 XOpenDisplay ("foo");
10675 if ac_fn_c_try_link "$LINENO"; then :
10676 xgnu_linux_first_failure=no
10678 xgnu_linux_first_failure=yes
10680 rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10682 if test "${xgnu_linux_first_failure}" = "yes"; then
10683 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10684 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10685 OLD_CPPFLAGS="$CPPFLAGS"
10687 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10688 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10689 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10690 LIBS="$LIBS -b i486-linuxaout"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10697 XOpenDisplay ("foo");
10702 if ac_fn_c_try_link "$LINENO"; then :
10703 xgnu_linux_second_failure=no
10705 xgnu_linux_second_failure=yes
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 if test "${xgnu_linux_second_failure}" = "yes"; then
10710 # If we get the same failure with -b, there is no use adding -b.
10711 # So take it out. This plays safe.
10712 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10713 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10714 CPPFLAGS="$OLD_CPPFLAGS"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10728 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10729 # header files included from there.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10731 $as_echo_n "checking for Xkb... " >&6; }
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 #include <X11/Xlib.h>
10735 #include <X11/XKBlib.h>
10739 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10744 if ac_fn_c_try_link "$LINENO"; then :
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10752 $as_echo "$emacs_xkb" >&6; }
10753 if test $emacs_xkb = yes; then
10755 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10759 for ac_func in XrmSetDatabase XScreenResourceString \
10760 XScreenNumberOfScreen XSetWMProtocols
10762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10763 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10764 eval as_val=\$$as_ac_var
10765 if test "x$as_val" = x""yes; then :
10766 cat >>confdefs.h <<_ACEOF
10767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10775 if test "${window_system}" = "x11"; then
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10777 $as_echo_n "checking X11 version 6... " >&6; }
10778 if test "${emacs_cv_x11_version_6+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 #include <X11/Xlib.h>
10787 #if XlibSpecificationRelease < 6
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 emacs_cv_x11_version_6=yes
10798 emacs_cv_x11_version_6=no
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10804 if test $emacs_cv_x11_version_6 = yes; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10806 $as_echo "6 or newer" >&6; }
10808 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10811 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10813 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10818 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10824 $as_echo "before 6" >&6; }
10829 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10831 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10832 if test "${with_rsvg}" != "no"; then
10833 RSVG_REQUIRED=2.11.0
10834 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10839 # Extract the first word of "pkg-config", so it can be a program name with args.
10840 set dummy pkg-config; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842 $as_echo_n "checking for $ac_word... " >&6; }
10843 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10846 case $PKG_CONFIG in
10848 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10870 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10871 if test -n "$PKG_CONFIG"; then
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10873 $as_echo "$PKG_CONFIG" >&6; }
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10881 if test "$PKG_CONFIG" = "no" ; then
10884 PKG_CONFIG_MIN_VERSION=0.9.0
10885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10887 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10889 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10891 $as_echo "yes" >&6; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10895 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10896 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10898 $as_echo "$RSVG_CFLAGS" >&6; }
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10901 $as_echo_n "checking RSVG_LIBS... " >&6; }
10902 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10904 $as_echo "$RSVG_LIBS" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10910 ## If we have a custom action on failure, don't print errors, but
10911 ## do set a variable so people can do so.
10912 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10919 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10920 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10924 if test $succeeded = yes; then
10933 if test $HAVE_RSVG = yes; then
10935 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10937 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10938 LIBS="$RSVG_LIBS $LIBS"
10943 HAVE_IMAGEMAGICK=no
10944 if test "${HAVE_X11}" = "yes"; then
10945 if test "${with_imagemagick}" != "no"; then
10946 ## 6.2.8 is the earliest version known to work, but earlier versions
10947 ## might work - let us know if you find one.
10948 ## 6.0.7 does not work. See bug#7955.
10949 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10953 # Extract the first word of "pkg-config", so it can be a program name with args.
10954 set dummy pkg-config; ac_word=$2
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956 $as_echo_n "checking for $ac_word... " >&6; }
10957 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10960 case $PKG_CONFIG in
10962 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in $PATH
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10972 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10984 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10985 if test -n "$PKG_CONFIG"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10987 $as_echo "$PKG_CONFIG" >&6; }
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10995 if test "$PKG_CONFIG" = "no" ; then
10998 PKG_CONFIG_MIN_VERSION=0.9.0
10999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11001 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11003 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11005 $as_echo "yes" >&6; }
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
11009 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11010 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
11012 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
11015 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11016 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
11018 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11022 IMAGEMAGICK_CFLAGS=""
11023 IMAGEMAGICK_LIBS=""
11024 ## If we have a custom action on failure, don't print errors, but
11025 ## do set a variable so people can do so.
11026 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11033 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11034 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11038 if test $succeeded = yes; then
11039 HAVE_IMAGEMAGICK=yes
11047 if test $HAVE_IMAGEMAGICK = yes; then
11049 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11051 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11052 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11053 for ac_func in MagickExportImagePixels
11055 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11056 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
11057 cat >>confdefs.h <<_ACEOF
11058 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11071 if test "${with_gtk3}" = "yes"; then
11074 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11079 # Extract the first word of "pkg-config", so it can be a program name with args.
11080 set dummy pkg-config; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11086 case $PKG_CONFIG in
11088 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11111 if test -n "$PKG_CONFIG"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11113 $as_echo "$PKG_CONFIG" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11121 if test "$PKG_CONFIG" = "no" ; then
11124 PKG_CONFIG_MIN_VERSION=0.9.0
11125 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11127 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11129 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11131 $as_echo "yes" >&6; }
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11135 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11136 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11138 $as_echo "$GTK_CFLAGS" >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11141 $as_echo_n "checking GTK_LIBS... " >&6; }
11142 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11144 $as_echo "$GTK_LIBS" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11150 ## If we have a custom action on failure, don't print errors, but
11151 ## do set a variable so people can do so.
11152 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11159 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11160 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11164 if test $succeeded = yes; then
11170 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11171 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11174 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11176 GTK_OBJ=emacsgtkfixed.o
11179 if test "$pkg_check_gtk" != "yes"; then
11181 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11184 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11189 # Extract the first word of "pkg-config", so it can be a program name with args.
11190 set dummy pkg-config; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11194 $as_echo_n "(cached) " >&6
11196 case $PKG_CONFIG in
11198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11220 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11221 if test -n "$PKG_CONFIG"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11223 $as_echo "$PKG_CONFIG" >&6; }
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11231 if test "$PKG_CONFIG" = "no" ; then
11234 PKG_CONFIG_MIN_VERSION=0.9.0
11235 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11237 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11239 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; }
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11245 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11246 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11248 $as_echo "$GTK_CFLAGS" >&6; }
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11251 $as_echo_n "checking GTK_LIBS... " >&6; }
11252 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11254 $as_echo "$GTK_LIBS" >&6; }
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11260 ## If we have a custom action on failure, don't print errors, but
11261 ## do set a variable so people can do so.
11262 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11269 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11270 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11274 if test $succeeded = yes; then
11280 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11281 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11286 if test x"$pkg_check_gtk" = xyes; then
11290 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11291 CFLAGS="$CFLAGS $GTK_CFLAGS"
11292 LIBS="$GTK_LIBS $LIBS"
11294 for ac_func in gtk_main
11296 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11297 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11298 cat >>confdefs.h <<_ACEOF
11299 #define HAVE_GTK_MAIN 1
11305 if test "${GTK_COMPILES}" != "yes"; then
11306 if test "$USE_X_TOOLKIT" != "maybe"; then
11307 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11312 $as_echo "#define USE_GTK 1" >>confdefs.h
11314 GTK_OBJ="gtkutil.o $GTK_OBJ"
11316 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11320 closing open displays. This is no problem if you just use
11321 one display, but if you use more than one and close one of them
11322 Emacs may crash." >&5
11323 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11324 closing open displays. This is no problem if you just use
11325 one display, but if you use more than one and close one of them
11326 Emacs may crash." >&2;}
11335 if test "${HAVE_GTK}" = "yes"; then
11337 if test "$with_toolkit_scroll_bars" != no; then
11338 with_toolkit_scroll_bars=yes
11341 HAVE_GTK_FILE_SELECTION=no
11342 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11343 #include <gtk/gtk.h>
11345 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11346 HAVE_GTK_FILE_SELECTION=yes
11348 HAVE_GTK_FILE_SELECTION=no
11351 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11352 for ac_func in gtk_file_selection_new
11354 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11355 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE_GTK_FILE_SELECTION_NEW 1
11366 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11367 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11368 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11369 gtk_orientable_set_orientation
11371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11373 eval as_val=\$$as_ac_var
11374 if test "x$as_val" = x""yes; then :
11375 cat >>confdefs.h <<_ACEOF
11376 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11387 if test "${with_dbus}" = "yes"; then
11391 # Extract the first word of "pkg-config", so it can be a program name with args.
11392 set dummy pkg-config; ac_word=$2
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394 $as_echo_n "checking for $ac_word... " >&6; }
11395 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11398 case $PKG_CONFIG in
11400 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11410 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11422 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11423 if test -n "$PKG_CONFIG"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11425 $as_echo "$PKG_CONFIG" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11433 if test "$PKG_CONFIG" = "no" ; then
11436 PKG_CONFIG_MIN_VERSION=0.9.0
11437 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11439 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11441 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11443 $as_echo "yes" >&6; }
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11447 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11448 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11450 $as_echo "$DBUS_CFLAGS" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11453 $as_echo_n "checking DBUS_LIBS... " >&6; }
11454 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11456 $as_echo "$DBUS_LIBS" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11462 ## If we have a custom action on failure, don't print errors, but
11463 ## do set a variable so people can do so.
11464 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11471 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11472 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11476 if test $succeeded = yes; then
11482 if test "$HAVE_DBUS" = yes; then
11483 LIBS="$LIBS $DBUS_LIBS"
11485 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11487 for ac_func in dbus_watch_get_unix_fd
11489 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11490 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11498 DBUS_OBJ=dbusbind.o
11506 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11510 # Extract the first word of "pkg-config", so it can be a program name with args.
11511 set dummy pkg-config; ac_word=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11517 case $PKG_CONFIG in
11519 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11537 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11541 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11542 if test -n "$PKG_CONFIG"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11544 $as_echo "$PKG_CONFIG" >&6; }
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11552 if test "$PKG_CONFIG" = "no" ; then
11555 PKG_CONFIG_MIN_VERSION=0.9.0
11556 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11558 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11560 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562 $as_echo "yes" >&6; }
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11566 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11567 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11569 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11572 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11573 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11575 $as_echo "$GSETTINGS_LIBS" >&6; }
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11579 GSETTINGS_CFLAGS=""
11581 ## If we have a custom action on failure, don't print errors, but
11582 ## do set a variable so people can do so.
11583 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11595 if test $succeeded = yes; then
11601 if test "$HAVE_GSETTINGS" = "yes"; then
11603 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11605 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11606 SETTINGS_LIBS="$GSETTINGS_LIBS"
11610 >>>>>>> MERGE-SOURCE
11612 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11616 # Extract the first word of "pkg-config", so it can be a program name with args.
11617 set dummy pkg-config; ac_word=$2
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11619 $as_echo_n "checking for $ac_word... " >&6; }
11620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11623 case $PKG_CONFIG in
11625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629 for as_dir in $PATH
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11647 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11648 if test -n "$PKG_CONFIG"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11650 $as_echo "$PKG_CONFIG" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11658 if test "$PKG_CONFIG" = "no" ; then
11661 PKG_CONFIG_MIN_VERSION=0.9.0
11662 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11664 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11666 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11668 $as_echo "yes" >&6; }
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11672 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11673 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11675 $as_echo "$GCONF_CFLAGS" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11678 $as_echo_n "checking GCONF_LIBS... " >&6; }
11679 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11681 $as_echo "$GCONF_LIBS" >&6; }
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11687 ## If we have a custom action on failure, don't print errors, but
11688 ## do set a variable so people can do so.
11689 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11696 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11697 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11701 if test $succeeded = yes; then
11707 if test "$HAVE_GCONF" = yes; then
11709 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11711 for ac_func in g_type_init
11713 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11714 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11715 cat >>confdefs.h <<_ACEOF
11716 #define HAVE_G_TYPE_INIT 1
11727 if test "${with_selinux}" = "yes"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11729 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11730 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-lselinux $LIBS"
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11744 char lgetfilecon ();
11748 return lgetfilecon ();
11753 if ac_fn_c_try_link "$LINENO"; then :
11754 ac_cv_lib_selinux_lgetfilecon=yes
11756 ac_cv_lib_selinux_lgetfilecon=no
11758 rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760 LIBS=$ac_check_lib_save_LIBS
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11763 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11764 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11765 HAVE_LIBSELINUX=yes
11770 if test "$HAVE_LIBSELINUX" = yes; then
11772 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11774 LIBSELINUX_LIBS=-lselinux
11780 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11781 if test "${with_gnutls}" = "yes" ; then
11785 # Extract the first word of "pkg-config", so it can be a program name with args.
11786 set dummy pkg-config; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11792 case $PKG_CONFIG in
11794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11804 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11816 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11817 if test -n "$PKG_CONFIG"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11819 $as_echo "$PKG_CONFIG" >&6; }
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11827 if test "$PKG_CONFIG" = "no" ; then
11830 PKG_CONFIG_MIN_VERSION=0.9.0
11831 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11833 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11835 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11841 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11842 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11844 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11847 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11848 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11850 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 LIBGNUTLS_CFLAGS=""
11856 ## If we have a custom action on failure, don't print errors, but
11857 ## do set a variable so people can do so.
11858 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11865 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11866 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11870 if test $succeeded = yes; then
11876 if test "${HAVE_GNUTLS}" = "yes"; then
11878 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11882 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11883 LIBS="$LIBGNUTLS_LIBS $LIBS"
11884 for ac_func in gnutls_certificate_set_verify_function
11886 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11887 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11888 cat >>confdefs.h <<_ACEOF
11889 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11891 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11896 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11898 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11908 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11909 if test "$with_xaw3d" != no; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11911 $as_echo_n "checking for xaw3d... " >&6; }
11912 if test "${emacs_cv_xaw3d+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11918 #include <X11/Intrinsic.h>
11919 #include <X11/Xaw3d/Simple.h>
11928 if ac_fn_c_try_link "$LINENO"; then :
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11930 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11931 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11934 ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-lXaw3d $LIBS"
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11945 char XawScrollbarSetThumb ();
11949 return XawScrollbarSetThumb ();
11954 if ac_fn_c_try_link "$LINENO"; then :
11955 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11957 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_lib_save_LIBS
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11964 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11965 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11981 if test $emacs_cv_xaw3d = yes; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11983 $as_echo "yes; using Lucid toolkit" >&6; }
11984 USE_X_TOOLKIT=LUCID
11988 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11994 $as_echo_n "checking for libXaw... " >&6; }
11995 if test "${emacs_cv_xaw+set}" = set; then :
11996 $as_echo_n "(cached) " >&6
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12001 #include <X11/Intrinsic.h>
12002 #include <X11/Xaw/Simple.h>
12011 if ac_fn_c_try_link "$LINENO"; then :
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12020 if test $emacs_cv_xaw = yes; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12022 $as_echo "yes; using Lucid toolkit" >&6; }
12023 USE_X_TOOLKIT=LUCID
12025 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12026 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12028 as_fn_error "No X toolkit could be found.
12029 If you are sure you want Emacs compiled without an X toolkit, pass
12030 --with-x-toolkit=no
12031 to configure. Otherwise, install the development libraries for the toolkit
12032 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12037 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12040 if test "${USE_X_TOOLKIT}" != "none"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12042 $as_echo_n "checking X11 toolkit version... " >&6; }
12043 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048 #include <X11/Intrinsic.h>
12052 #if XtSpecificationRelease < 6
12060 if ac_fn_c_try_link "$LINENO"; then :
12061 emacs_cv_x11_toolkit_version_6=yes
12063 emacs_cv_x11_toolkit_version_6=no
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12069 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12070 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12072 $as_echo "6 or newer" >&6; }
12074 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12076 LIBXTR6="-lSM -lICE"
12078 ## Use libw.a along with X11R6 Xt.
12079 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12083 $as_echo "before 6" >&6; }
12087 if test x$HAVE_X11XTR6 = xyes; then
12088 LIBS="-lXt -lSM -lICE $LIBS"
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12093 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12094 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12097 ac_check_lib_save_LIBS=$LIBS
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12108 char XmuConvertStandardSelection ();
12112 return XmuConvertStandardSelection ();
12117 if ac_fn_c_try_link "$LINENO"; then :
12118 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12120 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 LIBS=$ac_check_lib_save_LIBS
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12127 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12128 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12129 cat >>confdefs.h <<_ACEOF
12130 #define HAVE_LIBXMU 1
12137 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12143 ## These systems don't supply Xmu.
12145 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12150 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12151 if test "${HAVE_X11}" = "yes"; then
12152 if test "${USE_X_TOOLKIT}" != "none"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12154 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12155 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lXext $LIBS"
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12169 char XShapeQueryExtension ();
12173 return XShapeQueryExtension ();
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_lib_Xext_XShapeQueryExtension=yes
12181 ac_cv_lib_Xext_XShapeQueryExtension=no
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12188 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12189 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12190 cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBXEXT 1
12194 LIBS="-lXext $LIBS"
12202 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12204 $as_echo_n "checking for Motif version 2.1... " >&6; }
12205 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12214 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12217 Motif version prior to 2.1.
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224 emacs_cv_motif_version_2_1=yes
12226 emacs_cv_motif_version_2_1=no
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12231 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12232 if test $emacs_cv_motif_version_2_1 = yes; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12234 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12235 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12238 ac_check_lib_save_LIBS=$LIBS
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12249 char XpCreateContext ();
12253 return XpCreateContext ();
12258 if ac_fn_c_try_link "$LINENO"; then :
12259 ac_cv_lib_Xp_XpCreateContext=yes
12261 ac_cv_lib_Xp_XpCreateContext=no
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS=$ac_check_lib_save_LIBS
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12268 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12269 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12275 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12276 if test "${emacs_cv_lesstif+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12279 # We put this in CFLAGS temporarily to precede other -I options
12280 # that might be in CFLAGS temporarily.
12281 # We put this in CPPFLAGS where it precedes the other -I options.
12282 OLD_CPPFLAGS=$CPPFLAGS
12284 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12285 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12297 if ac_fn_c_try_compile "$LINENO"; then :
12298 emacs_cv_lesstif=yes
12300 emacs_cv_lesstif=no
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12305 $as_echo "$emacs_cv_lesstif" >&6; }
12306 if test $emacs_cv_lesstif = yes; then
12307 # Make sure this -I option remains in CPPFLAGS after it is set
12308 # back to REAL_CPPFLAGS.
12309 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12310 # have those other -I options anyway. Ultimately, having this
12311 # directory ultimately in CPPFLAGS will be enough.
12312 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12313 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12316 CPPFLAGS=$OLD_CPPFLAGS
12322 USE_TOOLKIT_SCROLL_BARS=no
12323 if test "${with_toolkit_scroll_bars}" != "no"; then
12324 if test "${USE_X_TOOLKIT}" != "none"; then
12325 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12326 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12329 USE_TOOLKIT_SCROLL_BARS=yes
12330 elif test "${HAVE_XAW3D}" = "yes"; then
12331 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12333 USE_TOOLKIT_SCROLL_BARS=yes
12335 elif test "${HAVE_GTK}" = "yes"; then
12336 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12338 USE_TOOLKIT_SCROLL_BARS=yes
12339 elif test "${HAVE_NS}" = "yes"; then
12340 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12342 USE_TOOLKIT_SCROLL_BARS=yes
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12349 #include <X11/Xlib.h>
12350 #include <X11/Xresource.h>
12359 if ac_fn_c_try_compile "$LINENO"; then :
12362 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 if test "${with_xim}" != "no"; then
12372 $as_echo "#define USE_XIM 1" >>confdefs.h
12377 if test "${HAVE_XIM}" != "no"; then
12378 late_CFLAGS=$CFLAGS
12379 if test "$GCC" = yes; then
12380 CFLAGS="$CFLAGS --pedantic-errors"
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12385 #include <X11/Xlib.h>
12386 #include <X11/Xresource.h>
12395 XPointer *client_data;
12397 /* If we're not using GCC, it's probably not XFree86, and this is
12398 probably right, but we can't use something like --pedantic-errors. */
12399 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12400 char*, XIMProc, XPointer*);
12402 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12408 if ac_fn_c_try_compile "$LINENO"; then :
12409 emacs_cv_arg6_star=yes
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 if test "$emacs_cv_arg6_star" = yes; then
12413 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12416 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12419 CFLAGS=$late_CFLAGS
12422 ### Start of font-backend (under any platform) section.
12423 # (nothing here yet -- this is a placeholder)
12424 ### End of font-backend (under any platform) section.
12426 ### Start of font-backend (under X11) section.
12427 if test "${HAVE_X11}" = "yes"; then
12431 # Extract the first word of "pkg-config", so it can be a program name with args.
12432 set dummy pkg-config; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12438 case $PKG_CONFIG in
12440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12462 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12463 if test -n "$PKG_CONFIG"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12465 $as_echo "$PKG_CONFIG" >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12473 if test "$PKG_CONFIG" = "no" ; then
12476 PKG_CONFIG_MIN_VERSION=0.9.0
12477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12479 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12481 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12487 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12488 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12490 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12493 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12494 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12496 $as_echo "$FONTCONFIG_LIBS" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 FONTCONFIG_CFLAGS=""
12502 ## If we have a custom action on failure, don't print errors, but
12503 ## do set a variable so people can do so.
12504 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12516 if test $succeeded = yes; then
12523 ## Use -lXft if available, unless `--with-xft=no'.
12525 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12528 if test "x${with_xft}" != "xno"; then
12533 # Extract the first word of "pkg-config", so it can be a program name with args.
12534 set dummy pkg-config; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12540 case $PKG_CONFIG in
12542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in $PATH
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12564 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12565 if test -n "$PKG_CONFIG"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12567 $as_echo "$PKG_CONFIG" >&6; }
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12575 if test "$PKG_CONFIG" = "no" ; then
12578 PKG_CONFIG_MIN_VERSION=0.9.0
12579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12581 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12583 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12585 $as_echo "yes" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12589 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12590 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12592 $as_echo "$XFT_CFLAGS" >&6; }
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12595 $as_echo_n "checking XFT_LIBS... " >&6; }
12596 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12598 $as_echo "$XFT_LIBS" >&6; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12604 ## If we have a custom action on failure, don't print errors, but
12605 ## do set a variable so people can do so.
12606 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12613 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12614 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12618 if test $succeeded = yes; then
12624 ## Because xftfont.c uses XRenderQueryExtension, we also
12625 ## need to link to -lXrender.
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12628 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12629 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12632 ac_check_lib_save_LIBS=$LIBS
12633 LIBS="-lXrender $LIBS"
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12637 /* Override any GCC internal prototype to avoid an error.
12638 Use char because int might match the return type of a GCC
12639 builtin and then its argument prototype would still apply. */
12643 char XRenderQueryExtension ();
12647 return XRenderQueryExtension ();
12652 if ac_fn_c_try_link "$LINENO"; then :
12653 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12655 ac_cv_lib_Xrender_XRenderQueryExtension=no
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 LIBS=$ac_check_lib_save_LIBS
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12662 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12663 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12667 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12668 OLD_CPPFLAGS="$CPPFLAGS"
12669 OLD_CFLAGS="$CFLAGS"
12671 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12672 CFLAGS="$CFLAGS $XFT_CFLAGS"
12673 XFT_LIBS="-lXrender $XFT_LIBS"
12674 LIBS="$XFT_LIBS $LIBS"
12675 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12676 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12678 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12679 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12682 ac_check_lib_save_LIBS=$LIBS
12683 LIBS="-lXft $XFT_LIBS $LIBS"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12693 char XftFontOpen ();
12697 return XftFontOpen ();
12702 if ac_fn_c_try_link "$LINENO"; then :
12703 ac_cv_lib_Xft_XftFontOpen=yes
12705 ac_cv_lib_Xft_XftFontOpen=no
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12712 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12713 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12721 if test "${HAVE_XFT}" = "yes"; then
12723 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12726 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12728 CPPFLAGS="$OLD_CPPFLAGS"
12729 CFLAGS="$OLD_CFLAGS"
12731 fi # "${HAVE_XFT}" = "yes"
12732 fi # "$HAVE_XFT" != no
12733 fi # "x${with_xft}" != "xno"
12735 ## We used to allow building with FreeType and without Xft.
12736 ## However, the ftx font backend driver is not in good shape.
12737 if test "$HAVE_XFT" != "yes"; then
12744 # Extract the first word of "pkg-config", so it can be a program name with args.
12745 set dummy pkg-config; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 case $PKG_CONFIG in
12753 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12763 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12776 if test -n "$PKG_CONFIG"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12778 $as_echo "$PKG_CONFIG" >&6; }
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12786 if test "$PKG_CONFIG" = "no" ; then
12789 PKG_CONFIG_MIN_VERSION=0.9.0
12790 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12792 $as_echo_n "checking for freetype2... " >&6; }
12794 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796 $as_echo "yes" >&6; }
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12800 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12801 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12803 $as_echo "$FREETYPE_CFLAGS" >&6; }
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12806 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12807 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12809 $as_echo "$FREETYPE_LIBS" >&6; }
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12815 ## If we have a custom action on failure, don't print errors, but
12816 ## do set a variable so people can do so.
12817 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12824 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12825 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12829 if test $succeeded = yes; then
12836 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12840 if test "${HAVE_FREETYPE}" = "yes"; then
12842 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12844 if test "${with_libotf}" != "no"; then
12848 # Extract the first word of "pkg-config", so it can be a program name with args.
12849 set dummy pkg-config; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851 $as_echo_n "checking for $ac_word... " >&6; }
12852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12855 case $PKG_CONFIG in
12857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12880 if test -n "$PKG_CONFIG"; then
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12882 $as_echo "$PKG_CONFIG" >&6; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12890 if test "$PKG_CONFIG" = "no" ; then
12893 PKG_CONFIG_MIN_VERSION=0.9.0
12894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12896 $as_echo_n "checking for libotf... " >&6; }
12898 if $PKG_CONFIG --exists "libotf" 2>&5; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12900 $as_echo "yes" >&6; }
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12904 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12905 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12907 $as_echo "$LIBOTF_CFLAGS" >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12910 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12911 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12913 $as_echo "$LIBOTF_LIBS" >&6; }
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12919 ## If we have a custom action on failure, don't print errors, but
12920 ## do set a variable so people can do so.
12921 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12933 if test $succeeded = yes; then
12939 if test "$HAVE_LIBOTF" = "yes"; then
12941 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12944 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12945 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12948 ac_check_lib_save_LIBS=$LIBS
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12959 char OTF_get_variation_glyphs ();
12963 return OTF_get_variation_glyphs ();
12968 if ac_fn_c_try_link "$LINENO"; then :
12969 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12971 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12973 rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
12975 LIBS=$ac_check_lib_save_LIBS
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12978 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12979 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12980 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12982 HAVE_OTF_GET_VARIATION_GLYPHS=no
12985 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12987 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12995 if test "${HAVE_LIBOTF}" = yes; then
12996 if test "${with_m17n_flt}" != "no"; then
13000 # Extract the first word of "pkg-config", so it can be a program name with args.
13001 set dummy pkg-config; ac_word=$2
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13005 $as_echo_n "(cached) " >&6
13007 case $PKG_CONFIG in
13009 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13032 if test -n "$PKG_CONFIG"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13034 $as_echo "$PKG_CONFIG" >&6; }
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13042 if test "$PKG_CONFIG" = "no" ; then
13045 PKG_CONFIG_MIN_VERSION=0.9.0
13046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13048 $as_echo_n "checking for m17n-flt... " >&6; }
13050 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 $as_echo "yes" >&6; }
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
13056 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13057 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
13059 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
13062 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13063 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
13065 $as_echo "$M17N_FLT_LIBS" >&6; }
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13071 ## If we have a custom action on failure, don't print errors, but
13072 ## do set a variable so people can do so.
13073 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13085 if test $succeeded = yes; then
13091 if test "$HAVE_M17N_FLT" = "yes"; then
13093 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13105 ### End of font-backend (under X11) section.
13116 ### Use -lXpm if available, unless `--with-xpm=no'.
13119 if test "${HAVE_X11}" = "yes"; then
13120 if test "${with_xpm}" != "no"; then
13121 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13122 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13124 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13125 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lXpm -lX11 $LIBS"
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13139 char XpmReadFileToPixmap ();
13143 return XpmReadFileToPixmap ();
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13151 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13158 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13159 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13166 if test "${HAVE_XPM}" = "yes"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13168 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171 #include "X11/xpm.h"
13172 #ifndef XpmReturnAllocPixels
13173 no_return_alloc_pixels
13177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13178 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13186 if test "${HAVE_XPM}" = "yes"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13188 $as_echo "yes" >&6; }
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13196 if test "${HAVE_XPM}" = "yes"; then
13198 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13205 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13208 if test "${HAVE_X11}" = "yes"; then
13209 if test "${with_jpeg}" != "no"; then
13210 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13211 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13213 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13214 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13217 ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-ljpeg $LIBS"
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13222 /* Override any GCC internal prototype to avoid an error.
13223 Use char because int might match the return type of a GCC
13224 builtin and then its argument prototype would still apply. */
13228 char jpeg_destroy_compress ();
13232 return jpeg_destroy_compress ();
13237 if ac_fn_c_try_link "$LINENO"; then :
13238 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13240 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13242 rm -f core conftest.err conftest.$ac_objext \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13247 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13248 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13257 if test "${HAVE_JPEG}" = "yes"; then
13258 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <jpeglib.h>
13263 version=JPEG_LIB_VERSION
13266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13267 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13268 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13272 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13278 if test "${HAVE_JPEG}" = "yes"; then
13284 ### Use -lpng if available, unless `--with-png=no'.
13287 if test "${HAVE_X11}" = "yes"; then
13288 if test "${with_png}" != "no"; then
13289 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13290 # in /usr/include/libpng.
13291 for ac_header in png.h libpng/png.h
13293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13294 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13295 eval as_val=\$$as_ac_Header
13296 if test "x$as_val" = x""yes; then :
13297 cat >>confdefs.h <<_ACEOF
13298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13305 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13307 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13308 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13309 $as_echo_n "(cached) " >&6
13311 ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-lpng -lz -lm $LIBS"
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13322 char png_get_channels ();
13326 return png_get_channels ();
13331 if ac_fn_c_try_link "$LINENO"; then :
13332 ac_cv_lib_png_png_get_channels=yes
13334 ac_cv_lib_png_png_get_channels=no
13336 rm -f core conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13338 LIBS=$ac_check_lib_save_LIBS
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13341 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13342 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13349 if test "${HAVE_PNG}" = "yes"; then
13351 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13353 LIBPNG="-lpng -lz -lm"
13358 ### Use -ltiff if available, unless `--with-tiff=no'.
13361 if test "${HAVE_X11}" = "yes"; then
13362 if test "${with_tiff}" != "no"; then
13363 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13364 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13366 # At least one tiff package requires the jpeg library.
13367 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13369 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13370 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13373 ac_check_lib_save_LIBS=$LIBS
13374 LIBS="-ltiff $tifflibs $LIBS"
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13384 char TIFFGetVersion ();
13388 return TIFFGetVersion ();
13393 if ac_fn_c_try_link "$LINENO"; then :
13394 ac_cv_lib_tiff_TIFFGetVersion=yes
13396 ac_cv_lib_tiff_TIFFGetVersion=no
13398 rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13403 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13404 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13413 if test "${HAVE_TIFF}" = "yes"; then
13415 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13422 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13425 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13426 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13427 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13428 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13429 # Earlier versions can crash Emacs.
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13431 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13432 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13433 $as_echo_n "(cached) " >&6
13435 ac_check_lib_save_LIBS=$LIBS
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13440 /* Override any GCC internal prototype to avoid an error.
13441 Use char because int might match the return type of a GCC
13442 builtin and then its argument prototype would still apply. */
13446 char EGifPutExtensionLast ();
13450 return EGifPutExtensionLast ();
13455 if ac_fn_c_try_link "$LINENO"; then :
13456 ac_cv_lib_gif_EGifPutExtensionLast=yes
13458 ac_cv_lib_gif_EGifPutExtensionLast=no
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462 LIBS=$ac_check_lib_save_LIBS
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13465 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13466 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13476 if test "$HAVE_GIF" = yes; then
13478 elif test "$HAVE_GIF" = maybe; then
13479 # If gif_lib.h but no libgif, try libungif.
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13481 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13482 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13483 $as_echo_n "(cached) " >&6
13485 ac_check_lib_save_LIBS=$LIBS
13486 LIBS="-lungif $LIBS"
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13490 /* Override any GCC internal prototype to avoid an error.
13491 Use char because int might match the return type of a GCC
13492 builtin and then its argument prototype would still apply. */
13496 char EGifPutExtensionLast ();
13500 return EGifPutExtensionLast ();
13505 if ac_fn_c_try_link "$LINENO"; then :
13506 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13508 ac_cv_lib_ungif_EGifPutExtensionLast=no
13510 rm -f core conftest.err conftest.$ac_objext \
13511 conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13515 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13516 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13522 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13525 if test "${HAVE_GIF}" = "yes"; then
13527 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13533 if test "${HAVE_X11}" = "yes"; then
13536 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13537 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13538 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13539 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13540 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13541 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13542 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13543 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13544 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13545 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13547 if test "X${MISSING}" != X; then
13548 as_fn_error "The following required libraries were not found:
13550 Maybe some development libraries/packages are missing?
13551 If you don't want to link with them give
13553 as options to configure" "$LINENO" 5
13557 ### Use -lgpm if available, unless `--with-gpm=no'.
13560 if test "${with_gpm}" != "no"; then
13561 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13562 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13564 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13565 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13568 ac_check_lib_save_LIBS=$LIBS
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13573 /* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13583 return Gpm_Open ();
13588 if ac_fn_c_try_link "$LINENO"; then :
13589 ac_cv_lib_gpm_Gpm_Open=yes
13591 ac_cv_lib_gpm_Gpm_Open=no
13593 rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_check_lib_save_LIBS
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13598 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13599 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13607 if test "${HAVE_GPM}" = "yes"; then
13609 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13616 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13617 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13619 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13626 ### Use NeXTstep API to implement GUI.
13627 if test "${HAVE_NS}" = "yes"; then
13629 $as_echo "#define HAVE_NS 1" >>confdefs.h
13631 if test "${NS_IMPL_COCOA}" = "yes"; then
13633 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13636 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13638 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13640 # See also .m.o rule in Makefile.in */
13641 # FIXME: are all these flags really needed? Document here why. */
13642 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13643 ## Extra CFLAGS applied to src/*.m files.
13644 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13646 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13648 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13651 # We also have mouse menus.
13657 ### Use session management (-lSM -lICE) if available
13660 if test "${HAVE_X11}" = "yes"; then
13661 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13662 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13664 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13665 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13668 ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-lSM -lICE $LIBS"
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13679 char SmcOpenConnection ();
13683 return SmcOpenConnection ();
13688 if ac_fn_c_try_link "$LINENO"; then :
13689 ac_cv_lib_SM_SmcOpenConnection=yes
13691 ac_cv_lib_SM_SmcOpenConnection=no
13693 rm -f core conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13698 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13699 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13707 if test "${HAVE_X_SM}" = "yes"; then
13709 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13711 LIBXSM="-lSM -lICE"
13714 *) LIBS="$LIBXSM $LIBS" ;;
13720 ### Use libxml (-lxml2) if available
13721 if test "${with_xml2}" != "no"; then
13722 ### I'm not sure what the version number should be, so I just guessed.
13726 # Extract the first word of "pkg-config", so it can be a program name with args.
13727 set dummy pkg-config; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13731 $as_echo_n "(cached) " >&6
13733 case $PKG_CONFIG in
13735 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
13744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13745 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13757 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13758 if test -n "$PKG_CONFIG"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13760 $as_echo "$PKG_CONFIG" >&6; }
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13768 if test "$PKG_CONFIG" = "no" ; then
13771 PKG_CONFIG_MIN_VERSION=0.9.0
13772 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13774 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13776 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13778 $as_echo "yes" >&6; }
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13782 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13783 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13785 $as_echo "$LIBXML2_CFLAGS" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13788 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13789 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13791 $as_echo "$LIBXML2_LIBS" >&6; }
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13797 ## If we have a custom action on failure, don't print errors, but
13798 ## do set a variable so people can do so.
13799 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13811 if test $succeeded = yes; then
13817 if test "${HAVE_LIBXML2}" = "yes"; then
13818 LIBS="$LIBXML2_LIBS $LIBS"
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13820 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13821 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13822 $as_echo_n "(cached) " >&6
13824 ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-lxml2 $LIBS"
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13829 /* Override any GCC internal prototype to avoid an error.
13830 Use char because int might match the return type of a GCC
13831 builtin and then its argument prototype would still apply. */
13835 char htmlReadMemory ();
13839 return htmlReadMemory ();
13844 if ac_fn_c_try_link "$LINENO"; then :
13845 ac_cv_lib_xml2_htmlReadMemory=yes
13847 ac_cv_lib_xml2_htmlReadMemory=no
13849 rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LIBS=$ac_check_lib_save_LIBS
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13854 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13855 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13861 if test "${HAVE_LIBXML2}" = "yes"; then
13863 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13874 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13876 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13877 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13878 $as_echo_n "(cached) " >&6
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 emacs_cv_netdb_declares_h_errno=yes
13894 emacs_cv_netdb_declares_h_errno=no
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13900 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13901 if test $emacs_cv_netdb_declares_h_errno = yes; then
13903 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13907 # fmod, logb, and frexp are found in -lm on most systems.
13908 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13910 $as_echo_n "checking for sqrt in -lm... " >&6; }
13911 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13912 $as_echo_n "(cached) " >&6
13914 ac_check_lib_save_LIBS=$LIBS
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13919 /* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13934 if ac_fn_c_try_link "$LINENO"; then :
13935 ac_cv_lib_m_sqrt=yes
13937 ac_cv_lib_m_sqrt=no
13939 rm -f core conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
13941 LIBS=$ac_check_lib_save_LIBS
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13944 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13945 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_LIBM 1
13955 # Check for mail-locking functions in a "mail" library. Probably this should
13956 # have the same check as for liblockfile below.
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13958 $as_echo_n "checking for maillock in -lmail... " >&6; }
13959 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-lmail $LIBS"
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13967 /* Override any GCC internal prototype to avoid an error.
13968 Use char because int might match the return type of a GCC
13969 builtin and then its argument prototype would still apply. */
13977 return maillock ();
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 ac_cv_lib_mail_maillock=yes
13985 ac_cv_lib_mail_maillock=no
13987 rm -f core conftest.err conftest.$ac_objext \
13988 conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13992 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13993 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13999 if test $have_mail = yes; then
14001 LIBS="$LIBS_MAIL $LIBS"
14003 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14009 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14010 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14013 ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-llockfile $LIBS"
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14018 /* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14028 return maillock ();
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 ac_cv_lib_lockfile_maillock=yes
14036 ac_cv_lib_lockfile_maillock=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14043 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14044 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14050 if test $have_lockfile = yes; then
14051 LIBS_MAIL=-llockfile
14052 LIBS="$LIBS_MAIL $LIBS"
14054 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14057 # If we have the shared liblockfile, assume we must use it for mail
14058 # locking (e.g. Debian). If we couldn't link against liblockfile
14059 # (no liblockfile.a installed), ensure that we don't need to.
14060 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14061 set dummy liblockfile.so; ac_word=$2
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14063 $as_echo_n "checking for $ac_word... " >&6; }
14064 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14067 if test -n "$liblockfile"; then
14068 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14072 for as_dir in $as_dummy
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14078 ac_cv_prog_liblockfile="yes"
14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14086 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14089 liblockfile=$ac_cv_prog_liblockfile
14090 if test -n "$liblockfile"; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14092 $as_echo "$liblockfile" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14099 if test $ac_cv_prog_liblockfile = yes; then
14100 as_fn_error "Shared liblockfile found but can't link against it.
14101 This probably means that movemail could lose mail.
14102 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14105 for ac_func in touchlock
14107 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14108 if test "x$ac_cv_func_touchlock" = x""yes; then :
14109 cat >>confdefs.h <<_ACEOF
14110 #define HAVE_TOUCHLOCK 1
14116 for ac_header in maillock.h
14118 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14119 if test "x$ac_cv_header_maillock_h" = x""yes; then :
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_MAILLOCK_H 1
14130 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14131 ## interlock access to the mail spool. The alternative is a lock file named
14132 ## /usr/spool/mail/$USER.lock.
14135 aix4-2) mail_lock="lockf" ;;
14137 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14139 ## On GNU/Linux systems, both methods are used by various mail programs.
14140 ## I assume most people are using newer mailers that have heard of flock.
14141 ## Change this if you need to.
14142 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14143 ## configure gets the right answers, and that means *NOT* using flock.
14144 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14145 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14146 ## Debian maintainer hasn't provided a clean fix for Emacs.
14147 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14148 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14149 ## correct logic. -- fx
14150 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14151 ## liblockfile is a Free Software replacement for libmail, used on
14152 ## Debian systems and elsewhere. -rfr.
14155 if test $have_mail = yes || test $have_lockfile = yes; then
14156 test $ac_cv_header_maillock_h = yes && mail_lock=no
14162 case "$mail_lock" in
14164 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14168 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14171 *) BLESSMAIL_TARGET="need-blessmail" ;;
14176 for ac_func in gethostname getdomainname \
14177 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14178 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14179 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14180 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14181 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14182 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14183 gai_strerror mkstemp getline getdelim mremap fsync sync \
14184 difftime mempcpy mblen mbrlen posix_memalign \
14185 cfmakeraw cfsetspeed copysign __executable_start
14187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14189 eval as_val=\$$as_ac_var
14190 if test "x$as_val" = x""yes; then :
14191 cat >>confdefs.h <<_ACEOF
14192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14200 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14201 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14202 $as_echo_n "(cached) " >&6
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14210 __builtin_unwind_init ();
14215 if ac_fn_c_try_link "$LINENO"; then :
14216 emacs_cv_func___builtin_unwind_init=yes
14218 emacs_cv_func___builtin_unwind_init=no
14220 rm -f core conftest.err conftest.$ac_objext \
14221 conftest$ac_exeext conftest.$ac_ext
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14224 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14225 if test $emacs_cv_func___builtin_unwind_init = yes; then
14227 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14231 for ac_header in sys/un.h
14233 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14234 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14235 cat >>confdefs.h <<_ACEOF
14236 #define HAVE_SYS_UN_H 1
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14245 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14246 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #include <sys/types.h> /* for off_t */
14257 int (*fp) (FILE *, off_t, int) = fseeko;
14258 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14263 if ac_fn_c_try_link "$LINENO"; then :
14264 ac_cv_sys_largefile_source=no; break
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14270 #define _LARGEFILE_SOURCE 1
14271 #include <sys/types.h> /* for off_t */
14276 int (*fp) (FILE *, off_t, int) = fseeko;
14277 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14282 if ac_fn_c_try_link "$LINENO"; then :
14283 ac_cv_sys_largefile_source=1; break
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 ac_cv_sys_largefile_source=unknown
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14292 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14293 case $ac_cv_sys_largefile_source in #(
14296 cat >>confdefs.h <<_ACEOF
14297 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14303 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14304 # in glibc 2.1.3, but that breaks too many other things.
14305 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14306 if test $ac_cv_sys_largefile_source != unknown; then
14308 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14314 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14315 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14318 # Use it with a single arg.
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 $ac_includes_default
14330 if ac_fn_c_try_compile "$LINENO"; then :
14331 ac_cv_func_getpgrp_void=no
14333 ac_cv_func_getpgrp_void=yes
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14339 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14340 if test $ac_cv_func_getpgrp_void = yes; then
14342 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14348 # Configure gnulib.
14351 for ac_func in grantpt
14353 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14354 if test "x$ac_cv_func_grantpt" = x""yes; then :
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_GRANTPT 1
14363 # PTY-related GNU extensions.
14364 for ac_func in getpt
14366 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14367 if test "x$ac_cv_func_getpt" = x""yes; then :
14368 cat >>confdefs.h <<_ACEOF
14369 #define HAVE_GETPT 1
14376 # Check this now, so that we will NOT find the above functions in ncurses.
14377 # That is because we have not set up to link ncurses in lib-src.
14378 # It's better to believe a function is not available
14379 # than to expect to find it in ncurses.
14380 # Also we need tputs and friends to be able to build at all.
14381 have_tputs_et_al=true
14382 # Maybe curses should be tried earlier?
14383 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14385 $as_echo_n "checking for library containing tputs... " >&6; }
14386 if test "${ac_cv_search_tputs+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14389 ac_func_search_save_LIBS=$LIBS
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14393 /* Override any GCC internal prototype to avoid an error.
14394 Use char because int might match the return type of a GCC
14395 builtin and then its argument prototype would still apply. */
14408 for ac_lib in '' ncurses terminfo termcap curses; do
14409 if test -z "$ac_lib"; then
14410 ac_res="none required"
14413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14415 if ac_fn_c_try_link "$LINENO"; then :
14416 ac_cv_search_tputs=$ac_res
14418 rm -f core conftest.err conftest.$ac_objext \
14420 if test "${ac_cv_search_tputs+set}" = set; then :
14424 if test "${ac_cv_search_tputs+set}" = set; then :
14427 ac_cv_search_tputs=no
14429 rm conftest.$ac_ext
14430 LIBS=$ac_func_search_save_LIBS
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14433 $as_echo "$ac_cv_search_tputs" >&6; }
14434 ac_res=$ac_cv_search_tputs
14435 if test "$ac_res" != no; then :
14436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14439 have_tputs_et_al=false
14442 if test "$have_tputs_et_al" != true; then
14443 as_fn_error "The required function \`tputs' was not found in any library.
14444 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14445 Please try installing whichever of these libraries is most appropriate
14446 for your system, together with its header files.
14447 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14449 # Must define this when any termcap library is found.
14451 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14453 ## FIXME This was the cpp logic, but I am not sure it is right.
14454 ## The above test has not necessarily found libncurses.
14455 HAVE_LIBNCURSES=yes
14457 ## Use terminfo instead of termcap?
14458 ## Note only system files NOT using terminfo are:
14459 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14460 ## darwin|gnu without ncurses.
14464 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14465 ## hpux10-20: Use the system provided termcap(3) library.
14466 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14467 ## is necessary. Otherwise Emacs dumps core when run -nw.
14468 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14470 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14471 ## The ncurses library has been moved out of the System framework in
14472 ## Mac OS X 10.2. So if configure detects it, set the command-line
14473 ## option to use it.
14475 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14476 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14478 LIBS_TERMCAP="-lncurses"
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14484 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14485 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14486 $as_echo_n "(cached) " >&6
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490 #include <osreldate.h>
14494 #if __FreeBSD_version < 400000
14502 if ac_fn_c_try_link "$LINENO"; then :
14503 emacs_cv_freebsd_terminfo=yes
14505 emacs_cv_freebsd_terminfo=no
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14513 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14515 if test $emacs_cv_freebsd_terminfo = yes; then
14517 LIBS_TERMCAP="-lncurses"
14519 LIBS_TERMCAP="-ltermcap"
14524 if test $ac_cv_search_tputs = -lterminfo; then
14526 LIBS_TERMCAP="-lterminfo"
14528 LIBS_TERMCAP="-ltermcap"
14535 ## hpux: Make sure we get select from libc rather than from libcurses
14536 ## because libcurses on HPUX 10.10 has a broken version of select.
14537 ## We used to use -lc -lcurses, but this may be cleaner.
14538 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14540 openbsd) LIBS_TERMCAP="-lncurses" ;;
14542 ## Must use system termcap, if we use any termcap. It does special things.
14543 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14546 TERMCAP_OBJ=tparam.o
14547 if test $TERMINFO = yes; then
14549 $as_echo "#define TERMINFO 1" >>confdefs.h
14552 ## Default used to be -ltermcap. Add a case above if need something else.
14553 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14555 TERMCAP_OBJ=terminfo.o
14561 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565 #include <netinet/in.h>
14566 #include <arpa/nameser.h>
14567 #include <resolv.h>
14576 if ac_fn_c_try_link "$LINENO"; then :
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 if test "$have_res_init" = no; then
14585 LIBS="$LIBS -lresolv"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14587 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14590 #include <netinet/in.h>
14591 #include <arpa/nameser.h>
14592 #include <resolv.h>
14601 if ac_fn_c_try_link "$LINENO"; then :
14606 rm -f core conftest.err conftest.$ac_objext \
14607 conftest$ac_exeext conftest.$ac_ext
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14609 $as_echo "$have_res_init" >&6; }
14610 if test "$have_res_init" = yes ; then
14616 if test "$have_res_init" = yes; then
14618 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14622 # Do we need the Hesiod library to provide the support routines?
14624 if test "$with_hesiod" != no ; then
14625 # Don't set $LIBS here -- see comments above. FIXME which comments?
14626 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14627 if test "x$ac_cv_func_res_send" = x""yes; then :
14630 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14631 if test "x$ac_cv_func___res_send" = x""yes; then :
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14635 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14636 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14637 $as_echo_n "(cached) " >&6
14639 ac_check_lib_save_LIBS=$LIBS
14640 LIBS="-lresolv $LIBS"
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14644 /* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
14654 return res_send ();
14659 if ac_fn_c_try_link "$LINENO"; then :
14660 ac_cv_lib_resolv_res_send=yes
14662 ac_cv_lib_resolv_res_send=no
14664 rm -f core conftest.err conftest.$ac_objext \
14665 conftest$ac_exeext conftest.$ac_ext
14666 LIBS=$ac_check_lib_save_LIBS
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14669 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14670 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14674 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14675 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14678 ac_check_lib_save_LIBS=$LIBS
14679 LIBS="-lresolv $LIBS"
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14689 char __res_send ();
14693 return __res_send ();
14698 if ac_fn_c_try_link "$LINENO"; then :
14699 ac_cv_lib_resolv___res_send=yes
14701 ac_cv_lib_resolv___res_send=no
14703 rm -f core conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14708 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14709 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14719 if test "$resolv" = yes ; then
14724 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14725 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14729 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14730 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14731 $as_echo_n "(cached) " >&6
14733 ac_check_lib_save_LIBS=$LIBS
14734 LIBS="-lhesiod $RESOLVLIB $LIBS"
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14738 /* Override any GCC internal prototype to avoid an error.
14739 Use char because int might match the return type of a GCC
14740 builtin and then its argument prototype would still apply. */
14744 char hes_getmailhost ();
14748 return hes_getmailhost ();
14753 if ac_fn_c_try_link "$LINENO"; then :
14754 ac_cv_lib_hesiod_hes_getmailhost=yes
14756 ac_cv_lib_hesiod_hes_getmailhost=no
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext conftest.$ac_ext
14760 LIBS=$ac_check_lib_save_LIBS
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14763 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14764 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14773 if test x"$hesiod" = xyes; then
14775 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14782 # Do we need libresolv (due to res_init or Hesiod)?
14783 if test "$resolv" = yes ; then
14785 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14793 # These tell us which Kerberos-related libraries to use.
14800 if test "${with_kerberos}" != no; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14802 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14803 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14806 ac_check_lib_save_LIBS=$LIBS
14807 LIBS="-lcom_err $LIBS"
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14811 /* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14826 if ac_fn_c_try_link "$LINENO"; then :
14827 ac_cv_lib_com_err_com_err=yes
14829 ac_cv_lib_com_err_com_err=no
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 LIBS=$ac_check_lib_save_LIBS
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14836 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14837 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14843 if test $have_com_err = yes; then
14844 COM_ERRLIB=-lcom_err
14845 LIBS="$COM_ERRLIB $LIBS"
14847 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14851 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14852 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14853 $as_echo_n "(cached) " >&6
14855 ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-lcrypto $LIBS"
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14866 char mit_des_cbc_encrypt ();
14870 return mit_des_cbc_encrypt ();
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14878 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14882 LIBS=$ac_check_lib_save_LIBS
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14885 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14886 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14892 if test $have_crypto = yes; then
14894 LIBS="$CRYPTOLIB $LIBS"
14896 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14900 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14901 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14902 $as_echo_n "(cached) " >&6
14904 ac_check_lib_save_LIBS=$LIBS
14905 LIBS="-lk5crypto $LIBS"
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14909 /* Override any GCC internal prototype to avoid an error.
14910 Use char because int might match the return type of a GCC
14911 builtin and then its argument prototype would still apply. */
14915 char mit_des_cbc_encrypt ();
14919 return mit_des_cbc_encrypt ();
14924 if ac_fn_c_try_link "$LINENO"; then :
14925 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14927 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14929 rm -f core conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14934 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14935 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14941 if test $have_k5crypto = yes; then
14942 CRYPTOLIB=-lk5crypto
14943 LIBS="$CRYPTOLIB $LIBS"
14945 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14949 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14950 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14951 $as_echo_n "(cached) " >&6
14953 ac_check_lib_save_LIBS=$LIBS
14954 LIBS="-lkrb5 $LIBS"
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14958 /* Override any GCC internal prototype to avoid an error.
14959 Use char because int might match the return type of a GCC
14960 builtin and then its argument prototype would still apply. */
14964 char krb5_init_context ();
14968 return krb5_init_context ();
14973 if ac_fn_c_try_link "$LINENO"; then :
14974 ac_cv_lib_krb5_krb5_init_context=yes
14976 ac_cv_lib_krb5_krb5_init_context=no
14978 rm -f core conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14980 LIBS=$ac_check_lib_save_LIBS
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14983 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14984 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14990 if test $have_krb5=yes; then
14992 LIBS="$KRB5LIB $LIBS"
14994 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14997 if test "${with_kerberos5}" = no; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14999 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15000 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15001 $as_echo_n "(cached) " >&6
15003 ac_check_lib_save_LIBS=$LIBS
15004 LIBS="-ldes425 $LIBS"
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15008 /* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15014 char des_cbc_encrypt ();
15018 return des_cbc_encrypt ();
15023 if ac_fn_c_try_link "$LINENO"; then :
15024 ac_cv_lib_des425_des_cbc_encrypt=yes
15026 ac_cv_lib_des425_des_cbc_encrypt=no
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15030 LIBS=$ac_check_lib_save_LIBS
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15033 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15034 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15040 if test $have_des425 = yes; then
15042 LIBS="$DESLIB $LIBS"
15044 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15048 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15049 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15052 ac_check_lib_save_LIBS=$LIBS
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15063 char des_cbc_encrypt ();
15067 return des_cbc_encrypt ();
15072 if ac_fn_c_try_link "$LINENO"; then :
15073 ac_cv_lib_des_des_cbc_encrypt=yes
15075 ac_cv_lib_des_des_cbc_encrypt=no
15077 rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15082 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15083 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15089 if test $have_des = yes; then
15091 LIBS="$DESLIB $LIBS"
15093 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15098 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15099 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15100 $as_echo_n "(cached) " >&6
15102 ac_check_lib_save_LIBS=$LIBS
15103 LIBS="-lkrb4 $LIBS"
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15107 /* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15113 char krb_get_cred ();
15117 return krb_get_cred ();
15122 if ac_fn_c_try_link "$LINENO"; then :
15123 ac_cv_lib_krb4_krb_get_cred=yes
15125 ac_cv_lib_krb4_krb_get_cred=no
15127 rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_check_lib_save_LIBS
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15132 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15133 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15139 if test $have_krb4 = yes; then
15141 LIBS="$KRB4LIB $LIBS"
15143 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15147 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15148 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15149 $as_echo_n "(cached) " >&6
15151 ac_check_lib_save_LIBS=$LIBS
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15156 /* Override any GCC internal prototype to avoid an error.
15157 Use char because int might match the return type of a GCC
15158 builtin and then its argument prototype would still apply. */
15162 char krb_get_cred ();
15166 return krb_get_cred ();
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 ac_cv_lib_krb_krb_get_cred=yes
15174 ac_cv_lib_krb_krb_get_cred=no
15176 rm -f core conftest.err conftest.$ac_objext \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15181 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15182 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15188 if test $have_krb = yes; then
15190 LIBS="$KRB4LIB $LIBS"
15192 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15198 if test "${with_kerberos5}" != no; then
15199 for ac_header in krb5.h
15201 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15202 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_KRB5_H 1
15206 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15208 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15210 cat >>confdefs.h <<_ACEOF
15211 #define HAVE_KRB5_ERROR_TEXT 1
15216 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15218 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15220 cat >>confdefs.h <<_ACEOF
15221 #define HAVE_KRB5_ERROR_E_TEXT 1
15232 for ac_header in des.h
15234 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15235 if test "x$ac_cv_header_des_h" = x""yes; then :
15236 cat >>confdefs.h <<_ACEOF
15237 #define HAVE_DES_H 1
15241 for ac_header in kerberosIV/des.h
15243 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15244 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15245 cat >>confdefs.h <<_ACEOF
15246 #define HAVE_KERBEROSIV_DES_H 1
15250 for ac_header in kerberos/des.h
15252 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15253 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_KERBEROS_DES_H 1
15270 for ac_header in krb.h
15272 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15273 if test "x$ac_cv_header_krb_h" = x""yes; then :
15274 cat >>confdefs.h <<_ACEOF
15275 #define HAVE_KRB_H 1
15279 for ac_header in kerberosIV/krb.h
15281 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15282 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15283 cat >>confdefs.h <<_ACEOF
15284 #define HAVE_KERBEROSIV_KRB_H 1
15288 for ac_header in kerberos/krb.h
15290 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15291 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15292 cat >>confdefs.h <<_ACEOF
15293 #define HAVE_KERBEROS_KRB_H 1
15309 for ac_header in com_err.h
15311 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15312 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15313 cat >>confdefs.h <<_ACEOF
15314 #define HAVE_COM_ERR_H 1
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15330 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15331 if test "${emacs_cv_localtime_cache+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
15334 if test x$ac_cv_func_tzset = xyes; then
15335 if test "$cross_compiling" = yes; then :
15336 # If we have tzset, assume the worst when cross-compiling.
15337 emacs_cv_localtime_cache=yes
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15342 char TZ_GMT0[] = "TZ=GMT0";
15343 char TZ_PST8[] = "TZ=PST8";
15346 time_t now = time ((time_t *) 0);
15347 int hour_GMT0, hour_unset;
15348 if (putenv (TZ_GMT0) != 0)
15350 hour_GMT0 = localtime (&now)->tm_hour;
15352 hour_unset = localtime (&now)->tm_hour;
15353 if (putenv (TZ_PST8) != 0)
15355 if (localtime (&now)->tm_hour == hour_GMT0)
15358 if (localtime (&now)->tm_hour != hour_unset)
15363 if ac_fn_c_try_run "$LINENO"; then :
15364 emacs_cv_localtime_cache=no
15366 emacs_cv_localtime_cache=yes
15368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15369 conftest.$ac_objext conftest.beam conftest.$ac_ext
15373 # If we lack tzset, report that localtime does not cache TZ,
15374 # since we can't invalidate the cache if we don't have tzset.
15375 emacs_cv_localtime_cache=no
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15379 $as_echo "$emacs_cv_localtime_cache" >&6; }
15380 if test $emacs_cv_localtime_cache = yes; then
15382 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15386 if test "x$HAVE_TIMEVAL" = xyes; then
15387 for ac_func in gettimeofday
15389 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15390 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15391 cat >>confdefs.h <<_ACEOF
15392 #define HAVE_GETTIMEOFDAY 1
15398 if test $ac_cv_func_gettimeofday = yes; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15400 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15401 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15402 $as_echo_n "(cached) " >&6
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15407 #ifdef TIME_WITH_SYS_TIME
15408 #include <sys/time.h>
15411 #ifdef HAVE_SYS_TIME_H
15412 #include <sys/time.h>
15420 struct timeval time;
15421 gettimeofday (&time, 0);
15426 if ac_fn_c_try_compile "$LINENO"; then :
15427 emacs_cv_gettimeofday_two_arguments=yes
15429 emacs_cv_gettimeofday_two_arguments=no
15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15434 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15435 if test $emacs_cv_gettimeofday_two_arguments = no; then
15437 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15444 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15445 if test "x$ac_cv_func_socket" = x""yes; then :
15451 if test $ok_so_far = yes; then
15452 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15453 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15461 if test $ok_so_far = yes; then
15462 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15463 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15471 if test $ok_so_far = yes; then
15473 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15477 if test -f /usr/lpp/X11/bin/smt.exp; then
15479 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15484 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15485 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15487 $as_echo "yes" >&6; }
15489 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493 $as_echo "no" >&6; }
15496 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15497 if test "x$ac_cv_type_pid_t" = x""yes; then :
15501 cat >>confdefs.h <<_ACEOF
15507 for ac_header in vfork.h
15509 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15510 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15511 cat >>confdefs.h <<_ACEOF
15512 #define HAVE_VFORK_H 1
15519 for ac_func in fork vfork
15521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15523 eval as_val=\$$as_ac_var
15524 if test "x$as_val" = x""yes; then :
15525 cat >>confdefs.h <<_ACEOF
15526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15532 if test "x$ac_cv_func_fork" = xyes; then
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15534 $as_echo_n "checking for working fork... " >&6; }
15535 if test "${ac_cv_func_fork_works+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15538 if test "$cross_compiling" = yes; then :
15539 ac_cv_func_fork_works=cross
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15543 $ac_includes_default
15548 /* By Ruediger Kuhlmann. */
15549 return fork () < 0;
15555 if ac_fn_c_try_run "$LINENO"; then :
15556 ac_cv_func_fork_works=yes
15558 ac_cv_func_fork_works=no
15560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15561 conftest.$ac_objext conftest.beam conftest.$ac_ext
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15566 $as_echo "$ac_cv_func_fork_works" >&6; }
15569 ac_cv_func_fork_works=$ac_cv_func_fork
15571 if test "x$ac_cv_func_fork_works" = xcross; then
15573 *-*-amigaos* | *-*-msdosdjgpp*)
15574 # Override, as these systems have only a dummy fork() stub
15575 ac_cv_func_fork_works=no
15578 ac_cv_func_fork_works=yes
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15582 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15584 ac_cv_func_vfork_works=$ac_cv_func_vfork
15585 if test "x$ac_cv_func_vfork" = xyes; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15587 $as_echo_n "checking for working vfork... " >&6; }
15588 if test "${ac_cv_func_vfork_works+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15591 if test "$cross_compiling" = yes; then :
15592 ac_cv_func_vfork_works=cross
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596 /* Thanks to Paul Eggert for this test. */
15597 $ac_includes_default
15598 #include <sys/wait.h>
15599 #ifdef HAVE_VFORK_H
15600 # include <vfork.h>
15602 /* On some sparc systems, changes by the child to local and incoming
15603 argument registers are propagated back to the parent. The compiler
15604 is told about this with #include <vfork.h>, but some compilers
15605 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15606 static variable whose address is put into a register that is
15607 clobbered by the vfork. */
15610 sparc_address_test (int arg)
15612 sparc_address_test (arg) int arg;
15615 static pid_t child;
15633 pid_t parent = getpid ();
15636 sparc_address_test (0);
15641 /* Here is another test for sparc vfork register problems. This
15642 test uses lots of local variables, at least as many local
15643 variables as main has allocated so far including compiler
15644 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15645 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15646 reuse the register of parent for one of the local variables,
15647 since it will think that parent can't possibly be used any more
15648 in this routine. Assigning to the local variable will thus
15649 munge parent in the parent process. */
15651 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15652 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15653 /* Convince the compiler that p..p7 are live; otherwise, it might
15654 use the same hardware register for all 8 local variables. */
15655 if (p != p1 || p != p2 || p != p3 || p != p4
15656 || p != p5 || p != p6 || p != p7)
15659 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15660 from child file descriptors. If the child closes a descriptor
15661 before it execs or exits, this munges the parent's descriptor
15662 as well. Test for this by closing stdout in the child. */
15663 _exit(close(fileno(stdout)) != 0);
15668 while (wait(&status) != child)
15671 /* Was there some problem with vforking? */
15674 /* Did the child fail? (This shouldn't happen.) */
15677 /* Did the vfork/compiler bug occur? */
15678 || parent != getpid()
15680 /* Did the file descriptor bug occur? */
15681 || fstat(fileno(stdout), &st) != 0
15686 if ac_fn_c_try_run "$LINENO"; then :
15687 ac_cv_func_vfork_works=yes
15689 ac_cv_func_vfork_works=no
15691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15692 conftest.$ac_objext conftest.beam conftest.$ac_ext
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15697 $as_echo "$ac_cv_func_vfork_works" >&6; }
15700 if test "x$ac_cv_func_fork_works" = xcross; then
15701 ac_cv_func_vfork_works=$ac_cv_func_vfork
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15703 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15706 if test "x$ac_cv_func_vfork_works" = xyes; then
15708 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15712 $as_echo "#define vfork fork" >>confdefs.h
15715 if test "x$ac_cv_func_fork_works" = xyes; then
15717 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15722 for ac_func in snprintf
15724 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15725 if test "x$ac_cv_func_snprintf" = x""yes; then :
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_SNPRINTF 1
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15735 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15736 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15737 $as_echo_n "(cached) " >&6
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <langinfo.h>
15745 char* cs = nl_langinfo(CODESET);
15750 if ac_fn_c_try_link "$LINENO"; then :
15751 emacs_cv_langinfo_codeset=yes
15753 emacs_cv_langinfo_codeset=no
15755 rm -f core conftest.err conftest.$ac_objext \
15756 conftest$ac_exeext conftest.$ac_ext
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15760 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15761 if test $emacs_cv_langinfo_codeset = yes; then
15763 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15768 $as_echo_n "checking for mbstate_t... " >&6; }
15769 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15770 $as_echo_n "(cached) " >&6
15772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 $ac_includes_default
15775 # include <wchar.h>
15779 mbstate_t x; return sizeof x;
15784 if ac_fn_c_try_compile "$LINENO"; then :
15785 ac_cv_type_mbstate_t=yes
15787 ac_cv_type_mbstate_t=no
15789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15792 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15793 if test $ac_cv_type_mbstate_t = yes; then
15795 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15799 $as_echo "#define mbstate_t int" >>confdefs.h
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15804 $as_echo_n "checking for C restricted array declarations... " >&6; }
15805 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15806 $as_echo_n "(cached) " >&6
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h. */
15810 void fred (int x[__restrict]);
15819 if ac_fn_c_try_compile "$LINENO"; then :
15820 emacs_cv_c_restrict_arr=yes
15822 emacs_cv_c_restrict_arr=no
15824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15827 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15828 if test "$emacs_cv_c_restrict_arr" = yes; then
15830 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15835 # Set up the CFLAGS for real compilation, so we can substitute it.
15836 CFLAGS="$REAL_CFLAGS"
15837 CPPFLAGS="$REAL_CPPFLAGS"
15839 ## Hack to detect a buggy GCC version.
15840 if test "x$GCC" = xyes \
15841 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15842 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15843 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15844 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15847 version=$PACKAGE_VERSION
15849 ### Specify what sort of things we'll be editing into Makefile and config.h.
15850 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15874 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15875 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15876 ## end of LIBX_BASE, but nothing ever set it.
15881 ## Used in lwlib/Makefile.in.
15883 if test -n "${machfile}"; then
15884 M_FILE="\$(srcdir)/${machfile}"
15888 S_FILE="\$(srcdir)/${opsysfile}"
15899 cat >>confdefs.h <<_ACEOF
15900 #define EMACS_CONFIGURATION "${canonical}"
15904 cat >>confdefs.h <<_ACEOF
15905 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15908 if test -n "$machfile"; then
15910 cat >>confdefs.h <<_ACEOF
15911 #define config_machfile "${machfile}"
15916 cat >>confdefs.h <<_ACEOF
15917 #define config_opsysfile "${opsysfile}"
15924 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15926 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15929 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15931 if test "$HAVE_XFT" = "yes"; then
15932 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15933 elif test "$HAVE_FREETYPE" = "yes"; then
15934 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15944 if test "${USE_X_TOOLKIT}" != "none" ; then
15945 WIDGET_OBJ=widget.o
15947 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15949 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15951 $as_echo "#define USE_LUCID 1" >>confdefs.h
15953 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15955 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15960 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15961 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15965 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15966 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15967 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15971 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15972 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15975 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15981 case "$USE_X_TOOLKIT" in
15982 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15983 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15984 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15988 if test "$USE_X_TOOLKIT" = "none"; then
15989 LIBXT_OTHER="\$(LIBXSM)"
15990 OLDXMENU_TARGET="really-oldXMenu"
15992 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15993 OLDXMENU_TARGET="really-lwlib"
15997 ## The X Menu stuff is present in the X10 distribution, but missing
15998 ## from X11. If we have X10, just use the installed library;
15999 ## otherwise, use our own copy.
16000 if test "${HAVE_X11}" = "yes" ; then
16002 $as_echo "#define HAVE_X11 1" >>confdefs.h
16005 if test "$USE_X_TOOLKIT" = "none"; then
16006 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16008 OLDXMENU="\${lwlibdir}/liblw.a"
16010 LIBXMENU="\$(OLDXMENU)"
16011 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16012 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16014 ## For a syntactically valid Makefile; not actually used for anything.
16015 ## See comments in src/Makefile.in.
16017 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16018 if test "${HAVE_X_WINDOWS}" = "yes"; then
16027 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16040 if test "${HAVE_MENUS}" = "yes" ; then
16042 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16046 if test "${GNU_MALLOC}" = "yes" ; then
16048 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16053 if test "${REL_ALLOC}" = "yes" ; then
16055 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16058 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16062 if test "$opsys" = "cygwin"; then
16063 CYGWIN_OBJ="sheap.o"
16064 ## Cygwin differs because of its unexec().
16066 POST_ALLOC_OBJ=lastfile.o
16069 PRE_ALLOC_OBJ=lastfile.o
16076 # Configure gnulib here, now that we know LIBS.
16077 >>>>>>> MERGE-SOURCE
16089 LIBC_FATAL_STDERR_=1
16090 export LIBC_FATAL_STDERR_
16092 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16093 # for constant arguments. Useless!
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16095 $as_echo_n "checking for working alloca.h... " >&6; }
16096 if test "${ac_cv_working_alloca_h+set}" = set; then :
16097 $as_echo_n "(cached) " >&6
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16101 #include <alloca.h>
16105 char *p = (char *) alloca (2 * sizeof (int));
16111 if ac_fn_c_try_link "$LINENO"; then :
16112 ac_cv_working_alloca_h=yes
16114 ac_cv_working_alloca_h=no
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16120 $as_echo "$ac_cv_working_alloca_h" >&6; }
16121 if test $ac_cv_working_alloca_h = yes; then
16123 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16128 $as_echo_n "checking for alloca... " >&6; }
16129 if test "${ac_cv_func_alloca_works+set}" = set; then :
16130 $as_echo_n "(cached) " >&6
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16135 # define alloca __builtin_alloca
16138 # include <malloc.h>
16139 # define alloca _alloca
16141 # ifdef HAVE_ALLOCA_H
16142 # include <alloca.h>
16147 # ifndef alloca /* predefined by HP cc +Olibcalls */
16158 char *p = (char *) alloca (1);
16164 if ac_fn_c_try_link "$LINENO"; then :
16165 ac_cv_func_alloca_works=yes
16167 ac_cv_func_alloca_works=no
16169 rm -f core conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16173 $as_echo "$ac_cv_func_alloca_works" >&6; }
16175 if test $ac_cv_func_alloca_works = yes; then
16177 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16180 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16181 # that cause trouble. Some versions do not even contain alloca or
16182 # contain a buggy version. If you still want to use their alloca,
16183 # use ar to extract alloca.o from them instead of compiling alloca.c.
16189 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16191 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16195 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16196 if test "${ac_cv_os_cray+set}" = set; then :
16197 $as_echo_n "(cached) " >&6
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16201 #if defined CRAY && ! defined CRAY2
16208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16209 $EGREP "webecray" >/dev/null 2>&1; then :
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16218 $as_echo "$ac_cv_os_cray" >&6; }
16219 if test $ac_cv_os_cray = yes; then
16220 for ac_func in _getb67 GETB67 getb67; do
16221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16223 eval as_val=\$$as_ac_var
16224 if test "x$as_val" = x""yes; then :
16226 cat >>confdefs.h <<_ACEOF
16227 #define CRAY_STACKSEG_END $ac_func
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16237 $as_echo_n "checking stack direction for C alloca... " >&6; }
16238 if test "${ac_cv_c_stack_direction+set}" = set; then :
16239 $as_echo_n "(cached) " >&6
16241 if test "$cross_compiling" = yes; then :
16242 ac_cv_c_stack_direction=0
16244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16245 /* end confdefs.h. */
16246 $ac_includes_default
16248 find_stack_direction (int *addr, int depth)
16250 int dir, dummy = 0;
16253 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16254 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16255 return dir + dummy;
16259 main (int argc, char **argv)
16261 return find_stack_direction (0, argc + !argv + 20) < 0;
16264 if ac_fn_c_try_run "$LINENO"; then :
16265 ac_cv_c_stack_direction=1
16267 ac_cv_c_stack_direction=-1
16269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16270 conftest.$ac_objext conftest.beam conftest.$ac_ext
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16275 $as_echo "$ac_cv_c_stack_direction" >&6; }
16276 cat >>confdefs.h <<_ACEOF
16277 #define STACK_DIRECTION $ac_cv_c_stack_direction
16286 for ac_func in $ac_func_list
16288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16290 eval as_val=\$$as_ac_var
16291 if test "x$as_val" = x""yes; then :
16292 cat >>confdefs.h <<_ACEOF
16293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16303 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16304 if test "${ac_cv_c_bigendian+set}" = set; then :
16305 $as_echo_n "(cached) " >&6
16307 ac_cv_c_bigendian=unknown
16308 # See if we're dealing with a universal compiler.
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 #ifndef __APPLE_CC__
16312 not a universal capable compiler
16317 if ac_fn_c_try_compile "$LINENO"; then :
16319 # Check for potential -arch flags. It is not universal unless
16320 # there are at least two -arch flags with different values.
16323 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16324 if test -n "$ac_prev"; then
16326 i?86 | x86_64 | ppc | ppc64)
16327 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16330 ac_cv_c_bigendian=universal
16336 elif test "x$ac_word" = "x-arch"; then
16341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342 if test $ac_cv_c_bigendian = unknown; then
16343 # See if sys/param.h defines the BYTE_ORDER macro.
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16346 #include <sys/types.h>
16347 #include <sys/param.h>
16352 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16353 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16355 bogus endian macros
16362 if ac_fn_c_try_compile "$LINENO"; then :
16363 # It does; now see whether it defined to BIG_ENDIAN or not.
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 #include <sys/types.h>
16367 #include <sys/param.h>
16372 #if BYTE_ORDER != BIG_ENDIAN
16380 if ac_fn_c_try_compile "$LINENO"; then :
16381 ac_cv_c_bigendian=yes
16383 ac_cv_c_bigendian=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 if test $ac_cv_c_bigendian = unknown; then
16390 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 #include <limits.h>
16398 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16399 bogus endian macros
16406 if ac_fn_c_try_compile "$LINENO"; then :
16407 # It does; now see whether it defined to _BIG_ENDIAN or not.
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16410 #include <limits.h>
16415 #ifndef _BIG_ENDIAN
16423 if ac_fn_c_try_compile "$LINENO"; then :
16424 ac_cv_c_bigendian=yes
16426 ac_cv_c_bigendian=no
16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 if test $ac_cv_c_bigendian = unknown; then
16433 # Compile a test program.
16434 if test "$cross_compiling" = yes; then :
16435 # Try to guess by grepping values from an object file.
16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h. */
16438 short int ascii_mm[] =
16439 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16440 short int ascii_ii[] =
16441 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16442 int use_ascii (int i) {
16443 return ascii_mm[i] + ascii_ii[i];
16445 short int ebcdic_ii[] =
16446 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16447 short int ebcdic_mm[] =
16448 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16449 int use_ebcdic (int i) {
16450 return ebcdic_mm[i] + ebcdic_ii[i];
16457 return use_ascii (foo) == use_ebcdic (foo);
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16464 ac_cv_c_bigendian=yes
16466 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16467 if test "$ac_cv_c_bigendian" = unknown; then
16468 ac_cv_c_bigendian=no
16470 # finding both strings is unlikely to happen, but who knows?
16471 ac_cv_c_bigendian=unknown
16475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16479 $ac_includes_default
16484 /* Are we little or big endian? From Harbison&Steele. */
16488 char c[sizeof (long int)];
16491 return u.c[sizeof (long int) - 1] == 1;
16497 if ac_fn_c_try_run "$LINENO"; then :
16498 ac_cv_c_bigendian=no
16500 ac_cv_c_bigendian=yes
16502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16503 conftest.$ac_objext conftest.beam conftest.$ac_ext
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16509 $as_echo "$ac_cv_c_bigendian" >&6; }
16510 case $ac_cv_c_bigendian in #(
16512 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16518 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16522 as_fn_error "unknown endianness
16523 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16528 $as_echo_n "checking for inline... " >&6; }
16529 if test "${ac_cv_c_inline+set}" = set; then :
16530 $as_echo_n "(cached) " >&6
16533 for ac_kw in inline __inline__ __inline; do
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16536 #ifndef __cplusplus
16538 static $ac_kw foo_t static_foo () {return 0; }
16539 $ac_kw foo_t foo () {return 0; }
16543 if ac_fn_c_try_compile "$LINENO"; then :
16544 ac_cv_c_inline=$ac_kw
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 test "$ac_cv_c_inline" != no && break
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16552 $as_echo "$ac_cv_c_inline" >&6; }
16554 case $ac_cv_c_inline in
16557 case $ac_cv_c_inline in
16559 *) ac_val=$ac_cv_c_inline;;
16561 cat >>confdefs.h <<_ACEOF
16562 #ifndef __cplusplus
16563 #define inline $ac_val
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16571 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16572 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16573 $as_echo_n "(cached) " >&6
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16577 /* On HP-UX before 11.23, strtold returns a struct instead of
16578 long double. Reject implementations like that, by requiring
16579 compatibility with the C99 prototype. */
16580 #include <stdlib.h>
16581 static long double (*p) (char const *, char **) = strtold;
16583 test (char const *nptr, char **endptr)
16586 r = strtold (nptr, endptr);
16592 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16597 if ac_fn_c_try_link "$LINENO"; then :
16598 gl_cv_func_c99_strtold=yes
16600 gl_cv_func_c99_strtold=no
16602 rm -f core conftest.err conftest.$ac_objext \
16603 conftest$ac_exeext conftest.$ac_ext
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16606 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16607 if test $gl_cv_func_c99_strtold = yes; then
16609 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16619 GNULIB_EUIDACCESS=0;
16620 GNULIB_FACCESSAT=0;
16624 GNULIB_FTRUNCATE=0;
16626 GNULIB_GETDOMAINNAME=0;
16627 GNULIB_GETDTABLESIZE=0;
16628 GNULIB_GETGROUPS=0;
16629 GNULIB_GETHOSTNAME=0;
16631 GNULIB_GETLOGIN_R=0;
16632 GNULIB_GETPAGESIZE=0;
16633 GNULIB_GETUSERSHELL=0;
16634 GNULIB_GROUP_MEMBER=0;
16645 GNULIB_READLINKAT=0;
16649 GNULIB_SYMLINKAT=0;
16650 GNULIB_TTYNAME_R=0;
16651 GNULIB_UNISTD_H_GETOPT=0;
16652 GNULIB_UNISTD_H_NONBLOCKING=0;
16653 GNULIB_UNISTD_H_SIGPIPE=0;
16667 HAVE_GETDTABLESIZE=1;
16669 HAVE_GETHOSTNAME=1;
16671 HAVE_GETPAGESIZE=1;
16672 HAVE_GROUP_MEMBER=1;
16687 HAVE_DECL_ENVIRON=1;
16688 HAVE_DECL_FCHDIR=1;
16689 HAVE_DECL_GETDOMAINNAME=1;
16690 HAVE_DECL_GETLOGIN_R=1;
16691 HAVE_DECL_GETPAGESIZE=1;
16692 HAVE_DECL_GETUSERSHELL=1;
16693 HAVE_DECL_TTYNAME_R=1;
16695 HAVE_SYS_PARAM_H=0;
16700 REPLACE_FCHOWNAT=0;
16702 REPLACE_GETDOMAINNAME=0;
16703 REPLACE_GETLOGIN_R=0;
16704 REPLACE_GETGROUPS=0;
16705 REPLACE_GETPAGESIZE=0;
16713 REPLACE_READLINK=0;
16717 REPLACE_TTYNAME_R=0;
16719 REPLACE_UNLINKAT=0;
16722 UNISTD_H_HAVE_WINSOCK2_H=0;
16723 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16727 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16728 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16729 $as_echo_n "(cached) " >&6
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16734 #include <sys/types.h>
16735 #include <sys/stat.h>
16739 struct stat s; s.st_dm_mode;
16744 if ac_fn_c_try_compile "$LINENO"; then :
16745 ac_cv_struct_st_dm_mode=yes
16747 ac_cv_struct_st_dm_mode=no
16749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16752 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16754 if test $ac_cv_struct_st_dm_mode = yes; then
16756 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16761 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16762 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16768 cat >>confdefs.h <<_ACEOF
16769 #define HAVE_DECL_STRMODE $ac_have_decl
16775 GNULIB_CALLOC_POSIX=0;
16776 GNULIB_CANONICALIZE_FILE_NAME=0;
16777 GNULIB_GETLOADAVG=0;
16778 GNULIB_GETSUBOPT=0;
16780 GNULIB_MALLOC_POSIX=0;
16784 GNULIB_MKOSTEMPS=0;
16790 GNULIB_REALLOC_POSIX=0;
16797 GNULIB_SYSTEM_POSIX=0;
16803 HAVE_CANONICALIZE_FILE_NAME=1;
16804 HAVE_DECL_GETLOADAVG=1;
16818 HAVE_DECL_SETENV=1;
16822 HAVE_STRUCT_RANDOM_DATA=1;
16823 HAVE_SYS_LOADAVG_H=0;
16825 HAVE_DECL_UNSETENV=1;
16827 REPLACE_CANONICALIZE_FILE_NAME=0;
16833 REPLACE_REALPATH=0;
16836 REPLACE_UNSETENV=0;
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16842 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16843 if test "${gl_cv_have_include_next+set}" = set; then :
16844 $as_echo_n "(cached) " >&6
16846 rm -rf conftestd1a conftestd1b conftestd2
16847 mkdir conftestd1a conftestd1b conftestd2
16848 cat <<EOF > conftestd1a/conftest.h
16849 #define DEFINED_IN_CONFTESTD1
16850 #include_next <conftest.h>
16851 #ifdef DEFINED_IN_CONFTESTD2
16854 #error "include_next doesn't work"
16857 cat <<EOF > conftestd1b/conftest.h
16858 #define DEFINED_IN_CONFTESTD1
16860 #include_next <conftest.h>
16861 #ifdef DEFINED_IN_CONFTESTD2
16864 #error "include_next doesn't work"
16867 cat <<EOF > conftestd2/conftest.h
16868 #ifndef DEFINED_IN_CONFTESTD1
16869 #error "include_next test doesn't work"
16871 #define DEFINED_IN_CONFTESTD2
16873 gl_save_CPPFLAGS="$CPPFLAGS"
16874 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 #include <conftest.h>
16879 if ac_fn_c_try_compile "$LINENO"; then :
16880 gl_cv_have_include_next=yes
16882 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885 #include <conftest.h>
16887 if ac_fn_c_try_compile "$LINENO"; then :
16888 gl_cv_have_include_next=buggy
16890 gl_cv_have_include_next=no
16892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16896 CPPFLAGS="$gl_save_CPPFLAGS"
16897 rm -rf conftestd1a conftestd1b conftestd2
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16901 $as_echo "$gl_cv_have_include_next" >&6; }
16902 PRAGMA_SYSTEM_HEADER=
16903 if test $gl_cv_have_include_next = yes; then
16904 INCLUDE_NEXT=include_next
16905 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16906 if test -n "$GCC"; then
16907 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16910 if test $gl_cv_have_include_next = buggy; then
16911 INCLUDE_NEXT=include
16912 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16914 INCLUDE_NEXT=include
16915 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16922 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16923 if test "${gl_cv_pragma_columns+set}" = set; then :
16924 $as_echo_n "(cached) " >&6
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16935 $EGREP "choke me" >/dev/null 2>&1; then :
16936 gl_cv_pragma_columns=yes
16938 gl_cv_pragma_columns=no
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16945 $as_echo "$gl_cv_pragma_columns" >&6; }
16946 if test $gl_cv_pragma_columns = yes; then
16947 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16968 if test $gl_cv_have_include_next = yes; then
16969 gl_cv_next_getopt_h='<'getopt.h'>'
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16972 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16973 if test "${gl_cv_next_getopt_h+set}" = set; then :
16974 $as_echo_n "(cached) " >&6
16977 if test $ac_cv_header_getopt_h = yes; then
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 #include <getopt.h>
16986 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16987 *) gl_absname_cpp="$ac_cpp" ;;
16992 gl_dirsep_regex='[/\\]'
16995 gl_dirsep_regex='/'
16999 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'getopt.h#{
17000 s#.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*#\1#
17005 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17006 sed -n "$gl_absolute_header_sed"`'"'
17008 gl_cv_next_getopt_h='<'getopt.h'>'
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17014 $as_echo "$gl_cv_next_getopt_h" >&6; }
17016 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17018 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17020 gl_next_as_first_directive='<'getopt.h'>'
17022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17023 gl_next_as_first_directive=$gl_cv_next_getopt_h
17025 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17030 if test $ac_cv_header_getopt_h = yes; then
17039 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17040 for ac_header in getopt.h
17042 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17043 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_GETOPT_H 1
17049 gl_replace_getopt=yes
17056 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17057 for ac_func in getopt_long_only
17059 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17060 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17061 cat >>confdefs.h <<_ACEOF
17062 #define HAVE_GETOPT_LONG_ONLY 1
17066 gl_replace_getopt=yes
17072 if test -z "$gl_replace_getopt"; then
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17074 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17075 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17076 $as_echo_n "(cached) " >&6
17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080 /* end confdefs.h. */
17081 #include <unistd.h>
17085 int *p = &optreset; return optreset;
17090 if ac_fn_c_try_compile "$LINENO"; then :
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095 #include <getopt.h>
17099 return !getopt_clip;
17104 if ac_fn_c_try_compile "$LINENO"; then :
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113 gl_save_CPPFLAGS=$CPPFLAGS
17114 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17115 if test "$cross_compiling" = yes; then :
17117 mingw*) gl_cv_func_getopt_posix="guessing no";;
17118 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17119 *) gl_cv_func_getopt_posix="guessing yes";;
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17126 #include <unistd.h>
17127 #include <stdlib.h>
17128 #include <string.h>
17138 argv[argc++] = "program";
17139 argv[argc++] = "-a";
17140 argv[argc++] = "foo";
17141 argv[argc++] = "bar";
17143 optind = OPTIND_MIN;
17146 c = getopt (argc, argv, "ab");
17149 c = getopt (argc, argv, "ab");
17152 if (!(optind == 2))
17155 /* Some internal state exists at this point. */
17161 argv[argc++] = "program";
17162 argv[argc++] = "donald";
17163 argv[argc++] = "-p";
17164 argv[argc++] = "billy";
17165 argv[argc++] = "duck";
17166 argv[argc++] = "-a";
17167 argv[argc++] = "bar";
17169 optind = OPTIND_MIN;
17172 c = getopt (argc, argv, "+abp:q:");
17175 if (!(strcmp (argv[0], "program") == 0))
17177 if (!(strcmp (argv[1], "donald") == 0))
17179 if (!(strcmp (argv[2], "-p") == 0))
17181 if (!(strcmp (argv[3], "billy") == 0))
17183 if (!(strcmp (argv[4], "duck") == 0))
17185 if (!(strcmp (argv[5], "-a") == 0))
17187 if (!(strcmp (argv[6], "bar") == 0))
17189 if (!(optind == 1))
17192 /* Detect MacOS 10.5, AIX 7.1 bug. */
17194 char *argv[3] = { "program", "-ab", NULL };
17195 optind = OPTIND_MIN;
17197 if (getopt (2, argv, "ab:") != 'a')
17199 if (getopt (2, argv, "ab:") != '?')
17211 if ac_fn_c_try_run "$LINENO"; then :
17212 gl_cv_func_getopt_posix=yes
17214 gl_cv_func_getopt_posix=no
17216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17217 conftest.$ac_objext conftest.beam conftest.$ac_ext
17220 CPPFLAGS=$gl_save_CPPFLAGS
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17224 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17225 case "$gl_cv_func_getopt_posix" in
17226 *no) gl_replace_getopt=yes ;;
17230 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17232 $as_echo_n "checking for working GNU getopt function... " >&6; }
17233 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17234 $as_echo_n "(cached) " >&6
17236 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17237 # optstring is necessary for programs like m4 that have POSIX-mandated
17238 # semantics for supporting options interspersed with files.
17239 # Also, since getopt_long is a GNU extension, we require optind=0.
17240 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17241 # so take care to revert to the correct (non-)export state.
17242 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17243 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17244 xx) gl_had_POSIXLY_CORRECT=exported ;;
17245 x) gl_had_POSIXLY_CORRECT=yes ;;
17246 *) gl_had_POSIXLY_CORRECT= ;;
17249 export POSIXLY_CORRECT
17250 if test "$cross_compiling" = yes; then :
17251 case $host_os:$ac_cv_have_decl_optreset in
17252 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17253 *:yes) gl_cv_func_getopt_gnu=no;;
17254 *) gl_cv_func_getopt_gnu=yes;;
17258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17260 #include <getopt.h>
17261 #include <stddef.h>
17262 #include <string.h>
17264 #include <stdlib.h>
17265 #if defined __MACH__ && defined __APPLE__
17266 /* Avoid a crash on MacOS X. */
17267 #include <mach/mach.h>
17268 #include <mach/mach_error.h>
17269 #include <mach/thread_status.h>
17270 #include <mach/exception.h>
17271 #include <mach/task.h>
17272 #include <pthread.h>
17273 /* The exception port on which our thread listens. */
17274 static mach_port_t our_exception_port;
17275 /* The main function of the thread listening for exceptions of type
17278 mach_exception_thread (void *arg)
17280 /* Buffer for a message to be received. */
17282 mach_msg_header_t head;
17283 mach_msg_body_t msgh_body;
17286 mach_msg_return_t retval;
17287 /* Wait for a message on the exception port. */
17288 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17289 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17290 if (retval != MACH_MSG_SUCCESS)
17295 nocrash_init (void)
17297 mach_port_t self = mach_task_self ();
17298 /* Allocate a port on which the thread shall listen for exceptions. */
17299 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17301 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17302 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17303 MACH_MSG_TYPE_MAKE_SEND)
17305 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17307 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17308 /* Create the thread listening on the exception port. */
17309 pthread_attr_t attr;
17311 if (pthread_attr_init (&attr) == 0
17312 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17313 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17314 pthread_attr_destroy (&attr);
17315 /* Replace the exception port info for these exceptions with our own.
17316 Note that we replace the exception port for the entire task, not only
17317 for a particular thread. This has the effect that when our exception
17318 port gets the message, the thread specific exception port has already
17319 been asked, and we don't need to bother about it.
17320 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17321 task_set_exception_ports (self, mask, our_exception_port,
17322 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17327 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17328 /* Avoid a crash on native Windows. */
17329 #define WIN32_LEAN_AND_MEAN
17330 #include <windows.h>
17331 #include <winerror.h>
17333 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17335 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17337 case EXCEPTION_ACCESS_VIOLATION:
17338 case EXCEPTION_IN_PAGE_ERROR:
17339 case EXCEPTION_STACK_OVERFLOW:
17340 case EXCEPTION_GUARD_PAGE:
17341 case EXCEPTION_PRIV_INSTRUCTION:
17342 case EXCEPTION_ILLEGAL_INSTRUCTION:
17343 case EXCEPTION_DATATYPE_MISALIGNMENT:
17344 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17345 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17348 return EXCEPTION_CONTINUE_SEARCH;
17351 nocrash_init (void)
17353 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17356 /* Avoid a crash on POSIX systems. */
17357 #include <signal.h>
17358 /* A POSIX signal handler. */
17360 exception_handler (int sig)
17365 nocrash_init (void)
17368 signal (SIGSEGV, exception_handler);
17371 signal (SIGBUS, exception_handler);
17385 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17386 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17387 OSF/1 5.1, Solaris 10. */
17390 myargv[0] = "conftest";
17394 if (getopt (2, myargv, "+a") != '?')
17397 /* This code succeeds on glibc 2.8, mingw,
17398 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17399 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17401 char *argv[] = { "program", "-p", "foo", "bar", NULL };
17404 if (getopt (4, argv, "p::") != 'p')
17406 else if (optarg != NULL)
17408 else if (getopt (4, argv, "p::") != -1)
17410 else if (optind != 2)
17413 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17415 char *argv[] = { "program", "foo", "-p", NULL };
17417 if (getopt (3, argv, "-p") != 1)
17419 else if (getopt (3, argv, "-p") != 'p')
17422 /* This code fails on glibc 2.11. */
17424 char *argv[] = { "program", "-b", "-a", NULL };
17425 optind = opterr = 0;
17426 if (getopt (3, argv, "+:a:b") != 'b')
17428 else if (getopt (3, argv, "+:a:b") != ':')
17437 if ac_fn_c_try_run "$LINENO"; then :
17438 gl_cv_func_getopt_gnu=yes
17440 gl_cv_func_getopt_gnu=no
17442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17443 conftest.$ac_objext conftest.beam conftest.$ac_ext
17446 case $gl_had_POSIXLY_CORRECT in
17448 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17449 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17454 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17455 if test "$gl_cv_func_getopt_gnu" = "no"; then
17456 gl_replace_getopt=yes
17467 if test -n "$gl_replace_getopt"; then :
17474 if test $REPLACE_GETOPT = 1; then
17478 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17482 GNULIB_UNISTD_H_GETOPT=1
17485 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17486 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17492 cat >>confdefs.h <<_ACEOF
17493 #define HAVE_DECL_GETENV $ac_have_decl
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17498 $as_echo_n "checking for unsigned long long int... " >&6; }
17499 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17500 $as_echo_n "(cached) " >&6
17502 ac_cv_type_unsigned_long_long_int=yes
17503 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17507 /* For now, do not test the preprocessor; as of 2007 there are too many
17508 implementations with broken preprocessors. Perhaps this can
17509 be revisited in 2012. In the meantime, code should not expect
17510 #if to work with literals wider than 32 bits. */
17511 /* Test literals. */
17512 long long int ll = 9223372036854775807ll;
17513 long long int nll = -9223372036854775807LL;
17514 unsigned long long int ull = 18446744073709551615ULL;
17515 /* Test constant expressions. */
17516 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17518 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17524 /* Test availability of runtime routines for shift and division. */
17525 long long int llmax = 9223372036854775807ll;
17526 unsigned long long int ullmax = 18446744073709551615ull;
17527 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17528 | (llmax / ll) | (llmax % ll)
17529 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17530 | (ullmax / ull) | (ullmax % ull));
17536 if ac_fn_c_try_link "$LINENO"; then :
17539 ac_cv_type_unsigned_long_long_int=no
17541 rm -f core conftest.err conftest.$ac_objext \
17542 conftest$ac_exeext conftest.$ac_ext
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17546 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17547 if test $ac_cv_type_unsigned_long_long_int = yes; then
17549 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17556 $as_echo_n "checking for long long int... " >&6; }
17557 if test "${ac_cv_type_long_long_int+set}" = set; then :
17558 $as_echo_n "(cached) " >&6
17560 ac_cv_type_long_long_int=yes
17561 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17562 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17563 if test $ac_cv_type_long_long_int = yes; then
17564 if test "$cross_compiling" = yes; then :
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569 #include <limits.h>
17572 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17573 # define LLONG_MAX (HALF - 1 + HALF)
17578 long long int n = 1;
17582 long long int m = n << i;
17585 if (LLONG_MAX / 2 < m)
17593 if ac_fn_c_try_run "$LINENO"; then :
17596 ac_cv_type_long_long_int=no
17598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17599 conftest.$ac_objext conftest.beam conftest.$ac_ext
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17606 $as_echo "$ac_cv_type_long_long_int" >&6; }
17607 if test $ac_cv_type_long_long_int = yes; then
17609 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17618 gl_cv_c_multiarch=no
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17621 #ifndef __APPLE_CC__
17622 not a universal capable compiler
17627 if ac_fn_c_try_compile "$LINENO"; then :
17631 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17632 if test -n "$prev"; then
17634 i?86 | x86_64 | ppc | ppc64)
17635 if test -z "$arch" || test "$arch" = "$word"; then
17638 gl_cv_c_multiarch=yes
17644 if test "x$word" = "x-arch"; then
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652 if test $gl_cv_c_multiarch = yes; then
17653 APPLE_UNIVERSAL_BUILD=1
17655 APPLE_UNIVERSAL_BUILD=0
17662 if test $ac_cv_type_long_long_int = yes; then
17663 HAVE_LONG_LONG_INT=1
17665 HAVE_LONG_LONG_INT=0
17669 if test $ac_cv_type_unsigned_long_long_int = yes; then
17670 HAVE_UNSIGNED_LONG_LONG_INT=1
17672 HAVE_UNSIGNED_LONG_LONG_INT=0
17677 if test $ac_cv_header_wchar_h = yes; then
17684 if test $ac_cv_header_inttypes_h = yes; then
17691 if test $ac_cv_header_sys_types_h = yes; then
17707 if test $gl_cv_have_include_next = yes; then
17708 gl_cv_next_stdint_h='<'stdint.h'>'
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17711 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17712 if test "${gl_cv_next_stdint_h+set}" = set; then :
17713 $as_echo_n "(cached) " >&6
17716 if test $ac_cv_header_stdint_h = yes; then
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17721 #include <stdint.h>
17725 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17726 *) gl_absname_cpp="$ac_cpp" ;;
17731 gl_dirsep_regex='[/\\]'
17734 gl_dirsep_regex='/'
17738 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdint.h#{
17739 s#.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*#\1#
17744 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17745 sed -n "$gl_absolute_header_sed"`'"'
17747 gl_cv_next_stdint_h='<'stdint.h'>'
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17753 $as_echo "$gl_cv_next_stdint_h" >&6; }
17755 NEXT_STDINT_H=$gl_cv_next_stdint_h
17757 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17759 gl_next_as_first_directive='<'stdint.h'>'
17761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17762 gl_next_as_first_directive=$gl_cv_next_stdint_h
17764 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17769 if test $ac_cv_header_stdint_h = yes; then
17776 if test $ac_cv_header_stdint_h = yes; then
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17778 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17779 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17780 $as_echo_n "(cached) " >&6
17782 gl_cv_header_working_stdint_h=no
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h. */
17787 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17788 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17789 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17790 #include <stdint.h>
17791 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17792 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17793 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17797 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17798 included before <wchar.h>. */
17799 #include <stddef.h>
17800 #include <signal.h>
17802 # include <stdio.h>
17804 # include <wchar.h>
17809 int8_t a1 = INT8_MAX;
17810 int8_t a1min = INT8_MIN;
17813 int16_t a2 = INT16_MAX;
17814 int16_t a2min = INT16_MIN;
17817 int32_t a3 = INT32_MAX;
17818 int32_t a3min = INT32_MIN;
17821 int64_t a4 = INT64_MAX;
17822 int64_t a4min = INT64_MIN;
17825 uint8_t b1 = UINT8_MAX;
17827 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17830 uint16_t b2 = UINT16_MAX;
17833 uint32_t b3 = UINT32_MAX;
17836 uint64_t b4 = UINT64_MAX;
17838 int_least8_t c1 = INT8_C (0x7f);
17839 int_least8_t c1max = INT_LEAST8_MAX;
17840 int_least8_t c1min = INT_LEAST8_MIN;
17841 int_least16_t c2 = INT16_C (0x7fff);
17842 int_least16_t c2max = INT_LEAST16_MAX;
17843 int_least16_t c2min = INT_LEAST16_MIN;
17844 int_least32_t c3 = INT32_C (0x7fffffff);
17845 int_least32_t c3max = INT_LEAST32_MAX;
17846 int_least32_t c3min = INT_LEAST32_MIN;
17847 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17848 int_least64_t c4max = INT_LEAST64_MAX;
17849 int_least64_t c4min = INT_LEAST64_MIN;
17850 uint_least8_t d1 = UINT8_C (0xff);
17851 uint_least8_t d1max = UINT_LEAST8_MAX;
17852 uint_least16_t d2 = UINT16_C (0xffff);
17853 uint_least16_t d2max = UINT_LEAST16_MAX;
17854 uint_least32_t d3 = UINT32_C (0xffffffff);
17855 uint_least32_t d3max = UINT_LEAST32_MAX;
17856 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17857 uint_least64_t d4max = UINT_LEAST64_MAX;
17858 int_fast8_t e1 = INT_FAST8_MAX;
17859 int_fast8_t e1min = INT_FAST8_MIN;
17860 int_fast16_t e2 = INT_FAST16_MAX;
17861 int_fast16_t e2min = INT_FAST16_MIN;
17862 int_fast32_t e3 = INT_FAST32_MAX;
17863 int_fast32_t e3min = INT_FAST32_MIN;
17864 int_fast64_t e4 = INT_FAST64_MAX;
17865 int_fast64_t e4min = INT_FAST64_MIN;
17866 uint_fast8_t f1 = UINT_FAST8_MAX;
17867 uint_fast16_t f2 = UINT_FAST16_MAX;
17868 uint_fast32_t f3 = UINT_FAST32_MAX;
17869 uint_fast64_t f4 = UINT_FAST64_MAX;
17871 intptr_t g = INTPTR_MAX;
17872 intptr_t gmin = INTPTR_MIN;
17875 uintptr_t h = UINTPTR_MAX;
17877 intmax_t i = INTMAX_MAX;
17878 uintmax_t j = UINTMAX_MAX;
17880 #include <limits.h> /* for CHAR_BIT */
17881 #define TYPE_MINIMUM(t) \
17882 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17883 #define TYPE_MAXIMUM(t) \
17884 ((t) ((t) 0 < (t) -1 \
17886 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17889 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17890 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17892 /* Detect bug in FreeBSD 6.0 / ia64. */
17893 int check_SIG_ATOMIC:
17894 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17895 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17897 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17899 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17900 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17902 /* Detect bug in mingw. */
17904 WINT_MIN == TYPE_MINIMUM (wint_t)
17905 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17908 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17910 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17911 int check_UINT16_C:
17912 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17914 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17916 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17919 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17922 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17925 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17927 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17928 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17929 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17930 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17931 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17932 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17933 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17934 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17935 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17936 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17937 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17948 if ac_fn_c_try_compile "$LINENO"; then :
17949 if test "$cross_compiling" = yes; then :
17950 gl_cv_header_working_stdint_h=yes
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954 /* end confdefs.h. */
17957 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17958 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17959 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17960 #include <stdint.h>
17963 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17964 included before <wchar.h>. */
17965 #include <stddef.h>
17966 #include <signal.h>
17968 # include <stdio.h>
17970 # include <wchar.h>
17975 #include <string.h>
17976 #define MVAL(macro) MVAL1(macro)
17977 #define MVAL1(expression) #expression
17978 static const char *macro_values[] =
18012 for (mv = macro_values; *mv != NULL; mv++)
18014 const char *value = *mv;
18015 /* Test whether it looks like a cast expression. */
18016 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18017 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18018 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18019 || strncmp (value, "((int)"/*)*/, 6) == 0
18020 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18021 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18022 return mv - macro_values + 1;
18030 if ac_fn_c_try_run "$LINENO"; then :
18031 gl_cv_header_working_stdint_h=yes
18033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18034 conftest.$ac_objext conftest.beam conftest.$ac_ext
18039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18043 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18045 if test "$gl_cv_header_working_stdint_h" = yes; then
18048 for ac_header in sys/inttypes.h sys/bitypes.h
18050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18051 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18052 eval as_val=\$$as_ac_Header
18053 if test "x$as_val" = x""yes; then :
18054 cat >>confdefs.h <<_ACEOF
18055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18062 if test $ac_cv_header_sys_inttypes_h = yes; then
18063 HAVE_SYS_INTTYPES_H=1
18065 HAVE_SYS_INTTYPES_H=0
18068 if test $ac_cv_header_sys_bitypes_h = yes; then
18069 HAVE_SYS_BITYPES_H=1
18071 HAVE_SYS_BITYPES_H=0
18077 if test $APPLE_UNIVERSAL_BUILD = 0; then
18080 for gltype in ptrdiff_t size_t ; do
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18082 $as_echo_n "checking for bit size of $gltype... " >&6; }
18083 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18084 $as_echo_n "(cached) " >&6
18086 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18087 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18088 included before <wchar.h>. */
18089 #include <stddef.h>
18090 #include <signal.h>
18092 # include <stdio.h>
18094 # include <wchar.h>
18097 #include <limits.h>"; then :
18103 eval gl_cv_bitsizeof_${gltype}=\$result
18106 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18109 eval result=\$gl_cv_bitsizeof_${gltype}
18110 if test $result = unknown; then
18113 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18114 cat >>confdefs.h <<_ACEOF
18115 #define BITSIZEOF_${GLTYPE} $result
18118 eval BITSIZEOF_${GLTYPE}=\$result
18125 for gltype in sig_atomic_t wchar_t wint_t ; do
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18127 $as_echo_n "checking for bit size of $gltype... " >&6; }
18128 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18129 $as_echo_n "(cached) " >&6
18131 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18132 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18133 included before <wchar.h>. */
18134 #include <stddef.h>
18135 #include <signal.h>
18137 # include <stdio.h>
18139 # include <wchar.h>
18142 #include <limits.h>"; then :
18148 eval gl_cv_bitsizeof_${gltype}=\$result
18151 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18153 $as_echo "$ac_res" >&6; }
18154 eval result=\$gl_cv_bitsizeof_${gltype}
18155 if test $result = unknown; then
18158 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18159 cat >>confdefs.h <<_ACEOF
18160 #define BITSIZEOF_${GLTYPE} $result
18163 eval BITSIZEOF_${GLTYPE}=\$result
18169 for gltype in sig_atomic_t wchar_t wint_t ; do
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18171 $as_echo_n "checking whether $gltype is signed... " >&6; }
18172 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18173 $as_echo_n "(cached) " >&6
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18178 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18179 included before <wchar.h>. */
18180 #include <stddef.h>
18181 #include <signal.h>
18183 # include <stdio.h>
18185 # include <wchar.h>
18188 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18197 if ac_fn_c_try_compile "$LINENO"; then :
18202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18203 eval gl_cv_type_${gltype}_signed=\$result
18206 eval ac_res=\$gl_cv_type_${gltype}_signed
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18208 $as_echo "$ac_res" >&6; }
18209 eval result=\$gl_cv_type_${gltype}_signed
18210 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18211 if test "$result" = yes; then
18212 cat >>confdefs.h <<_ACEOF
18213 #define HAVE_SIGNED_${GLTYPE} 1
18216 eval HAVE_SIGNED_${GLTYPE}=1
18218 eval HAVE_SIGNED_${GLTYPE}=0
18223 gl_cv_type_ptrdiff_t_signed=yes
18224 gl_cv_type_size_t_signed=no
18225 if test $APPLE_UNIVERSAL_BUILD = 0; then
18228 for gltype in ptrdiff_t size_t ; do
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18230 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18231 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18232 $as_echo_n "(cached) " >&6
18234 eval gl_cv_type_${gltype}_suffix=no
18235 eval result=\$gl_cv_type_${gltype}_signed
18236 if test "$result" = yes; then
18241 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18243 '') gltype1='int';;
18244 l) gltype1='long int';;
18245 ll) gltype1='long long int';;
18246 i64) gltype1='__int64';;
18247 u) gltype1='unsigned int';;
18248 ul) gltype1='unsigned long int';;
18249 ull) gltype1='unsigned long long int';;
18250 ui64)gltype1='unsigned __int64';;
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18255 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18256 included before <wchar.h>. */
18257 #include <stddef.h>
18258 #include <signal.h>
18260 # include <stdio.h>
18262 # include <wchar.h>
18265 extern $gltype foo;
18266 extern $gltype1 foo;
18275 if ac_fn_c_try_compile "$LINENO"; then :
18276 eval gl_cv_type_${gltype}_suffix=\$glsuf
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 eval result=\$gl_cv_type_${gltype}_suffix
18280 test "$result" != no && break
18283 eval ac_res=\$gl_cv_type_${gltype}_suffix
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18285 $as_echo "$ac_res" >&6; }
18286 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18287 eval result=\$gl_cv_type_${gltype}_suffix
18288 test "$result" = no && result=
18289 eval ${GLTYPE}_SUFFIX=\$result
18290 cat >>confdefs.h <<_ACEOF
18291 #define ${GLTYPE}_SUFFIX $result
18300 for gltype in sig_atomic_t wchar_t wint_t ; do
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18302 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18303 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18304 $as_echo_n "(cached) " >&6
18306 eval gl_cv_type_${gltype}_suffix=no
18307 eval result=\$gl_cv_type_${gltype}_signed
18308 if test "$result" = yes; then
18313 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18315 '') gltype1='int';;
18316 l) gltype1='long int';;
18317 ll) gltype1='long long int';;
18318 i64) gltype1='__int64';;
18319 u) gltype1='unsigned int';;
18320 ul) gltype1='unsigned long int';;
18321 ull) gltype1='unsigned long long int';;
18322 ui64)gltype1='unsigned __int64';;
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18327 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18328 included before <wchar.h>. */
18329 #include <stddef.h>
18330 #include <signal.h>
18332 # include <stdio.h>
18334 # include <wchar.h>
18337 extern $gltype foo;
18338 extern $gltype1 foo;
18347 if ac_fn_c_try_compile "$LINENO"; then :
18348 eval gl_cv_type_${gltype}_suffix=\$glsuf
18350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18351 eval result=\$gl_cv_type_${gltype}_suffix
18352 test "$result" != no && break
18355 eval ac_res=\$gl_cv_type_${gltype}_suffix
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18357 $as_echo "$ac_res" >&6; }
18358 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18359 eval result=\$gl_cv_type_${gltype}_suffix
18360 test "$result" = no && result=
18361 eval ${GLTYPE}_SUFFIX=\$result
18362 cat >>confdefs.h <<_ACEOF
18363 #define ${GLTYPE}_SUFFIX $result
18373 if test -n "$STDINT_H"; then
18374 GL_GENERATE_STDINT_H_TRUE=
18375 GL_GENERATE_STDINT_H_FALSE='#'
18377 GL_GENERATE_STDINT_H_TRUE='#'
18378 GL_GENERATE_STDINT_H_FALSE=
18387 GNULIB_STRTOIMAX=0;
18388 GNULIB_STRTOUMAX=0;
18389 HAVE_DECL_IMAXABS=1;
18390 HAVE_DECL_IMAXDIV=1;
18391 HAVE_DECL_STRTOIMAX=1;
18392 HAVE_DECL_STRTOUMAX=1;
18393 INT32_MAX_LT_INTMAX_MAX=1;
18394 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18395 PRI_MACROS_BROKEN=0;
18396 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18397 UINT32_MAX_LT_UINTMAX_MAX=1;
18398 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18414 if test $gl_cv_have_include_next = yes; then
18415 gl_cv_next_inttypes_h='<'inttypes.h'>'
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18418 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18419 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18420 $as_echo_n "(cached) " >&6
18423 if test $ac_cv_header_inttypes_h = yes; then
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 #include <inttypes.h>
18432 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18433 *) gl_absname_cpp="$ac_cpp" ;;
18438 gl_dirsep_regex='[/\\]'
18441 gl_dirsep_regex='/'
18445 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'inttypes.h#{
18446 s#.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*#\1#
18451 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18452 sed -n "$gl_absolute_header_sed"`'"'
18454 gl_cv_next_inttypes_h='<'inttypes.h'>'
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18460 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18462 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18464 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18465 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18466 gl_next_as_first_directive='<'inttypes.h'>'
18468 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18469 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18471 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18480 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18498 GNULIB_UTIMENSAT=0;
18512 REPLACE_FUTIMENS=0;
18518 REPLACE_UTIMENSAT=0;
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18524 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18525 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18526 $as_echo_n "(cached) " >&6
18528 rm -f conftest.sym conftest.file
18529 echo >conftest.file
18530 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18531 if test "$cross_compiling" = yes; then :
18532 # When cross-compiling, be pessimistic so we will end up using the
18533 # replacement version of lstat that checks for trailing slashes and
18534 # calls lstat a second time when necessary.
18535 gl_cv_func_lstat_dereferences_slashed_symlink=no
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18540 $ac_includes_default
18545 /* Linux will dereference the symlink and fail, as required by
18546 POSIX. That is better in the sense that it means we will not
18547 have to compile and use the lstat wrapper. */
18548 return lstat ("conftest.sym/", &sbuf) == 0;
18554 if ac_fn_c_try_run "$LINENO"; then :
18555 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18557 gl_cv_func_lstat_dereferences_slashed_symlink=no
18559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18560 conftest.$ac_objext conftest.beam conftest.$ac_ext
18564 # If the 'ln -s' command failed, then we probably don't even
18565 # have an lstat function.
18566 gl_cv_func_lstat_dereferences_slashed_symlink=no
18568 rm -f conftest.sym conftest.file
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18572 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18573 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18575 cat >>confdefs.h <<_ACEOF
18576 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18582 GNULIB_NANOSLEEP=0;
18586 HAVE_DECL_LOCALTIME_R=1;
18590 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18591 REPLACE_MKTIME=GNULIB_PORTCHECK;
18592 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18593 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18602 GNULIB_PTHREAD_SIGMASK=0;
18603 GNULIB_SIGNAL_H_SIGPIPE=0;
18604 GNULIB_SIGPROCMASK=0;
18605 GNULIB_SIGACTION=0;
18606 HAVE_POSIX_SIGNALBLOCKING=1;
18607 HAVE_PTHREAD_SIGMASK=1;
18611 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18613 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18615 HAVE_SIGHANDLER_T=1;
18616 REPLACE_PTHREAD_SIGMASK=0;
18621 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18622 #include <signal.h>
18623 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18624 #include <sys/types.h>
18627 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18629 cat >>confdefs.h <<_ACEOF
18630 #define HAVE_SIGSET_T 1
18633 gl_cv_type_sigset_t=yes
18635 gl_cv_type_sigset_t=no
18638 if test $gl_cv_type_sigset_t != yes; then
18644 >>>>>>> MERGE-SOURCE
18647 if test $ac_cv_header_sys_socket_h = no; then
18648 for ac_header in ws2tcpip.h
18650 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18651 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18652 cat >>confdefs.h <<_ACEOF
18653 #define HAVE_WS2TCPIP_H 1
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18663 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18664 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18665 $as_echo_n "(cached) " >&6
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18670 #include <stdbool.h>
18672 "error: bool is not defined"
18675 "error: false is not defined"
18678 "error: false is not 0"
18681 "error: true is not defined"
18684 "error: true is not 1"
18686 #ifndef __bool_true_false_are_defined
18687 "error: __bool_true_false_are_defined is not defined"
18690 struct s { _Bool s: 1; _Bool t; } s;
18692 char a[true == 1 ? 1 : -1];
18693 char b[false == 0 ? 1 : -1];
18694 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18695 char d[(bool) 0.5 == true ? 1 : -1];
18696 /* See body of main program for 'e'. */
18697 char f[(_Bool) 0.0 == false ? 1 : -1];
18699 char h[sizeof (_Bool)];
18700 char i[sizeof s.t];
18701 enum { j = false, k = true, l = false * true, m = true * 256 };
18702 /* The following fails for
18703 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18705 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18706 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18707 /* Catch a bug in an HP-UX C compiler. See
18708 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18709 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18721 /* Refer to every declared value, to avoid compiler optimizations. */
18722 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18723 + !m + !n + !o + !p + !q + !pq);
18729 if ac_fn_c_try_compile "$LINENO"; then :
18730 ac_cv_header_stdbool_h=yes
18732 ac_cv_header_stdbool_h=no
18734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18737 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18738 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18739 if test "x$ac_cv_type__Bool" = x""yes; then :
18741 cat >>confdefs.h <<_ACEOF
18742 #define HAVE__BOOL 1
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18755 $as_echo_n "checking for wchar_t... " >&6; }
18756 if test "${gt_cv_c_wchar_t+set}" = set; then :
18757 $as_echo_n "(cached) " >&6
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18761 #include <stddef.h>
18762 wchar_t foo = (wchar_t)'\0';
18771 if ac_fn_c_try_compile "$LINENO"; then :
18772 gt_cv_c_wchar_t=yes
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18779 $as_echo "$gt_cv_c_wchar_t" >&6; }
18780 if test $gt_cv_c_wchar_t = yes; then
18782 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18794 GNULIB_FPRINTF_POSIX=0;
18811 GNULIB_OBSTACK_PRINTF=0;
18812 GNULIB_OBSTACK_PRINTF_POSIX=0;
18816 GNULIB_PRINTF_POSIX=0;
18825 GNULIB_SPRINTF_POSIX=0;
18826 GNULIB_STDIO_H_NONBLOCKING=0;
18827 GNULIB_STDIO_H_SIGPIPE=0;
18829 GNULIB_VASPRINTF=0;
18834 GNULIB_VFPRINTF_POSIX=0;
18836 GNULIB_VPRINTF_POSIX=0;
18837 GNULIB_VSNPRINTF=0;
18838 GNULIB_VSPRINTF_POSIX=0;
18839 HAVE_DECL_FPURGE=1;
18840 HAVE_DECL_FSEEKO=1;
18841 HAVE_DECL_FTELLO=1;
18842 HAVE_DECL_GETDELIM=1;
18843 HAVE_DECL_GETLINE=1;
18844 HAVE_DECL_OBSTACK_PRINTF=1;
18845 HAVE_DECL_SNPRINTF=1;
18846 HAVE_DECL_VSNPRINTF=1;
18864 REPLACE_GETDELIM=0;
18866 REPLACE_OBSTACK_PRINTF=0;
18872 REPLACE_RENAMEAT=0;
18873 REPLACE_SNPRINTF=0;
18875 REPLACE_STDIO_READ_FUNCS=0;
18876 REPLACE_STDIO_WRITE_FUNCS=0;
18878 REPLACE_VASPRINTF=0;
18879 REPLACE_VDPRINTF=0;
18880 REPLACE_VFPRINTF=0;
18882 REPLACE_VSNPRINTF=0;
18883 REPLACE_VSPRINTF=0;
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18886 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18887 if test "${ac_cv_struct_tm+set}" = set; then :
18888 $as_echo_n "(cached) " >&6
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #include <sys/types.h>
18899 int *p = &tm.tm_sec;
18905 if ac_fn_c_try_compile "$LINENO"; then :
18906 ac_cv_struct_tm=time.h
18908 ac_cv_struct_tm=sys/time.h
18910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18913 $as_echo "$ac_cv_struct_tm" >&6; }
18914 if test $ac_cv_struct_tm = sys/time.h; then
18916 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18920 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18921 #include <$ac_cv_struct_tm>
18924 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18926 cat >>confdefs.h <<_ACEOF
18927 #define HAVE_STRUCT_TM_TM_ZONE 1
18933 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18935 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18938 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18940 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18946 cat >>confdefs.h <<_ACEOF
18947 #define HAVE_DECL_TZNAME $ac_have_decl
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18951 $as_echo_n "checking for tzname... " >&6; }
18952 if test "${ac_cv_var_tzname+set}" = set; then :
18953 $as_echo_n "(cached) " >&6
18955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18958 #if !HAVE_DECL_TZNAME
18959 extern char *tzname[];
18965 return tzname[0][0];
18970 if ac_fn_c_try_link "$LINENO"; then :
18971 ac_cv_var_tzname=yes
18973 ac_cv_var_tzname=no
18975 rm -f core conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18979 $as_echo "$ac_cv_var_tzname" >&6; }
18980 if test $ac_cv_var_tzname = yes; then
18982 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18988 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18990 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18992 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19003 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19004 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19010 cat >>confdefs.h <<_ACEOF
19011 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19016 >>>>>>> MERGE-SOURCE
19017 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19018 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19024 cat >>confdefs.h <<_ACEOF
19025 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19031 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19032 if test "${ac_cv_header_stat_broken+set}" = set; then :
19033 $as_echo_n "(cached) " >&6
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19037 #include <sys/types.h>
19038 #include <sys/stat.h>
19040 #if defined S_ISBLK && defined S_IFDIR
19041 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19044 #if defined S_ISBLK && defined S_IFCHR
19045 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19048 #if defined S_ISLNK && defined S_IFREG
19049 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19052 #if defined S_ISSOCK && defined S_IFREG
19053 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19057 if ac_fn_c_try_compile "$LINENO"; then :
19058 ac_cv_header_stat_broken=no
19060 ac_cv_header_stat_broken=yes
19062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19065 $as_echo "$ac_cv_header_stat_broken" >&6; }
19066 if test $ac_cv_header_stat_broken = yes; then
19068 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19075 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19076 if test "${ac_cv_c_restrict+set}" = set; then :
19077 $as_echo_n "(cached) " >&6
19079 ac_cv_c_restrict=no
19080 # The order here caters to the fact that C++ does not require restrict.
19081 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19084 typedef int * int_ptr;
19085 int foo (int_ptr $ac_kw ip) {
19092 int * $ac_kw t = s;
19099 if ac_fn_c_try_compile "$LINENO"; then :
19100 ac_cv_c_restrict=$ac_kw
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103 test "$ac_cv_c_restrict" != no && break
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19108 $as_echo "$ac_cv_c_restrict" >&6; }
19110 case $ac_cv_c_restrict in
19112 no) $as_echo "#define restrict /**/" >>confdefs.h
19114 *) cat >>confdefs.h <<_ACEOF
19115 #define restrict $ac_cv_c_restrict
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19125 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19126 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19127 $as_echo_n "(cached) " >&6
19129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19130 /* end confdefs.h. */
19136 static struct timespec x; x.tv_sec = x.tv_nsec;
19141 if ac_fn_c_try_compile "$LINENO"; then :
19142 gl_cv_sys_struct_timespec_in_time_h=yes
19144 gl_cv_sys_struct_timespec_in_time_h=no
19146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19149 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19151 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19152 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19153 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19154 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19155 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19158 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19159 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19160 $as_echo_n "(cached) " >&6
19162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19164 #include <sys/time.h>
19169 static struct timespec x; x.tv_sec = x.tv_nsec;
19174 if ac_fn_c_try_compile "$LINENO"; then :
19175 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19177 gl_cv_sys_struct_timespec_in_sys_time_h=no
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19182 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19183 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19184 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19187 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19188 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19189 $as_echo_n "(cached) " >&6
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19193 #include <pthread.h>
19198 static struct timespec x; x.tv_sec = x.tv_nsec;
19203 if ac_fn_c_try_compile "$LINENO"; then :
19204 gl_cv_sys_struct_timespec_in_pthread_h=yes
19206 gl_cv_sys_struct_timespec_in_pthread_h=no
19208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19211 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19212 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19213 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19232 if test $gl_cv_have_include_next = yes; then
19233 gl_cv_next_time_h='<'time.h'>'
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19236 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19237 if test "${gl_cv_next_time_h+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19242 /* end confdefs.h. */
19247 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19248 *) gl_absname_cpp="$ac_cpp" ;;
19253 gl_dirsep_regex='[/\\]'
19256 gl_dirsep_regex='/'
19260 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'time.h#{
19261 s#.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*#\1#
19266 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19267 sed -n "$gl_absolute_header_sed"`'"'
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19272 $as_echo "$gl_cv_next_time_h" >&6; }
19274 NEXT_TIME_H=$gl_cv_next_time_h
19276 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19278 gl_next_as_first_directive='<'time.h'>'
19280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19281 gl_next_as_first_directive=$gl_cv_next_time_h
19283 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19292 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19293 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19299 cat >>confdefs.h <<_ACEOF
19300 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19307 GL_COND_LIBTOOL_TRUE=
19308 GL_COND_LIBTOOL_FALSE='#'
19310 GL_COND_LIBTOOL_TRUE='#'
19311 GL_COND_LIBTOOL_FALSE=
19314 gl_cond_libtool=false
19327 gl_source_base='lib'
19330 if test $ac_cv_func_alloca_works = no; then
19334 # Define an additional variable used in the Makefile substitution.
19335 if test $ac_cv_working_alloca_h = yes; then
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19337 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19338 if test "${gl_cv_rpl_alloca+set}" = set; then :
19339 $as_echo_n "(cached) " >&6
19342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343 /* end confdefs.h. */
19345 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19351 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19352 gl_cv_rpl_alloca=yes
19354 gl_cv_rpl_alloca=no
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19361 $as_echo "$gl_cv_rpl_alloca" >&6; }
19362 if test $gl_cv_rpl_alloca = yes; then
19364 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19374 if test -n "$ALLOCA_H"; then
19375 GL_GENERATE_ALLOCA_H_TRUE=
19376 GL_GENERATE_ALLOCA_H_FALSE='#'
19378 GL_GENERATE_ALLOCA_H_TRUE='#'
19379 GL_GENERATE_ALLOCA_H_FALSE=
19408 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19411 if test $HAVE_DUP2 = 1; then
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19413 $as_echo_n "checking whether dup2 works... " >&6; }
19414 if test "${gl_cv_func_dup2_works+set}" = set; then :
19415 $as_echo_n "(cached) " >&6
19417 if test "$cross_compiling" = yes; then :
19419 mingw*) # on this platform, dup2 always returns 0 for success
19420 gl_cv_func_dup2_works=no;;
19421 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19422 gl_cv_func_dup2_works=no;;
19423 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19424 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19425 gl_cv_func_dup2_works=no;;
19426 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19427 gl_cv_func_dup2_works=no;;
19428 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19429 gl_cv_func_dup2_works=no;;
19430 *) gl_cv_func_dup2_works=yes;;
19433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19434 /* end confdefs.h. */
19436 #include <unistd.h>
19444 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19447 if (dup2 (1, 1) == 0)
19450 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19454 if (dup2 (0, 0) != -1)
19456 /* Many gnulib modules require POSIX conformance of EBADF. */
19457 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19466 if ac_fn_c_try_run "$LINENO"; then :
19467 gl_cv_func_dup2_works=yes
19469 gl_cv_func_dup2_works=no
19471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19472 conftest.$ac_objext conftest.beam conftest.$ac_ext
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19478 $as_echo "$gl_cv_func_dup2_works" >&6; }
19479 if test "$gl_cv_func_dup2_works" = no; then
19485 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19494 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19514 # Persuade glibc <stdlib.h> to declare getloadavg().
19519 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19520 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19522 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19523 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19526 gl_func_getloadavg_done=no
19528 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19529 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19530 # to get the right answer into the cache.
19531 # For kstat on solaris, we need to test for libelf and libkvm to force the
19532 # definition of SVR4 below.
19533 if test $gl_func_getloadavg_done = no; then
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19535 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19536 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19537 $as_echo_n "(cached) " >&6
19539 ac_check_lib_save_LIBS=$LIBS
19541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19542 /* end confdefs.h. */
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19554 return elf_begin ();
19559 if ac_fn_c_try_link "$LINENO"; then :
19560 ac_cv_lib_elf_elf_begin=yes
19562 ac_cv_lib_elf_elf_begin=no
19564 rm -f core conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
19566 LIBS=$ac_check_lib_save_LIBS
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19569 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19570 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19575 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19576 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19577 $as_echo_n "(cached) " >&6
19579 ac_check_lib_save_LIBS=$LIBS
19581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19582 /* end confdefs.h. */
19584 /* Override any GCC internal prototype to avoid an error.
19585 Use char because int might match the return type of a GCC
19586 builtin and then its argument prototype would still apply. */
19594 return kvm_open ();
19599 if ac_fn_c_try_link "$LINENO"; then :
19600 ac_cv_lib_kvm_kvm_open=yes
19602 ac_cv_lib_kvm_kvm_open=no
19604 rm -f core conftest.err conftest.$ac_objext \
19605 conftest$ac_exeext conftest.$ac_ext
19606 LIBS=$ac_check_lib_save_LIBS
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19609 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19610 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19614 # Check for the 4.4BSD definition of getloadavg.
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19616 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19617 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19618 $as_echo_n "(cached) " >&6
19620 ac_check_lib_save_LIBS=$LIBS
19621 LIBS="-lutil $LIBS"
19622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19625 /* Override any GCC internal prototype to avoid an error.
19626 Use char because int might match the return type of a GCC
19627 builtin and then its argument prototype would still apply. */
19631 char getloadavg ();
19635 return getloadavg ();
19640 if ac_fn_c_try_link "$LINENO"; then :
19641 ac_cv_lib_util_getloadavg=yes
19643 ac_cv_lib_util_getloadavg=no
19645 rm -f core conftest.err conftest.$ac_objext \
19646 conftest$ac_exeext conftest.$ac_ext
19647 LIBS=$ac_check_lib_save_LIBS
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19650 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19651 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19652 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19657 if test $gl_func_getloadavg_done = no; then
19658 # There is a commonly available library for RS/6000 AIX.
19659 # Since it is not a standard part of AIX, it might be installed locally.
19660 gl_getloadavg_LIBS=$LIBS
19661 LIBS="-L/usr/local/lib $LIBS"
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19663 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19664 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19665 $as_echo_n "(cached) " >&6
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-lgetloadavg $LIBS"
19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19678 char getloadavg ();
19682 return getloadavg ();
19687 if ac_fn_c_try_link "$LINENO"; then :
19688 ac_cv_lib_getloadavg_getloadavg=yes
19690 ac_cv_lib_getloadavg_getloadavg=no
19692 rm -f core conftest.err conftest.$ac_objext \
19693 conftest$ac_exeext conftest.$ac_ext
19694 LIBS=$ac_check_lib_save_LIBS
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19697 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19698 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19699 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19701 LIBS=$gl_getloadavg_LIBS
19706 # Set up the replacement function if necessary.
19707 if test $gl_func_getloadavg_done = no; then
19710 # Solaris has libkstat which does not require root.
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19712 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19713 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19714 $as_echo_n "(cached) " >&6
19716 ac_check_lib_save_LIBS=$LIBS
19717 LIBS="-lkstat $LIBS"
19718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719 /* end confdefs.h. */
19721 /* Override any GCC internal prototype to avoid an error.
19722 Use char because int might match the return type of a GCC
19723 builtin and then its argument prototype would still apply. */
19727 char kstat_open ();
19731 return kstat_open ();
19736 if ac_fn_c_try_link "$LINENO"; then :
19737 ac_cv_lib_kstat_kstat_open=yes
19739 ac_cv_lib_kstat_kstat_open=no
19741 rm -f core conftest.err conftest.$ac_objext \
19742 conftest$ac_exeext conftest.$ac_ext
19743 LIBS=$ac_check_lib_save_LIBS
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19746 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19747 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19748 cat >>confdefs.h <<_ACEOF
19749 #define HAVE_LIBKSTAT 1
19752 LIBS="-lkstat $LIBS"
19756 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19758 # AIX has libperfstat which does not require root
19759 if test $gl_func_getloadavg_done = no; then
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19761 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19762 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19763 $as_echo_n "(cached) " >&6
19765 ac_check_lib_save_LIBS=$LIBS
19766 LIBS="-lperfstat $LIBS"
19767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19770 /* Override any GCC internal prototype to avoid an error.
19771 Use char because int might match the return type of a GCC
19772 builtin and then its argument prototype would still apply. */
19776 char perfstat_cpu_total ();
19780 return perfstat_cpu_total ();
19785 if ac_fn_c_try_link "$LINENO"; then :
19786 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19788 ac_cv_lib_perfstat_perfstat_cpu_total=no
19790 rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 LIBS=$ac_check_lib_save_LIBS
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19795 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19796 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19797 cat >>confdefs.h <<_ACEOF
19798 #define HAVE_LIBPERFSTAT 1
19801 LIBS="-lperfstat $LIBS"
19805 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19808 if test $gl_func_getloadavg_done = no; then
19809 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19810 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19811 gl_func_getloadavg_done=yes
19813 $as_echo "#define DGUX 1" >>confdefs.h
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19816 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19817 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19818 $as_echo_n "(cached) " >&6
19820 ac_check_lib_save_LIBS=$LIBS
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19825 /* Override any GCC internal prototype to avoid an error.
19826 Use char because int might match the return type of a GCC
19827 builtin and then its argument prototype would still apply. */
19831 char dg_sys_info ();
19835 return dg_sys_info ();
19840 if ac_fn_c_try_link "$LINENO"; then :
19841 ac_cv_lib_dgc_dg_sys_info=yes
19843 ac_cv_lib_dgc_dg_sys_info=no
19845 rm -f core conftest.err conftest.$ac_objext \
19846 conftest$ac_exeext conftest.$ac_ext
19847 LIBS=$ac_check_lib_save_LIBS
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19850 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19851 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19852 cat >>confdefs.h <<_ACEOF
19853 #define HAVE_LIBDGC 1
19868 if test "x$gl_save_LIBS" = x; then
19869 GETLOADAVG_LIBS=$LIBS
19871 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19876 # Test whether the system declares getloadavg. Solaris has the function
19877 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19878 for ac_header in sys/loadavg.h
19880 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19881 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19882 cat >>confdefs.h <<_ACEOF
19883 #define HAVE_SYS_LOADAVG_H 1
19890 if test $ac_cv_header_sys_loadavg_h = yes; then
19891 HAVE_SYS_LOADAVG_H=1
19893 HAVE_SYS_LOADAVG_H=0
19895 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19896 # include <sys/loadavg.h>
19898 #include <stdlib.h>
19900 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19903 HAVE_DECL_GETLOADAVG=0
19907 if test $HAVE_GETLOADAVG = 0; then
19916 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19919 # Figure out what our getloadavg.c needs.
19921 # On HPUX9, an unprivileged user can get load averages this way.
19922 if test $gl_func_getloadavg_done = no; then
19923 for ac_func in pstat_getdynamic
19925 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19926 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19927 cat >>confdefs.h <<_ACEOF
19928 #define HAVE_PSTAT_GETDYNAMIC 1
19930 gl_func_getloadavg_done=yes
19936 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19937 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19938 # Irix 4.0.5F has the header but not the library.
19939 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19940 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19941 gl_func_getloadavg_done=yes
19943 $as_echo "#define SVR4 1" >>confdefs.h
19947 if test $gl_func_getloadavg_done = no; then
19948 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19949 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19950 gl_func_getloadavg_done=yes
19952 $as_echo "#define UMAX 1" >>confdefs.h
19955 $as_echo "#define UMAX4_3 1" >>confdefs.h
19962 if test $gl_func_getloadavg_done = no; then
19963 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19964 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19965 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19972 if test $gl_func_getloadavg_done = no; then
19973 for ac_header in mach/mach.h
19975 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19976 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19977 cat >>confdefs.h <<_ACEOF
19978 #define HAVE_MACH_MACH_H 1
19987 for ac_header in nlist.h
19989 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19990 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19991 cat >>confdefs.h <<_ACEOF
19992 #define HAVE_NLIST_H 1
19994 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19996 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19998 cat >>confdefs.h <<_ACEOF
19999 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20012 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20013 x.n_un.n_name = "";
20021 if ac_fn_c_try_link "$LINENO"; then :
20023 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20026 rm -f core conftest.err conftest.$ac_objext \
20027 conftest$ac_exeext conftest.$ac_ext
20039 GNULIB_GETLOADAVG=1
20050 if test $REPLACE_GETOPT = 1; then
20059 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20069 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20083 if test -n "$gl_replace_getopt"; then :
20090 if test $REPLACE_GETOPT = 1; then
20094 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20098 GNULIB_UNISTD_H_GETOPT=1
20101 if test $REPLACE_GETOPT = 1; then
20110 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20120 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20131 if test $ac_cv_func_lstat = yes; then
20133 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20140 if test $REPLACE_LSTAT = 1; then
20149 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20173 if test $APPLE_UNIVERSAL_BUILD = 1; then
20174 # A universal build on Apple MacOS X platforms.
20175 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20176 # But we need a configuration result that is valid in both modes.
20177 gl_cv_func_working_mktime=no
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20180 $as_echo_n "checking for working mktime... " >&6; }
20181 if test "${gl_cv_func_working_mktime+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20184 if test "$cross_compiling" = yes; then :
20185 gl_cv_func_working_mktime=no
20187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188 /* end confdefs.h. */
20189 /* Test program from Paul Eggert and Tony Leneis. */
20190 #include <limits.h>
20191 #include <stdlib.h>
20194 #ifdef HAVE_UNISTD_H
20195 # include <unistd.h>
20199 # define alarm(X) /* empty */
20202 /* Work around redefinition to rpl_putenv by other config tests. */
20205 static time_t time_t_max;
20206 static time_t time_t_min;
20208 /* Values we'll use to set the TZ environment variable. */
20209 static char *tz_strings[] = {
20210 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20211 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20213 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20215 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20216 Based on a problem report from Andreas Jaeger. */
20218 spring_forward_gap ()
20220 /* glibc (up to about 1998-10-07) failed this test. */
20223 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20224 instead of "TZ=America/Vancouver" in order to detect the bug even
20225 on systems that don't support the Olson extension, or don't have the
20226 full zoneinfo tables installed. */
20227 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20236 return mktime (&tm) != (time_t) -1;
20240 mktime_test1 (time_t now)
20243 return ! (lt = localtime (&now)) || mktime (lt) == now;
20247 mktime_test (time_t now)
20249 return (mktime_test1 (now)
20250 && mktime_test1 ((time_t) (time_t_max - now))
20251 && mktime_test1 ((time_t) (time_t_min + now)));
20257 /* Based on code from Ariel Faigon. */
20267 return tm.tm_mon == 2 && tm.tm_mday == 31;
20271 bigtime_test (int j)
20275 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20276 now = mktime (&tm);
20277 if (now != (time_t) -1)
20279 struct tm *lt = localtime (&now);
20281 && lt->tm_year == tm.tm_year
20282 && lt->tm_mon == tm.tm_mon
20283 && lt->tm_mday == tm.tm_mday
20284 && lt->tm_hour == tm.tm_hour
20285 && lt->tm_min == tm.tm_min
20286 && lt->tm_sec == tm.tm_sec
20287 && lt->tm_yday == tm.tm_yday
20288 && lt->tm_wday == tm.tm_wday
20289 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20290 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20299 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20300 ignoring leap seconds. */
20301 unsigned long int answer = 2527315200UL;
20305 tm.tm_year = 2050 - 1900;
20308 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20311 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20312 instead of "TZ=America/Vancouver" in order to detect the bug even
20313 on systems that don't support the Olson extension, or don't have the
20314 full zoneinfo tables installed. */
20315 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20319 /* Check that the result is either a failure, or close enough
20320 to the correct answer that we can assume the discrepancy is
20321 due to leap seconds. */
20322 return (t == (time_t) -1
20323 || (0 < t && answer - 120 <= t && t <= answer + 120));
20332 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20333 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20335 /* This test makes some buggy mktime implementations loop.
20336 Give up after 60 seconds; a mktime slower than that
20337 isn't worth using anyway. */
20340 time_t_max = (! time_t_signed
20342 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20344 time_t_min = (! time_t_signed
20346 : time_t_signed_magnitude
20350 delta = time_t_max / 997; /* a suitable prime number */
20351 for (i = 0; i < N_STRINGS; i++)
20354 putenv (tz_strings[i]);
20356 for (t = 0; t <= time_t_max - delta; t += delta)
20357 if (! mktime_test (t))
20359 if (! (mktime_test ((time_t) 1)
20360 && mktime_test ((time_t) (60 * 60))
20361 && mktime_test ((time_t) (60 * 60 * 24))))
20364 for (j = 1; ; j <<= 1)
20365 if (! bigtime_test (j))
20367 else if (INT_MAX / 2 < j)
20369 if (! bigtime_test (INT_MAX))
20372 if (! irix_6_4_bug ())
20374 if (! spring_forward_gap ())
20376 if (! year_2050_test ())
20381 if ac_fn_c_try_run "$LINENO"; then :
20382 gl_cv_func_working_mktime=yes
20384 gl_cv_func_working_mktime=no
20386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20387 conftest.$ac_objext conftest.beam conftest.$ac_ext
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20393 $as_echo "$gl_cv_func_working_mktime" >&6; }
20395 if test $gl_cv_func_working_mktime = no; then
20401 if test $REPLACE_MKTIME = 1; then
20410 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20432 LIB_PTHREAD_SIGMASK=
20435 if test $ac_cv_func_pthread_sigmask = yes; then
20438 HAVE_PTHREAD_SIGMASK=0
20439 REPLACE_PTHREAD_SIGMASK=1
20445 if test $HAVE_PTHREAD_SIGMASK = 1; then
20448 if test -z "$LIB_PTHREAD_SIGMASK"; then
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20450 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20451 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20452 $as_echo_n "(cached) " >&6
20455 if test "$cross_compiling" = yes; then :
20458 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20459 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20461 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20466 /* end confdefs.h. */
20468 #include <pthread.h>
20469 #include <signal.h>
20470 #include <stddef.h>
20474 sigemptyset (&set);
20475 return pthread_sigmask (1729, &set, NULL) != 0;
20478 if ac_fn_c_try_run "$LINENO"; then :
20479 gl_cv_func_pthread_sigmask_in_libc_works=no
20481 gl_cv_func_pthread_sigmask_in_libc_works=yes
20483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20484 conftest.$ac_objext conftest.beam conftest.$ac_ext
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20490 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20491 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20493 REPLACE_PTHREAD_SIGMASK=1
20495 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20502 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20503 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20504 $as_echo_n "(cached) " >&6
20507 gl_save_LIBS="$LIBS"
20508 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20509 if test "$cross_compiling" = yes; then :
20512 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20514 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20519 /* end confdefs.h. */
20521 #include <pthread.h>
20522 #include <signal.h>
20523 #include <stddef.h>
20527 sigemptyset (&set);
20528 if (pthread_sigmask (1729, &set, NULL) == -1)
20533 if ac_fn_c_try_run "$LINENO"; then :
20534 gl_cv_func_pthread_sigmask_return_works=yes
20536 gl_cv_func_pthread_sigmask_return_works=no
20538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20539 conftest.$ac_objext conftest.beam conftest.$ac_ext
20542 LIBS="$gl_save_LIBS"
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20546 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20547 case "$gl_cv_func_pthread_sigmask_return_works" in
20549 REPLACE_PTHREAD_SIGMASK=1
20551 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20557 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20558 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20559 $as_echo_n "(cached) " >&6
20564 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20566 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20568 gl_save_LIBS="$LIBS"
20569 LIBS="$LIBS $LIBMULTITHREAD"
20570 if test "$cross_compiling" = yes; then :
20573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h. */
20576 #include <pthread.h>
20577 #include <signal.h>
20579 #include <stdlib.h>
20580 #include <unistd.h>
20581 static volatile int sigint_occurred;
20583 sigint_handler (int sig)
20590 int pid = getpid ();
20592 signal (SIGINT, sigint_handler);
20593 sigemptyset (&set);
20594 sigaddset (&set, SIGINT);
20595 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20597 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20598 if (!(system (command) == 0))
20601 if (!(sigint_occurred == 0))
20603 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20605 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20610 if ac_fn_c_try_run "$LINENO"; then :
20613 gl_cv_func_pthread_sigmask_unblock_works=no
20615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20616 conftest.$ac_objext conftest.beam conftest.$ac_ext
20619 LIBS="$gl_save_LIBS"
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20623 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20624 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20626 REPLACE_PTHREAD_SIGMASK=1
20628 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20634 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20643 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20646 if test $HAVE_PTHREAD_SIGMASK = 1; then
20648 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20658 GNULIB_PTHREAD_SIGMASK=1
20666 >>>>>>> MERGE-SOURCE
20668 if test $ac_cv_func_readlink = no; then
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20672 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20673 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20674 $as_echo_n "(cached) " >&6
20676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20677 /* end confdefs.h. */
20678 #include <unistd.h>
20679 /* Cause compilation failure if original declaration has wrong type. */
20680 ssize_t readlink (const char *, char *, size_t);
20689 if ac_fn_c_try_compile "$LINENO"; then :
20690 gl_cv_decl_readlink_works=yes
20692 gl_cv_decl_readlink_works=no
20694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20697 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20699 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20700 if test "${gl_cv_func_readlink_works+set}" = set; then :
20701 $as_echo_n "(cached) " >&6
20703 # We have readlink, so assume ln -s works.
20704 ln -s conftest.no-such conftest.link
20705 ln -s conftest.link conftest.lnk2
20706 if test "$cross_compiling" = yes; then :
20707 gl_cv_func_readlink_works="guessing no"
20709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710 /* end confdefs.h. */
20711 #include <unistd.h>
20717 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20722 if ac_fn_c_try_run "$LINENO"; then :
20723 gl_cv_func_readlink_works=yes
20725 gl_cv_func_readlink_works=no
20727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20728 conftest.$ac_objext conftest.beam conftest.$ac_ext
20731 rm -f conftest.link conftest.lnk2
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20734 $as_echo "$gl_cv_func_readlink_works" >&6; }
20735 if test "$gl_cv_func_readlink_works" != yes; then
20737 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20740 elif test "$gl_cv_decl_readlink_works" != yes; then
20745 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20754 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20784 if test $gl_cv_have_include_next = yes; then
20785 gl_cv_next_signal_h='<'signal.h'>'
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20788 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20789 if test "${gl_cv_next_signal_h+set}" = set; then :
20790 $as_echo_n "(cached) " >&6
20793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20794 /* end confdefs.h. */
20795 #include <signal.h>
20799 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20800 *) gl_absname_cpp="$ac_cpp" ;;
20805 gl_dirsep_regex='[/\\]'
20808 gl_dirsep_regex='/'
20812 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'signal.h#{
20813 s#.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*#\1#
20818 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20819 sed -n "$gl_absolute_header_sed"`'"'
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20824 $as_echo "$gl_cv_next_signal_h" >&6; }
20826 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20828 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20830 gl_next_as_first_directive='<'signal.h'>'
20832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20833 gl_next_as_first_directive=$gl_cv_next_signal_h
20835 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20841 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20842 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20843 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20844 #include <signal.h>
20847 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20850 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20859 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20860 #include <signal.h>
20863 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20866 HAVE_SIGHANDLER_T=0
20872 >>>>>>> MERGE-SOURCE
20873 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20874 /* <sys/types.h> is not needed according to POSIX, but the
20875 <sys/socket.h> in i386-unknown-freebsd4.10 and
20876 powerpc-apple-darwin5.5 required it. */
20877 #include <sys/types.h>
20878 #if HAVE_SYS_SOCKET_H
20879 # include <sys/socket.h>
20880 #elif HAVE_WS2TCPIP_H
20881 # include <ws2tcpip.h>
20885 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20889 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20890 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20891 $as_echo_n "(cached) " >&6
20893 # Systems have either "struct sockaddr *" or
20894 # "void *" as the second argument to getpeername
20895 gl_cv_socklen_t_equiv=
20896 for arg2 in "struct sockaddr" void; do
20897 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20899 /* end confdefs.h. */
20900 #include <sys/types.h>
20901 #include <sys/socket.h>
20903 int getpeername (int, $arg2 *, $t *);
20908 getpeername (0, 0, &len);
20913 if ac_fn_c_try_compile "$LINENO"; then :
20914 gl_cv_socklen_t_equiv="$t"
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 test "$gl_cv_socklen_t_equiv" != "" && break
20919 test "$gl_cv_socklen_t_equiv" != "" && break
20924 if test "$gl_cv_socklen_t_equiv" = ""; then
20925 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20928 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20930 cat >>confdefs.h <<_ACEOF
20931 #define socklen_t $gl_cv_socklen_t_equiv
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20938 $as_echo_n "checking for ssize_t... " >&6; }
20939 if test "${gt_cv_ssize_t+set}" = set; then :
20940 $as_echo_n "(cached) " >&6
20942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20943 /* end confdefs.h. */
20944 #include <sys/types.h>
20948 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20954 if ac_fn_c_try_compile "$LINENO"; then :
20959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20962 $as_echo "$gt_cv_ssize_t" >&6; }
20963 if test $gt_cv_ssize_t = no; then
20965 $as_echo "#define ssize_t int" >>confdefs.h
20971 NEXT_STDARG_H='<stdarg.h>'
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20973 $as_echo_n "checking for va_copy... " >&6; }
20974 if test "${gl_cv_func_va_copy+set}" = set; then :
20975 $as_echo_n "(cached) " >&6
20978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h. */
20980 #include <stdarg.h>
20986 void (*func) (va_list, va_list) = va_copy;
20993 if ac_fn_c_try_compile "$LINENO"; then :
20994 gl_cv_func_va_copy=yes
20996 gl_cv_func_va_copy=no
20998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21002 $as_echo "$gl_cv_func_va_copy" >&6; }
21003 if test $gl_cv_func_va_copy = no; then
21004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21005 /* end confdefs.h. */
21006 #if defined _AIX && !defined __GNUC__
21011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21012 $EGREP "vaccine" >/dev/null 2>&1; then :
21019 if test $gl_aixcc = yes; then
21029 if test $gl_cv_have_include_next = yes; then
21030 gl_cv_next_stdarg_h='<'stdarg.h'>'
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21033 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21034 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21040 #include <stdarg.h>
21044 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21045 *) gl_absname_cpp="$ac_cpp" ;;
21050 gl_dirsep_regex='[/\\]'
21053 gl_dirsep_regex='/'
21057 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdarg.h#{
21058 s#.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*#\1#
21063 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21064 sed -n "$gl_absolute_header_sed"`'"'
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21069 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21071 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21073 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21075 gl_next_as_first_directive='<'stdarg.h'>'
21077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21078 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21080 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21085 if test "$gl_cv_next_stdarg_h" = '""'; then
21086 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21087 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21091 saved_as_echo_n="$as_echo_n"
21093 if test "${gl_cv_func___va_copy+set}" = set; then :
21094 $as_echo_n "(cached) " >&6
21097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h. */
21099 #include <stdarg.h>
21112 if ac_fn_c_try_compile "$LINENO"; then :
21113 gl_cv_func___va_copy=yes
21115 gl_cv_func___va_copy=no
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 as_echo_n="$saved_as_echo_n"
21122 if test $gl_cv_func___va_copy = yes; then
21124 $as_echo "#define va_copy __va_copy" >>confdefs.h
21129 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21135 if test -n "$STDARG_H"; then
21136 GL_GENERATE_STDARG_H_TRUE=
21137 GL_GENERATE_STDARG_H_FALSE='#'
21139 GL_GENERATE_STDARG_H_TRUE='#'
21140 GL_GENERATE_STDARG_H_FALSE=
21148 # Define two additional variables used in the Makefile substitution.
21150 if test "$ac_cv_header_stdbool_h" = yes; then
21153 STDBOOL_H='stdbool.h'
21156 if test -n "$STDBOOL_H"; then
21157 GL_GENERATE_STDBOOL_H_TRUE=
21158 GL_GENERATE_STDBOOL_H_FALSE='#'
21160 GL_GENERATE_STDBOOL_H_TRUE='#'
21161 GL_GENERATE_STDBOOL_H_FALSE=
21165 if test "$ac_cv_type__Bool" = yes; then
21176 if test $gt_cv_c_wchar_t = no; then
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21181 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21182 if test "${gl_cv_decl_null_works+set}" = set; then :
21183 $as_echo_n "(cached) " >&6
21185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21186 /* end confdefs.h. */
21187 #include <stddef.h>
21188 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21198 if ac_fn_c_try_compile "$LINENO"; then :
21199 gl_cv_decl_null_works=yes
21201 gl_cv_decl_null_works=no
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21206 $as_echo "$gl_cv_decl_null_works" >&6; }
21207 if test $gl_cv_decl_null_works = no; then
21212 if test -n "$STDDEF_H"; then
21213 GL_GENERATE_STDDEF_H_TRUE=
21214 GL_GENERATE_STDDEF_H_FALSE='#'
21216 GL_GENERATE_STDDEF_H_TRUE='#'
21217 GL_GENERATE_STDDEF_H_FALSE=
21220 if test -n "$STDDEF_H"; then
21229 if test $gl_cv_have_include_next = yes; then
21230 gl_cv_next_stddef_h='<'stddef.h'>'
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21233 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21234 if test "${gl_cv_next_stddef_h+set}" = set; then :
21235 $as_echo_n "(cached) " >&6
21238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21240 #include <stddef.h>
21244 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21245 *) gl_absname_cpp="$ac_cpp" ;;
21250 gl_dirsep_regex='[/\\]'
21253 gl_dirsep_regex='/'
21257 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stddef.h#{
21258 s#.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*#\1#
21263 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21264 sed -n "$gl_absolute_header_sed"`'"'
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21269 $as_echo "$gl_cv_next_stddef_h" >&6; }
21271 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21273 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21274 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21275 gl_next_as_first_directive='<'stddef.h'>'
21277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21278 gl_next_as_first_directive=$gl_cv_next_stddef_h
21280 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21299 if test $gl_cv_have_include_next = yes; then
21300 gl_cv_next_stdio_h='<'stdio.h'>'
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21303 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21304 if test "${gl_cv_next_stdio_h+set}" = set; then :
21305 $as_echo_n "(cached) " >&6
21308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21309 /* end confdefs.h. */
21314 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21315 *) gl_absname_cpp="$ac_cpp" ;;
21320 gl_dirsep_regex='[/\\]'
21323 gl_dirsep_regex='/'
21327 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdio.h#{
21328 s#.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*#\1#
21333 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21334 sed -n "$gl_absolute_header_sed"`'"'
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21339 $as_echo "$gl_cv_next_stdio_h" >&6; }
21341 NEXT_STDIO_H=$gl_cv_next_stdio_h
21343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21345 gl_next_as_first_directive='<'stdio.h'>'
21347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21348 gl_next_as_first_directive=$gl_cv_next_stdio_h
21350 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21391 if test $gl_cv_have_include_next = yes; then
21392 gl_cv_next_stdlib_h='<'stdlib.h'>'
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21395 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21396 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21397 $as_echo_n "(cached) " >&6
21400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401 /* end confdefs.h. */
21402 #include <stdlib.h>
21406 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21407 *) gl_absname_cpp="$ac_cpp" ;;
21412 gl_dirsep_regex='[/\\]'
21415 gl_dirsep_regex='/'
21419 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'stdlib.h#{
21420 s#.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*#\1#
21425 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21426 sed -n "$gl_absolute_header_sed"`'"'
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21431 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21433 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21435 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21437 gl_next_as_first_directive='<'stdlib.h'>'
21439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21440 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21442 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21452 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21460 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21471 if test "$ac_cv_have_decl_strtoimax" != yes; then
21472 HAVE_DECL_STRTOIMAX=0
21475 if test $ac_cv_func_strtoimax = no; then
21484 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21487 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21488 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_DECL_STRTOLL $ac_have_decl
21516 >>>>>>> MERGE-SOURCE
21517 if test "$ac_cv_have_decl_strtoumax" != yes; then
21518 HAVE_DECL_STRTOUMAX=0
21521 if test $ac_cv_func_strtoumax = no; then
21530 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21533 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21534 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21540 cat >>confdefs.h <<_ACEOF
21541 #define HAVE_DECL_STRTOULL $ac_have_decl
21560 if test $ac_cv_func_symlink = no; then
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21564 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21565 if test "${gl_cv_func_symlink_works+set}" = set; then :
21566 $as_echo_n "(cached) " >&6
21568 if test "$cross_compiling" = yes; then :
21569 gl_cv_func_symlink_works="guessing no"
21571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21572 /* end confdefs.h. */
21573 #include <unistd.h>
21579 if (!symlink ("a", "conftest.link/"))
21581 if (symlink ("conftest.f", "conftest.lnk2"))
21583 else if (!symlink ("a", "conftest.lnk2/"))
21591 if ac_fn_c_try_run "$LINENO"; then :
21592 gl_cv_func_symlink_works=yes
21594 gl_cv_func_symlink_works=no
21596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21597 conftest.$ac_objext conftest.beam conftest.$ac_ext
21600 rm -f conftest.f conftest.link conftest.lnk2
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21603 $as_echo "$gl_cv_func_symlink_works" >&6; }
21604 if test "$gl_cv_func_symlink_works" != yes; then
21609 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21618 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21648 if test $gl_cv_have_include_next = yes; then
21649 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21652 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21653 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21654 $as_echo_n "(cached) " >&6
21657 if test $ac_cv_header_sys_stat_h = yes; then
21660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h. */
21662 #include <sys/stat.h>
21666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21667 *) gl_absname_cpp="$ac_cpp" ;;
21672 gl_dirsep_regex='[/\\]'
21675 gl_dirsep_regex='/'
21679 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'sys/stat.h#{
21680 s#.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*#\1#
21685 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21686 sed -n "$gl_absolute_header_sed"`'"'
21688 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21694 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21696 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21698 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21699 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21700 gl_next_as_first_directive='<'sys/stat.h'>'
21702 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21703 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21705 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21711 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21712 #include <sys/stat.h>
21714 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21718 $as_echo "#define nlink_t int" >>confdefs.h
21736 if test $ac_cv_have_decl_localtime_r = no; then
21737 HAVE_DECL_LOCALTIME_R=0
21741 if test $ac_cv_func_localtime_r = yes; then
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21744 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21745 if test "${gl_cv_time_r_posix+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21749 /* end confdefs.h. */
21754 /* We don't need to append 'restrict's to the argument types,
21755 even though the POSIX signature has the 'restrict's,
21756 since C99 says they can't affect type compatibility. */
21757 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21759 /* Check the return type is a pointer.
21760 On HP-UX 10 it is 'int'. */
21761 *localtime_r (0, 0);
21767 if ac_fn_c_try_compile "$LINENO"; then :
21768 gl_cv_time_r_posix=yes
21770 gl_cv_time_r_posix=no
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21776 $as_echo "$gl_cv_time_r_posix" >&6; }
21777 if test $gl_cv_time_r_posix = yes; then
21778 REPLACE_LOCALTIME_R=0
21780 REPLACE_LOCALTIME_R=1
21786 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21795 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21826 if test $gl_cv_have_include_next = yes; then
21827 gl_cv_next_unistd_h='<'unistd.h'>'
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21830 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21831 if test "${gl_cv_next_unistd_h+set}" = set; then :
21832 $as_echo_n "(cached) " >&6
21835 if test $ac_cv_header_unistd_h = yes; then
21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839 /* end confdefs.h. */
21840 #include <unistd.h>
21844 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21845 *) gl_absname_cpp="$ac_cpp" ;;
21850 gl_dirsep_regex='[/\\]'
21853 gl_dirsep_regex='/'
21857 gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'unistd.h#{
21858 s#.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*#\1#
21863 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21864 sed -n "$gl_absolute_header_sed"`'"'
21866 gl_cv_next_unistd_h='<'unistd.h'>'
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21872 $as_echo "$gl_cv_next_unistd_h" >&6; }
21874 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21876 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21877 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21878 gl_next_as_first_directive='<'unistd.h'>'
21880 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21881 gl_next_as_first_directive=$gl_cv_next_unistd_h
21883 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21888 if test $ac_cv_header_unistd_h = yes; then
21899 gl_gnulib_enabled_dosname=false
21900 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21901 gl_gnulib_enabled_stat=false
21902 gl_gnulib_enabled_strtoull=false
21903 gl_gnulib_enabled_verify=false
21904 func_gl_gnulib_m4code_dosname ()
21906 if ! $gl_gnulib_enabled_dosname; then
21907 gl_gnulib_enabled_dosname=true
21910 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21912 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21915 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21920 func_gl_gnulib_m4code_sigprocmask ()
21922 if ! $gl_gnulib_enabled_sigprocmask; then
21926 if test $gl_cv_type_sigset_t = yes; then
21927 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21928 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21929 gl_cv_func_sigprocmask=1
21933 if test -z "$gl_cv_func_sigprocmask"; then
21934 HAVE_POSIX_SIGNALBLOCKING=0
21937 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21946 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21955 GNULIB_SIGPROCMASK=1
21961 gl_gnulib_enabled_sigprocmask=true
21964 >>>>>>> MERGE-SOURCE
21965 func_gl_gnulib_m4code_stat ()
21967 if ! $gl_gnulib_enabled_stat; then
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21972 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21973 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21974 $as_echo_n "(cached) " >&6
21976 if test "$cross_compiling" = yes; then :
21978 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21979 *) gl_cv_func_stat_dir_slash="guessing yes";;
21982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h. */
21984 #include <sys/stat.h>
21989 struct stat st; return stat (".", &st) != stat ("./", &st);
21994 if ac_fn_c_try_run "$LINENO"; then :
21995 gl_cv_func_stat_dir_slash=yes
21997 gl_cv_func_stat_dir_slash=no
21999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22000 conftest.$ac_objext conftest.beam conftest.$ac_ext
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22005 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22007 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22008 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22012 # Assume that if we have lstat, we can also check symlinks.
22013 if test $ac_cv_func_lstat = yes; then
22014 ln -s conftest.tmp conftest.lnk
22016 if test "$cross_compiling" = yes; then :
22017 gl_cv_func_stat_file_slash="guessing no"
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 #include <sys/stat.h>
22028 if (!stat ("conftest.tmp/", &st))
22031 if (!stat ("conftest.lnk/", &st))
22040 if ac_fn_c_try_run "$LINENO"; then :
22041 gl_cv_func_stat_file_slash=yes
22043 gl_cv_func_stat_file_slash=no
22045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22046 conftest.$ac_objext conftest.beam conftest.$ac_ext
22049 rm -f conftest.tmp conftest.lnk
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22052 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22053 case $gl_cv_func_stat_dir_slash in
22054 *no) REPLACE_STAT=1
22056 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22059 case $gl_cv_func_stat_file_slash in
22060 *no) REPLACE_STAT=1
22062 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22066 if test $REPLACE_STAT = 1; then
22075 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
22093 gl_gnulib_enabled_stat=true
22094 if test $REPLACE_STAT = 1; then
22095 func_gl_gnulib_m4code_dosname
22098 if $condition; then
22100 if test $REPLACE_STAT = 1; then
22101 >>>>>>> MERGE-SOURCE
22102 func_gl_gnulib_m4code_verify
22108 func_gl_gnulib_m4code_strtoll ()
22110 if ! $gl_gnulib_enabled_strtoll; then
22114 if test "$ac_cv_type_long_long_int" = yes; then
22115 for ac_func in strtoll
22117 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22118 if test "x$ac_cv_func_strtoll" = x""yes; then :
22119 cat >>confdefs.h <<_ACEOF
22120 #define HAVE_STRTOLL 1
22126 if test $ac_cv_func_strtoll = no; then
22131 if test $HAVE_STRTOLL = 0; then
22140 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22157 gl_gnulib_enabled_strtoll=true
22160 >>>>>>> MERGE-SOURCE
22161 func_gl_gnulib_m4code_strtoull ()
22163 if ! $gl_gnulib_enabled_strtoull; then
22167 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22168 for ac_func in strtoull
22170 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22171 if test "x$ac_cv_func_strtoull" = x""yes; then :
22172 cat >>confdefs.h <<_ACEOF
22173 #define HAVE_STRTOULL 1
22179 if test $ac_cv_func_strtoull = no; then
22184 if test $HAVE_STRTOULL = 0; then
22193 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22210 gl_gnulib_enabled_strtoull=true
22213 func_gl_gnulib_m4code_verify ()
22215 if ! $gl_gnulib_enabled_verify; then
22216 gl_gnulib_enabled_verify=true
22219 if test $REPLACE_GETOPT = 1; then
22220 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22222 if test $REPLACE_LSTAT = 1; then
22223 func_gl_gnulib_m4code_dosname
22225 if test $REPLACE_LSTAT = 1; then
22226 func_gl_gnulib_m4code_stat
22228 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22229 func_gl_gnulib_m4code_stat
22232 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
22234 if test $ac_cv_func_strtoimax = no; then
22235 func_gl_gnulib_m4code_verify
22237 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22238 func_gl_gnulib_m4code_strtoll
22240 if test $ac_cv_func_strtoumax = no; then
22241 >>>>>>> MERGE-SOURCE
22242 func_gl_gnulib_m4code_verify
22244 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22245 func_gl_gnulib_m4code_strtoull
22248 if $gl_gnulib_enabled_dosname; then
22249 gl_GNULIB_ENABLED_dosname_TRUE=
22250 gl_GNULIB_ENABLED_dosname_FALSE='#'
22252 gl_GNULIB_ENABLED_dosname_TRUE='#'
22253 gl_GNULIB_ENABLED_dosname_FALSE=
22256 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22257 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22258 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22260 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22261 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22264 if $gl_gnulib_enabled_stat; then
22265 gl_GNULIB_ENABLED_stat_TRUE=
22266 gl_GNULIB_ENABLED_stat_FALSE='#'
22268 gl_GNULIB_ENABLED_stat_TRUE='#'
22269 gl_GNULIB_ENABLED_stat_FALSE=
22272 if $gl_gnulib_enabled_strtoull; then
22273 gl_GNULIB_ENABLED_strtoull_TRUE=
22274 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22276 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22277 gl_GNULIB_ENABLED_strtoull_FALSE=
22280 if $gl_gnulib_enabled_verify; then
22281 gl_GNULIB_ENABLED_verify_TRUE=
22282 gl_GNULIB_ENABLED_verify_FALSE='#'
22284 gl_GNULIB_ENABLED_verify_TRUE='#'
22285 gl_GNULIB_ENABLED_verify_FALSE=
22288 # End of code from modules
22309 gl_source_base='tests'
22310 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
22312 gl_module_indicator_condition=$gltests_WITNESS
22323 LIBGNU_LIBDEPS="$gl_libdeps"
22325 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22330 for ac_func in grantpt
22332 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
22333 if test "x$ac_cv_func_grantpt" = x""yes; then :
22334 cat >>confdefs.h <<_ACEOF
22335 #define HAVE_GRANTPT 1
22342 # PTY-related GNU extensions.
22343 for ac_func in getpt
22345 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
22346 if test "x$ac_cv_func_getpt" = x""yes; then :
22347 cat >>confdefs.h <<_ACEOF
22348 #define HAVE_GETPT 1
22355 # Check this now, so that we will NOT find the above functions in ncurses.
22356 # That is because we have not set up to link ncurses in lib-src.
22357 # It's better to believe a function is not available
22358 # than to expect to find it in ncurses.
22359 # Also we need tputs and friends to be able to build at all.
22360 have_tputs_et_al=true
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
22362 $as_echo_n "checking for library containing tputs... " >&6; }
22363 if test "${ac_cv_search_tputs+set}" = set; then :
22364 $as_echo_n "(cached) " >&6
22366 ac_func_search_save_LIBS=$LIBS
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h. */
22370 /* Override any GCC internal prototype to avoid an error.
22371 Use char because int might match the return type of a GCC
22372 builtin and then its argument prototype would still apply. */
22385 for ac_lib in '' ncurses terminfo termcap; do
22386 if test -z "$ac_lib"; then
22387 ac_res="none required"
22390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22392 if ac_fn_c_try_link "$LINENO"; then :
22393 ac_cv_search_tputs=$ac_res
22395 rm -f core conftest.err conftest.$ac_objext \
22397 if test "${ac_cv_search_tputs+set}" = set; then :
22401 if test "${ac_cv_search_tputs+set}" = set; then :
22404 ac_cv_search_tputs=no
22406 rm conftest.$ac_ext
22407 LIBS=$ac_func_search_save_LIBS
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
22410 $as_echo "$ac_cv_search_tputs" >&6; }
22411 ac_res=$ac_cv_search_tputs
22412 if test "$ac_res" != no; then :
22413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22416 have_tputs_et_al=false
22419 if test "$have_tputs_et_al" != true; then
22420 as_fn_error "I couldn't find termcap functions (tputs and friends).
22421 Maybe some development libraries/packages are missing? Try installing
22422 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
22424 # Must define this when any termcap library is found.
22426 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
22428 ## FIXME This was the cpp logic, but I am not sure it is right.
22429 ## The above test has not necessarily found libncurses.
22430 HAVE_LIBNCURSES=yes
22432 ## Use terminfo instead of termcap?
22433 ## Note only system files NOT using terminfo are:
22434 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
22435 ## darwin|gnu without ncurses.
22439 ## cygwin: Fewer environment variables to go wrong, more terminal types.
22440 ## hpux10-20: Use the system provided termcap(3) library.
22441 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
22442 ## is necessary. Otherwise Emacs dumps core when run -nw.
22443 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
22445 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
22446 ## The ncurses library has been moved out of the System framework in
22447 ## Mac OS X 10.2. So if configure detects it, set the command-line
22448 ## option to use it.
22450 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
22451 if test "x$HAVE_LIBNCURSES" = "xyes"; then
22453 LIBS_TERMCAP="-lncurses"
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
22459 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
22460 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
22461 $as_echo_n "(cached) " >&6
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22465 #include <osreldate.h>
22469 #if __FreeBSD_version < 400000
22477 if ac_fn_c_try_link "$LINENO"; then :
22478 emacs_cv_freebsd_terminfo=yes
22480 emacs_cv_freebsd_terminfo=no
22482 rm -f core conftest.err conftest.$ac_objext \
22483 conftest$ac_exeext conftest.$ac_ext
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
22488 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
22490 if test $emacs_cv_freebsd_terminfo = yes; then
22492 LIBS_TERMCAP="-lncurses"
22494 LIBS_TERMCAP="-ltermcap"
22499 if test $ac_cv_search_tputs = -lterminfo; then
22501 LIBS_TERMCAP="-lterminfo"
22503 LIBS_TERMCAP="-ltermcap"
22510 ## hpux: Make sure we get select from libc rather than from libcurses
22511 ## because libcurses on HPUX 10.10 has a broken version of select.
22512 ## We used to use -lc -lcurses, but this may be cleaner.
22513 hpux*) LIBS_TERMCAP="-ltermcap" ;;
22515 openbsd) LIBS_TERMCAP="-lncurses" ;;
22517 ## Must use system termcap, if we use any termcap. It does special things.
22518 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
22521 TERMCAP_OBJ=tparam.o
22522 if test $TERMINFO = yes; then
22524 $as_echo "#define TERMINFO 1" >>confdefs.h
22527 ## Default used to be -ltermcap. Add a case above if need something else.
22528 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
22530 TERMCAP_OBJ=terminfo.o
22536 # Do we have res_init, for detecting changes in /etc/resolv.conf?
22538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22539 /* end confdefs.h. */
22540 #include <netinet/in.h>
22541 #include <arpa/nameser.h>
22542 #include <resolv.h>
22551 if ac_fn_c_try_link "$LINENO"; then :
22556 rm -f core conftest.err conftest.$ac_objext \
22557 conftest$ac_exeext conftest.$ac_ext
22558 if test "$have_res_init" = no; then
22560 LIBS="$LIBS -lresolv"
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
22562 $as_echo_n "checking for res_init with -lresolv... " >&6; }
22563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22564 /* end confdefs.h. */
22565 #include <netinet/in.h>
22566 #include <arpa/nameser.h>
22567 #include <resolv.h>
22576 if ac_fn_c_try_link "$LINENO"; then :
22581 rm -f core conftest.err conftest.$ac_objext \
22582 conftest$ac_exeext conftest.$ac_ext
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
22584 $as_echo "$have_res_init" >&6; }
22585 if test "$have_res_init" = yes ; then
22591 if test "$have_res_init" = yes; then
22593 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
22597 # Do we need the Hesiod library to provide the support routines?
22599 if test "$with_hesiod" != no ; then
22600 # Don't set $LIBS here -- see comments above. FIXME which comments?
22601 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
22602 if test "x$ac_cv_func_res_send" = x""yes; then :
22605 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
22606 if test "x$ac_cv_func___res_send" = x""yes; then :
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
22610 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22611 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
22612 $as_echo_n "(cached) " >&6
22614 ac_check_lib_save_LIBS=$LIBS
22615 LIBS="-lresolv $LIBS"
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22619 /* Override any GCC internal prototype to avoid an error.
22620 Use char because int might match the return type of a GCC
22621 builtin and then its argument prototype would still apply. */
22629 return res_send ();
22634 if ac_fn_c_try_link "$LINENO"; then :
22635 ac_cv_lib_resolv_res_send=yes
22637 ac_cv_lib_resolv_res_send=no
22639 rm -f core conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22641 LIBS=$ac_check_lib_save_LIBS
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
22644 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22645 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
22649 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22650 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
22651 $as_echo_n "(cached) " >&6
22653 ac_check_lib_save_LIBS=$LIBS
22654 LIBS="-lresolv $LIBS"
22655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22656 /* end confdefs.h. */
22658 /* Override any GCC internal prototype to avoid an error.
22659 Use char because int might match the return type of a GCC
22660 builtin and then its argument prototype would still apply. */
22664 char __res_send ();
22668 return __res_send ();
22673 if ac_fn_c_try_link "$LINENO"; then :
22674 ac_cv_lib_resolv___res_send=yes
22676 ac_cv_lib_resolv___res_send=no
22678 rm -f core conftest.err conftest.$ac_objext \
22679 conftest$ac_exeext conftest.$ac_ext
22680 LIBS=$ac_check_lib_save_LIBS
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
22683 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22684 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
22694 if test "$resolv" = yes ; then
22699 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
22700 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
22704 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22705 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
22706 $as_echo_n "(cached) " >&6
22708 ac_check_lib_save_LIBS=$LIBS
22709 LIBS="-lhesiod $RESOLVLIB $LIBS"
22710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711 /* end confdefs.h. */
22713 /* Override any GCC internal prototype to avoid an error.
22714 Use char because int might match the return type of a GCC
22715 builtin and then its argument prototype would still apply. */
22719 char hes_getmailhost ();
22723 return hes_getmailhost ();
22728 if ac_fn_c_try_link "$LINENO"; then :
22729 ac_cv_lib_hesiod_hes_getmailhost=yes
22731 ac_cv_lib_hesiod_hes_getmailhost=no
22733 rm -f core conftest.err conftest.$ac_objext \
22734 conftest$ac_exeext conftest.$ac_ext
22735 LIBS=$ac_check_lib_save_LIBS
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22738 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22739 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
22748 if test x"$hesiod" = xyes; then
22750 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
22757 # Do we need libresolv (due to res_init or Hesiod)?
22758 if test "$resolv" = yes ; then
22760 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
22768 # These tell us which Kerberos-related libraries to use.
22775 if test "${with_kerberos}" != no; then
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
22777 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22778 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
22779 $as_echo_n "(cached) " >&6
22781 ac_check_lib_save_LIBS=$LIBS
22782 LIBS="-lcom_err $LIBS"
22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h. */
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22801 if ac_fn_c_try_link "$LINENO"; then :
22802 ac_cv_lib_com_err_com_err=yes
22804 ac_cv_lib_com_err_com_err=no
22806 rm -f core conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
22808 LIBS=$ac_check_lib_save_LIBS
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
22811 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22812 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
22818 if test $have_com_err = yes; then
22819 COM_ERRLIB=-lcom_err
22820 LIBS="$COM_ERRLIB $LIBS"
22822 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22826 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22827 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22828 $as_echo_n "(cached) " >&6
22830 ac_check_lib_save_LIBS=$LIBS
22831 LIBS="-lcrypto $LIBS"
22832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833 /* end confdefs.h. */
22835 /* Override any GCC internal prototype to avoid an error.
22836 Use char because int might match the return type of a GCC
22837 builtin and then its argument prototype would still apply. */
22841 char mit_des_cbc_encrypt ();
22845 return mit_des_cbc_encrypt ();
22850 if ac_fn_c_try_link "$LINENO"; then :
22851 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22853 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22855 rm -f core conftest.err conftest.$ac_objext \
22856 conftest$ac_exeext conftest.$ac_ext
22857 LIBS=$ac_check_lib_save_LIBS
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22860 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22861 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22867 if test $have_crypto = yes; then
22869 LIBS="$CRYPTOLIB $LIBS"
22871 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22875 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22876 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22877 $as_echo_n "(cached) " >&6
22879 ac_check_lib_save_LIBS=$LIBS
22880 LIBS="-lk5crypto $LIBS"
22881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22882 /* end confdefs.h. */
22884 /* Override any GCC internal prototype to avoid an error.
22885 Use char because int might match the return type of a GCC
22886 builtin and then its argument prototype would still apply. */
22890 char mit_des_cbc_encrypt ();
22894 return mit_des_cbc_encrypt ();
22899 if ac_fn_c_try_link "$LINENO"; then :
22900 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22902 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22904 rm -f core conftest.err conftest.$ac_objext \
22905 conftest$ac_exeext conftest.$ac_ext
22906 LIBS=$ac_check_lib_save_LIBS
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22909 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22910 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22916 if test $have_k5crypto = yes; then
22917 CRYPTOLIB=-lk5crypto
22918 LIBS="$CRYPTOLIB $LIBS"
22920 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22924 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22925 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22926 $as_echo_n "(cached) " >&6
22928 ac_check_lib_save_LIBS=$LIBS
22929 LIBS="-lkrb5 $LIBS"
22930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22931 /* end confdefs.h. */
22933 /* Override any GCC internal prototype to avoid an error.
22934 Use char because int might match the return type of a GCC
22935 builtin and then its argument prototype would still apply. */
22939 char krb5_init_context ();
22943 return krb5_init_context ();
22948 if ac_fn_c_try_link "$LINENO"; then :
22949 ac_cv_lib_krb5_krb5_init_context=yes
22951 ac_cv_lib_krb5_krb5_init_context=no
22953 rm -f core conftest.err conftest.$ac_objext \
22954 conftest$ac_exeext conftest.$ac_ext
22955 LIBS=$ac_check_lib_save_LIBS
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22958 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22959 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22965 if test $have_krb5=yes; then
22967 LIBS="$KRB5LIB $LIBS"
22969 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22972 if test "${with_kerberos5}" = no; then
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22974 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22975 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22976 $as_echo_n "(cached) " >&6
22978 ac_check_lib_save_LIBS=$LIBS
22979 LIBS="-ldes425 $LIBS"
22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22983 /* Override any GCC internal prototype to avoid an error.
22984 Use char because int might match the return type of a GCC
22985 builtin and then its argument prototype would still apply. */
22989 char des_cbc_encrypt ();
22993 return des_cbc_encrypt ();
22998 if ac_fn_c_try_link "$LINENO"; then :
22999 ac_cv_lib_des425_des_cbc_encrypt=yes
23001 ac_cv_lib_des425_des_cbc_encrypt=no
23003 rm -f core conftest.err conftest.$ac_objext \
23004 conftest$ac_exeext conftest.$ac_ext
23005 LIBS=$ac_check_lib_save_LIBS
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
23008 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
23009 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
23015 if test $have_des425 = yes; then
23017 LIBS="$DESLIB $LIBS"
23019 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
23023 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
23024 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
23025 $as_echo_n "(cached) " >&6
23027 ac_check_lib_save_LIBS=$LIBS
23029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23030 /* end confdefs.h. */
23032 /* Override any GCC internal prototype to avoid an error.
23033 Use char because int might match the return type of a GCC
23034 builtin and then its argument prototype would still apply. */
23038 char des_cbc_encrypt ();
23042 return des_cbc_encrypt ();
23047 if ac_fn_c_try_link "$LINENO"; then :
23048 ac_cv_lib_des_des_cbc_encrypt=yes
23050 ac_cv_lib_des_des_cbc_encrypt=no
23052 rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext conftest.$ac_ext
23054 LIBS=$ac_check_lib_save_LIBS
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
23057 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
23058 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
23064 if test $have_des = yes; then
23066 LIBS="$DESLIB $LIBS"
23068 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
23073 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
23074 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
23075 $as_echo_n "(cached) " >&6
23077 ac_check_lib_save_LIBS=$LIBS
23078 LIBS="-lkrb4 $LIBS"
23079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h. */
23082 /* Override any GCC internal prototype to avoid an error.
23083 Use char because int might match the return type of a GCC
23084 builtin and then its argument prototype would still apply. */
23088 char krb_get_cred ();
23092 return krb_get_cred ();
23097 if ac_fn_c_try_link "$LINENO"; then :
23098 ac_cv_lib_krb4_krb_get_cred=yes
23100 ac_cv_lib_krb4_krb_get_cred=no
23102 rm -f core conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
23104 LIBS=$ac_check_lib_save_LIBS
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
23107 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
23108 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
23114 if test $have_krb4 = yes; then
23116 LIBS="$KRB4LIB $LIBS"
23118 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
23122 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
23123 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
23124 $as_echo_n "(cached) " >&6
23126 ac_check_lib_save_LIBS=$LIBS
23128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129 /* end confdefs.h. */
23131 /* Override any GCC internal prototype to avoid an error.
23132 Use char because int might match the return type of a GCC
23133 builtin and then its argument prototype would still apply. */
23137 char krb_get_cred ();
23141 return krb_get_cred ();
23146 if ac_fn_c_try_link "$LINENO"; then :
23147 ac_cv_lib_krb_krb_get_cred=yes
23149 ac_cv_lib_krb_krb_get_cred=no
23151 rm -f core conftest.err conftest.$ac_objext \
23152 conftest$ac_exeext conftest.$ac_ext
23153 LIBS=$ac_check_lib_save_LIBS
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
23156 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23157 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
23163 if test $have_krb = yes; then
23165 LIBS="$KRB4LIB $LIBS"
23167 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
23173 if test "${with_kerberos5}" != no; then
23174 for ac_header in krb5.h
23176 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
23177 if test "x$ac_cv_header_krb5_h" = x""yes; then :
23178 cat >>confdefs.h <<_ACEOF
23179 #define HAVE_KRB5_H 1
23181 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
23183 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
23185 cat >>confdefs.h <<_ACEOF
23186 #define HAVE_KRB5_ERROR_TEXT 1
23191 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
23193 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
23195 cat >>confdefs.h <<_ACEOF
23196 #define HAVE_KRB5_ERROR_E_TEXT 1
23207 for ac_header in des.h
23209 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
23210 if test "x$ac_cv_header_des_h" = x""yes; then :
23211 cat >>confdefs.h <<_ACEOF
23212 #define HAVE_DES_H 1
23216 for ac_header in kerberosIV/des.h
23218 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23219 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23220 cat >>confdefs.h <<_ACEOF
23221 #define HAVE_KERBEROSIV_DES_H 1
23225 for ac_header in kerberos/des.h
23227 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23228 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23229 cat >>confdefs.h <<_ACEOF
23230 #define HAVE_KERBEROS_DES_H 1
23245 for ac_header in krb.h
23247 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23248 if test "x$ac_cv_header_krb_h" = x""yes; then :
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_KRB_H 1
23254 for ac_header in kerberosIV/krb.h
23256 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23257 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_KERBEROSIV_KRB_H 1
23263 for ac_header in kerberos/krb.h
23265 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23266 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23267 cat >>confdefs.h <<_ACEOF
23268 #define HAVE_KERBEROS_KRB_H 1
23284 for ac_header in com_err.h
23286 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23287 if test "x$ac_cv_header_com_err_h" = x""yes; then :
23288 cat >>confdefs.h <<_ACEOF
23289 #define HAVE_COM_ERR_H 1
23304 # Solaris requires -lintl if you want strerror (which calls dgettext)
23305 # to return localized messages.
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23307 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23308 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23309 $as_echo_n "(cached) " >&6
23311 ac_check_lib_save_LIBS=$LIBS
23312 LIBS="-lintl $LIBS"
23313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23314 /* end confdefs.h. */
23316 /* Override any GCC internal prototype to avoid an error.
23317 Use char because int might match the return type of a GCC
23318 builtin and then its argument prototype would still apply. */
23326 return dgettext ();
23331 if ac_fn_c_try_link "$LINENO"; then :
23332 ac_cv_lib_intl_dgettext=yes
23334 ac_cv_lib_intl_dgettext=no
23336 rm -f core conftest.err conftest.$ac_objext \
23337 conftest$ac_exeext conftest.$ac_ext
23338 LIBS=$ac_check_lib_save_LIBS
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
23341 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23342 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_LIBINTL 1
23347 LIBS="-lintl $LIBS"
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
23353 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23354 if test "${emacs_cv_localtime_cache+set}" = set; then :
23355 $as_echo_n "(cached) " >&6
23357 if test x$ac_cv_func_tzset = xyes; then
23358 if test "$cross_compiling" = yes; then :
23359 # If we have tzset, assume the worst when cross-compiling.
23360 emacs_cv_localtime_cache=yes
23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h. */
23365 char TZ_GMT0[] = "TZ=GMT0";
23366 char TZ_PST8[] = "TZ=PST8";
23369 time_t now = time ((time_t *) 0);
23370 int hour_GMT0, hour_unset;
23371 if (putenv (TZ_GMT0) != 0)
23373 hour_GMT0 = localtime (&now)->tm_hour;
23375 hour_unset = localtime (&now)->tm_hour;
23376 if (putenv (TZ_PST8) != 0)
23378 if (localtime (&now)->tm_hour == hour_GMT0)
23381 if (localtime (&now)->tm_hour != hour_unset)
23386 if ac_fn_c_try_run "$LINENO"; then :
23387 emacs_cv_localtime_cache=no
23389 emacs_cv_localtime_cache=yes
23391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23392 conftest.$ac_objext conftest.beam conftest.$ac_ext
23396 # If we lack tzset, report that localtime does not cache TZ,
23397 # since we can't invalidate the cache if we don't have tzset.
23398 emacs_cv_localtime_cache=no
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
23402 $as_echo "$emacs_cv_localtime_cache" >&6; }
23403 if test $emacs_cv_localtime_cache = yes; then
23405 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
23409 if test "x$HAVE_TIMEVAL" = xyes; then
23410 for ac_func in gettimeofday
23412 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
23413 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
23414 cat >>confdefs.h <<_ACEOF
23415 #define HAVE_GETTIMEOFDAY 1
23421 if test $ac_cv_func_gettimeofday = yes; then
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
23423 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23424 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
23425 $as_echo_n "(cached) " >&6
23427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428 /* end confdefs.h. */
23430 #ifdef TIME_WITH_SYS_TIME
23431 #include <sys/time.h>
23434 #ifdef HAVE_SYS_TIME_H
23435 #include <sys/time.h>
23443 struct timeval time;
23444 gettimeofday (&time, 0);
23449 if ac_fn_c_try_compile "$LINENO"; then :
23450 emacs_cv_gettimeofday_two_arguments=yes
23452 emacs_cv_gettimeofday_two_arguments=no
23454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
23457 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23458 if test $emacs_cv_gettimeofday_two_arguments = no; then
23460 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
23467 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23468 if test "x$ac_cv_func_socket" = x""yes; then :
23474 if test $ok_so_far = yes; then
23475 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23476 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
23484 if test $ok_so_far = yes; then
23485 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
23486 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
23494 if test $ok_so_far = yes; then
23496 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
23500 if test -f /usr/lpp/X11/bin/smt.exp; then
23502 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
23507 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
23508 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23510 $as_echo "yes" >&6; }
23512 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516 $as_echo "no" >&6; }
23519 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23520 if test "x$ac_cv_type_pid_t" = x""yes; then :
23524 cat >>confdefs.h <<_ACEOF
23530 for ac_header in vfork.h
23532 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23533 if test "x$ac_cv_header_vfork_h" = x""yes; then :
23534 cat >>confdefs.h <<_ACEOF
23535 #define HAVE_VFORK_H 1
23542 for ac_func in fork vfork
23544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23546 eval as_val=\$$as_ac_var
23547 if test "x$as_val" = x""yes; then :
23548 cat >>confdefs.h <<_ACEOF
23549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23555 if test "x$ac_cv_func_fork" = xyes; then
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23557 $as_echo_n "checking for working fork... " >&6; }
23558 if test "${ac_cv_func_fork_works+set}" = set; then :
23559 $as_echo_n "(cached) " >&6
23561 if test "$cross_compiling" = yes; then :
23562 ac_cv_func_fork_works=cross
23564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23565 /* end confdefs.h. */
23566 $ac_includes_default
23571 /* By Ruediger Kuhlmann. */
23572 return fork () < 0;
23578 if ac_fn_c_try_run "$LINENO"; then :
23579 ac_cv_func_fork_works=yes
23581 ac_cv_func_fork_works=no
23583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23584 conftest.$ac_objext conftest.beam conftest.$ac_ext
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23589 $as_echo "$ac_cv_func_fork_works" >&6; }
23592 ac_cv_func_fork_works=$ac_cv_func_fork
23594 if test "x$ac_cv_func_fork_works" = xcross; then
23596 *-*-amigaos* | *-*-msdosdjgpp*)
23597 # Override, as these systems have only a dummy fork() stub
23598 ac_cv_func_fork_works=no
23601 ac_cv_func_fork_works=yes
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23605 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23607 ac_cv_func_vfork_works=$ac_cv_func_vfork
23608 if test "x$ac_cv_func_vfork" = xyes; then
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23610 $as_echo_n "checking for working vfork... " >&6; }
23611 if test "${ac_cv_func_vfork_works+set}" = set; then :
23612 $as_echo_n "(cached) " >&6
23614 if test "$cross_compiling" = yes; then :
23615 ac_cv_func_vfork_works=cross
23617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23618 /* end confdefs.h. */
23619 /* Thanks to Paul Eggert for this test. */
23620 $ac_includes_default
23621 #include <sys/wait.h>
23622 #ifdef HAVE_VFORK_H
23623 # include <vfork.h>
23625 /* On some sparc systems, changes by the child to local and incoming
23626 argument registers are propagated back to the parent. The compiler
23627 is told about this with #include <vfork.h>, but some compilers
23628 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23629 static variable whose address is put into a register that is
23630 clobbered by the vfork. */
23633 sparc_address_test (int arg)
23635 sparc_address_test (arg) int arg;
23638 static pid_t child;
23656 pid_t parent = getpid ();
23659 sparc_address_test (0);
23664 /* Here is another test for sparc vfork register problems. This
23665 test uses lots of local variables, at least as many local
23666 variables as main has allocated so far including compiler
23667 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23668 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23669 reuse the register of parent for one of the local variables,
23670 since it will think that parent can't possibly be used any more
23671 in this routine. Assigning to the local variable will thus
23672 munge parent in the parent process. */
23674 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23675 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23676 /* Convince the compiler that p..p7 are live; otherwise, it might
23677 use the same hardware register for all 8 local variables. */
23678 if (p != p1 || p != p2 || p != p3 || p != p4
23679 || p != p5 || p != p6 || p != p7)
23682 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23683 from child file descriptors. If the child closes a descriptor
23684 before it execs or exits, this munges the parent's descriptor
23685 as well. Test for this by closing stdout in the child. */
23686 _exit(close(fileno(stdout)) != 0);
23691 while (wait(&status) != child)
23694 /* Was there some problem with vforking? */
23697 /* Did the child fail? (This shouldn't happen.) */
23700 /* Did the vfork/compiler bug occur? */
23701 || parent != getpid()
23703 /* Did the file descriptor bug occur? */
23704 || fstat(fileno(stdout), &st) != 0
23709 if ac_fn_c_try_run "$LINENO"; then :
23710 ac_cv_func_vfork_works=yes
23712 ac_cv_func_vfork_works=no
23714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23715 conftest.$ac_objext conftest.beam conftest.$ac_ext
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23720 $as_echo "$ac_cv_func_vfork_works" >&6; }
23723 if test "x$ac_cv_func_fork_works" = xcross; then
23724 ac_cv_func_vfork_works=$ac_cv_func_vfork
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23726 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23729 if test "x$ac_cv_func_vfork_works" = xyes; then
23731 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23735 $as_echo "#define vfork fork" >>confdefs.h
23738 if test "x$ac_cv_func_fork_works" = xyes; then
23740 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23746 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23747 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
23748 $as_echo_n "(cached) " >&6
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23752 #include <langinfo.h>
23756 char* cs = nl_langinfo(CODESET);
23761 if ac_fn_c_try_link "$LINENO"; then :
23762 emacs_cv_langinfo_codeset=yes
23764 emacs_cv_langinfo_codeset=no
23766 rm -f core conftest.err conftest.$ac_objext \
23767 conftest$ac_exeext conftest.$ac_ext
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
23771 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
23772 if test $emacs_cv_langinfo_codeset = yes; then
23774 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23779 $as_echo_n "checking for mbstate_t... " >&6; }
23780 if test "${ac_cv_type_mbstate_t+set}" = set; then :
23781 $as_echo_n "(cached) " >&6
23783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23784 /* end confdefs.h. */
23785 $ac_includes_default
23786 # include <wchar.h>
23790 mbstate_t x; return sizeof x;
23795 if ac_fn_c_try_compile "$LINENO"; then :
23796 ac_cv_type_mbstate_t=yes
23798 ac_cv_type_mbstate_t=no
23800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23803 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23804 if test $ac_cv_type_mbstate_t = yes; then
23806 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23810 $as_echo "#define mbstate_t int" >>confdefs.h
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
23815 $as_echo_n "checking for C restricted array declarations... " >&6; }
23816 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821 void fred (int x[__restrict]);
23830 if ac_fn_c_try_compile "$LINENO"; then :
23831 emacs_cv_c_restrict_arr=yes
23833 emacs_cv_c_restrict_arr=no
23835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
23838 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
23839 if test "$emacs_cv_c_restrict_arr" = yes; then
23841 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
23847 # Set up the CFLAGS for real compilation, so we can substitute it.
23848 CFLAGS="$REAL_CFLAGS"
23849 CPPFLAGS="$REAL_CPPFLAGS"
23851 ## Hack to detect a buggy GCC version.
23852 if test "x$GCC" = xyes \
23853 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
23854 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
23855 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
23856 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
23859 version=$PACKAGE_VERSION
23861 ### Specify what sort of things we'll be editing into Makefile and config.h.
23862 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23886 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
23887 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
23888 ## end of LIBX_BASE, but nothing ever set it.
23893 ## Used in lwlib/Makefile.in.
23895 if test -n "${machfile}"; then
23896 M_FILE="\$(srcdir)/${machfile}"
23900 S_FILE="\$(srcdir)/${opsysfile}"
23911 cat >>confdefs.h <<_ACEOF
23912 #define EMACS_CONFIGURATION "${canonical}"
23916 cat >>confdefs.h <<_ACEOF
23917 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23920 if test -n "$machfile"; then
23922 cat >>confdefs.h <<_ACEOF
23923 #define config_machfile "${machfile}"
23928 cat >>confdefs.h <<_ACEOF
23929 #define config_opsysfile "${opsysfile}"
23936 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23938 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
23941 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
23943 if test "$HAVE_XFT" = "yes"; then
23944 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
23945 elif test "$HAVE_FREETYPE" = "yes"; then
23946 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
23956 if test "${USE_X_TOOLKIT}" != "none" ; then
23957 WIDGET_OBJ=widget.o
23959 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
23961 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23963 $as_echo "#define USE_LUCID 1" >>confdefs.h
23965 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23967 $as_echo "#define USE_MOTIF 1" >>confdefs.h
23972 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
23973 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
23977 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
23978 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
23979 MOTIF_LIBW="MOTIF_LIBW -lXimp"
23983 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
23984 MOTIF_LIBW="$MOTIF_LIBW -li18n"
23987 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
23993 case "$USE_X_TOOLKIT" in
23994 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
23995 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
23996 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
24000 if test "$USE_X_TOOLKIT" = "none"; then
24001 LIBXT_OTHER="\$(LIBXSM)"
24002 OLDXMENU_TARGET="really-oldXMenu"
24004 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
24005 OLDXMENU_TARGET="really-lwlib"
24009 ## The X Menu stuff is present in the X10 distribution, but missing
24010 ## from X11. If we have X10, just use the installed library;
24011 ## otherwise, use our own copy.
24012 if test "${HAVE_X11}" = "yes" ; then
24014 $as_echo "#define HAVE_X11 1" >>confdefs.h
24017 if test "$USE_X_TOOLKIT" = "none"; then
24018 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
24020 OLDXMENU="\${lwlibdir}/liblw.a"
24022 LIBXMENU="\$(OLDXMENU)"
24023 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
24024 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
24026 ## For a syntactically valid Makefile; not actually used for anything.
24027 ## See comments in src/Makefile.in.
24029 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
24030 if test "${HAVE_X_WINDOWS}" = "yes"; then
24039 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
24052 if test "${HAVE_MENUS}" = "yes" ; then
24054 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
24058 if test "${GNU_MALLOC}" = "yes" ; then
24060 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
24065 if test "${REL_ALLOC}" = "yes" ; then
24067 $as_echo "#define REL_ALLOC 1" >>confdefs.h
24070 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
24074 if test "$opsys" = "cygwin"; then
24075 CYGWIN_OBJ="sheap.o"
24076 ## Cygwin differs because of its unexec().
24078 POST_ALLOC_OBJ=lastfile.o
24081 PRE_ALLOC_OBJ=lastfile.o
24090 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24093 ## The -headerpad option tells ld (see man page) to leave room at the
24094 ## end of the header for adding load commands. Needed for dumping.
24095 ## 0x690 is the total size of 30 segment load commands (at 56
24096 ## each); under Cocoa 31 commands are required.
24097 if test "$HAVE_NS" = "yes"; then
24098 libs_nsgui="-framework AppKit"
24099 headerpad_extra=6C8
24102 headerpad_extra=690
24104 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24106 ## This is here because src/Makefile.in did some extra fiddling around
24107 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24108 ## #ifndef LD_SWITCH_SYSTEM
24109 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24110 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24111 ## not using gcc, darwin system not on an alpha (ie darwin, since
24112 ## darwin + alpha does not occur).
24113 ## Because this was done in src/Makefile.in, the resulting part of
24114 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24115 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24116 ## rather than LD_SWITCH_SYSTEM.
24117 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24118 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24121 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
24122 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
24123 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
24124 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24125 ## had different values in configure (in ac_link) and src/Makefile.in.
24126 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24127 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
24129 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24132 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24133 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24142 ## gnu: GNU needs its own crt0.
24143 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24145 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24146 ## library search parth, i.e. it won't search /usr/lib for libc and
24147 ## friends. Using -nostartfiles instead avoids this problem, and
24148 ## will also work on earlier NetBSD releases.
24149 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24151 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24152 ## MkLinux/LinuxPPC needs this.
24153 ## ibms390x only supports opsys = gnu-linux so it can be added here.
24156 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
24162 if test "x$ORDINARY_LINK" = "xyes"; then
24166 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24169 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24170 ## freebsd, gnu-* not on macppc|ibms390x.
24171 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24173 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24174 ## places that are difficult to figure out at make time. Fortunately,
24175 ## these same versions allow you to pass arbitrary flags on to the
24176 ## linker, so there is no reason not to use it as a linker.
24178 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24179 ## searching for libraries in its internal directories, so we have to
24180 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24181 LD_FIRSTFLAG="-nostdlib"
24184 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24185 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24190 ## FIXME? The logic here is not precisely the same as that above.
24191 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24192 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24194 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24197 freebsd|netbsd|openbsd) LIB_GCC= ;;
24200 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24201 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24207 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24208 ## immediately undefine it again and redefine it to empty.
24209 ## Was the C_SWITCH_X_SITE part really necessary?
24210 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24216 ## Ask GCC where to find libgcc.a.
24217 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24222 ## If we're using X11/GNUstep, define some consequences.
24223 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
24225 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24228 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24235 #### Report on what we decided to do.
24236 #### Report GTK as a toolkit, even if it doesn't use Xt.
24237 #### It makes printing result more understandable as using GTK sets
24238 #### toolkit_scroll_bars to yes by default.
24239 if test "${HAVE_GTK}" = "yes"; then
24244 if test -n "$machfile"; then
24245 and_machfile=" and \`${machfile}'"
24249 Configured for \`${canonical}'.
24251 Where should the build process find the source code? ${srcdir}
24252 What operating system and machine description files should Emacs use?
24253 \`${opsysfile}'${and_machfile}
24254 What compiler should emacs be built with? ${CC} ${CFLAGS}
24255 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24256 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24257 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24258 What window system should Emacs use? ${window_system}
24259 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24261 if test -n "${x_includes}"; then
24262 echo " Where do we find X Windows header files? ${x_includes}"
24264 echo " Where do we find X Windows header files? Standard dirs"
24266 if test -n "${x_libraries}"; then
24267 echo " Where do we find X Windows libraries? ${x_libraries}"
24269 echo " Where do we find X Windows libraries? Standard dirs"
24272 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24273 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24274 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24275 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24276 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24277 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24278 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24279 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24281 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24282 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24283 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24284 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24285 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
24286 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24288 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24289 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24290 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24291 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24293 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24296 if test $USE_XASSERTS = yes; then
24297 echo " Compiling with asserts turned on."
24298 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24303 if test "$HAVE_NS" = "yes"; then
24305 echo "You must run \"make install\" in order to test the built application.
24306 The installed application will go to nextstep/Emacs.app and can be
24307 run or moved from there."
24308 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24309 echo "The application will be fully self-contained."
24311 echo "The lisp resources for the application will be installed under ${prefix}.
24312 You may need to run \"make install\" with sudo. The application will fail
24313 to run if these resources are not installed."
24319 # Remove any trailing slashes in these variables.
24320 test "${prefix}" != NONE &&
24321 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24322 test "${exec_prefix}" != NONE &&
24323 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24325 SUBDIR_MAKEFILES="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"
24327 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"
24330 opt_makefile=test/automated/Makefile
24332 if test -f $srcdir/${opt_makefile}.in; then
24333 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24334 ac_config_files="$ac_config_files test/automated/Makefile"
24338 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24342 ac_config_commands="$ac_config_commands mkdirs"
24345 ac_config_commands="$ac_config_commands epaths"
24348 ac_config_commands="$ac_config_commands gdbinit"
24351 cat >confcache <<\_ACEOF
24352 # This file is a shell script that caches the results of configure
24353 # tests run on this system so they can be shared between configure
24354 # scripts and configure runs, see configure's option --config-cache.
24355 # It is not useful on other systems. If it contains results you don't
24356 # want to keep, you may remove or edit it.
24358 # config.status only pays attention to the cache file if you give it
24359 # the --recheck option to rerun configure.
24361 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24362 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24363 # following values.
24367 # The following way of writing the cache mishandles newlines in values,
24368 # but we know of no workaround that is simple, portable, and efficient.
24369 # So, we kill variables containing newlines.
24370 # Ultrix sh set writes to stderr and can't be redirected directly,
24371 # and sets the high bit in the cache file unless we assign to the vars.
24373 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24374 eval ac_val=\$$ac_var
24378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24382 _ | IFS | as_nl) ;; #(
24383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24384 *) { eval $ac_var=; unset $ac_var;} ;;
24390 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24391 *${as_nl}ac_space=\ *)
24392 # `set' does not quote correctly, so add quotes: double-quote
24393 # substitution turns \\\\ into \\, and sed turns \\ into \.
24396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24399 # `set' quotes correctly as required by POSIX, so do not add quotes.
24400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24413 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24414 if test -w "$cache_file"; then
24415 test "x$cache_file" != "x/dev/null" &&
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24417 $as_echo "$as_me: updating cache $cache_file" >&6;}
24418 cat confcache >$cache_file
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24427 # Let make expand exec_prefix.
24428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24430 DEFS=-DHAVE_CONFIG_H
24434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24435 # 1. Remove the extension, and $U if already installed.
24436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24439 # will be set to the directory where LIBOBJS objects are built.
24440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24443 LIBOBJS=$ac_libobjs
24445 LTLIBOBJS=$ac_ltlibobjs
24448 if test -n "$EXEEXT"; then
24450 am__EXEEXT_FALSE='#'
24452 am__EXEEXT_TRUE='#'
24456 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24457 as_fn_error "conditional \"AMDEP\" was never defined.
24458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24460 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24461 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24465 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24466 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24469 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24470 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24474 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24475 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24478 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24479 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24482 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24483 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24486 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24487 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24490 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24491 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24494 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24495 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24500 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
24501 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
24502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24504 >>>>>>> MERGE-SOURCE
24505 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24506 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24511 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24512 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24515 >>>>>>> MERGE-SOURCE
24516 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24517 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24520 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24521 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24527 if test -n "$gl_LIBOBJS"; then
24528 # Remove the extension.
24529 sed_drop_objext='s/\.o$//;s/\.obj$//'
24530 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24531 gl_libobjs="$gl_libobjs $i.$ac_objext"
24532 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24535 gl_LIBOBJS=$gl_libobjs
24537 gl_LTLIBOBJS=$gl_ltlibobjs
24543 if test -n "$gltests_LIBOBJS"; then
24544 # Remove the extension.
24545 sed_drop_objext='s/\.o$//;s/\.obj$//'
24546 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24547 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24548 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24551 gltests_LIBOBJS=$gltests_libobjs
24553 gltests_LTLIBOBJS=$gltests_ltlibobjs
24557 : ${CONFIG_STATUS=./config.status}
24559 ac_clean_files_save=$ac_clean_files
24560 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24562 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24564 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24566 # Generated by $as_me.
24567 # Run this file to recreate the current configuration.
24568 # Compiler output produced by configure, useful for debugging
24569 # configure, is in config.log if it exists.
24572 ac_cs_recheck=false
24575 SHELL=\${CONFIG_SHELL-$SHELL}
24578 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24579 ## -------------------- ##
24580 ## M4sh Initialization. ##
24581 ## -------------------- ##
24583 # Be more Bourne compatible
24584 DUALCASE=1; export DUALCASE # for MKS sh
24585 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24588 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24589 # is contrary to our usage. Disable this feature.
24590 alias -g '${1+"$@"}'='"$@"'
24591 setopt NO_GLOB_SUBST
24593 case `(set -o) 2>/dev/null` in #(
24605 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24606 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24607 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24609 # Prefer a ksh shell builtin over an external printf program on Solaris,
24610 # but without wasting forks for bash or zsh.
24611 if test -z "$BASH_VERSION$ZSH_VERSION" \
24612 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24613 as_echo='print -r --'
24614 as_echo_n='print -rn --'
24615 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24616 as_echo='printf %s\n'
24617 as_echo_n='printf %s'
24619 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24620 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24621 as_echo_n='/usr/ucb/echo -n'
24623 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24624 as_echo_n_body='eval
24628 expr "X$arg" : "X\\(.*\\)$as_nl";
24629 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24631 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24633 export as_echo_n_body
24634 as_echo_n='sh -c $as_echo_n_body as_echo'
24636 export as_echo_body
24637 as_echo='sh -c $as_echo_body as_echo'
24640 # The user is always right.
24641 if test "${PATH_SEPARATOR+set}" != set; then
24643 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24644 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24651 # We need space, tab and new line, in precisely that order. Quoting is
24652 # there to prevent editors from complaining about space-tab.
24653 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24654 # splitting by setting IFS to empty value.)
24657 # Find who we are. Look in the path if we contain no directory separator.
24659 *[\\/]* ) as_myself=$0 ;;
24660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24661 for as_dir in $PATH
24664 test -z "$as_dir" && as_dir=.
24665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24671 # We did not find ourselves, most probably we were run as `sh COMMAND'
24672 # in which case we are not to be found in the path.
24673 if test "x$as_myself" = x; then
24676 if test ! -f "$as_myself"; then
24677 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24681 # Unset variables that we do not need and which cause bugs (e.g. in
24682 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24683 # suppresses any "Segmentation fault" message there. '((' could
24684 # trigger a bug in pdksh 5.2.14.
24685 for as_var in BASH_ENV ENV MAIL MAILPATH
24686 do eval test x\${$as_var+set} = xset \
24687 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24703 # as_fn_error ERROR [LINENO LOG_FD]
24704 # ---------------------------------
24705 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24706 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24707 # script with status $?, using 1 if that was 0.
24710 as_status=$?; test $as_status -eq 0 && as_status=1
24712 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24713 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24715 $as_echo "$as_me: error: $1" >&2
24716 as_fn_exit $as_status
24720 # as_fn_set_status STATUS
24721 # -----------------------
24722 # Set $? to STATUS, without forking.
24723 as_fn_set_status ()
24726 } # as_fn_set_status
24728 # as_fn_exit STATUS
24729 # -----------------
24730 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24734 as_fn_set_status $1
24740 # Portably unset VAR.
24743 { eval $1=; unset $1;}
24745 as_unset=as_fn_unset
24746 # as_fn_append VAR VALUE
24747 # ----------------------
24748 # Append the text in VALUE to the end of the definition contained in VAR. Take
24749 # advantage of any shell optimizations that allow amortized linear growth over
24750 # repeated appends, instead of the typical quadratic growth present in naive
24752 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24753 eval 'as_fn_append ()
24764 # as_fn_arith ARG...
24765 # ------------------
24766 # Perform arithmetic evaluation on the ARGs, and store the result in the
24767 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24768 # must be portable across $(()) and expr.
24769 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24770 eval 'as_fn_arith ()
24777 as_val=`expr "$@" || test $? -eq 1`
24782 if expr a : '\(a\)' >/dev/null 2>&1 &&
24783 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24789 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24790 as_basename=basename
24795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24801 as_me=`$as_basename -- "$0" ||
24802 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24803 X"$0" : 'X\(//\)$' \| \
24804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24806 sed '/^.*\/\([^/][^/]*\)\/*$/{
24820 # Avoid depending upon Character Ranges.
24821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24824 as_cr_digits='0123456789'
24825 as_cr_alnum=$as_cr_Letters$as_cr_digits
24827 ECHO_C= ECHO_N= ECHO_T=
24828 case `echo -n x` in #(((((
24830 case `echo 'xy\c'` in
24831 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24833 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24840 rm -f conf$$ conf$$.exe conf$$.file
24841 if test -d conf$$.dir; then
24842 rm -f conf$$.dir/conf$$.file
24845 mkdir conf$$.dir 2>/dev/null
24847 if (echo >conf$$.file) 2>/dev/null; then
24848 if ln -s conf$$.file conf$$ 2>/dev/null; then
24850 # ... but there are two gotchas:
24851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24853 # In both cases, we have to default to `cp -p'.
24854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24856 elif ln conf$$.file conf$$ 2>/dev/null; then
24864 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24865 rmdir conf$$.dir 2>/dev/null
24870 # Create "$as_dir" as a directory, including parents if necessary.
24875 -*) as_dir=./$as_dir;;
24877 test -d "$as_dir" || eval $as_mkdir_p || {
24881 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24882 *) as_qdir=$as_dir;;
24884 as_dirs="'$as_qdir' $as_dirs"
24885 as_dir=`$as_dirname -- "$as_dir" ||
24886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24887 X"$as_dir" : 'X\(//\)[^/]' \| \
24888 X"$as_dir" : 'X\(//\)$' \| \
24889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24890 $as_echo X"$as_dir" |
24891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24895 /^X\(\/\/\)[^/].*/{
24908 test -d "$as_dir" && break
24910 test -z "$as_dirs" || eval "mkdir $as_dirs"
24911 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24915 if mkdir -p . 2>/dev/null; then
24916 as_mkdir_p='mkdir -p "$as_dir"'
24918 test -d ./-p && rmdir ./-p
24922 if test -x / >/dev/null 2>&1; then
24923 as_test_x='test -x'
24925 if ls -dL / >/dev/null 2>&1; then
24932 if test -d "$1"; then
24938 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24939 ???[sx]*):;;*)false;;esac;fi
24943 as_executable_p=$as_test_x
24945 # Sed expression to map a string onto a valid CPP name.
24946 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24948 # Sed expression to map a string onto a valid variable name.
24949 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24953 ## ----------------------------------- ##
24954 ## Main body of $CONFIG_STATUS script. ##
24955 ## ----------------------------------- ##
24957 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24960 # Save the log message, to keep $0 and so on meaningful, and to
24961 # report actual input values of CONFIG_FILES etc. instead of their
24962 # values after options handling.
24964 This file was extended by emacs $as_me 24.0.90, which was
24965 generated by GNU Autoconf 2.65. Invocation command line was
24967 CONFIG_FILES = $CONFIG_FILES
24968 CONFIG_HEADERS = $CONFIG_HEADERS
24969 CONFIG_LINKS = $CONFIG_LINKS
24970 CONFIG_COMMANDS = $CONFIG_COMMANDS
24973 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24978 case $ac_config_files in *"
24979 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24982 case $ac_config_headers in *"
24983 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24988 # Files that config.status was made for.
24989 config_files="$ac_config_files"
24990 config_headers="$ac_config_headers"
24991 config_commands="$ac_config_commands"
24995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24997 \`$as_me' instantiates files and other configuration actions
24998 from templates according to the current configuration. Unless the files
24999 and actions are specified as TAGs, all are instantiated by default.
25001 Usage: $0 [OPTION]... [TAG]...
25003 -h, --help print this help, then exit
25004 -V, --version print version number and configuration settings, then exit
25005 --config print configuration, then exit
25006 -q, --quiet, --silent
25007 do not print progress messages
25008 -d, --debug don't remove temporary files
25009 --recheck update $as_me by reconfiguring in the same conditions
25010 --file=FILE[:TEMPLATE]
25011 instantiate the configuration file FILE
25012 --header=FILE[:TEMPLATE]
25013 instantiate the configuration header FILE
25015 Configuration files:
25018 Configuration headers:
25021 Configuration commands:
25024 Report bugs to the package provider."
25027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25028 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25030 emacs config.status 24.0.90
25031 configured by $0, generated by GNU Autoconf 2.65,
25032 with options \\"\$ac_cs_config\\"
25034 Copyright (C) 2009 Free Software Foundation, Inc.
25035 This config.status script is free software; the Free Software Foundation
25036 gives unlimited permission to copy, distribute and modify it."
25043 test -n "\$AWK" || AWK=awk
25046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25047 # The default lists apply if the user does not specify any file.
25053 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25054 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25065 # Handling of the options.
25066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25068 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25069 $as_echo "$ac_cs_version"; exit ;;
25070 --config | --confi | --conf | --con | --co | --c )
25071 $as_echo "$ac_cs_config"; exit ;;
25072 --debug | --debu | --deb | --de | --d | -d )
25074 --file | --fil | --fi | --f )
25077 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25079 as_fn_append CONFIG_FILES " '$ac_optarg'"
25080 ac_need_defaults=false;;
25081 --header | --heade | --head | --hea )
25084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25086 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25087 ac_need_defaults=false;;
25089 # Conflict between --help and --header
25090 as_fn_error "ambiguous option: \`$1'
25091 Try \`$0 --help' for more information.";;
25092 --help | --hel | -h )
25093 $as_echo "$ac_cs_usage"; exit ;;
25094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25098 # This is an error.
25099 -*) as_fn_error "unrecognized option: \`$1'
25100 Try \`$0 --help' for more information." ;;
25102 *) as_fn_append ac_config_targets " $1"
25103 ac_need_defaults=false ;;
25109 ac_configure_extra_args=
25111 if $ac_cs_silent; then
25113 ac_configure_extra_args="$ac_configure_extra_args --silent"
25117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25118 if \$ac_cs_recheck; then
25119 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25121 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25122 CONFIG_SHELL='$SHELL'
25123 export CONFIG_SHELL
25128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25133 ## Running $as_me. ##
25139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25143 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25144 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
25148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25150 # Handling of arguments.
25151 for ac_config_target in $ac_config_targets
25153 case $ac_config_target in
25154 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25155 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25156 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25157 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25158 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25159 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25160 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25161 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25162 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25163 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25164 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25165 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25166 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25167 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25168 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25169 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25170 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25171 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25173 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25178 # If the user did not use the arguments to specify the items to instantiate,
25179 # then the envvar interface is used. Set only those that are not.
25180 # We use the long form for the default assignment because of an extremely
25181 # bizarre bug on SunOS 4.1.3.
25182 if $ac_need_defaults; then
25183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25185 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25188 # Have a temporary directory for convenience. Make it in the build tree
25189 # simply because there is no reason against having it here, and in addition,
25190 # creating and moving files from /tmp can sometimes cause problems.
25191 # Hook for its removal unless debugging.
25192 # Note that there is a small window in which the directory will not be cleaned:
25193 # after its creation but before its name has been assigned to `$tmp'.
25197 trap 'exit_status=$?
25198 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25200 trap 'as_fn_exit 1' 1 2 13 15
25202 # Create a (secure) tmp directory for tmp files.
25205 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25206 test -n "$tmp" && test -d "$tmp"
25209 tmp=./conf$$-$RANDOM
25210 (umask 077 && mkdir "$tmp")
25211 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25213 # Set up the scripts for CONFIG_FILES section.
25214 # No need to generate them if there are no CONFIG_FILES.
25215 # This happens for instance with `./config.status config.h'.
25216 if test -n "$CONFIG_FILES"; then
25218 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25219 ac_cs_awk_getline=:
25220 ac_cs_awk_pipe_init=
25221 ac_cs_awk_read_file='
25222 while ((getline aline < (F[key])) > 0)
25225 ac_cs_awk_pipe_fini=
25227 ac_cs_awk_getline=false
25228 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25229 ac_cs_awk_read_file='
25231 print "cat " F[key] " &&"
25232 '$ac_cs_awk_pipe_init
25233 # The final `:' finishes the AND list.
25234 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25236 ac_cr=`echo X | tr X '\015'`
25237 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25238 # But we know of no other shell where ac_cr would be empty at this
25239 # point, so we can use a bashism as a fallback.
25240 if test "x$ac_cr" = x; then
25241 eval ac_cr=\$\'\\r\'
25243 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25244 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25247 ac_cs_awk_cr=$ac_cr
25250 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25253 # Create commands to substitute file output variables.
25255 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25256 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25257 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25260 } >conf$$files.sh &&
25261 . ./conf$$files.sh ||
25262 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25263 rm -f conf$$files.sh
25266 echo "cat >conf$$subs.awk <<_ACEOF" &&
25267 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25269 } >conf$$subs.sh ||
25270 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25271 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25273 for ac_last_try in false false false false false :; do
25274 . ./conf$$subs.sh ||
25275 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25277 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25278 if test $ac_delim_n = $ac_delim_num; then
25280 elif $ac_last_try; then
25281 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25283 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25286 rm -f conf$$subs.sh
25288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25289 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25293 s/^/S["/; s/!.*/"]=/
25303 s/\(.\{148\}\)..*/\1/
25305 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25310 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25317 s/\(.\{148\}\)..*/\1/
25319 s/["\\]/\\&/g; s/^/"/; s/$/"/
25323 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25328 ' <conf$$subs.awk | sed '
25333 ' >>$CONFIG_STATUS || ac_write_fail=1
25334 rm -f conf$$subs.awk
25335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25337 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25338 for (key in S) S_is_set[key] = 1
25340 \$ac_cs_awk_pipe_init
25344 nfields = split(line, field, "@")
25346 len = length(field[1])
25347 for (i = 2; i < nfields; i++) {
25349 keylen = length(key)
25350 if (S_is_set[key]) {
25352 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25353 len += length(value) + length(field[++i])
25358 if (nfields == 3 && !substed) {
25360 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25361 \$ac_cs_awk_read_file
25367 \$ac_cs_awk_pipe_fini
25370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25371 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25372 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25375 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25376 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25379 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25380 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25381 # trailing colons and then remove the whole line if VPATH becomes empty
25382 # (actually we leave an empty line to preserve line numbers).
25383 if test "x$srcdir" = x.; then
25384 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25385 s/:*\$(srcdir):*/:/
25386 s/:*\${srcdir}:*/:/
25388 s/^\([^=]*=[ ]*\):*/\1/
25394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25395 fi # test -n "$CONFIG_FILES"
25397 # Set up the scripts for CONFIG_HEADERS section.
25398 # No need to generate them if there are no CONFIG_HEADERS.
25399 # This happens for instance with `./config.status Makefile'.
25400 if test -n "$CONFIG_HEADERS"; then
25401 cat >"$tmp/defines.awk" <<\_ACAWK ||
25405 # Transform confdefs.h into an awk script `defines.awk', embedded as
25406 # here-document in config.status, that substitutes the proper values into
25407 # config.h.in to produce config.h.
25409 # Create a delimiter string that does not exist in confdefs.h, to ease
25410 # handling of long lines.
25412 for ac_last_try in false false :; do
25413 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25414 if test -z "$ac_t"; then
25416 elif $ac_last_try; then
25417 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25423 # For the awk script, D is an array of macro values keyed by name,
25424 # likewise P contains macro parameters if any. Preserve backslash
25425 # newline sequences.
25427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25429 s/.\{148\}/&'"$ac_delim"'/g
25432 s/^[ ]*#[ ]*define[ ][ ]*/ /
25439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25446 D["\1"]=" \3\\\\\\n"\\/p
25448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25453 s/.\{148\}/&'"$ac_delim"'/g
25458 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25461 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25463 ' <confdefs.h | sed '
25464 s/'"$ac_delim"'/"\\\
25465 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25468 for (key in D) D_is_set[key] = 1
25471 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25473 split(line, arg, " ")
25474 if (arg[1] == "#") {
25478 defundef = substr(arg[1], 2)
25481 split(mac1, mac2, "(") #)
25483 prefix = substr(line, 1, index(line, defundef) - 1)
25484 if (D_is_set[macro]) {
25485 # Preserve the white space surrounding the "#".
25486 print prefix "define", macro P[macro] D[macro]
25489 # Replace #undef with comments. This is necessary, for example,
25490 # in the case of _POSIX_SOURCE, which is predefined and required
25491 # on some systems where configure will not decide to define it.
25492 if (defundef == "undef") {
25493 print "/*", prefix defundef, macro, "*/"
25501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25502 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25503 fi # test -n "$CONFIG_HEADERS"
25506 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25511 :[FHLC]) ac_mode=$ac_tag; continue;;
25513 case $ac_mode$ac_tag in
25515 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25516 :[FH]-) ac_tag=-:-;;
25517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25534 -) ac_f="$tmp/stdin";;
25535 *) # Look for the file first in the build tree, then in the source tree
25536 # (if the path is not absolute). The absolute path cannot be DOS-style,
25537 # because $ac_f cannot contain `:'.
25541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25543 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25546 as_fn_append ac_file_inputs " '$ac_f'"
25549 # Let's still pretend it is `configure' which instantiates (i.e., don't
25550 # use $as_me), people would be surprised to read:
25551 # /* config.h. Generated by config.status. */
25552 configure_input='Generated from '`
25553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25555 if test x"$ac_file" != x-; then
25556 configure_input="$ac_file. $configure_input"
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25558 $as_echo "$as_me: creating $ac_file" >&6;}
25560 # Neutralize special characters interpreted by sed in replacement strings.
25561 case $configure_input in #(
25562 *\&* | *\|* | *\\* )
25563 ac_sed_conf_input=`$as_echo "$configure_input" |
25564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25565 *) ac_sed_conf_input=$configure_input;;
25569 *:-:* | *:-) cat >"$tmp/stdin" \
25570 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25575 ac_dir=`$as_dirname -- "$ac_file" ||
25576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25577 X"$ac_file" : 'X\(//\)[^/]' \| \
25578 X"$ac_file" : 'X\(//\)$' \| \
25579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25580 $as_echo X"$ac_file" |
25581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25585 /^X\(\/\/\)[^/].*/{
25598 as_dir="$ac_dir"; as_fn_mkdir_p
25602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25605 # A ".." for each directory in $ac_dir_suffix.
25606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25607 case $ac_top_builddir_sub in
25608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25612 ac_abs_top_builddir=$ac_pwd
25613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25614 # for backward compatibility:
25615 ac_top_builddir=$ac_top_build_prefix
25618 .) # We are building in place.
25620 ac_top_srcdir=$ac_top_builddir_sub
25621 ac_abs_top_srcdir=$ac_pwd ;;
25622 [\\/]* | ?:[\\/]* ) # Absolute name.
25623 ac_srcdir=$srcdir$ac_dir_suffix;
25624 ac_top_srcdir=$srcdir
25625 ac_abs_top_srcdir=$srcdir ;;
25626 *) # Relative name.
25627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25628 ac_top_srcdir=$ac_top_build_prefix$srcdir
25629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25644 ac_MKDIR_P=$MKDIR_P
25646 [\\/$]* | ?:[\\/]* ) ;;
25647 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25652 # If the template does not know about datarootdir, expand it.
25653 # FIXME: This hack should be removed a few years after 2.60.
25654 ac_datarootdir_hack=; ac_datarootdir_seen=
25665 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25666 *datarootdir*) ac_datarootdir_seen=yes;;
25667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25669 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25672 ac_datarootdir_hack='
25673 s&@datadir@&$datadir&g
25674 s&@docdir@&$docdir&g
25675 s&@infodir@&$infodir&g
25676 s&@localedir@&$localedir&g
25677 s&@mandir@&$mandir&g
25678 s&\\\${datarootdir}&$datarootdir&g' ;;
25682 # Neutralize VPATH when `$srcdir' = `.'.
25683 # Shell code in configure.ac might set extrasub.
25684 # FIXME: do we really want to maintain this feature?
25685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25686 ac_sed_extra="$ac_vpsub
25689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25692 s|@configure_input@|$ac_sed_conf_input|;t t
25693 s&@top_builddir@&$ac_top_builddir_sub&;t t
25694 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25695 s&@srcdir@&$ac_srcdir&;t t
25696 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25697 s&@top_srcdir@&$ac_top_srcdir&;t t
25698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25699 s&@builddir@&$ac_builddir&;t t
25700 s&@abs_builddir@&$ac_abs_builddir&;t t
25701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25702 s&@INSTALL@&$ac_INSTALL&;t t
25703 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25704 $ac_datarootdir_hack
25706 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25707 if $ac_cs_awk_getline; then
25708 $AWK -f "$tmp/subs.awk"
25710 $AWK -f "$tmp/subs.awk" | $SHELL
25712 || as_fn_error "could not create $ac_file" "$LINENO" 5
25714 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25715 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25716 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25718 which seems to be undefined. Please make sure it is defined." >&5
25719 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25720 which seems to be undefined. Please make sure it is defined." >&2;}
25724 -) cat "$tmp/out" && rm -f "$tmp/out";;
25725 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25727 || as_fn_error "could not create $ac_file" "$LINENO" 5
25733 if test x"$ac_file" != x-; then
25735 $as_echo "/* $configure_input */" \
25736 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25737 } >"$tmp/config.h" \
25738 || as_fn_error "could not create $ac_file" "$LINENO" 5
25739 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25741 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25744 mv "$tmp/config.h" "$ac_file" \
25745 || as_fn_error "could not create $ac_file" "$LINENO" 5
25748 $as_echo "/* $configure_input */" \
25749 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25750 || as_fn_error "could not create -" "$LINENO" 5
25752 # Compute "$ac_file"'s index in $config_headers.
25755 for _am_header in $config_headers :; do
25756 case $_am_header in
25757 $_am_arg | $_am_arg:* )
25760 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25763 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25764 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25765 X"$_am_arg" : 'X\(//\)[^/]' \| \
25766 X"$_am_arg" : 'X\(//\)$' \| \
25767 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25768 $as_echo X"$_am_arg" |
25769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25773 /^X\(\/\/\)[^/].*/{
25785 s/.*/./; q'`/stamp-h$_am_stamp_count
25788 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25789 $as_echo "$as_me: executing $ac_file commands" >&6;}
25794 case $ac_file$ac_mode in
25795 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25796 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25797 # are listed without --file. Let's play safe and only enable the eval
25798 # if we detect the quoting.
25799 case $CONFIG_FILES in
25800 *\'*) eval set x "$CONFIG_FILES" ;;
25801 *) set x $CONFIG_FILES ;;
25806 # Strip MF so we end up with the name of the file.
25807 mf=`echo "$mf" | sed -e 's/:.*$//'`
25808 # Check whether this is an Automake generated Makefile or not.
25809 # We used to match only the files named `Makefile.in', but
25810 # some people rename them; so instead we look at the file content.
25811 # Grep'ing the first line is not enough: some people post-process
25812 # each Makefile.in and add a new line on top of each file to say so.
25813 # Grep'ing the whole file is not good either: AIX grep has a line
25814 # limit of 2048, but all sed's we know have understand at least 4000.
25815 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25816 dirpart=`$as_dirname -- "$mf" ||
25817 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25818 X"$mf" : 'X\(//\)[^/]' \| \
25819 X"$mf" : 'X\(//\)$' \| \
25820 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25826 /^X\(\/\/\)[^/].*/{
25842 # Extract the definition of DEPDIR, am__include, and am__quote
25843 # from the Makefile without running `make'.
25844 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25845 test -z "$DEPDIR" && continue
25846 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25847 test -z "am__include" && continue
25848 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25849 # When using ansi2knr, U may be empty or an underscore; expand it
25850 U=`sed -n 's/^U = //p' < "$mf"`
25851 # Find all dependency output files, they are included files with
25852 # $(DEPDIR) in their names. We invoke sed twice because it is the
25853 # simplest approach to changing $(DEPDIR) to its actual value in the
25855 for file in `sed -n "
25856 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25857 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25858 # Make sure the directory exists.
25859 test -f "$dirpart/$file" && continue
25860 fdir=`$as_dirname -- "$file" ||
25861 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25862 X"$file" : 'X\(//\)[^/]' \| \
25863 X"$file" : 'X\(//\)$' \| \
25864 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25865 $as_echo X"$file" |
25866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25870 /^X\(\/\/\)[^/].*/{
25883 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25884 # echo "creating $dirpart/$file"
25885 echo '# dummy' > "$dirpart/$file"
25891 for dir in etc lisp ; do
25892 test -d ${dir} || mkdir ${dir}
25896 echo creating src/epaths.h
25897 ${MAKE-make} epaths-force
25900 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25901 echo creating src/.gdbinit
25902 echo source $srcdir/src/.gdbinit > src/.gdbinit
25912 ac_clean_files=$ac_clean_files_save
25914 test $ac_write_fail = 0 ||
25915 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25918 # configure is writing to config.log, and then calls config.status.
25919 # config.status does its own redirection, appending to config.log.
25920 # Unfortunately, on DOS this fails, as config.log is still kept open
25921 # by configure, so config.status won't be able to write to it; its
25922 # output is simply discarded. So we exec the FD to /dev/null,
25923 # effectively closing config.log, so it can be properly (re)opened and
25924 # appended to by config.status. When coming back to configure, we
25925 # need to make the FD available again.
25926 if test "$no_create" != yes; then
25928 ac_config_status_args=
25929 test "$silent" = yes &&
25930 ac_config_status_args="$ac_config_status_args --quiet"
25932 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25934 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25935 # would make configure fail if this is the last instruction.
25936 $ac_cs_success || as_fn_exit $?
25938 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25940 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}