2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.1.50'
553 PACKAGE_STRING
='emacs 24.1.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
596 gl_getopt_required
=POSIX
597 gl_getopt_required
=POSIX
598 ac_subst_vars
='gltests_LTLIBOBJS
609 LD_SWITCH_SYSTEM_TEMACS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_pathmax_FALSE
624 gl_GNULIB_ENABLED_pathmax_TRUE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
627 gl_GNULIB_ENABLED_dosname_FALSE
628 gl_GNULIB_ENABLED_dosname_TRUE
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
640 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
642 WINDOWS_64_BIT_ST_SIZE
643 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
645 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
647 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
656 REPLACE_STDIO_WRITE_FUNCS
657 REPLACE_STDIO_READ_FUNCS
666 REPLACE_OBSTACK_PRINTF
691 HAVE_DECL_OBSTACK_PRINTF
697 GNULIB_VSPRINTF_POSIX
701 GNULIB_VFPRINTF_POSIX
708 GNULIB_STDIO_H_SIGPIPE
709 GNULIB_STDIO_H_NONBLOCKING
724 GNULIB_OBSTACK_PRINTF_POSIX
725 GNULIB_OBSTACK_PRINTF
750 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
752 GL_GENERATE_STDDEF_H_FALSE
753 GL_GENERATE_STDDEF_H_TRUE
758 GL_GENERATE_STDBOOL_H_FALSE
759 GL_GENERATE_STDBOOL_H_TRUE
761 GL_GENERATE_STDARG_H_FALSE
762 GL_GENERATE_STDARG_H_TRUE
764 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
766 GL_GENERATE_STDALIGN_H_FALSE
767 GL_GENERATE_STDALIGN_H_TRUE
769 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
773 REPLACE_PTHREAD_SIGMASK
775 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
776 HAVE_STRUCT_SIGACTION_SA_SIGACTION
782 HAVE_POSIX_SIGNALBLOCKING
785 GNULIB_SIGNAL_H_SIGPIPE
787 GNULIB_PTHREAD_SIGMASK
795 HAVE_DECL_LOCALTIME_R
834 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
836 UINT64_MAX_EQ_ULONG_MAX
837 UINT32_MAX_LT_UINTMAX_MAX
840 INT64_MAX_EQ_LONG_MAX
841 INT32_MAX_LT_INTMAX_MAX
851 GL_GENERATE_STDINT_H_FALSE
852 GL_GENERATE_STDINT_H_TRUE
861 HAVE_SIGNED_SIG_ATOMIC_T
864 BITSIZEOF_SIG_ATOMIC_T
867 APPLE_UNIVERSAL_BUILD
871 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
876 HAVE_UNSIGNED_LONG_LONG_INT
878 GNULIB_GL_UNISTD_H_GETOPT
881 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
885 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
900 REPLACE_CANONICALIZE_FILE_NAME
905 HAVE_STRUCT_RANDOM_DATA
927 HAVE_CANONICALIZE_FILE_NAME
957 GNULIB_CANONICALIZE_FILE_NAME
961 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
962 UNISTD_H_HAVE_WINSOCK2_H
983 REPLACE_GETDOMAINNAME
994 HAVE_DECL_SETHOSTNAME
995 HAVE_DECL_GETUSERSHELL
996 HAVE_DECL_GETPAGESIZE
998 HAVE_DECL_GETDOMAINNAME
1037 GNULIB_UNISTD_H_SIGPIPE
1038 GNULIB_UNISTD_H_NONBLOCKING
1064 GNULIB_GETDTABLESIZE
1065 GNULIB_GETDOMAINNAME
1081 GL_GENERATE_ALLOCA_H_FALSE
1082 GL_GENERATE_ALLOCA_H_TRUE
1085 GL_COND_LIBTOOL_FALSE
1086 GL_COND_LIBTOOL_TRUE
1118 x_default_search_path
1187 INSTALL_ARCH_INDEP_EXTRA
1189 LD_SWITCH_X_SITE_RPATH
1257 INSTALL_STRIP_PROGRAM
1299 program_transform_name
1310 ac_subst_files
='deps_frag
1314 enable_option_checking
1337 with_toolkit_scroll_bars
1349 with_pkg_config_prog
1353 enable_ns_self_contained
1355 enable_locallisppath
1357 enable_use_lisp_union_type
1360 enable_dependency_tracking
1365 ac_precious_vars
='build_alias
1377 # Initialize some variables set by options.
1379 ac_init_version
=false
1380 ac_unrecognized_opts
=
1381 ac_unrecognized_sep
=
1382 # The variables have the same names as the options, with
1383 # dashes changed to underlines.
1384 cache_file
=/dev
/null
1391 program_transform_name
=s
,x
,x
,
1399 # Installation directory options.
1400 # These are left unexpanded so users can "make install exec_prefix=/foo"
1401 # and all the variables that are supposed to be based on exec_prefix
1402 # by default will actually change.
1403 # Use braces instead of parens because sh, perl, etc. also accept them.
1404 # (The list follows the same order as the GNU Coding Standards.)
1405 bindir
='${exec_prefix}/bin'
1406 sbindir
='${exec_prefix}/sbin'
1407 libexecdir
='${exec_prefix}/libexec'
1408 datarootdir
='${prefix}/share'
1409 datadir
='${datarootdir}'
1410 sysconfdir
='${prefix}/etc'
1411 sharedstatedir
='${prefix}/com'
1412 localstatedir
='${prefix}/var'
1413 includedir
='${prefix}/include'
1414 oldincludedir
='/usr/include'
1415 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1416 infodir
='${datarootdir}/info'
1421 libdir
='${exec_prefix}/lib'
1422 localedir
='${datarootdir}/locale'
1423 mandir
='${datarootdir}/man'
1429 # If the previous option needs an argument, assign it.
1430 if test -n "$ac_prev"; then
1431 eval $ac_prev=\
$ac_option
1437 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1441 # Accept the important Cygnus configure options, so we can diagnose typos.
1443 case $ac_dashdash$ac_option in
1447 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1449 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1450 bindir
=$ac_optarg ;;
1452 -build |
--build |
--buil |
--bui |
--bu)
1453 ac_prev
=build_alias
;;
1454 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1455 build_alias
=$ac_optarg ;;
1457 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1458 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1459 ac_prev
=cache_file
;;
1460 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1461 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1462 cache_file
=$ac_optarg ;;
1464 --config-cache |
-C)
1465 cache_file
=config.cache
;;
1467 -datadir |
--datadir |
--datadi |
--datad)
1469 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1470 datadir
=$ac_optarg ;;
1472 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1473 |
--dataroo |
--dataro |
--datar)
1474 ac_prev
=datarootdir
;;
1475 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1476 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1477 datarootdir
=$ac_optarg ;;
1479 -disable-* |
--disable-*)
1480 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1481 # Reject names that are not valid shell variable names.
1482 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1483 as_fn_error
"invalid feature name: $ac_useropt"
1484 ac_useropt_orig
=$ac_useropt
1485 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1486 case $ac_user_opts in
1488 "enable_
$ac_useropt"
1490 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1491 ac_unrecognized_sep
=', ';;
1493 eval enable_
$ac_useropt=no
;;
1495 -docdir |
--docdir |
--docdi |
--doc |
--do)
1497 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1498 docdir
=$ac_optarg ;;
1500 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1502 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1503 dvidir
=$ac_optarg ;;
1505 -enable-* |
--enable-*)
1506 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1507 # Reject names that are not valid shell variable names.
1508 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1509 as_fn_error
"invalid feature name: $ac_useropt"
1510 ac_useropt_orig
=$ac_useropt
1511 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1512 case $ac_user_opts in
1514 "enable_
$ac_useropt"
1516 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1517 ac_unrecognized_sep
=', ';;
1519 eval enable_
$ac_useropt=\
$ac_optarg ;;
1521 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1522 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1523 |
--exec |
--exe |
--ex)
1524 ac_prev
=exec_prefix
;;
1525 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1526 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1527 |
--exec=* |
--exe=* |
--ex=*)
1528 exec_prefix
=$ac_optarg ;;
1530 -gas |
--gas |
--ga |
--g)
1531 # Obsolete; use --with-gas.
1534 -help |
--help |
--hel |
--he |
-h)
1535 ac_init_help
=long
;;
1536 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1537 ac_init_help
=recursive
;;
1538 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1539 ac_init_help
=short
;;
1541 -host |
--host |
--hos |
--ho)
1542 ac_prev
=host_alias
;;
1543 -host=* |
--host=* |
--hos=* |
--ho=*)
1544 host_alias
=$ac_optarg ;;
1546 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1548 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1550 htmldir
=$ac_optarg ;;
1552 -includedir |
--includedir |
--includedi |
--included |
--include \
1553 |
--includ |
--inclu |
--incl |
--inc)
1554 ac_prev
=includedir
;;
1555 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1556 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1557 includedir
=$ac_optarg ;;
1559 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1561 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1562 infodir
=$ac_optarg ;;
1564 -libdir |
--libdir |
--libdi |
--libd)
1566 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1567 libdir
=$ac_optarg ;;
1569 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1570 |
--libexe |
--libex |
--libe)
1571 ac_prev
=libexecdir
;;
1572 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1573 |
--libexe=* |
--libex=* |
--libe=*)
1574 libexecdir
=$ac_optarg ;;
1576 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1577 ac_prev
=localedir
;;
1578 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1579 localedir
=$ac_optarg ;;
1581 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1582 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1583 ac_prev
=localstatedir
;;
1584 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1585 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1586 localstatedir
=$ac_optarg ;;
1588 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1590 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1591 mandir
=$ac_optarg ;;
1593 -nfp |
--nfp |
--nf)
1594 # Obsolete; use --without-fp.
1597 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1598 |
--no-cr |
--no-c |
-n)
1601 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1602 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1605 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1606 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1607 |
--oldin |
--oldi |
--old |
--ol |
--o)
1608 ac_prev
=oldincludedir
;;
1609 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1610 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1611 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1612 oldincludedir
=$ac_optarg ;;
1614 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1616 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1617 prefix
=$ac_optarg ;;
1619 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1620 |
--program-pre |
--program-pr |
--program-p)
1621 ac_prev
=program_prefix
;;
1622 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1623 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1624 program_prefix
=$ac_optarg ;;
1626 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1627 |
--program-suf |
--program-su |
--program-s)
1628 ac_prev
=program_suffix
;;
1629 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1630 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1631 program_suffix
=$ac_optarg ;;
1633 -program-transform-name |
--program-transform-name \
1634 |
--program-transform-nam |
--program-transform-na \
1635 |
--program-transform-n |
--program-transform- \
1636 |
--program-transform |
--program-transfor \
1637 |
--program-transfo |
--program-transf \
1638 |
--program-trans |
--program-tran \
1639 |
--progr-tra |
--program-tr |
--program-t)
1640 ac_prev
=program_transform_name
;;
1641 -program-transform-name=* |
--program-transform-name=* \
1642 |
--program-transform-nam=* |
--program-transform-na=* \
1643 |
--program-transform-n=* |
--program-transform-=* \
1644 |
--program-transform=* |
--program-transfor=* \
1645 |
--program-transfo=* |
--program-transf=* \
1646 |
--program-trans=* |
--program-tran=* \
1647 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1648 program_transform_name
=$ac_optarg ;;
1650 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1652 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1653 pdfdir
=$ac_optarg ;;
1655 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1657 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1660 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1661 |
-silent |
--silent |
--silen |
--sile |
--sil)
1664 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1666 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1668 sbindir
=$ac_optarg ;;
1670 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1671 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1672 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1674 ac_prev
=sharedstatedir
;;
1675 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1676 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1677 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1679 sharedstatedir
=$ac_optarg ;;
1681 -site |
--site |
--sit)
1683 -site=* |
--site=* |
--sit=*)
1686 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1688 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1689 srcdir
=$ac_optarg ;;
1691 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1692 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1693 ac_prev
=sysconfdir
;;
1694 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1695 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1696 sysconfdir
=$ac_optarg ;;
1698 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1699 ac_prev
=target_alias
;;
1700 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1701 target_alias
=$ac_optarg ;;
1703 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1706 -version |
--version |
--versio |
--versi |
--vers |
-V)
1707 ac_init_version
=: ;;
1710 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1711 # Reject names that are not valid shell variable names.
1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1713 as_fn_error
"invalid package name: $ac_useropt"
1714 ac_useropt_orig
=$ac_useropt
1715 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716 case $ac_user_opts in
1720 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1721 ac_unrecognized_sep
=', ';;
1723 eval with_
$ac_useropt=\
$ac_optarg ;;
1725 -without-* |
--without-*)
1726 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1727 # Reject names that are not valid shell variable names.
1728 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1729 as_fn_error
"invalid package name: $ac_useropt"
1730 ac_useropt_orig
=$ac_useropt
1731 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1732 case $ac_user_opts in
1736 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1737 ac_unrecognized_sep
=', ';;
1739 eval with_
$ac_useropt=no
;;
1742 # Obsolete; use --with-x.
1745 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1746 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1747 ac_prev
=x_includes
;;
1748 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1749 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1750 x_includes
=$ac_optarg ;;
1752 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1753 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1754 ac_prev
=x_libraries
;;
1755 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1756 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1757 x_libraries
=$ac_optarg ;;
1759 -*) as_fn_error
"unrecognized option: \`$ac_option'
1760 Try \`$0 --help' for more information."
1764 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1765 # Reject names that are not valid shell variable names.
1766 case $ac_envvar in #(
1767 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1768 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1770 eval $ac_envvar=\
$ac_optarg
1771 export $ac_envvar ;;
1774 # FIXME: should be removed in autoconf 3.0.
1775 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1776 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1777 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1778 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1784 if test -n "$ac_prev"; then
1785 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1786 as_fn_error
"missing argument to $ac_option"
1789 if test -n "$ac_unrecognized_opts"; then
1790 case $enable_option_checking in
1792 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1793 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1797 # Check all directory arguments for consistency.
1798 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1799 datadir sysconfdir sharedstatedir localstatedir includedir \
1800 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1801 libdir localedir mandir
1803 eval ac_val
=\$
$ac_var
1804 # Remove trailing slashes.
1807 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1808 eval $ac_var=\
$ac_val;;
1810 # Be sure to have absolute directory names.
1812 [\\/$
]* | ?
:[\\/]* ) continue;;
1813 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1815 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1818 # There might be people who depend on the old broken behavior: `$host'
1819 # used to hold the argument of --host etc.
1820 # FIXME: To remove some day.
1823 target
=$target_alias
1825 # FIXME: To remove some day.
1826 if test "x$host_alias" != x
; then
1827 if test "x$build_alias" = x
; then
1828 cross_compiling
=maybe
1829 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1830 If a cross compiler is detected then cross compile mode will be used." >&2
1831 elif test "x$build_alias" != "x$host_alias"; then
1837 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1839 test "$silent" = yes && exec 6>/dev
/null
1842 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1843 ac_ls_di
=`ls -di .` &&
1844 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1845 as_fn_error
"working directory cannot be determined"
1846 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1847 as_fn_error
"pwd does not report name of working directory"
1850 # Find the source files, if location was not specified.
1851 if test -z "$srcdir"; then
1852 ac_srcdir_defaulted
=yes
1853 # Try the directory containing this script, then the parent directory.
1854 ac_confdir
=`$as_dirname -- "$as_myself" ||
1855 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1856 X"$as_myself" : 'X\(//\)[^/]' \| \
1857 X"$as_myself" : 'X\(//\)$' \| \
1858 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1859 $as_echo X"$as_myself" |
1860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1878 if test ! -r "$srcdir/$ac_unique_file"; then
1882 ac_srcdir_defaulted
=no
1884 if test ! -r "$srcdir/$ac_unique_file"; then
1885 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1886 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1888 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1890 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1892 # When building in place, set srcdir=.
1893 if test "$ac_abs_confdir" = "$ac_pwd"; then
1896 # Remove unnecessary trailing slashes from srcdir.
1897 # Double slashes in file names in object file debugging info
1898 # mess up M-x gdb in Emacs.
1900 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1902 for ac_var
in $ac_precious_vars; do
1903 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1904 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1905 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1906 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1910 # Report the --help message.
1912 if test "$ac_init_help" = "long"; then
1913 # Omit some internal or obsolete options to make the list less imposing.
1914 # This message is too long to be a string in the A/UX 3.1 sh.
1916 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1918 Usage: $0 [OPTION]... [VAR=VALUE]...
1920 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1921 VAR=VALUE. See below for descriptions of some of the useful variables.
1923 Defaults for the options are specified in brackets.
1926 -h, --help display this help and exit
1927 --help=short display options specific to this package
1928 --help=recursive display the short help of all the included packages
1929 -V, --version display version information and exit
1930 -q, --quiet, --silent do not print \`checking...' messages
1931 --cache-file=FILE cache test results in FILE [disabled]
1932 -C, --config-cache alias for \`--cache-file=config.cache'
1933 -n, --no-create do not create output files
1934 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1936 Installation directories:
1937 --prefix=PREFIX install architecture-independent files in PREFIX
1938 [$ac_default_prefix]
1939 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1942 By default, \`make install' will install all the files in
1943 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1944 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1945 for instance \`--prefix=\$HOME'.
1947 For better control, use the options below.
1949 Fine tuning of the installation directories:
1950 --bindir=DIR user executables [EPREFIX/bin]
1951 --sbindir=DIR system admin executables [EPREFIX/sbin]
1952 --libexecdir=DIR program executables [EPREFIX/libexec]
1953 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1954 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1955 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1956 --libdir=DIR object code libraries [EPREFIX/lib]
1957 --includedir=DIR C header files [PREFIX/include]
1958 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1959 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1960 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1961 --infodir=DIR info documentation [DATAROOTDIR/info]
1962 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1963 --mandir=DIR man documentation [DATAROOTDIR/man]
1964 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1965 --htmldir=DIR html documentation [DOCDIR]
1966 --dvidir=DIR dvi documentation [DOCDIR]
1967 --pdfdir=DIR pdf documentation [DOCDIR]
1968 --psdir=DIR ps documentation [DOCDIR]
1974 --program-prefix=PREFIX prepend PREFIX to installed program names
1975 --program-suffix=SUFFIX append SUFFIX to installed program names
1976 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1979 --x-includes=DIR X include files are
in DIR
1980 --x-libraries=DIR X library files are
in DIR
1983 --build=BUILD configure
for building on BUILD
[guessed
]
1984 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1988 if test -n "$ac_init_help"; then
1989 case $ac_init_help in
1990 short | recursive
) echo "Configuration of emacs 24.1.50:";;
1995 --disable-option-checking ignore unrecognized
--enable/--with options
1996 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1997 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1998 --disable-ns-self-contained
1999 disable self contained build under NeXTstep
2000 --enable-asserts compile code with asserts enabled
2001 --enable-locallisppath=PATH
2002 directories Emacs should search
for lisp files
2003 specific to this site
2004 --enable-checking[=LIST
]
2005 enable expensive run-time checks. With LIST
, enable
2006 only specific categories of checks. Categories are
:
2007 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2008 stringfreelist
, xmallocoverrun
, conslist
2009 --enable-use-lisp-union-type
2010 use a union
for the Lisp_Object data
type. This is
2011 only useful
for development
for catching certain
2013 --enable-profiling build emacs with profiling support. This might not
2014 work on all platforms
2015 --enable-autodepend automatically generate dependencies to .h-files.
2016 Requires GNU Make and Gcc. Enabled
if GNU Make and
2018 --disable-dependency-tracking speeds up one-time build
2019 --enable-dependency-tracking do not reject slow dependency extractors
2020 --disable-largefile omit support
for large files
2021 --enable-gcc-warnings turn on lots of GCC warnings
(for developers
)
2024 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2025 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2026 --without-pop don
't support POP mail retrieval with movemail
2027 --with-kerberos support Kerberos-authenticated POP
2028 --with-kerberos5 support Kerberos version 5 authenticated POP
2029 --with-hesiod support Hesiod to get the POP server host
2030 --with-mmdf support MMDF mailboxes
2031 --with-mail-unlink unlink, rather than empty, mail spool after reading
2032 --with-mailhost=HOSTNAME
2033 string giving default POP mail host
2034 --without-sound don't compile with sound support
2035 --without-sync-input process async input synchronously
2036 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2037 lucid or athena
, motif
, no
)
2038 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2039 --without-xpm don
't compile with XPM image support
2040 --without-jpeg don't compile with JPEG image support
2041 --without-tiff don
't compile with TIFF image support
2042 --without-gif don't compile with GIF image support
2043 --without-png don
't compile with PNG image support
2044 --without-rsvg don't compile with SVG image support
2045 --without-xml2 don
't compile with XML parsing support
2046 --without-imagemagick don't compile with ImageMagick image support
2047 --without-xft don
't use XFT for anti aliased fonts
2048 --without-libotf don't use libotf
for OpenType font support
2049 --without-m17n-flt don
't use m17n-flt for text shaping
2050 --without-toolkit-scroll-bars
2051 don't use Motif or Xaw3d scroll bars
2052 --without-xaw3d don
't use Xaw3d
2053 --without-xim don't use X11 XIM
2054 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2055 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2057 --without-dbus don't compile with D-Bus support
2058 --without-gconf don
't compile with GConf support
2059 --without-gsettings don't compile with GSettings support
2060 --without-selinux don
't compile with SELinux support
2061 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2062 --without-makeinfo don
't require makeinfo for building manuals
2063 --without-compress-info don't
compress the installed Info pages
2064 --with-pkg-config-prog=PATH
2065 path to pkg-config
for finding GTK and librsvg
2066 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2067 /usr
/lib
, or
/usr
/lib64 on some platforms.
2068 --with-gameuser=USER user
for shared game score files
2069 --with-gnustep-conf=PATH
2070 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2071 or
/etc
/GNUstep
/GNUstep.conf
2072 --with-x use the X Window System
2074 Some influential environment variables
:
2075 CC C compiler
command
2076 CFLAGS C compiler flags
2077 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2078 nonstandard directory
<lib dir
>
2079 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2080 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2081 you have headers
in a nonstandard directory
<include dir
>
2083 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2085 Use these variables to override the choices made by
`configure' or to help
2086 it to find libraries and programs with nonstandard names/locations.
2088 Report bugs to the package provider.
2093 if test "$ac_init_help" = "recursive"; then
2094 # If there are subdirs, report their specific --help.
2095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096 test -d "$ac_dir" ||
2097 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2104 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2105 # A ".." for each directory in $ac_dir_suffix.
2106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2107 case $ac_top_builddir_sub in
2108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2112 ac_abs_top_builddir=$ac_pwd
2113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2114 # for backward compatibility:
2115 ac_top_builddir=$ac_top_build_prefix
2118 .) # We are building in place.
2120 ac_top_srcdir=$ac_top_builddir_sub
2121 ac_abs_top_srcdir=$ac_pwd ;;
2122 [\\/]* | ?:[\\/]* ) # Absolute name.
2123 ac_srcdir=$srcdir$ac_dir_suffix;
2124 ac_top_srcdir=$srcdir
2125 ac_abs_top_srcdir=$srcdir ;;
2127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2128 ac_top_srcdir=$ac_top_build_prefix$srcdir
2129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2133 cd "$ac_dir" || { ac_status=$?; continue; }
2134 # Check for guested configure.
2135 if test -f "$ac_srcdir/configure.gnu"; then
2137 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2138 elif test -f "$ac_srcdir/configure"; then
2140 $SHELL "$ac_srcdir/configure" --help=recursive
2142 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2144 cd "$ac_pwd" || { ac_status=$?; break; }
2148 test -n "$ac_init_help" && exit $ac_status
2149 if $ac_init_version; then
2151 emacs configure 24.1.50
2152 generated by GNU Autoconf 2.65
2154 Copyright (C) 2009 Free Software Foundation, Inc.
2155 This configure script is free software; the Free Software Foundation
2156 gives unlimited permission to copy, distribute and modify it.
2161 ## ------------------------ ##
2162 ## Autoconf initialization. ##
2163 ## ------------------------ ##
2165 # ac_fn_c_try_compile LINENO
2166 # --------------------------
2167 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2168 ac_fn_c_try_compile ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 rm -f conftest.$ac_objext
2172 if { { ac_try="$ac_compile"
2174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2175 *) ac_try_echo
=$ac_try;;
2177 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_compile") 2>conftest.err
2181 if test -s conftest.err
; then
2182 grep -v '^ *+' conftest.err
>conftest.er1
2183 cat conftest.er1
>&5
2184 mv -f conftest.er1 conftest.err
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && {
2188 test -z "$ac_c_werror_flag" ||
2189 test ! -s conftest.err
2190 } && test -s conftest.
$ac_objext; then :
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.
$ac_ext >&5
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2199 as_fn_set_status
$ac_retval
2201 } # ac_fn_c_try_compile
2203 # ac_fn_c_try_cpp LINENO
2204 # ----------------------
2205 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2208 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2209 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2212 *) ac_try_echo=$ac_try;;
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2218 if test -s conftest.err; then
2219 grep -v '^ *+' conftest.err >conftest.er1
2220 cat conftest.er1 >&5
2221 mv -f conftest.er1 conftest.err
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } >/dev/null && {
2225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2226 test ! -s conftest.err
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 as_fn_set_status $ac_retval
2240 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2241 # -------------------------------------------------------
2242 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2243 # the include files in INCLUDES and setting the cache variable VAR
2245 ac_fn_c_check_header_mongrel ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2250 $as_echo_n "checking for $2... " >&6; }
2251 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2252 $as_echo_n "(cached) " >&6
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2258 # Is the header compilable?
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2260 $as_echo_n "checking $2 usability... " >&6; }
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 ac_header_compiler=yes
2269 ac_header_compiler=no
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2273 $as_echo "$ac_header_compiler" >&6; }
2275 # Is the header present?
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2277 $as_echo_n "checking $2 presence... " >&6; }
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2282 if ac_fn_c_try_cpp "$LINENO"; then :
2283 ac_header_preproc=yes
2285 ac_header_preproc=no
2287 rm -f conftest.err conftest.$ac_ext
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2289 $as_echo "$ac_header_preproc" >&6; }
2291 # So? What about this header?
2292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2295 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2297 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2301 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2303 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2305 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2307 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2309 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2317 eval "$3=\$ac_header_compiler"
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2325 } # ac_fn_c_check_header_mongrel
2327 # ac_fn_c_try_run LINENO
2328 # ----------------------
2329 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2330 # that executables *can* be run.
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { { ac_try="$ac_link"
2336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2337 *) ac_try_echo
=$ac_try;;
2339 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>&5
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2345 { { case "(($ac_try" in
2346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_try") 2>&5
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; }; }; then :
2357 $as_echo "$as_me: program exited with status $ac_status" >&5
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 ac_retval=$ac_status
2363 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 as_fn_set_status $ac_retval
2369 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2370 # -------------------------------------------------------
2371 # Tests whether HEADER exists and can be compiled using the include files in
2372 # INCLUDES, setting the cache variable VAR accordingly.
2373 ac_fn_c_check_header_compile ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2379 $as_echo_n "(cached) " >&6
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2386 if ac_fn_c_try_compile "$LINENO"; then :
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 } # ac_fn_c_check_header_compile
2400 # ac_fn_c_try_link LINENO
2401 # -----------------------
2402 # Try to link conftest.$ac_ext, and return whether this succeeded.
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2410 *) ac_try_echo
=$ac_try;;
2412 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2416 if test -s conftest.err
; then
2417 grep -v '^ *+' conftest.err
>conftest.er1
2418 cat conftest.er1
>&5
2419 mv -f conftest.er1 conftest.err
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest
$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest
$ac_exeext
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.
$ac_ext >&5
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2442 as_fn_set_status
$ac_retval
2444 } # ac_fn_c_try_link
2446 # ac_fn_c_check_decl LINENO SYMBOL VAR
2447 # ------------------------------------
2448 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2449 ac_fn_c_check_decl
()
2451 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2453 $as_echo_n "checking whether $2 is declared... " >&6; }
2454 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2471 if ac_fn_c_try_compile
"$LINENO"; then :
2476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2483 } # ac_fn_c_check_decl
2485 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2486 # ----------------------------------------------
2487 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2488 ac_fn_c_check_header_preproc
()
2490 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2494 $as_echo_n "(cached) " >&6
2496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2500 if ac_fn_c_try_cpp
"$LINENO"; then :
2505 rm -f conftest.err conftest.
$ac_ext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2512 } # ac_fn_c_check_header_preproc
2514 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2515 # ----------------------------------------------------
2516 # Tries to find if the field MEMBER exists in type AGGR, after including
2517 # INCLUDES, setting cache variable VAR accordingly.
2518 ac_fn_c_check_member
()
2520 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2522 $as_echo_n "checking for $2.$3... " >&6; }
2523 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2524 $as_echo_n "(cached) " >&6
2526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2539 if ac_fn_c_try_compile
"$LINENO"; then :
2542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2549 if (sizeof ac_aggr.$3)
2555 if ac_fn_c_try_compile
"$LINENO"; then :
2560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2562 rm -f core conftest.err conftest.
$ac_objext 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_member
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func
()
2576 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2594 # include <limits.h>
2596 # include <assert.h>
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2623 if ac_fn_c_try_link
"$LINENO"; then :
2628 rm -f core conftest.err conftest.
$ac_objext \
2629 conftest
$ac_exeext conftest.
$ac_ext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2636 } # ac_fn_c_check_func
2638 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2639 # -------------------------------------------
2640 # Tests whether TYPE exists after having included INCLUDES, setting cache
2641 # variable VAR accordingly.
2642 ac_fn_c_check_type
()
2644 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2646 $as_echo_n "checking for $2... " >&6; }
2647 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2648 $as_echo_n "(cached) " >&6
2651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2663 if ac_fn_c_try_compile
"$LINENO"; then :
2664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2676 if ac_fn_c_try_compile
"$LINENO"; then :
2681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2690 } # ac_fn_c_check_type
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2697 ac_fn_c_compute_int
()
2699 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2715 if ac_fn_c_try_compile
"$LINENO"; then :
2718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2724 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2731 if ac_fn_c_try_compile
"$LINENO"; then :
2732 ac_hi
=$ac_mid; break
2734 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2735 if test $ac_lo -le $ac_mid; then
2739 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2750 static int test_array [1 - 2 * !(($2) < 0)];
2757 if ac_fn_c_try_compile
"$LINENO"; then :
2760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2773 if ac_fn_c_try_compile
"$LINENO"; then :
2774 ac_lo
=$ac_mid; break
2776 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2777 if test $ac_mid -le $ac_hi; then
2781 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2807 if ac_fn_c_try_compile
"$LINENO"; then :
2810 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2815 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2822 static long int longval () { return $2; }
2823 static unsigned long int ulongval () { return $2; }
2830 FILE *f = fopen ("conftest.val", "w");
2835 long int i = longval ();
2838 fprintf (f, "%ld", i);
2842 unsigned long int i = ulongval ();
2845 fprintf (f, "%lu", i);
2847 /* Do not output a trailing newline, as this causes \r\n confusion
2848 on some platforms. */
2849 return ferror (f) || fclose (f) != 0;
2855 if ac_fn_c_try_run
"$LINENO"; then :
2856 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2866 as_fn_set_status
$ac_retval
2868 } # ac_fn_c_compute_int
2869 cat >config.log
<<_ACEOF
2870 This file contains any messages produced by compilers while
2871 running configure, to aid debugging if configure makes a mistake.
2873 It was created by emacs $as_me 24.1.50, which was
2874 generated by GNU Autoconf 2.65. Invocation command line was
2886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 $as_echo "PATH: $as_dir"
2926 # Keep a trace of the command line.
2927 # Strip out --no-create and --no-recursion so they do not pile up.
2928 # Strip out --silent because we don't want to record it for future runs.
2929 # Also quote any args containing shell meta-characters.
2930 # Make two passes to allow for proper duplicate-argument suppression.
2934 ac_must_keep_next
=false
2940 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2941 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2942 |
-silent |
--silent |
--silen |
--sile |
--sil)
2945 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2948 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2950 as_fn_append ac_configure_args1
" '$ac_arg'"
2951 if test $ac_must_keep_next = true
; then
2952 ac_must_keep_next
=false
# Got value, back to normal.
2955 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2956 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2957 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2958 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2959 case "$ac_configure_args0 " in
2960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2963 -* ) ac_must_keep_next
=true
;;
2966 as_fn_append ac_configure_args
" '$ac_arg'"
2971 { ac_configure_args0
=; unset ac_configure_args0
;}
2972 { ac_configure_args1
=; unset ac_configure_args1
;}
2974 # When interrupted or exit'd, cleanup temporary files, and complete
2975 # config.log. We remove comments because anyway the quotes in there
2976 # would cause problems or look ugly.
2977 # WARNING: Use '\'' to represent an apostrophe within the trap.
2978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2979 trap 'exit_status=$?
2980 # Save into config.log some information that might help in debugging.
2985 ## ---------------- ##
2986 ## Cache variables. ##
2987 ## ---------------- ##
2990 # The following way of writing the cache mishandles newlines in values,
2992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2993 eval ac_val=\$$ac_var
2997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3001 _ | IFS | as_nl) ;; #(
3002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3003 *) { eval $ac_var=; unset $ac_var;} ;;
3008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3009 *${as_nl}ac_space=\ *)
3011 "s/'\''/'\''\\\\'\'''\''/g;
3012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3023 ## ----------------- ##
3024 ## Output variables. ##
3025 ## ----------------- ##
3028 for ac_var in $ac_subst_vars
3030 eval ac_val=\$$ac_var
3032 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3034 $as_echo "$ac_var='\''$ac_val'\''"
3038 if test -n "$ac_subst_files"; then
3040 ## ------------------- ##
3041 ## File substitutions. ##
3042 ## ------------------- ##
3045 for ac_var
in $ac_subst_files
3047 eval ac_val
=\$
$ac_var
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3051 $as_echo "$ac_var='\''$ac_val'\''"
3056 if test -s confdefs.h; then
3066 test "$ac_signal" != 0 &&
3067 $as_echo "$as_me: caught signal $ac_signal"
3068 $as_echo "$as_me: exit $exit_status"
3070 rm -f core *.core core.conftest.* &&
3071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3074 for ac_signal
in 1 2 13 15; do
3075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3080 rm -f -r conftest
* confdefs.h
3082 $as_echo "/* confdefs.h */" > confdefs.h
3084 # Predefined preprocessor variables.
3086 cat >>confdefs.h
<<_ACEOF
3087 #define PACKAGE_NAME "$PACKAGE_NAME"
3090 cat >>confdefs.h
<<_ACEOF
3091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3094 cat >>confdefs.h
<<_ACEOF
3095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3098 cat >>confdefs.h
<<_ACEOF
3099 #define PACKAGE_STRING "$PACKAGE_STRING"
3102 cat >>confdefs.h
<<_ACEOF
3103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3106 cat >>confdefs.h
<<_ACEOF
3107 #define PACKAGE_URL "$PACKAGE_URL"
3111 # Let the site file select an alternate cache file if it wants to.
3112 # Prefer an explicitly selected file to automatically selected ones.
3115 if test -n "$CONFIG_SITE"; then
3116 ac_site_file1
=$CONFIG_SITE
3117 elif test "x$prefix" != xNONE
; then
3118 ac_site_file1
=$prefix/share
/config.site
3119 ac_site_file2
=$prefix/etc
/config.site
3121 ac_site_file1
=$ac_default_prefix/share
/config.site
3122 ac_site_file2
=$ac_default_prefix/etc
/config.site
3124 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3126 test "x$ac_site_file" = xNONE
&& continue
3127 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3129 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3130 sed 's/^/| /' "$ac_site_file" >&5
3135 if test -r "$cache_file"; then
3136 # Some versions of bash will fail to source /dev/null (special files
3137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3138 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3140 $as_echo "$as_me: loading cache $cache_file" >&6;}
3142 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3143 *) .
"./$cache_file";;
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3148 $as_echo "$as_me: creating cache $cache_file" >&6;}
3152 as_fn_append ac_header_list
" sys/select.h"
3153 as_fn_append ac_header_list
" sys/time.h"
3154 as_fn_append ac_header_list
" utime.h"
3155 as_fn_append ac_header_list
" linux/version.h"
3156 as_fn_append ac_header_list
" sys/systeminfo.h"
3157 as_fn_append ac_header_list
" stdio_ext.h"
3158 as_fn_append ac_header_list
" fcntl.h"
3159 as_fn_append ac_header_list
" coff.h"
3160 as_fn_append ac_header_list
" pty.h"
3161 as_fn_append ac_header_list
" sys/vlimit.h"
3162 as_fn_append ac_header_list
" sys/resource.h"
3163 as_fn_append ac_header_list
" sys/utsname.h"
3164 as_fn_append ac_header_list
" pwd.h"
3165 as_fn_append ac_header_list
" utmp.h"
3166 as_fn_append ac_header_list
" dirent.h"
3167 as_fn_append ac_header_list
" util.h"
3168 as_fn_append ac_header_list
" sys/socket.h"
3169 as_fn_append ac_header_list
" stdlib.h"
3170 as_fn_append ac_header_list
" unistd.h"
3171 as_fn_append ac_header_list
" sys/param.h"
3172 as_fn_append ac_header_list
" pthread.h"
3173 as_fn_append ac_header_list
" malloc/malloc.h"
3174 as_fn_append ac_header_list
" maillock.h"
3175 as_fn_append ac_func_list
" gethostname"
3176 as_fn_append ac_func_list
" rename"
3177 as_fn_append ac_func_list
" closedir"
3178 as_fn_append ac_func_list
" mkdir"
3179 as_fn_append ac_func_list
" rmdir"
3180 as_fn_append ac_func_list
" getrusage"
3181 as_fn_append ac_func_list
" get_current_dir_name"
3182 as_fn_append ac_func_list
" random"
3183 as_fn_append ac_func_list
" lrand48"
3184 as_fn_append ac_func_list
" logb"
3185 as_fn_append ac_func_list
" frexp"
3186 as_fn_append ac_func_list
" fmod"
3187 as_fn_append ac_func_list
" rint"
3188 as_fn_append ac_func_list
" cbrt"
3189 as_fn_append ac_func_list
" setsid"
3190 as_fn_append ac_func_list
" strerror"
3191 as_fn_append ac_func_list
" fpathconf"
3192 as_fn_append ac_func_list
" select"
3193 as_fn_append ac_func_list
" euidaccess"
3194 as_fn_append ac_func_list
" getpagesize"
3195 as_fn_append ac_func_list
" setlocale"
3196 as_fn_append ac_func_list
" utimes"
3197 as_fn_append ac_func_list
" getrlimit"
3198 as_fn_append ac_func_list
" setrlimit"
3199 as_fn_append ac_func_list
" setpgid"
3200 as_fn_append ac_func_list
" getcwd"
3201 as_fn_append ac_func_list
" getwd"
3202 as_fn_append ac_func_list
" shutdown"
3203 as_fn_append ac_func_list
" getaddrinfo"
3204 as_fn_append ac_func_list
" __fpending"
3205 as_fn_append ac_func_list
" strsignal"
3206 as_fn_append ac_func_list
" setitimer"
3207 as_fn_append ac_func_list
" sendto"
3208 as_fn_append ac_func_list
" recvfrom"
3209 as_fn_append ac_func_list
" getsockname"
3210 as_fn_append ac_func_list
" getpeername"
3211 as_fn_append ac_func_list
" getifaddrs"
3212 as_fn_append ac_func_list
" freeifaddrs"
3213 as_fn_append ac_func_list
" gai_strerror"
3214 as_fn_append ac_func_list
" mkstemp"
3215 as_fn_append ac_func_list
" getline"
3216 as_fn_append ac_func_list
" getdelim"
3217 as_fn_append ac_func_list
" fsync"
3218 as_fn_append ac_func_list
" sync"
3219 as_fn_append ac_func_list
" difftime"
3220 as_fn_append ac_func_list
" posix_memalign"
3221 as_fn_append ac_func_list
" getpwent"
3222 as_fn_append ac_func_list
" endpwent"
3223 as_fn_append ac_func_list
" getgrent"
3224 as_fn_append ac_func_list
" endgrent"
3225 as_fn_append ac_func_list
" touchlock"
3226 as_fn_append ac_func_list
" cfmakeraw"
3227 as_fn_append ac_func_list
" cfsetspeed"
3228 as_fn_append ac_func_list
" copysign"
3229 as_fn_append ac_func_list
" __executable_start"
3230 as_fn_append ac_header_list
" sys/un.h"
3231 as_fn_append ac_func_list
" grantpt"
3232 as_fn_append ac_func_list
" getpt"
3233 as_fn_append ac_func_list
" tzset"
3234 as_fn_append ac_func_list
" snprintf"
3235 as_fn_append ac_func_list
" readlinkat"
3236 gl_getopt_required
=GNU
3237 as_fn_append ac_header_list
" getopt.h"
3238 as_fn_append ac_header_list
" wchar.h"
3239 as_fn_append ac_header_list
" stdint.h"
3240 as_fn_append ac_header_list
" inttypes.h"
3241 as_fn_append ac_func_list
" lstat"
3242 as_fn_append ac_func_list
" alarm"
3243 as_fn_append ac_func_list
" pthread_sigmask"
3244 as_fn_append ac_func_list
" readlink"
3245 as_fn_append ac_func_list
" strtoimax"
3246 as_fn_append ac_func_list
" strtoumax"
3247 as_fn_append ac_func_list
" symlink"
3248 as_fn_append ac_header_list
" sys/stat.h"
3249 as_fn_append ac_func_list
" localtime_r"
3250 # Check that the precious variables saved in the cache have kept the same
3252 ac_cache_corrupted
=false
3253 for ac_var
in $ac_precious_vars; do
3254 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3255 eval ac_new_set
=\
$ac_env_${ac_var}_set
3256 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3257 eval ac_new_val
=\
$ac_env_${ac_var}_value
3258 case $ac_old_set,$ac_new_set in
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3261 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3262 ac_cache_corrupted
=: ;;
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3265 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3266 ac_cache_corrupted
=: ;;
3269 if test "x$ac_old_val" != "x$ac_new_val"; then
3270 # differences in whitespace do not lead to failure.
3271 ac_old_val_w
=`echo x $ac_old_val`
3272 ac_new_val_w
=`echo x $ac_new_val`
3273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3276 ac_cache_corrupted
=:
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3280 eval $ac_var=\
$ac_old_val
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3283 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3285 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3288 # Pass precious variables to config.status.
3289 if test "$ac_new_set" = set; then
3291 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3292 *) ac_arg
=$ac_var=$ac_new_val ;;
3294 case " $ac_configure_args " in
3295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3296 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3300 if $ac_cache_corrupted; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3305 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3307 ## -------------------- ##
3308 ## Main body of script. ##
3309 ## -------------------- ##
3312 ac_cpp
='$CPP $CPPFLAGS'
3313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3318 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3322 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3323 for ac_t
in install-sh
install.sh shtool
; do
3324 if test -f "$ac_dir/$ac_t"; then
3326 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3331 if test -z "$ac_aux_dir"; then
3332 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3335 # These three variables are undocumented and unsupported,
3336 # and are intended to be withdrawn in a future Autoconf release.
3337 # They can cause serious problems if a builder's source tree is in a directory
3338 # whose full name contains unusual characters.
3339 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3340 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3341 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3344 am__api_version
='1.11'
3346 # Find a good install program. We prefer a C program (faster),
3347 # so one script is as good as another. But avoid the broken or
3348 # incompatible versions:
3349 # SysV /etc/install, /usr/sbin/install
3350 # SunOS /usr/etc/install
3351 # IRIX /sbin/install
3353 # AmigaOS /C/install, which installs bootblocks on floppy discs
3354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3357 # OS/2's system install, which has a completely different semantic
3358 # ./install, which can be erroneously created by make from ./install.sh.
3359 # Reject install programs that cannot install multiple files.
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3362 if test -z "$INSTALL"; then
3363 if test "${ac_cv_path_install+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir
=.
3371 # Account for people who put trailing slashes in PATH elements.
3372 case $as_dir/ in #((
3373 .
/ | .
// |
/[cC
]/* | \
3374 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3375 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3378 # OSF1 and SCO ODT 3.0 have their own names for install.
3379 # Don't use installbsd from OSF since it installs stuff as root
3381 for ac_prog
in ginstall scoinst
install; do
3382 for ac_exec_ext
in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3384 if test $ac_prog = install &&
3385 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3386 # AIX install. It has an incompatible calling convention.
3388 elif test $ac_prog = install &&
3389 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3390 # program-specific install script used by HP pwplus--don't use.
3393 rm -rf conftest.one conftest.two conftest.dir
3394 echo one
> conftest.one
3395 echo two
> conftest.two
3397 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3398 test -s conftest.one
&& test -s conftest.two
&&
3399 test -s conftest.dir
/conftest.one
&&
3400 test -s conftest.dir
/conftest.two
3402 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3415 rm -rf conftest.one conftest.two conftest.dir
3418 if test "${ac_cv_path_install+set}" = set; then
3419 INSTALL
=$ac_cv_path_install
3421 # As a last resort, use the slow shell script. Don't cache a
3422 # value for INSTALL within a source directory, because that will
3423 # break other packages using the cache if that directory is
3424 # removed, or if the value is a relative name.
3425 INSTALL
=$ac_install_sh
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3429 $as_echo "$INSTALL" >&6; }
3431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3432 # It thinks the first close brace ends the variable substitution.
3433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3437 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3440 $as_echo_n "checking whether build environment is sane... " >&6; }
3443 echo timestamp
> conftest.
file
3444 # Reject unsafe characters in $srcdir or the absolute working directory
3445 # name. Accept space and tab only in the latter.
3449 *[\\\"\
#\$\&\'\`$am_lf]*)
3450 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3453 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3454 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3457 # Do `set' in a subshell so we don't clobber the current shell's
3458 # arguments. Must try -L first in case configure is actually a
3459 # symlink; some systems play weird games with the mod time of symlinks
3460 # (eg FreeBSD returns the mod time of the symlink's containing
3463 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3464 if test "$*" = "X"; then
3466 set X
`ls -t "$srcdir/configure" conftest.file`
3469 if test "$*" != "X $srcdir/configure conftest.file" \
3470 && test "$*" != "X conftest.file $srcdir/configure"; then
3472 # If neither matched, then we have a broken ls. This can happen
3473 # if, for instance, CONFIG_SHELL is bash and it inherits a
3474 # broken ls alias from the environment. This has actually
3475 # happened. Such a system could not be considered "sane".
3476 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3477 alias in your environment" "$LINENO" 5
3480 test "$2" = conftest.
file
3486 as_fn_error
"newly created file is older than distributed files!
3487 Check your system clock" "$LINENO" 5
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490 $as_echo "yes" >&6; }
3491 test "$program_prefix" != NONE
&&
3492 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3493 # Use a double $ so make ignores it.
3494 test "$program_suffix" != NONE
&&
3495 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3496 # Double any \ or $.
3497 # By default was `s,x,x', remove it if useless.
3498 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3499 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3501 # expand $ac_aux_dir to an absolute path
3502 am_aux_dir
=`cd $ac_aux_dir && pwd`
3504 if test x
"${MISSING+set}" != xset
; then
3507 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3509 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3512 # Use eval to expand $SHELL
3513 if eval "$MISSING --run true"; then
3514 am_missing_run
="$MISSING --run "
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3518 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3521 if test x
"${install_sh}" != xset
; then
3524 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3526 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3530 # Installed binaries are usually stripped using `strip' when the user
3531 # run `make install-strip'. However `strip' might not be the right
3532 # tool to use in cross-compilation environments, therefore Automake
3533 # will honor the `STRIP' environment variable to overrule this program.
3534 if test "$cross_compiling" != no
; then
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3537 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_STRIP+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$STRIP"; then
3544 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir
=.
3551 for ac_exec_ext
in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 STRIP
=$ac_cv_prog_STRIP
3564 if test -n "$STRIP"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3566 $as_echo "$STRIP" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3574 if test -z "$ac_cv_prog_STRIP"; then
3576 # Extract the first word of "strip", so it can be a program name with args.
3577 set dummy strip
; ac_word
=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$ac_ct_STRIP"; then
3584 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir
=.
3591 for ac_exec_ext
in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_ac_ct_STRIP
="strip"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3604 if test -n "$ac_ct_STRIP"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3606 $as_echo "$ac_ct_STRIP" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3612 if test "x$ac_ct_STRIP" = x
; then
3615 case $cross_compiling:$ac_tool_warned in
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned
=yes ;;
3624 STRIP
="$ac_cv_prog_STRIP"
3628 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3631 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3632 if test -z "$MKDIR_P"; then
3633 if test "${ac_cv_path_mkdir+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3637 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3640 test -z "$as_dir" && as_dir
=.
3641 for ac_prog
in mkdir gmkdir
; do
3642 for ac_exec_ext
in '' $ac_executable_extensions; do
3643 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3644 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3645 'mkdir (GNU coreutils) '* | \
3646 'mkdir (coreutils) '* | \
3647 'mkdir (fileutils) '4.1*)
3648 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3658 test -d .
/--version && rmdir .
/--version
3659 if test "${ac_cv_path_mkdir+set}" = set; then
3660 MKDIR_P
="$ac_cv_path_mkdir -p"
3662 # As a last resort, use the slow shell script. Don't cache a
3663 # value for MKDIR_P within a source directory, because that will
3664 # break other packages using the cache if that directory is
3665 # removed, or if the value is a relative name.
3666 MKDIR_P
="$ac_install_sh -d"
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3670 $as_echo "$MKDIR_P" >&6; }
3675 [\\/$
]* | ?
:[\\/]*) ;;
3676 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3679 for ac_prog
in gawk mawk nawk
awk
3681 # Extract the first word of "$ac_prog", so it can be a program name with args.
3682 set dummy
$ac_prog; ac_word
=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if test "${ac_cv_prog_AWK+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$AWK"; then
3689 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir
=.
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_AWK
="$ac_prog"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 if test -n "$AWK"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3711 $as_echo "$AWK" >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3718 test -n "$AWK" && break
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3722 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3724 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3725 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3726 $as_echo_n "(cached) " >&6
3728 cat >conftest.
make <<\_ACEOF
3731 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3733 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3734 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3736 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3738 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3742 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744 $as_echo "yes" >&6; }
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 SET_MAKE
="MAKE=${MAKE-make}"
3752 rm -rf .tst
2>/dev
/null
3753 mkdir .tst
2>/dev
/null
3754 if test -d .tst
; then
3759 rmdir .tst
2>/dev
/null
3761 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3762 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3763 # is not polluted with repeated "-I."
3764 am__isrc
=' -I$(srcdir)'
3765 # test to see if srcdir already configured
3766 if test -f $srcdir/config.status
; then
3767 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3771 # test whether we have cygpath
3772 if test -z "$CYGPATH_W"; then
3773 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3774 CYGPATH_W
='cygpath -w'
3781 # Define the identity of the package.
3786 cat >>confdefs.h
<<_ACEOF
3787 #define PACKAGE "$PACKAGE"
3791 cat >>confdefs.h
<<_ACEOF
3792 #define VERSION "$VERSION"
3795 # Some tools Automake needs.
3797 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3800 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3803 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3806 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3809 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3811 # We need awk for the "check" target. The system "awk" is bad on
3813 # Always define AMTAR for backward compatibility.
3815 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3817 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3826 lispdir
='${datadir}/emacs/${version}/lisp'
3827 leimdir
='${datadir}/emacs/${version}/leim'
3828 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3829 '${datadir}/emacs/site-lisp'
3830 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3831 etcdir
='${datadir}/emacs/${version}/etc'
3832 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3833 docdir
='${datadir}/emacs/${version}/etc'
3834 gamedir
='${localstatedir}/games/emacs'
3839 # Check whether --with-pop was given.
3840 if test "${with_pop+set}" = set; then :
3846 if test "$with_pop" = yes; then
3847 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3852 # Check whether --with-kerberos was given.
3853 if test "${with_kerberos+set}" = set; then :
3854 withval
=$with_kerberos;
3859 if test "$with_kerberos" != no
; then
3860 $as_echo "#define KERBEROS 1" >>confdefs.h
3865 # Check whether --with-kerberos5 was given.
3866 if test "${with_kerberos5+set}" = set; then :
3867 withval
=$with_kerberos5;
3872 if test "${with_kerberos5}" != no
; then
3873 if test "${with_kerberos}" = no
; then
3875 $as_echo "#define KERBEROS 1" >>confdefs.h
3879 $as_echo "#define KERBEROS5 1" >>confdefs.h
3884 # Check whether --with-hesiod was given.
3885 if test "${with_hesiod+set}" = set; then :
3886 withval
=$with_hesiod;
3891 if test "$with_hesiod" != no
; then
3893 $as_echo "#define HESIOD 1" >>confdefs.h
3898 # Check whether --with-mmdf was given.
3899 if test "${with_mmdf+set}" = set; then :
3905 if test "$with_mmdf" != no
; then
3907 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3912 # Check whether --with-mail-unlink was given.
3913 if test "${with_mail_unlink+set}" = set; then :
3914 withval
=$with_mail_unlink;
3919 if test "$with_mail_unlink" != no
; then
3921 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3926 # Check whether --with-mailhost was given.
3927 if test "${with_mailhost+set}" = set; then :
3928 withval
=$with_mailhost;
3929 cat >>confdefs.h
<<_ACEOF
3930 #define MAILHOST "$withval"
3937 # Check whether --with-sound was given.
3938 if test "${with_sound+set}" = set; then :
3939 withval
=$with_sound;
3946 # Check whether --with-sync-input was given.
3947 if test "${with_sync_input+set}" = set; then :
3948 withval
=$with_sync_input;
3953 if test "$with_sync_input" = yes; then
3955 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3960 # Check whether --with-x-toolkit was given.
3961 if test "${with_x_toolkit+set}" = set; then :
3962 withval
=$with_x_toolkit; case "${withval}" in
3963 y | ye |
yes ) val
=gtk
;;
3965 l | lu | luc | luci | lucid
) val
=lucid
;;
3966 a |
at | ath | athe | athen | athena
) val
=athena
;;
3967 m | mo | mot | moti | motif
) val
=motif
;;
3968 g | gt | gtk
) val
=gtk
;;
3971 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3972 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3973 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3982 # Check whether --with-wide-int was given.
3983 if test "${with_wide_int+set}" = set; then :
3984 withval
=$with_wide_int;
3989 if test "$with_wide_int" = yes; then
3991 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3996 # Check whether --with-xpm was given.
3997 if test "${with_xpm+set}" = set; then :
4004 # Check whether --with-jpeg was given.
4005 if test "${with_jpeg+set}" = set; then :
4012 # Check whether --with-tiff was given.
4013 if test "${with_tiff+set}" = set; then :
4020 # Check whether --with-gif was given.
4021 if test "${with_gif+set}" = set; then :
4028 # Check whether --with-png was given.
4029 if test "${with_png+set}" = set; then :
4036 # Check whether --with-rsvg was given.
4037 if test "${with_rsvg+set}" = set; then :
4044 # Check whether --with-xml2 was given.
4045 if test "${with_xml2+set}" = set; then :
4052 # Check whether --with-imagemagick was given.
4053 if test "${with_imagemagick+set}" = set; then :
4054 withval
=$with_imagemagick;
4056 with_imagemagick
=yes
4061 # Check whether --with-xft was given.
4062 if test "${with_xft+set}" = set; then :
4069 # Check whether --with-libotf was given.
4070 if test "${with_libotf+set}" = set; then :
4071 withval
=$with_libotf;
4077 # Check whether --with-m17n-flt was given.
4078 if test "${with_m17n_flt+set}" = set; then :
4079 withval
=$with_m17n_flt;
4086 # Check whether --with-toolkit-scroll-bars was given.
4087 if test "${with_toolkit_scroll_bars+set}" = set; then :
4088 withval
=$with_toolkit_scroll_bars;
4090 with_toolkit_scroll_bars
=yes
4094 # Check whether --with-xaw3d was given.
4095 if test "${with_xaw3d+set}" = set; then :
4096 withval
=$with_xaw3d;
4102 # Check whether --with-xim was given.
4103 if test "${with_xim+set}" = set; then :
4110 # Check whether --with-ns was given.
4111 if test "${with_ns+set}" = set; then :
4119 # Check whether --with-gpm was given.
4120 if test "${with_gpm+set}" = set; then :
4127 # Check whether --with-dbus was given.
4128 if test "${with_dbus+set}" = set; then :
4135 # Check whether --with-gconf was given.
4136 if test "${with_gconf+set}" = set; then :
4137 withval
=$with_gconf;
4143 # Check whether --with-gsettings was given.
4144 if test "${with_gsettings+set}" = set; then :
4145 withval
=$with_gsettings;
4151 # Check whether --with-selinux was given.
4152 if test "${with_selinux+set}" = set; then :
4153 withval
=$with_selinux;
4159 # Check whether --with-gnutls was given.
4160 if test "${with_gnutls+set}" = set; then :
4161 withval
=$with_gnutls;
4167 ## For the times when you want to build Emacs but don't have
4168 ## a suitable makeinfo, and can live without the manuals.
4170 # Check whether --with-makeinfo was given.
4171 if test "${with_makeinfo+set}" = set; then :
4172 withval
=$with_makeinfo;
4178 ## Makefile.in needs the cache file name.
4181 ## This is an option because I do not know if all info/man support
4182 ## compressed files, nor how to test if they do so.
4184 # Check whether --with-compress-info was given.
4185 if test "${with_compress_info+set}" = set; then :
4186 withval
=$with_compress_info;
4188 with_compress_info
=yes
4191 if test $with_compress_info = yes; then
4199 # Check whether --with-pkg-config-prog was given.
4200 if test "${with_pkg_config_prog+set}" = set; then :
4201 withval
=$with_pkg_config_prog;
4204 if test "X${with_pkg_config_prog}" != X
; then
4205 if test "${with_pkg_config_prog}" != yes; then
4206 PKG_CONFIG
="${with_pkg_config_prog}"
4212 # Check whether --with-crt-dir was given.
4213 if test "${with_crt_dir+set}" = set; then :
4214 withval
=$with_crt_dir;
4217 CRT_DIR
="${with_crt_dir}"
4220 # Check whether --with-gameuser was given.
4221 if test "${with_gameuser+set}" = set; then :
4222 withval
=$with_gameuser;
4225 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4226 && gameuser
="${with_gameuser}"
4227 test "X$gameuser" = X
&& gameuser
=games
4230 # Check whether --with-gnustep-conf was given.
4231 if test "${with_gnustep_conf+set}" = set; then :
4232 withval
=$with_gnustep_conf;
4235 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4236 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4237 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4238 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4240 # Check whether --enable-ns-self-contained was given.
4241 if test "${enable_ns_self_contained+set}" = set; then :
4242 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4244 EN_NS_SELF_CONTAINED
=yes
4248 # Check whether --enable-asserts was given.
4249 if test "${enable_asserts+set}" = set; then :
4250 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4256 # Check whether --enable-locallisppath was given.
4257 if test "${enable_locallisppath+set}" = set; then :
4258 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4260 elif test "${enableval}" != "yes"; then
4261 locallisppath
=${enableval}
4266 # Check whether --enable-checking was given.
4267 if test "${enable_checking+set}" = set; then :
4268 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4271 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4272 for check
in $ac_checking_flags
4275 # these set all the flags to specific states
4276 yes) ac_enable_checking
=1 ;;
4277 no
) ac_enable_checking
= ;
4278 ac_gc_check_stringbytes
= ;
4279 ac_gc_check_string_overrun
= ;
4280 ac_gc_check_string_free_list
= ;
4281 ac_xmalloc_overrun
= ;
4282 ac_gc_check_cons_list
= ;;
4283 all
) ac_enable_checking
=1 ;
4284 ac_gc_check_stringbytes
=1 ;
4285 ac_gc_check_string_overrun
=1 ;
4286 ac_gc_check_string_free_list
=1 ;
4287 ac_xmalloc_overrun
=1 ;
4288 ac_gc_check_cons_list
=1 ;;
4289 # these enable particular checks
4290 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4291 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4292 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4293 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4294 conslist
) ac_gc_check_cons_list
=1 ;;
4295 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4300 if test x
$ac_enable_checking != x
; then
4302 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4305 if test x
$ac_gc_check_stringbytes != x
; then
4307 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4310 if test x
$ac_gc_check_string_overrun != x
; then
4312 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4315 if test x
$ac_gc_check_string_free_list != x
; then
4317 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4320 if test x
$ac_xmalloc_overrun != x
; then
4322 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4325 if test x
$ac_gc_check_cons_list != x
; then
4327 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4331 # Check whether --enable-use-lisp-union-type was given.
4332 if test "${enable_use_lisp_union_type+set}" = set; then :
4333 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4335 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4342 # Check whether --enable-profiling was given.
4343 if test "${enable_profiling+set}" = set; then :
4344 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4347 if test x
$ac_enable_profiling != x
; then
4348 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4354 # Check whether --enable-autodepend was given.
4355 if test "${enable_autodepend+set}" = set; then :
4356 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4358 ac_enable_autodepend
=yes
4362 #### Make srcdir absolute, if it isn't already. It's important to
4363 #### avoid running the path through pwd unnecessarily, since pwd can
4364 #### give you automounter prefixes, which can go away. We do all this
4365 #### so Emacs can find its files when run uninstalled.
4366 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4371 ## We may be able to use the $PWD environment variable to make this
4372 ## absolute. But sometimes PWD is inaccurate.
4373 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4374 ## but that tested only for a well-formed and valid PWD,
4375 ## it did not object when PWD was well-formed and valid but just wrong.
4376 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4380 srcdir
="`(cd ${srcdir}; pwd)`"
4383 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4386 #### Given the configuration name, set opsysfile to the
4387 #### name of s/*.h file we should use.
4389 ### Canonicalize the configuration name.
4391 # Make sure we can run config.sub.
4392 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4393 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4396 $as_echo_n "checking build system type... " >&6; }
4397 if test "${ac_cv_build+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4400 ac_build_alias
=$build_alias
4401 test "x$ac_build_alias" = x
&&
4402 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4403 test "x$ac_build_alias" = x
&&
4404 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4405 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4406 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4410 $as_echo "$ac_cv_build" >&6; }
4411 case $ac_cv_build in
4413 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4416 ac_save_IFS
=$IFS; IFS
='-'
4422 # Remember, the first character of IFS is used to create $*,
4423 # except with old shells:
4426 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4430 $as_echo_n "checking host system type... " >&6; }
4431 if test "${ac_cv_host+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4434 if test "x$host_alias" = x
; then
4435 ac_cv_host
=$ac_cv_build
4437 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4438 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4443 $as_echo "$ac_cv_host" >&6; }
4446 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4449 ac_save_IFS
=$IFS; IFS
='-'
4455 # Remember, the first character of IFS is used to create $*,
4456 # except with old shells:
4459 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4463 configuration
=${host_alias-${build_alias-$host}}
4467 ### If you add support for a new configuration, add code to this
4468 ### switch statement to recognize your configuration name and select
4469 ### the appropriate operating system file.
4471 ### You would hope that you could choose an s/*.h
4472 ### file based on the operating system portion. However, it turns out
4473 ### that each s/*.h file is pretty manufacturer-specific.
4474 ### So we basically have to have a special case for each
4475 ### configuration name.
4477 ### As far as handling version numbers on operating systems is
4478 ### concerned, make sure things will fail in a fixable way. If
4479 ### /etc/MACHINES doesn't say anything about version numbers, be
4480 ### prepared to handle anything reasonably. If version numbers
4481 ### matter, be sure /etc/MACHINES says something about it.
4483 opsys
='' unported
=no
4484 case "${canonical}" in
4486 ## GNU/Linux and similar ports
4496 ## FreeBSD kernel + glibc based userland
4511 ## Apple Darwin / Mac OS X
4513 case "${canonical}" in
4520 ## Use fink packages if available.
4521 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4522 ## if test -d /sw/include && test -d /sw/lib; then
4523 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4524 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4528 ## HP 9000 series 700 and 800, running HP/UX
4529 hppa
*-hp-hpux10.2
* )
4532 hppa
*-hp-hpux1[1-9]* )
4534 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4538 rs6000-ibm-aix4.
[23]* )
4541 powerpc-ibm-aix4.
[23]* )
4544 rs6000-ibm-aix
[56]* )
4547 powerpc-ibm-aix
[56]* )
4551 ## Silicon Graphics machines
4555 # Without defining _LANGUAGE_C, things get masked out in the headers
4556 # so that, for instance, grepping for `free' in stdlib.h fails and
4557 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4558 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4563 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4564 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4565 case "${canonical}" in
4567 amd64-
*-*|x86_64-
*-*) ;;
4571 case "${canonical}" in
4572 *-sunos5.6
* |
*-solaris2.6
* )
4576 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4578 emacs_check_sunpro_c
=yes
4580 *-sunos5* |
*-solaris* )
4582 emacs_check_sunpro_c
=yes
4585 ## Watch out for a compiler that we know will not work.
4586 case "${canonical}" in
4587 *-solaris* |
*-sunos5* )
4588 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4589 ## /usr/ucb/cc doesn't work;
4590 ## we should find some other compiler that does work.
4598 ## Intel 386 machines where we don't care about the manufacturer.
4600 case "${canonical}" in
4601 *-cygwin ) opsys
=cygwin
;;
4602 *-darwin* ) opsys
=darwin
;;
4603 *-sysv4.2uw
* ) opsys
=unixware
;;
4604 *-sysv5uw* ) opsys
=unixware
;;
4605 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4606 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4615 ### If the code above didn't choose an operating system, just choose
4616 ### an operating system based on the configuration name. You really
4617 ### only want to use this when you have no idea what the right
4618 ### operating system is; if you know what operating systems a machine
4619 ### runs, it's cleaner to make it explicit in the case statement
4621 if test x
"${opsys}" = x
; then
4622 case "${canonical}" in
4623 *-gnu* ) opsys
=gnu
;;
4632 if test $unported = yes; then
4633 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4634 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4637 opsysfile
="s/${opsys}.h"
4640 #### Choose a compiler.
4643 ac_cpp
='$CPP $CPPFLAGS'
4644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4647 if test -n "$ac_tool_prefix"; then
4648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4649 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if test "${ac_cv_prog_CC+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4655 if test -n "$CC"; then
4656 ac_cv_prog_CC
="$CC" # Let the user override the test.
4658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir
=.
4663 for ac_exec_ext
in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 if test -n "$CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678 $as_echo "$CC" >&6; }
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4686 if test -z "$ac_cv_prog_CC"; then
4688 # Extract the first word of "gcc", so it can be a program name with args.
4689 set dummy gcc
; ac_word
=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4695 if test -n "$ac_ct_CC"; then
4696 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir
=.
4703 for ac_exec_ext
in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_ac_ct_CC
="gcc"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4716 if test -n "$ac_ct_CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718 $as_echo "$ac_ct_CC" >&6; }
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4724 if test "x$ac_ct_CC" = x
; then
4727 case $cross_compiling:$ac_tool_warned in
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731 ac_tool_warned
=yes ;;
4739 if test -z "$CC"; then
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4742 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if test "${ac_cv_prog_CC+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4748 if test -n "$CC"; then
4749 ac_cv_prog_CC
="$CC" # Let the user override the test.
4751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir
=.
4756 for ac_exec_ext
in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 if test -n "$CC"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4771 $as_echo "$CC" >&6; }
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4780 if test -z "$CC"; then
4781 # Extract the first word of "cc", so it can be a program name with args.
4782 set dummy cc
; ac_word
=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if test "${ac_cv_prog_CC+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4788 if test -n "$CC"; then
4789 ac_cv_prog_CC
="$CC" # Let the user override the test.
4792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir
=.
4797 for ac_exec_ext
in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4800 ac_prog_rejected
=yes
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 if test $ac_prog_rejected = yes; then
4812 # We found a bogon in the path, so make sure we never use it.
4813 set dummy
$ac_cv_prog_CC
4815 if test $# != 0; then
4816 # We chose a different compiler from the bogus one.
4817 # However, it has the same basename, so the bogon will be chosen
4818 # first if we set CC to just the basename; use the full file name.
4820 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4826 if test -n "$CC"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4828 $as_echo "$CC" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4836 if test -z "$CC"; then
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog
in cl.exe
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if test "${ac_cv_prog_CC+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4847 if test -n "$CC"; then
4848 ac_cv_prog_CC
="$CC" # Let the user override the test.
4850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir
=.
4855 for ac_exec_ext
in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 if test -n "$CC"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4870 $as_echo "$CC" >&6; }
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4877 test -n "$CC" && break
4880 if test -z "$CC"; then
4882 for ac_prog
in cl.exe
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy
$ac_prog; ac_word
=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4891 if test -n "$ac_ct_CC"; then
4892 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir
=.
4899 for ac_exec_ext
in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_ac_ct_CC
="$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4912 if test -n "$ac_ct_CC"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4914 $as_echo "$ac_ct_CC" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4921 test -n "$ac_ct_CC" && break
4924 if test "x$ac_ct_CC" = x
; then
4927 case $cross_compiling:$ac_tool_warned in
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931 ac_tool_warned
=yes ;;
4940 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4942 as_fn_error
"no acceptable C compiler found in \$PATH
4943 See \`config.log' for more details." "$LINENO" 5; }
4945 # Provide some information about the compiler.
4946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4949 for ac_option
in --version -v -V -qversion; do
4950 { { ac_try
="$ac_compiler $ac_option >&5"
4952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956 $as_echo "$ac_try_echo"; } >&5
4957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4959 if test -s conftest.err; then
4961 ... rest of stderr output deleted ...
4962 10q' conftest.err >conftest.er1
4963 cat conftest.er1 >&5
4965 rm -f conftest.er1 conftest.err
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; }
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4981 ac_clean_files_save=$ac_clean_files
4982 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4983 # Try to create an executable without -o first, disregard a.out.
4984 # It will help us diagnose broken compilers, and finding out an intuition
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4987 $as_echo_n "checking whether the C compiler works... " >&6; }
4988 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4990 # The possible output files:
4991 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4994 for ac_file in $ac_files
4997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4998 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5003 if { { ac_try="$ac_link_default"
5005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5006 *) ac_try_echo
=$ac_try;;
5008 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5009 $as_echo "$ac_try_echo"; } >&5
5010 (eval "$ac_link_default") 2>&5
5012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5013 test $ac_status = 0; }; then :
5014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5015 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5016 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5017 # so that the user can short-circuit this test for compilers unknown to
5019 for ac_file
in $ac_files ''
5021 test -f "$ac_file" ||
continue
5023 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5026 # We found the default executable, but exeext='' is most
5030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5032 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5034 # We set ac_cv_exeext here because the later test for it is not
5035 # safe: cross compilers may not add the suffix if given an `-o'
5036 # argument, so we may need to know it at that point already.
5037 # Even if this section looks crufty: it has the advantage of
5044 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5049 if test -z "$ac_file"; then :
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 $as_echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.
$ac_ext >&5
5055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5057 { as_fn_set_status
77
5058 as_fn_error
"C compiler cannot create executables
5059 See \`config.log' for more details." "$LINENO" 5; }; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5062 $as_echo "yes" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5065 $as_echo_n "checking for C compiler default output file name... " >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5067 $as_echo "$ac_file" >&6; }
5068 ac_exeext
=$ac_cv_exeext
5070 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5071 ac_clean_files
=$ac_clean_files_save
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5073 $as_echo_n "checking for suffix of executables... " >&6; }
5074 if { { ac_try
="$ac_link"
5076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5080 $as_echo "$ac_try_echo"; } >&5
5081 (eval "$ac_link") 2>&5
5083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5084 test $ac_status = 0; }; then :
5085 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5086 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5087 # work properly (i.e., refer to `conftest.exe'), while it won't with
5089 for ac_file
in conftest.exe conftest conftest.
*; do
5090 test -f "$ac_file" ||
continue
5092 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5093 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5102 See \`config.log' for more details." "$LINENO" 5; }
5104 rm -f conftest conftest
$ac_cv_exeext
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5106 $as_echo "$ac_cv_exeext" >&6; }
5108 rm -f conftest.
$ac_ext
5109 EXEEXT
=$ac_cv_exeext
5111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5117 FILE *f = fopen ("conftest.out", "w");
5118 return ferror (f) || fclose (f) != 0;
5124 ac_clean_files
="$ac_clean_files conftest.out"
5125 # Check that the compiler produces executables we can run. If not, either
5126 # the compiler is broken, or we cross compile.
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5128 $as_echo_n "checking whether we are cross compiling... " >&6; }
5129 if test "$cross_compiling" != yes; then
5130 { { ac_try
="$ac_link"
5132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5136 $as_echo "$ac_try_echo"; } >&5
5137 (eval "$ac_link") 2>&5
5139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5140 test $ac_status = 0; }
5141 if { ac_try='./conftest$ac_cv_exeext'
5142 { { case "(($ac_try" in
5143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5144 *) ac_try_echo
=$ac_try;;
5146 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5147 $as_echo "$ac_try_echo"; } >&5
5148 (eval "$ac_try") 2>&5
5150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5151 test $ac_status = 0; }; }; then
5154 if test "$cross_compiling" = maybe
; then
5157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5159 as_fn_error
"cannot run C compiled programs.
5160 If you meant to cross compile, use \`--host'.
5161 See \`config.log' for more details." "$LINENO" 5; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5166 $as_echo "$cross_compiling" >&6; }
5168 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5169 ac_clean_files
=$ac_clean_files_save
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5171 $as_echo_n "checking for suffix of object files... " >&6; }
5172 if test "${ac_cv_objext+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5186 rm -f conftest.o conftest.obj
5187 if { { ac_try
="$ac_compile"
5189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5190 *) ac_try_echo=$ac_try;;
5192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5193 $as_echo "$ac_try_echo"; } >&5
5194 (eval "$ac_compile") 2>&5
5196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5197 test $ac_status = 0; }; then :
5198 for ac_file in conftest.o conftest.obj conftest.*; do
5199 test -f "$ac_file" || continue;
5201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5207 $as_echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5212 as_fn_error "cannot compute suffix of object files
: cannot compile
5213 See \
`config.log' for more details." "$LINENO" 5; }
5215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5218 $as_echo "$ac_cv_objext" >&6; }
5219 OBJEXT=$ac_cv_objext
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5222 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5223 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5240 if ac_fn_c_try_compile "$LINENO"; then :
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5250 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5251 if test $ac_compiler_gnu = yes; then
5256 ac_test_CFLAGS=${CFLAGS+set}
5257 ac_save_CFLAGS=$CFLAGS
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5259 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5260 if test "${ac_cv_prog_cc_g+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5263 ac_save_c_werror_flag=$ac_c_werror_flag
5264 ac_c_werror_flag=yes
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5278 if ac_fn_c_try_compile "$LINENO"; then :
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5293 if ac_fn_c_try_compile "$LINENO"; then :
5296 ac_c_werror_flag=$ac_save_c_werror_flag
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5309 if ac_fn_c_try_compile "$LINENO"; then :
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 ac_c_werror_flag=$ac_save_c_werror_flag
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5320 $as_echo "$ac_cv_prog_cc_g" >&6; }
5321 if test "$ac_test_CFLAGS" = set; then
5322 CFLAGS=$ac_save_CFLAGS
5323 elif test $ac_cv_prog_cc_g = yes; then
5324 if test "$GCC" = yes; then
5330 if test "$GCC" = yes; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5337 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5338 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5341 ac_cv_prog_cc_c89=no
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5347 #include <sys/types.h>
5348 #include <sys/stat.h>
5349 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5350 struct buf { int x; };
5351 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5352 static char *e (p, i)
5358 static char *f (char * (*g) (char **, int), char **p, ...)
5363 s = g (p, va_arg (v,int));
5368 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5369 function prototypes and stuff, but not '\xHH' hex character constants.
5370 These don't provoke an error unfortunately, instead are silently treated
5371 as 'x'. The following induces an error, until -std is added to get
5372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5373 array size at least. It's necessary to write '\x00'==0 to get something
5374 that's true only with -std. */
5375 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5377 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5378 inside strings and character constants. */
5380 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5382 int test (int i, double x);
5383 struct s1 {int (*f) (int a);};
5384 struct s2 {int (*f) (double a);};
5385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5391 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5396 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5399 CC="$ac_save_CC $ac_arg"
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_prog_cc_c89=$ac_arg
5403 rm -f core conftest.err conftest.$ac_objext
5404 test "x$ac_cv_prog_cc_c89" != "xno" && break
5406 rm -f conftest.$ac_ext
5411 case "x$ac_cv_prog_cc_c89" in
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5414 $as_echo "none needed" >&6; } ;;
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5417 $as_echo "unsupported" >&6; } ;;
5419 CC="$CC $ac_cv_prog_cc_c89"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5421 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5423 if test "x$ac_cv_prog_cc_c89" != xno; then :
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 DEPDIR="${am__leading_dot}deps"
5434 ac_config_commands="$ac_config_commands depfiles"
5437 am_make=${MAKE-make}
5438 cat > confinc << 'END'
5440 @echo this is the am__doit target
5443 # If we don't find an include directive, just comment out the code.
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5445 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5449 # First try GNU make style include.
5450 echo "include confinc" > confmf
5451 # Ignore all kinds of additional output from `make'.
5452 case `$am_make -s -f confmf 2> /dev/null` in #(
5453 *the\ am__doit\ target*)
5459 # Now try BSD make style include.
5460 if test "$am__include" = "#"; then
5461 echo '.include
"confinc"' > confmf
5462 case `$am_make -s -f confmf 2> /dev/null` in #(
5463 *the\ am__doit\ target*)
5464 am__include=.include
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5473 $as_echo "$_am_result" >&6; }
5474 rm -f confinc confmf
5476 # Check whether --enable-dependency-tracking was given.
5477 if test "${enable_dependency_tracking+set}" = set; then :
5478 enableval=$enable_dependency_tracking;
5481 if test "x$enable_dependency_tracking" != xno; then
5482 am_depcomp="$ac_aux_dir/depcomp"
5485 if test "x$enable_dependency_tracking" != xno
; then
5495 depcc
="$CC" am_compiler_list
=
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5498 $as_echo_n "checking dependency style of $depcc... " >&6; }
5499 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5503 # We make a subdir and do the tests there. Otherwise we can end up
5504 # making bogus files that we don't know about and never remove. For
5505 # instance it was reported that on HP-UX the gcc test will end up
5506 # making a dummy file named `D' -- because `-MD' means `put the output
5509 # Copy depcomp to subdir because otherwise we won't find it if we're
5510 # using a relative directory.
5511 cp "$am_depcomp" conftest.dir
5513 # We will build objects and dependencies in a subdirectory because
5514 # it helps to detect inapplicable dependency modes. For instance
5515 # both Tru64's cc and ICC support -MD to output dependencies as a
5516 # side effect of compilation, but ICC will put the dependencies in
5517 # the current directory while Tru64 will put them in the object
5521 am_cv_CC_dependencies_compiler_type
=none
5522 if test "$am_compiler_list" = ""; then
5523 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5526 case " $depcc " in #(
5527 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5530 for depmode
in $am_compiler_list; do
5531 # Setup a source with many dependencies, because some compilers
5532 # like to wrap large dependency lists on column 80 (with \), and
5533 # we should not choose a depcomp mode which is confused by this.
5535 # We need to recreate these files for each test, as the compiler may
5536 # overwrite some of them when testing with obscure command lines.
5537 # This happens at least with the AIX C compiler.
5539 for i
in 1 2 3 4 5 6; do
5540 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5542 # Solaris 8's {/usr,}/bin/sh.
5543 touch sub
/conftst
$i.h
5545 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5548 # mode. It turns out that the SunPro C++ compiler does not properly
5549 # handle `-M -o', and we need to detect this. Also, some Intel
5550 # versions had trouble with output in subdirs
5551 am__obj
=sub
/conftest.
${OBJEXT-o}
5552 am__minus_obj
="-o $am__obj"
5555 # This depmode causes a compiler race in universal mode.
5556 test "$am__universal" = false ||
continue
5559 # after this tag, mechanisms are not by side-effect, so they'll
5560 # only be used when explicitly requested
5561 if test "x$enable_dependency_tracking" = xyes
; then
5567 msvisualcpp | msvcmsys
)
5568 # This compiler won't grok `-c -o', but also, the minuso test has
5569 # not run yet. These depmodes are late enough in the game, and
5570 # so weak that their functioning should not be impacted.
5571 am__obj
=conftest.
${OBJEXT-o}
5576 if depmode
=$depmode \
5577 source=sub
/conftest.c object
=$am__obj \
5578 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5579 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5580 >/dev
/null
2>conftest.err
&&
5581 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5582 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5583 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5584 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5585 # icc doesn't choke on unknown options, it will just issue warnings
5586 # or remarks (even with -Werror). So we grep stderr for any message
5587 # that says an option was ignored or not supported.
5588 # When given -MP, icc 7.0 and 7.1 complain thusly:
5589 # icc: Command line warning: ignoring option '-M'; no argument required
5590 # The diagnosis changed in icc 8.0:
5591 # icc: Command line remark: option '-MP' not supported
5592 if (grep 'ignoring option' conftest.err ||
5593 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5594 am_cv_CC_dependencies_compiler_type
=$depmode
5603 am_cv_CC_dependencies_compiler_type
=none
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5608 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5609 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5612 test "x$enable_dependency_tracking" != xno \
5613 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5615 am__fastdepCC_FALSE
='#'
5617 am__fastdepCC_TRUE
='#'
5618 am__fastdepCC_FALSE
=
5622 if test "x$CC" != xcc
; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5624 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5627 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5629 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5630 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5631 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5632 $as_echo_n "(cached) " >&6
5634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5645 # Make sure it works both with $CC and with simple cc.
5646 # We do the test twice because some compilers refuse to overwrite an
5647 # existing .o file with -o, though they will create one.
5648 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5650 if { { case "(($ac_try" in
5651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5655 $as_echo "$ac_try_echo"; } >&5
5656 (eval "$ac_try") 2>&5
5658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; } &&
5660 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5662 *) ac_try_echo
=$ac_try;;
5664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_try") 2>&5
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; };
5671 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5672 if test "x$CC" != xcc
; then
5673 # Test first that cc exists at all.
5674 if { ac_try
='cc -c conftest.$ac_ext >&5'
5675 { { case "(($ac_try" in
5676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5680 $as_echo "$ac_try_echo"; } >&5
5681 (eval "$ac_try") 2>&5
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; }; }; then
5685 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5687 if { { case "(($ac_try" in
5688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5689 *) ac_try_echo
=$ac_try;;
5691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5692 $as_echo "$ac_try_echo"; } >&5
5693 (eval "$ac_try") 2>&5
5695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696 test $ac_status = 0; } &&
5697 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5702 $as_echo "$ac_try_echo"; } >&5
5703 (eval "$ac_try") 2>&5
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; };
5711 # cc exists but doesn't like -o.
5712 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5717 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5719 rm -f core conftest*
5722 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5724 $as_echo "yes" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5729 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5733 # FIXME: we rely on the cache variable name because
5734 # there is no other way.
5736 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5737 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5738 if test "$am_t" != yes; then
5739 # Losing compiler, so override with the script.
5740 # FIXME: It is wrong to rewrite CC.
5741 # But if we don't then we get into trouble of one sort or another.
5742 # A longer-term fix would be to have automake use am__CC in this case,
5743 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5744 CC="$am_aux_dir/compile $CC"
5749 if test x$GCC = xyes; then
5750 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5752 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5755 # Initialize gnulib right after choosing the compiler.
5758 ac_cpp='$CPP $CPPFLAGS'
5759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5764 # On Suns, sometimes $CPP names a directory.
5765 if test -n "$CPP" && test -d "$CPP"; then
5768 if test -z "$CPP"; then
5769 if test "${ac_cv_prog_CPP+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5772 # Double quotes because CPP needs to be expanded
5773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5776 for ac_c_preproc_warn_flag in '' yes
5778 # Use a header file that comes with gcc, so configuring glibc
5779 # with a fresh cross-compiler works.
5780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5781 # <limits.h> exists even on freestanding compilers.
5782 # On the NeXT, cc -E runs the code through the compiler's parser,
5783 # not just through cpp. "Syntax error" is here to catch this case.
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5787 # include <limits.h>
5789 # include <assert.h>
5793 if ac_fn_c_try_cpp "$LINENO"; then :
5796 # Broken: fails on valid input.
5799 rm -f conftest.err conftest.$ac_ext
5801 # OK, works on sane cases. Now check whether nonexistent headers
5802 # can be detected and how.
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #include <ac_nonexistent.h>
5807 if ac_fn_c_try_cpp "$LINENO"; then :
5808 # Broken: success on invalid input.
5811 # Passes both tests.
5815 rm -f conftest.err conftest.$ac_ext
5818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5819 rm -f conftest.err conftest.
$ac_ext
5820 if $ac_preproc_ok; then :
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5833 $as_echo "$CPP" >&6; }
5835 for ac_c_preproc_warn_flag
in '' yes
5837 # Use a header file that comes with gcc, so configuring glibc
5838 # with a fresh cross-compiler works.
5839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5840 # <limits.h> exists even on freestanding compilers.
5841 # On the NeXT, cc -E runs the code through the compiler's parser,
5842 # not just through cpp. "Syntax error" is here to catch this case.
5843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5846 # include <limits.h>
5848 # include <assert.h>
5852 if ac_fn_c_try_cpp
"$LINENO"; then :
5855 # Broken: fails on valid input.
5858 rm -f conftest.err conftest.
$ac_ext
5860 # OK, works on sane cases. Now check whether nonexistent headers
5861 # can be detected and how.
5862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 #include <ac_nonexistent.h>
5866 if ac_fn_c_try_cpp
"$LINENO"; then :
5867 # Broken: success on invalid input.
5870 # Passes both tests.
5874 rm -f conftest.err conftest.
$ac_ext
5877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5878 rm -f conftest.err conftest.
$ac_ext
5879 if $ac_preproc_ok; then :
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5885 See \`config.log' for more details." "$LINENO" 5; }
5889 ac_cpp
='$CPP $CPPFLAGS'
5890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5896 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5897 if test "${ac_cv_path_GREP+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -z "$GREP"; then
5901 ac_path_GREP_found
=false
5902 # Loop through the user's path and test for each of PROGNAME-LIST
5903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5904 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5907 test -z "$as_dir" && as_dir
=.
5908 for ac_prog
in grep ggrep
; do
5909 for ac_exec_ext
in '' $ac_executable_extensions; do
5910 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5911 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5912 # Check for GNU ac_path_GREP and select it if it is found.
5913 # Check for GNU $ac_path_GREP
5914 case `"$ac_path_GREP" --version 2>&1` in
5916 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5919 $as_echo_n 0123456789 >"conftest.in"
5922 cat "conftest.in" "conftest.in" >"conftest.tmp"
5923 mv "conftest.tmp" "conftest.in"
5924 cp "conftest.in" "conftest.nl"
5925 $as_echo 'GREP' >> "conftest.nl"
5926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5927 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5928 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5930 # Best one so far, save it but keep looking for a better one
5931 ac_cv_path_GREP
="$ac_path_GREP"
5932 ac_path_GREP_max
=$ac_count
5934 # 10*(2^10) chars as input seems more than enough
5935 test $ac_count -gt 10 && break
5937 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5940 $ac_path_GREP_found && break 3
5945 if test -z "$ac_cv_path_GREP"; then
5946 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5949 ac_cv_path_GREP
=$GREP
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5954 $as_echo "$ac_cv_path_GREP" >&6; }
5955 GREP
="$ac_cv_path_GREP"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5959 $as_echo_n "checking for egrep... " >&6; }
5960 if test "${ac_cv_path_EGREP+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5963 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5964 then ac_cv_path_EGREP
="$GREP -E"
5966 if test -z "$EGREP"; then
5967 ac_path_EGREP_found
=false
5968 # Loop through the user's path and test for each of PROGNAME-LIST
5969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5970 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5973 test -z "$as_dir" && as_dir
=.
5974 for ac_prog
in egrep; do
5975 for ac_exec_ext
in '' $ac_executable_extensions; do
5976 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5978 # Check for GNU ac_path_EGREP and select it if it is found.
5979 # Check for GNU $ac_path_EGREP
5980 case `"$ac_path_EGREP" --version 2>&1` in
5982 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5985 $as_echo_n 0123456789 >"conftest.in"
5988 cat "conftest.in" "conftest.in" >"conftest.tmp"
5989 mv "conftest.tmp" "conftest.in"
5990 cp "conftest.in" "conftest.nl"
5991 $as_echo 'EGREP' >> "conftest.nl"
5992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5993 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5994 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5996 # Best one so far, save it but keep looking for a better one
5997 ac_cv_path_EGREP
="$ac_path_EGREP"
5998 ac_path_EGREP_max
=$ac_count
6000 # 10*(2^10) chars as input seems more than enough
6001 test $ac_count -gt 10 && break
6003 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6006 $ac_path_EGREP_found && break 3
6011 if test -z "$ac_cv_path_EGREP"; then
6012 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6015 ac_cv_path_EGREP
=$EGREP
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6021 $as_echo "$ac_cv_path_EGREP" >&6; }
6022 EGREP
="$ac_cv_path_EGREP"
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6028 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6029 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6043 gl_cv_c_amsterdam_compiler
=yes
6045 gl_cv_c_amsterdam_compiler
=no
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6052 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6053 if test -z "$AR"; then
6054 if test $gl_cv_c_amsterdam_compiler = yes; then
6056 if test -z "$ARFLAGS"; then
6060 if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6062 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_prog_AR+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6068 if test -n "$AR"; then
6069 ac_cv_prog_AR
="$AR" # Let the user override the test.
6071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6075 test -z "$as_dir" && as_dir
=.
6076 for ac_exec_ext
in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 if test -n "$AR"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6091 $as_echo "$AR" >&6; }
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6099 if test -z "$ac_cv_prog_AR"; then
6101 # Extract the first word of "ar", so it can be a program name with args.
6102 set dummy
ar; ac_word
=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6108 if test -n "$ac_ct_AR"; then
6109 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir
=.
6116 for ac_exec_ext
in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_ac_ct_AR
="ar"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6129 if test -n "$ac_ct_AR"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6131 $as_echo "$ac_ct_AR" >&6; }
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6137 if test "x$ac_ct_AR" = x
; then
6140 case $cross_compiling:$ac_tool_warned in
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned
=yes ;;
6152 if test -z "$ARFLAGS"; then
6157 if test -z "$ARFLAGS"; then
6163 if test -z "$RANLIB"; then
6164 if test $gl_cv_c_amsterdam_compiler = yes; then
6167 if test -n "$ac_tool_prefix"; then
6168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6169 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6175 if test -n "$RANLIB"; then
6176 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6182 test -z "$as_dir" && as_dir
=.
6183 for ac_exec_ext
in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 RANLIB
=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6198 $as_echo "$RANLIB" >&6; }
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6206 if test -z "$ac_cv_prog_RANLIB"; then
6207 ac_ct_RANLIB
=$RANLIB
6208 # Extract the first word of "ranlib", so it can be a program name with args.
6209 set dummy ranlib
; ac_word
=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6215 if test -n "$ac_ct_RANLIB"; then
6216 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir
=.
6223 for ac_exec_ext
in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6236 if test -n "$ac_ct_RANLIB"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6238 $as_echo "$ac_ct_RANLIB" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6244 if test "x$ac_ct_RANLIB" = x
; then
6247 case $cross_compiling:$ac_tool_warned in
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned
=yes ;;
6253 RANLIB
=$ac_ct_RANLIB
6256 RANLIB
="$ac_cv_prog_RANLIB"
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6264 $as_echo_n "checking for ANSI C header files... " >&6; }
6265 if test "${ac_cv_header_stdc+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6283 if ac_fn_c_try_compile
"$LINENO"; then :
6284 ac_cv_header_stdc
=yes
6286 ac_cv_header_stdc
=no
6288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6290 if test $ac_cv_header_stdc = yes; then
6291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298 $EGREP "memchr" >/dev
/null
2>&1; then :
6301 ac_cv_header_stdc
=no
6307 if test $ac_cv_header_stdc = yes; then
6308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6315 $EGREP "free" >/dev
/null
2>&1; then :
6318 ac_cv_header_stdc
=no
6324 if test $ac_cv_header_stdc = yes; then
6325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6326 if test "$cross_compiling" = yes; then :
6329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6333 #if ((' ' & 0x0FF) == 0x020)
6334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6337 # define ISLOWER(c) \
6338 (('a' <= (c) && (c) <= 'i') \
6339 || ('j' <= (c) && (c) <= 'r') \
6340 || ('s' <= (c) && (c) <= 'z'))
6341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6349 for (i = 0; i < 256; i++)
6350 if (XOR (islower (i), ISLOWER (i))
6351 || toupper (i) != TOUPPER (i))
6356 if ac_fn_c_try_run
"$LINENO"; then :
6359 ac_cv_header_stdc
=no
6361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6368 $as_echo "$ac_cv_header_stdc" >&6; }
6369 if test $ac_cv_header_stdc = yes; then
6371 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6376 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6377 inttypes.h stdint.h unistd.h
6379 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6380 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6382 eval as_val
=\$
$as_ac_Header
6383 if test "x$as_val" = x
""yes; then :
6384 cat >>confdefs.h
<<_ACEOF
6385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6396 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6397 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6404 if test "$MINIX" = yes; then
6406 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6409 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6412 $as_echo "#define _MINIX 1" >>confdefs.h
6419 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6426 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6427 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6433 # define __EXTENSIONS__ 1
6434 $ac_includes_default
6443 if ac_fn_c_try_compile
"$LINENO"; then :
6444 ac_cv_safe_to_define___extensions__
=yes
6446 ac_cv_safe_to_define___extensions__
=no
6448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6451 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6452 test $ac_cv_safe_to_define___extensions__ = yes &&
6453 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6455 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6457 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6459 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6461 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6463 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6472 # Check whether --enable-largefile was given.
6473 if test "${enable_largefile+set}" = set; then :
6474 enableval
=$enable_largefile;
6477 if test "$enable_largefile" != no
; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6480 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6481 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6484 ac_cv_sys_largefile_CC
=no
6485 if test "$GCC" != yes; then
6488 # IRIX 6.2 and later do not support large files by default,
6489 # so use the C compiler's -n32 option if that helps.
6490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 #include <sys/types.h>
6493 /* Check that off_t can represent 2**63 - 1 correctly.
6494 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6495 since some C++ compilers masquerading as C compilers
6496 incorrectly reject 9223372036854775807. */
6497 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6498 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6499 && LARGE_OFF_T % 2147483647 == 1)
6509 if ac_fn_c_try_compile
"$LINENO"; then :
6512 rm -f core conftest.err conftest.
$ac_objext
6514 if ac_fn_c_try_compile
"$LINENO"; then :
6515 ac_cv_sys_largefile_CC
=' -n32'; break
6517 rm -f core conftest.err conftest.
$ac_objext
6521 rm -f conftest.
$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6525 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6526 if test "$ac_cv_sys_largefile_CC" != no
; then
6527 CC
=$CC$ac_cv_sys_largefile_CC
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6531 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6532 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <sys/types.h>
6539 /* Check that off_t can represent 2**63 - 1 correctly.
6540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6541 since some C++ compilers masquerading as C compilers
6542 incorrectly reject 9223372036854775807. */
6543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6545 && LARGE_OFF_T % 2147483647 == 1)
6555 if ac_fn_c_try_compile
"$LINENO"; then :
6556 ac_cv_sys_file_offset_bits
=no
; break
6558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #define _FILE_OFFSET_BITS 64
6562 #include <sys/types.h>
6563 /* Check that off_t can represent 2**63 - 1 correctly.
6564 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6565 since some C++ compilers masquerading as C compilers
6566 incorrectly reject 9223372036854775807. */
6567 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6568 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6569 && LARGE_OFF_T % 2147483647 == 1)
6579 if ac_fn_c_try_compile
"$LINENO"; then :
6580 ac_cv_sys_file_offset_bits
=64; break
6582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6583 ac_cv_sys_file_offset_bits
=unknown
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6588 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6589 case $ac_cv_sys_file_offset_bits in #(
6592 cat >>confdefs.h
<<_ACEOF
6593 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6598 if test $ac_cv_sys_file_offset_bits = unknown
; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6600 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6601 if test "${ac_cv_sys_large_files+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607 #include <sys/types.h>
6608 /* Check that off_t can represent 2**63 - 1 correctly.
6609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6610 since some C++ compilers masquerading as C compilers
6611 incorrectly reject 9223372036854775807. */
6612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6614 && LARGE_OFF_T % 2147483647 == 1)
6624 if ac_fn_c_try_compile
"$LINENO"; then :
6625 ac_cv_sys_large_files
=no
; break
6627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630 #define _LARGE_FILES 1
6631 #include <sys/types.h>
6632 /* Check that off_t can represent 2**63 - 1 correctly.
6633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6634 since some C++ compilers masquerading as C compilers
6635 incorrectly reject 9223372036854775807. */
6636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6638 && LARGE_OFF_T % 2147483647 == 1)
6648 if ac_fn_c_try_compile
"$LINENO"; then :
6649 ac_cv_sys_large_files
=1; break
6651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6652 ac_cv_sys_large_files
=unknown
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6657 $as_echo "$ac_cv_sys_large_files" >&6; }
6658 case $ac_cv_sys_large_files in #(
6661 cat >>confdefs.h
<<_ACEOF
6662 #define _LARGE_FILES $ac_cv_sys_large_files
6672 case $ac_cv_prog_cc_stdc in #(
6674 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6677 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6678 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6681 ac_cv_prog_cc_c99
=no
6683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6686 #include <stdbool.h>
6691 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6692 #define debug(...) fprintf (stderr, __VA_ARGS__)
6693 #define showlist(...) puts (#__VA_ARGS__)
6694 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6696 test_varargs_macros (void)
6701 debug ("X = %d\n", x);
6702 showlist (The first, second, and third items.);
6703 report (x>y, "x is %d but y is %d", x, y);
6706 // Check long long types.
6707 #define BIG64 18446744073709551615ull
6708 #define BIG32 4294967295ul
6709 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6711 your preprocessor is broken;
6715 your preprocessor is broken;
6717 static long long int bignum = -9223372036854775807LL;
6718 static unsigned long long int ubignum = BIG64;
6720 struct incomplete_array
6728 const wchar_t *name;
6732 typedef const char *ccp;
6735 test_restrict (ccp restrict text)
6737 // See if C++-style comments work.
6738 // Iterate through items via the restricted pointer.
6739 // Also check for declarations in for loops.
6740 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6745 // Check varargs and va_copy.
6747 test_varargs (const char *format, ...)
6750 va_start (args, format);
6752 va_copy (args_copy, args);
6763 str = va_arg (args_copy, const char *);
6766 number = va_arg (args_copy, int);
6769 fnumber = va_arg (args_copy, double);
6784 _Bool success = false;
6787 if (test_restrict ("String literal") == 0)
6789 char *restrict newvar = "Another string";
6792 test_varargs ("s, d' f .", "string", 65, 34.234);
6793 test_varargs_macros ();
6795 // Check flexible array members.
6796 struct incomplete_array *ia =
6797 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6799 for (int i = 0; i < ia->datasize; ++i)
6800 ia->data[i] = i * 1.234;
6802 // Check named initializers.
6803 struct named_init ni = {
6805 .name = L"Test wide string",
6806 .average = 543.34343,
6811 int dynamic_array[ni.number];
6812 dynamic_array[ni.number - 1] = 543;
6814 // work around unused variable warnings
6815 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6816 || dynamic_array[ni.number - 1] != 543);
6822 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6824 CC
="$ac_save_CC $ac_arg"
6825 if ac_fn_c_try_compile
"$LINENO"; then :
6826 ac_cv_prog_cc_c99
=$ac_arg
6828 rm -f core conftest.err conftest.
$ac_objext
6829 test "x$ac_cv_prog_cc_c99" != "xno" && break
6831 rm -f conftest.
$ac_ext
6836 case "x$ac_cv_prog_cc_c99" in
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6839 $as_echo "none needed" >&6; } ;;
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6842 $as_echo "unsupported" >&6; } ;;
6844 CC
="$CC $ac_cv_prog_cc_c99"
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6846 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6848 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6849 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6852 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6853 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6856 ac_cv_prog_cc_c89
=no
6858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6862 #include <sys/types.h>
6863 #include <sys/stat.h>
6864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6865 struct buf { int x; };
6866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6867 static char *e (p, i)
6873 static char *f (char * (*g) (char **, int), char **p, ...)
6878 s = g (p, va_arg (v,int));
6883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6884 function prototypes and stuff, but not '\xHH' hex character constants.
6885 These don't provoke an error unfortunately, instead are silently treated
6886 as 'x'. The following induces an error, until -std is added to get
6887 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6888 array size at least. It's necessary to write '\x00'==0 to get something
6889 that's true only with -std. */
6890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6892 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6893 inside strings and character constants. */
6895 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6897 int test (int i, double x);
6898 struct s1 {int (*f) (int a);};
6899 struct s2 {int (*f) (double a);};
6900 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6906 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6911 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6912 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6914 CC
="$ac_save_CC $ac_arg"
6915 if ac_fn_c_try_compile
"$LINENO"; then :
6916 ac_cv_prog_cc_c89
=$ac_arg
6918 rm -f core conftest.err conftest.
$ac_objext
6919 test "x$ac_cv_prog_cc_c89" != "xno" && break
6921 rm -f conftest.
$ac_ext
6926 case "x$ac_cv_prog_cc_c89" in
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6929 $as_echo "none needed" >&6; } ;;
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6932 $as_echo "unsupported" >&6; } ;;
6934 CC
="$CC $ac_cv_prog_cc_c89"
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6936 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6938 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6939 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6941 ac_cv_prog_cc_stdc
=no
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6948 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6949 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6953 case $ac_cv_prog_cc_stdc in #(
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6956 $as_echo "unsupported" >&6; } ;; #(
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: $ac_cv_prog_cc_stdc" >&5
6962 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6967 # Code from module alloca-opt:
6968 # Code from module allocator:
6969 # Code from module careadlinkat:
6970 # Code from module crypto/md5:
6971 # Code from module crypto/sha1:
6972 # Code from module crypto/sha256:
6973 # Code from module crypto/sha512:
6974 # Code from module dosname:
6975 # Code from module dtoastr:
6976 # Code from module dup2:
6977 # Code from module extensions:
6979 # Code from module filemode:
6980 # Code from module getloadavg:
6981 # Code from module getopt-gnu:
6982 # Code from module getopt-posix:
6983 # Code from module gettext-h:
6984 # Code from module ignore-value:
6985 # Code from module include_next:
6986 # Code from module intprops:
6987 # Code from module inttypes-incomplete:
6988 # Code from module largefile:
6990 # Code from module lstat:
6991 # Code from module manywarnings:
6992 # Code from module mktime:
6993 # Code from module multiarch:
6994 # Code from module nocrash:
6995 # Code from module pathmax:
6996 # Code from module pthread_sigmask:
6997 # Code from module readlink:
6998 # Code from module signal-h:
6999 # Code from module sigprocmask:
7000 # Code from module snippet/_Noreturn:
7001 # Code from module snippet/arg-nonnull:
7002 # Code from module snippet/c++defs:
7003 # Code from module snippet/warn-on-use:
7004 # Code from module socklen:
7005 # Code from module ssize_t:
7006 # Code from module stat:
7007 # Code from module stdalign:
7008 # Code from module stdarg:
7012 # Code from module stdbool:
7013 # Code from module stddef:
7014 # Code from module stdint:
7015 # Code from module stdio:
7016 # Code from module stdlib:
7017 # Code from module strftime:
7018 # Code from module strtoimax:
7019 # Code from module strtoll:
7020 # Code from module strtoull:
7021 # Code from module strtoumax:
7022 # Code from module symlink:
7023 # Code from module sys_stat:
7024 # Code from module sys_types:
7025 # Code from module time:
7026 # Code from module time_r:
7027 # Code from module u64:
7028 # Code from module unistd:
7029 # Code from module verify:
7030 # Code from module warnings:
7033 # Check whether --enable-gcc-warnings was given.
7034 if test "${enable_gcc_warnings+set}" = set; then :
7035 enableval
=$enable_gcc_warnings; case $enableval in
7037 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7039 gl_gcc_warnings
=$enableval
7046 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7047 # ------------------------------------------------
7048 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7049 # Otherwise, run RUN-IF-NOT-FOUND.
7052 # When compiling with GCC, prefer -isystem to -I when including system
7053 # include files, to avoid generating useless diagnostics for the files.
7054 if test "$gl_gcc_warnings" != yes; then
7059 # This, $nw, is the list of warnings we disable.
7062 case $with_x_toolkit in
7063 lucid | athena | motif
)
7064 # Old toolkits mishandle 'const'.
7065 nw
="$nw -Wwrite-strings"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7069 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7070 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7074 gl_save_compiler_FLAGS
="$CFLAGS"
7075 as_fn_append CFLAGS
" -Werror"
7076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7087 if ac_fn_c_try_compile
"$LINENO"; then :
7088 gl_cv_warn_c__Werror
=yes
7090 gl_cv_warn_c__Werror
=no
7092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7093 CFLAGS
="$gl_save_compiler_FLAGS"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7097 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7098 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7099 as_fn_append WERROR_CFLAGS
" -Werror"
7107 nw
="$nw -Waggregate-return" # anachronistic
7108 nw
="$nw -Wlong-long" # C90 is anachronistic
7109 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7110 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7111 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7112 nw
="$nw -Wcast-qual" # Too many warnings for now
7113 nw
="$nw -Wconversion" # Too many warnings for now
7114 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7115 nw
="$nw -Wsign-conversion" # Too many warnings for now
7116 nw
="$nw -Woverlength-strings" # Not a problem these days
7117 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7118 nw
="$nw -Wpadded" # Our structs are not padded
7119 nw
="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7120 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7121 nw
="$nw -Wformat-nonliteral" # Emacs does this a lot
7122 nw
="$nw -Wvla" # warnings in gettext.h
7123 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7124 nw
="$nw -Wswitch-enum" # Too many warnings for now
7125 nw
="$nw -Wswitch-default" # Too many warnings for now
7126 nw
="$nw -Wfloat-equal" # e.g., ftoastr.c
7127 nw
="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7129 # Emacs doesn't care about shadowing; see
7130 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7133 # The following lines should be removable at some point.
7134 nw
="$nw -Wstack-protector"
7135 nw
="$nw -Wstrict-overflow"
7136 nw
="$nw -Wsuggest-attribute=const"
7137 nw
="$nw -Wsuggest-attribute=pure"
7141 if test -n "$GCC"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7144 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7145 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7149 gl_save_CFLAGS
="$CFLAGS"
7150 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7162 if ac_fn_c_try_compile
"$LINENO"; then :
7163 gl_cv_cc_nomfi_supported
=yes
7165 gl_cv_cc_nomfi_supported
=no
7167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7168 CFLAGS
="$gl_save_CFLAGS"
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7172 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7174 if test "$gl_cv_cc_nomfi_supported" = yes; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7176 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7177 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7181 gl_save_CFLAGS
="$CFLAGS"
7182 CFLAGS
="$CFLAGS -W -Werror"
7183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7187 typedef struct { int a; int b; } s_t;
7199 if ac_fn_c_try_compile
"$LINENO"; then :
7200 gl_cv_cc_nomfi_needed
=no
7202 gl_cv_cc_nomfi_needed
=yes
7204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7205 CFLAGS
="$gl_save_CFLAGS"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7210 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7215 for gl_manywarn_item
in \
7219 -Wformat-nonliteral \
7222 -Wmissing-include-dirs \
7232 -Wtraditional-conversion \
7233 -Wdeclaration-after-statement \
7236 -Wunsafe-loop-optimizations \
7238 -Wbad-function-cast \
7246 -Waggregate-return \
7247 -Wstrict-prototypes \
7248 -Wold-style-definition \
7249 -Wmissing-prototypes \
7250 -Wmissing-declarations \
7251 -Wmissing-noreturn \
7252 -Wmissing-format-attribute \
7257 -Wunreachable-code \
7262 -Wvolatile-register-var \
7263 -Wdisabled-optimization \
7265 -Woverlength-strings \
7266 -Wbuiltin-macro-redefined \
7268 -Wpacked-bitfield-compat \
7271 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7273 # The following are not documented in the manual but are included in
7274 # output from gcc --help=warnings.
7275 for gl_manywarn_item
in \
7277 -Wcoverage-mismatch \
7280 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7282 # More warnings from gcc 4.6.2 --help=warnings.
7283 for gl_manywarn_item
in \
7287 -Wdeprecated-declarations \
7289 -Wdouble-promotion \
7292 -Wformat-contains-nul \
7293 -Wformat-extra-args \
7294 -Wformat-zero-length \
7299 -Wpointer-to-int-cast \
7301 -Wsuggest-attribute=const \
7302 -Wsuggest-attribute=noreturn \
7303 -Wsuggest-attribute=pure \
7306 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7309 # Disable the missing-field-initializers warning if needed
7310 if test "$gl_cv_cc_nomfi_needed" = yes; then
7311 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7322 *" $gl_warn_item "*)
7325 gl_warn_set
="$gl_warn_set $gl_warn_item"
7332 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7334 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7335 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7336 $as_echo_n "(cached) " >&6
7339 gl_save_compiler_FLAGS
="$CFLAGS"
7340 as_fn_append CFLAGS
" $w"
7341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7352 if ac_fn_c_try_compile
"$LINENO"; then :
7353 eval "$as_gl_Warn=yes"
7355 eval "$as_gl_Warn=no"
7357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7358 CFLAGS
="$gl_save_compiler_FLAGS"
7361 eval ac_res
=\$
$as_gl_Warn
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7363 $as_echo "$ac_res" >&6; }
7364 eval as_val
=\$
$as_gl_Warn
7365 if test "x$as_val" = x
""yes; then :
7366 as_fn_append WARN_CFLAGS
" $w"
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7372 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7373 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7377 gl_save_compiler_FLAGS
="$CFLAGS"
7378 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7390 if ac_fn_c_try_compile
"$LINENO"; then :
7391 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7393 gl_cv_warn_c__Wno_missing_field_initializers
=no
7395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7396 CFLAGS
="$gl_save_compiler_FLAGS"
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7400 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7401 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7402 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7407 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7408 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7412 gl_save_compiler_FLAGS
="$CFLAGS"
7413 as_fn_append CFLAGS
" -Wno-sign-compare"
7414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7425 if ac_fn_c_try_compile
"$LINENO"; then :
7426 gl_cv_warn_c__Wno_sign_compare
=yes
7428 gl_cv_warn_c__Wno_sign_compare
=no
7430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 CFLAGS
="$gl_save_compiler_FLAGS"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7435 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7436 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7437 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7440 # Too many warnings for now
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7442 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7443 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7447 gl_save_compiler_FLAGS
="$CFLAGS"
7448 as_fn_append CFLAGS
" -Wno-type-limits"
7449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7460 if ac_fn_c_try_compile
"$LINENO"; then :
7461 gl_cv_warn_c__Wno_type_limits
=yes
7463 gl_cv_warn_c__Wno_type_limits
=no
7465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7466 CFLAGS
="$gl_save_compiler_FLAGS"
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7470 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7471 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7472 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7475 # Too many warnings for now
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7477 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7478 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7482 gl_save_compiler_FLAGS
="$CFLAGS"
7483 as_fn_append CFLAGS
" -Wno-switch"
7484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7495 if ac_fn_c_try_compile
"$LINENO"; then :
7496 gl_cv_warn_c__Wno_switch
=yes
7498 gl_cv_warn_c__Wno_switch
=no
7500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7501 CFLAGS
="$gl_save_compiler_FLAGS"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7505 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7506 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7507 as_fn_append WARN_CFLAGS
" -Wno-switch"
7510 # Too many warnings for now
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7512 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7513 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7517 gl_save_compiler_FLAGS
="$CFLAGS"
7518 as_fn_append CFLAGS
" -Wno-unused-parameter"
7519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7530 if ac_fn_c_try_compile
"$LINENO"; then :
7531 gl_cv_warn_c__Wno_unused_parameter
=yes
7533 gl_cv_warn_c__Wno_unused_parameter
=no
7535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7536 CFLAGS
="$gl_save_compiler_FLAGS"
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7540 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7541 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7542 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7545 # Too many warnings for now
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7547 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7548 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7552 gl_save_compiler_FLAGS
="$CFLAGS"
7553 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7565 if ac_fn_c_try_compile
"$LINENO"; then :
7566 gl_cv_warn_c__Wno_format_nonliteral
=yes
7568 gl_cv_warn_c__Wno_format_nonliteral
=no
7570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7571 CFLAGS
="$gl_save_compiler_FLAGS"
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7575 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7576 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7577 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7582 # In spite of excluding -Wlogical-op above, it is enabled, as of
7583 # gcc 4.5.0 20090517.
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7585 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7586 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
7590 gl_save_compiler_FLAGS
="$CFLAGS"
7591 as_fn_append CFLAGS
" -Wno-logical-op"
7592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7603 if ac_fn_c_try_compile
"$LINENO"; then :
7604 gl_cv_warn_c__Wno_logical_op
=yes
7606 gl_cv_warn_c__Wno_logical_op
=no
7608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7609 CFLAGS
="$gl_save_compiler_FLAGS"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7613 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7614 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7615 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7621 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7622 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7626 gl_save_compiler_FLAGS
="$CFLAGS"
7627 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7639 if ac_fn_c_try_compile
"$LINENO"; then :
7640 gl_cv_warn_c__fdiagnostics_show_option
=yes
7642 gl_cv_warn_c__fdiagnostics_show_option
=no
7644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7645 CFLAGS
="$gl_save_compiler_FLAGS"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7649 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7650 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7651 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7656 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7657 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7661 gl_save_compiler_FLAGS
="$CFLAGS"
7662 as_fn_append CFLAGS
" -funit-at-a-time"
7663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7674 if ac_fn_c_try_compile
"$LINENO"; then :
7675 gl_cv_warn_c__funit_at_a_time
=yes
7677 gl_cv_warn_c__funit_at_a_time
=no
7679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7680 CFLAGS
="$gl_save_compiler_FLAGS"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7684 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7685 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7686 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7692 $as_echo "#define lint 1" >>confdefs.h
7695 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7698 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7701 # We use a slightly smaller set of warning options for lib/.
7702 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7704 nw
="$nw -Wunused-macros"
7708 set x
$WARN_CFLAGS; shift
7712 *" $gl_warn_item "*)
7715 gl_warn_set
="$gl_warn_set $gl_warn_item"
7719 GNULIB_WARN_CFLAGS
=$gl_warn_set
7727 # Extract the first word of "install-info", so it can be a program name with args.
7728 set dummy install-info
; ac_word
=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7734 case $INSTALL_INFO in
7736 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7740 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7743 test -z "$as_dir" && as_dir
=.
7744 for ac_exec_ext
in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7758 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7759 if test -n "$INSTALL_INFO"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7761 $as_echo "$INSTALL_INFO" >&6; }
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7768 # Extract the first word of "gzip", so it can be a program name with args.
7769 set dummy
gzip; ac_word
=$2
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7777 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir
=.
7785 for ac_exec_ext
in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7799 if test -n "$GZIP_PROG"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7801 $as_echo "$GZIP_PROG" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7808 # Extract the first word of "paxctl", so it can be a program name with args.
7809 set dummy paxctl
; ac_word
=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7817 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7821 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7824 test -z "$as_dir" && as_dir
=.
7825 for ac_exec_ext
in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 PAXCTL
=$ac_cv_path_PAXCTL
7839 if test -n "$PAXCTL"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7841 $as_echo "$PAXCTL" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7850 ## Need makeinfo >= 4.7 (?) to build the manuals.
7851 # Extract the first word of "makeinfo", so it can be a program name with args.
7852 set dummy makeinfo
; ac_word
=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7860 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
7863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7867 test -z "$as_dir" && as_dir
=.
7868 for ac_exec_ext
in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
7882 MAKEINFO
=$ac_cv_path_MAKEINFO
7883 if test -n "$MAKEINFO"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7885 $as_echo "$MAKEINFO" >&6; }
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7892 if test "$MAKEINFO" != "no" && \
7893 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x
; then
7897 ## Makeinfo is unusual. For a released Emacs, the manuals are
7898 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7899 ## therefore in the category of "special tools" not normally required, which
7900 ## configure does not have to check for (eg autoconf itself).
7901 ## In a Bazaar checkout on the other hand, the manuals are not included.
7902 ## So makeinfo is a requirement to build from Bazaar, and configure
7903 ## should test for it as it does for any other build requirement.
7904 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7905 ## with pre-built manuals, from a Bazaar checkout.
7908 if test "$MAKEINFO" = "no"; then
7910 if test "x${with_makeinfo}" = "xno"; then
7912 elif test ! -e $srcdir/info
/emacs
; then
7913 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
7914 source tree does not seem to have pre-built manuals in the \`info' directory.
7915 Either install a suitable version of makeinfo, or re-run configure
7916 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7922 INFO_OPTS
=--no-split
7927 if test x
$GCC = xyes
; then
7928 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
7929 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
7931 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
7932 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7936 late_LDFLAGS
=$LDFLAGS
7937 if test x
$GCC = xyes
; then
7938 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
7940 LDFLAGS
="$LDFLAGS -znocombreloc"
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7944 $as_echo_n "checking for -znocombreloc... " >&6; }
7945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7956 if ac_fn_c_try_link
"$LINENO"; then :
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7958 $as_echo "yes" >&6; }
7960 LDFLAGS
=$late_LDFLAGS
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962 $as_echo "no" >&6; }
7964 rm -f core conftest.err conftest.
$ac_objext \
7965 conftest
$ac_exeext conftest.
$ac_ext
7968 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
7970 your-opsys-here
) CANNOT_DUMP
=yes ;;
7973 test "$CANNOT_DUMP" = "yes" && \
7975 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7981 UNEXEC_OBJ
=unexelf.o
7983 # MSDOS uses unexcoff.o
7984 # MSWindows uses unexw32.o
7986 UNEXEC_OBJ
=unexaix.o
7992 UNEXEC_OBJ
=unexmacosx.o
7995 UNEXEC_OBJ
=unexhp9k800.o
7998 # Use the Solaris dldump() function, called from unexsol.c, to dump
7999 # emacs, instead of the generic ELF dump code found in unexelf.c.
8000 # The resulting binary has a complete symbol table, and is better
8001 # for debugging and other observability tools (debuggers, pstack, etc).
8003 # If you encounter a problem using dldump(), please consider sending
8004 # a message to the OpenSolaris tools-linking mailing list:
8005 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8007 # It is likely that dldump() works with older Solaris too, but this has
8008 # not been tested, so for now this change is for Solaris 10 or newer.
8009 UNEXEC_OBJ
=unexsol.o
8016 ## Let `ld' find image libs and similar things in /usr/local/lib.
8017 ## The system compiler, GCC, has apparently been modified to not
8018 ## look there, contrary to what a stock GCC would do.
8019 ### It's not our place to do this. See bug#10313#17.
8020 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8025 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8026 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8030 ### It's not our place to do this. See bug#10313#17.
8031 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8036 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8037 ## otherwise Emacs dumps core on elf systems.
8038 LD_SWITCH_SYSTEM
="-Z"
8043 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8045 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8046 ## which has not been defined yet. When this was handled with cpp,
8047 ## it was expanded to null when configure sourced the s/*.h file.
8048 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8049 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8050 ## (or somesuch), but because it is supposed to go at the _front_
8051 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8052 ## Compare with the gnu-linux case below, which added to the end
8053 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8054 ## LD_SWITCH_SYSTEM_TEMACS.
8057 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8064 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8065 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8069 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8070 ## With ELF, make sure that all common symbols get allocated to in the
8071 ## data section. Otherwise, the dump of temacs may miss variables in
8072 ## the shared library that have been initialized. For example, with
8073 ## GNU libc, __malloc_initialized would normally be resolved to the
8074 ## shared library's .bss section, which is fatal.
8075 if test "x$GCC" = "xyes"; then
8076 C_SWITCH_MACHINE
="-fno-common"
8078 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8081 UNEXEC_OBJ
=unexalpha.o
8090 ## Some programs in src produce warnings saying certain subprograms
8091 ## are too complex and need a MAXMEM value greater than 2000 for
8092 ## additional optimization. --nils@exp-math.uni-essen.de
8093 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8094 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8095 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8096 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8102 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8103 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8105 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8107 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8109 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8111 ## Motif needs -lgen.
8112 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8117 ### Make sure subsequent tests use flags consistent with the build flags.
8119 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8120 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8122 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8125 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8127 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8134 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8139 START_FILES
='pre-crt0.o'
8142 ## Adding -lm confuses the dynamic linker, so omit it.
8144 START_FILES
='pre-crt0.o'
8147 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8148 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8149 SYSTEM_TYPE
=berkeley-unix
8151 gnu-linux | gnu-kfreebsd
)
8152 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8153 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8155 hpux10-20 | hpux11
)
8157 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8160 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8161 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8162 SYSTEM_TYPE
=berkeley-unix
8166 SYSTEM_TYPE
=usg-unix-v
8174 cat >>confdefs.h
<<_ACEOF
8175 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8181 for file in x
$LIB_STANDARD $START_FILES; do
8183 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8187 if test "x$crt_files" != x
; then
8189 ## If user specified a crt-dir, use that unconditionally.
8192 if test "X$CRT_DIR" = "X"; then
8194 CRT_DIR
=/usr
/lib
# default
8196 case "$canonical" in
8197 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8198 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8199 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8200 ## For anything else (eg /usr/lib32), it is up the user to specify
8201 ## the location (bug#5655).
8202 ## Test for crtn.o, not just the directory, because sometimes the
8203 ## directory exists but does not have the relevant files (bug#1287).
8204 ## FIXME better to test for binary compatibility somehow.
8205 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8208 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8212 hpux10-20
) CRT_DIR
=/lib
;;
8215 test "x${GCC}" = xyes
&& crt_gcc
=yes
8221 for file in $crt_files; do
8223 ## If we're using gcc, try to determine it automatically by asking
8224 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8225 ## system-dependent default from above.]
8226 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8228 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8231 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8232 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8233 X"$crt_file" : 'X\(//\)[^/]' \| \
8234 X"$crt_file" : 'X\(//\)$' \| \
8235 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8236 $as_echo X"$crt_file" |
8237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8260 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8263 test "x$crt_missing" = x || \
8264 as_fn_error
"Required file(s) not found:$crt_missing
8265 Try using the --with-crt-dir option." "$LINENO" 5
8267 fi # crt_files != ""
8273 if test -f $CRT_DIR/crti.o
; then
8275 test -f $CRT_DIR/crtn.o || \
8276 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8278 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8279 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8285 # Extract the first word of "pkg-config", so it can be a program name with args.
8286 set dummy pkg-config
; ac_word
=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8294 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8301 test -z "$as_dir" && as_dir
=.
8302 for ac_exec_ext
in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8316 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8317 if test -n "$PKG_CONFIG"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8319 $as_echo "$PKG_CONFIG" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8330 if test "${with_sound}" != "no"; then
8331 # Sound support for GNU/Linux and the free BSDs.
8332 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8334 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8335 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8336 eval as_val
=\$
$as_ac_Header
8337 if test "x$as_val" = x
""yes; then :
8338 cat >>confdefs.h
<<_ACEOF
8339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8341 have_sound_header
=yes
8346 # Emulation library used on NetBSD.
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8348 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8349 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8352 ac_check_lib_save_LIBS
=$LIBS
8353 LIBS
="-lossaudio $LIBS"
8354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8357 /* Override any GCC internal prototype to avoid an error.
8358 Use char because int might match the return type of a GCC
8359 builtin and then its argument prototype would still apply. */
8367 return _oss_ioctl ();
8372 if ac_fn_c_try_link
"$LINENO"; then :
8373 ac_cv_lib_ossaudio__oss_ioctl
=yes
8375 ac_cv_lib_ossaudio__oss_ioctl
=no
8377 rm -f core conftest.err conftest.
$ac_objext \
8378 conftest
$ac_exeext conftest.
$ac_ext
8379 LIBS
=$ac_check_lib_save_LIBS
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8382 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8383 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8392 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8396 if test "$PKG_CONFIG" = "no" ; then
8399 PKG_CONFIG_MIN_VERSION
=0.9.0
8400 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8402 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8404 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8405 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8406 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8413 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8414 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8416 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8423 ## If we have a custom action on failure, don't print errors, but
8424 ## do set a variable so people can do so.
8425 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8437 if test $succeeded = yes; then
8443 if test $HAVE_ALSA = yes; then
8444 SAVE_CFLAGS
="$CFLAGS"
8446 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8447 LIBS
="$ALSA_LIBS $LIBS"
8448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450 #include <asoundlib.h>
8454 snd_lib_error_set_handler (0);
8459 if ac_fn_c_try_compile
"$LINENO"; then :
8460 emacs_alsa_normal
=yes
8462 emacs_alsa_normal
=no
8464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8465 if test "$emacs_alsa_normal" != yes; then
8466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 #include <alsa/asoundlib.h>
8472 snd_lib_error_set_handler (0);
8477 if ac_fn_c_try_compile
"$LINENO"; then :
8478 emacs_alsa_subdir
=yes
8480 emacs_alsa_subdir
=no
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8483 if test "$emacs_alsa_subdir" != yes; then
8484 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8486 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8489 CFLAGS
="$SAVE_CFLAGS"
8491 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8492 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8494 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8498 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8500 gnu-linux|freebsd|netbsd
)
8502 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8514 for ac_header
in $ac_header_list
8516 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8519 eval as_val
=\$
$as_ac_Header
8520 if test "x$as_val" = x
""yes; then :
8521 cat >>confdefs.h
<<_ACEOF
8522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8564 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 #include <sys/personality.h>
8571 personality (PER_LINUX32)
8576 if ac_fn_c_try_compile
"$LINENO"; then :
8577 emacs_cv_personality_linux32
=yes
8579 emacs_cv_personality_linux32
=no
8581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8583 $as_echo "$emacs_cv_personality_linux32" >&6; }
8585 if test $emacs_cv_personality_linux32 = yes; then
8587 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8591 for ac_header
in term.h
8593 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8594 if test "x$ac_cv_header_term_h" = x
""yes; then :
8595 cat >>confdefs.h
<<_ACEOF
8596 #define HAVE_TERM_H 1
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8604 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8605 if test "${ac_cv_header_time+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <sys/types.h>
8611 #include <sys/time.h>
8617 if ((struct tm *) 0)
8623 if ac_fn_c_try_compile
"$LINENO"; then :
8624 ac_cv_header_time
=yes
8626 ac_cv_header_time
=no
8628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8631 $as_echo "$ac_cv_header_time" >&6; }
8632 if test $ac_cv_header_time = yes; then
8634 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8638 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8639 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8645 cat >>confdefs.h
<<_ACEOF
8646 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8649 if test $ac_cv_have_decl_sys_siglist != yes; then
8650 # For Tru64, at least:
8651 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8652 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8658 cat >>confdefs.h
<<_ACEOF
8659 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8662 if test $ac_cv_have_decl___sys_siglist = yes; then
8664 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8669 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8670 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8675 #include <sys/types.h>
8676 #include <sys/wait.h>
8678 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8681 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8689 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8694 if ac_fn_c_try_compile
"$LINENO"; then :
8695 ac_cv_header_sys_wait_h
=yes
8697 ac_cv_header_sys_wait_h
=no
8699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8702 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8703 if test $ac_cv_header_sys_wait_h = yes; then
8705 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8711 $as_echo_n "checking for struct utimbuf... " >&6; }
8712 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717 #ifdef TIME_WITH_SYS_TIME
8718 #include <sys/time.h>
8721 #ifdef HAVE_SYS_TIME_H
8722 #include <sys/time.h>
8733 static struct utimbuf x; x.actime = x.modtime;
8738 if ac_fn_c_try_compile
"$LINENO"; then :
8739 emacs_cv_struct_utimbuf
=yes
8741 emacs_cv_struct_utimbuf
=no
8743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8746 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8747 if test $emacs_cv_struct_utimbuf = yes; then
8749 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8754 $as_echo_n "checking for speed_t... " >&6; }
8755 if test "${emacs_cv_speed_t+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <termios.h>
8769 if ac_fn_c_try_compile
"$LINENO"; then :
8770 emacs_cv_speed_t
=yes
8774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8777 $as_echo "$emacs_cv_speed_t" >&6; }
8778 if test $emacs_cv_speed_t = yes; then
8780 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8785 $as_echo_n "checking for struct timeval... " >&6; }
8786 if test "${emacs_cv_struct_timeval+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #ifdef TIME_WITH_SYS_TIME
8792 #include <sys/time.h>
8795 #ifdef HAVE_SYS_TIME_H
8796 #include <sys/time.h>
8804 static struct timeval x; x.tv_sec = x.tv_usec;
8809 if ac_fn_c_try_compile
"$LINENO"; then :
8810 emacs_cv_struct_timeval
=yes
8812 emacs_cv_struct_timeval
=no
8814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8817 $as_echo "$emacs_cv_struct_timeval" >&6; }
8818 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
8819 if test $emacs_cv_struct_timeval = yes; then
8821 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8826 $as_echo_n "checking for struct exception... " >&6; }
8827 if test "${emacs_cv_struct_exception+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8836 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8841 if ac_fn_c_try_compile
"$LINENO"; then :
8842 emacs_cv_struct_exception
=yes
8844 emacs_cv_struct_exception
=no
8846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8849 $as_echo "$emacs_cv_struct_exception" >&6; }
8850 HAVE_EXCEPTION
=$emacs_cv_struct_exception
8851 if test $emacs_cv_struct_exception != yes; then
8853 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8860 for ac_header
in net
/if.h
8862 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8863 #if HAVE_SYS_SOCKET_H
8864 #include <sys/socket.h>
8867 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8868 cat >>confdefs.h
<<_ACEOF
8869 #define HAVE_NET_IF_H 1
8876 for ac_header
in ifaddrs.h
8878 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8879 #if HAVE_SYS_SOCKET_H
8880 #include <sys/socket.h>
8883 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8884 cat >>confdefs.h
<<_ACEOF
8885 #define HAVE_IFADDRS_H 1
8892 for ac_header
in net
/if_dl.h
8894 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8895 #if HAVE_SYS_SOCKET_H
8896 #include <sys/socket.h>
8899 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8900 cat >>confdefs.h
<<_ACEOF
8901 #define HAVE_NET_IF_DL_H 1
8909 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8910 #if HAVE_SYS_SOCKET_H
8911 #include <sys/socket.h>
8917 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8919 cat >>confdefs.h
<<_ACEOF
8920 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8925 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8926 #if HAVE_SYS_SOCKET_H
8927 #include <sys/socket.h>
8933 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8935 cat >>confdefs.h
<<_ACEOF
8936 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8941 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8942 #if HAVE_SYS_SOCKET_H
8943 #include <sys/socket.h>
8949 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8951 cat >>confdefs.h
<<_ACEOF
8952 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8957 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8958 #if HAVE_SYS_SOCKET_H
8959 #include <sys/socket.h>
8965 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8967 cat >>confdefs.h
<<_ACEOF
8968 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8973 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8974 #if HAVE_SYS_SOCKET_H
8975 #include <sys/socket.h>
8981 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
8983 cat >>confdefs.h
<<_ACEOF
8984 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8989 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8990 #if HAVE_SYS_SOCKET_H
8991 #include <sys/socket.h>
8997 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
8999 cat >>confdefs.h
<<_ACEOF
9000 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9009 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9010 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 char __attribute__ ((__aligned__ (1 << 3))) c;
9024 if ac_fn_c_try_compile
"$LINENO"; then :
9025 emacs_cv_attribute_aligned
=yes
9027 emacs_cv_attribute_aligned
=no
9029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9032 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9033 if test $emacs_cv_attribute_aligned = yes; then
9035 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9043 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9045 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9047 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9048 if test "x$testval" != x
; then
9051 ac_enable_autodepend
=no
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9054 $as_echo "$HAVE_GNU_MAKE" >&6; }
9055 if test $HAVE_GNU_MAKE = yes; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9057 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9058 SAVE_CFLAGS
="$CFLAGS"
9059 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9071 if ac_fn_c_try_compile
"$LINENO"; then :
9074 ac_enable_autodepend
=no
9076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9077 CFLAGS
="$SAVE_CFLAGS"
9078 test -f deps.d || ac_enable_autodepend
=no
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9081 $as_echo "$ac_enable_autodepend" >&6; }
9083 if test $ac_enable_autodepend = yes; then
9084 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9085 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9086 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9087 deps_frag
=autodeps.mk
9090 deps_frag
=$srcdir/src
/$deps_frag
9096 lisp_frag
=$srcdir/src
/lisp.mk
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9101 $as_echo_n "checking for long file names... " >&6; }
9102 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9105 ac_cv_sys_long_file_names
=yes
9106 # Test for long file names in all the places we know might matter:
9107 # . the current directory, where building will happen
9108 # $prefix/lib where we will be installing things
9109 # $exec_prefix/lib likewise
9110 # $TMPDIR if set, where it might want to write temporary files
9111 # /tmp where it might want to write temporary files
9114 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9115 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9116 # in the usual case where exec_prefix is '${prefix}'.
9118 . |
/* | ?
:[\\/]*) ;; #(
9121 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9122 ac_xdir
=$ac_dir/cf$$
9123 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9124 ac_tf1
=$ac_xdir/conftest9012345
9125 ac_tf2
=$ac_xdir/conftest9012346
9126 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9127 ac_cv_sys_long_file_names
=no
9128 rm -f -r "$ac_xdir" 2>/dev
/null
9129 test $ac_cv_sys_long_file_names = no
&& break
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9133 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9134 if test $ac_cv_sys_long_file_names = yes; then
9136 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9141 #### Choose a window system.
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9144 $as_echo_n "checking for X... " >&6; }
9147 # Check whether --with-x was given.
9148 if test "${with_x+set}" = set; then :
9152 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9153 if test "x$with_x" = xno
; then
9154 # The user explicitly disabled X.
9157 case $x_includes,$x_libraries in #(
9158 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9159 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9162 # One or both of the vars are not set, and there is no cached value.
9163 ac_x_includes
=no ac_x_libraries
=no
9164 rm -f -r conftest.dir
9165 if mkdir conftest.dir
; then
9167 cat >Imakefile
<<'_ACEOF'
9169 @echo incroot='${INCROOT}'
9171 @echo usrlibdir='${USRLIBDIR}'
9173 @echo libdir='${LIBDIR}'
9175 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9176 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9177 for ac_var
in incroot usrlibdir libdir
; do
9178 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9180 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9181 for ac_extension
in a so sl dylib la dll
; do
9182 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9183 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9184 ac_im_usrlibdir
=$ac_im_libdir; break
9187 # Screen out bogus values from the imake configuration. They are
9188 # bogus both because they are the default anyway, and because
9189 # using them would break gcc on systems where it needs fixed includes.
9190 case $ac_im_incroot in
9191 /usr
/include
) ac_x_includes
= ;;
9192 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9194 case $ac_im_usrlibdir in
9195 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9196 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9200 rm -f -r conftest.dir
9203 # Standard set of common directories for X headers.
9204 # Check X11 before X11Rn because it is often a symlink to the current release.
9218 /usr/local/X11/include
9219 /usr/local/X11R7/include
9220 /usr/local/X11R6/include
9221 /usr/local/X11R5/include
9222 /usr/local/X11R4/include
9224 /usr/local/include/X11
9225 /usr/local/include/X11R7
9226 /usr/local/include/X11R6
9227 /usr/local/include/X11R5
9228 /usr/local/include/X11R4
9232 /usr/XFree86/include/X11
9236 /usr/unsupported/include
9238 /usr/local/x11r5/include
9239 /usr/lpp/Xamples/include
9241 /usr/openwin/include
9242 /usr/openwin/share/include'
9244 if test "$ac_x_includes" = no
; then
9245 # Guess where to find include files, by looking for Xlib.h.
9246 # First, try using that file with no special directory specified.
9247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <X11/Xlib.h>
9251 if ac_fn_c_try_cpp
"$LINENO"; then :
9252 # We can compile using X headers with no special include directory.
9255 for ac_dir
in $ac_x_header_dirs; do
9256 if test -r "$ac_dir/X11/Xlib.h"; then
9257 ac_x_includes
=$ac_dir
9262 rm -f conftest.err conftest.
$ac_ext
9263 fi # $ac_x_includes = no
9265 if test "$ac_x_libraries" = no
; then
9266 # Check for the libraries.
9267 # See if we find them without any special options.
9268 # Don't add to $LIBS permanently.
9271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <X11/Xlib.h>
9282 if ac_fn_c_try_link
"$LINENO"; then :
9284 # We can link X programs with no special library path.
9288 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9290 # Don't even attempt the hair of trying to link an X program!
9291 for ac_extension
in a so sl dylib la dll
; do
9292 if test -r "$ac_dir/libX11.$ac_extension"; then
9293 ac_x_libraries
=$ac_dir
9299 rm -f core conftest.err conftest.
$ac_objext \
9300 conftest
$ac_exeext conftest.
$ac_ext
9301 fi # $ac_x_libraries = no
9303 case $ac_x_includes,$ac_x_libraries in #(
9305 # Didn't find X, or a directory has "'" in its name.
9306 ac_cv_have_x
="have_x=no";; #(
9308 # Record where we found X for the cache.
9309 ac_cv_have_x
="have_x=yes\
9310 ac_x_includes='$ac_x_includes'\
9311 ac_x_libraries='$ac_x_libraries'"
9317 eval "$ac_cv_have_x"
9320 if test "$have_x" != yes; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9322 $as_echo "$have_x" >&6; }
9325 # If each of the values was on the command line, it overrides each guess.
9326 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9327 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9328 # Update the cache value to reflect the command line values.
9329 ac_cv_have_x
="have_x=yes\
9330 ac_x_includes='$x_includes'\
9331 ac_x_libraries='$x_libraries'"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9333 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9336 if test "$no_x" = yes; then
9342 LD_SWITCH_X_SITE_RPATH
=
9343 if test "${x_libraries}" != NONE
; then
9344 if test -n "${x_libraries}"; then
9345 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9346 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9348 x_default_search_path
=""
9349 x_search_path
=${x_libraries}
9350 if test -z "${x_search_path}"; then
9351 x_search_path
=/usr
/lib
9353 for x_library
in `echo ${x_search_path}: | \
9354 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9356 ${x_library}/X11/%L/%T/%N%C%S:\
9357 ${x_library}/X11/%l/%T/%N%C%S:\
9358 ${x_library}/X11/%T/%N%C%S:\
9359 ${x_library}/X11/%L/%T/%N%S:\
9360 ${x_library}/X11/%l/%T/%N%S:\
9361 ${x_library}/X11/%T/%N%S"
9362 if test x
"${x_default_search_path}" = x
; then
9363 x_default_search_path
=${x_search_path}
9365 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9371 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9372 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9375 if test x
"${x_includes}" = x
; then
9376 bitmapdir
=/usr
/include
/X11
/bitmaps
9378 # accumulate include directories that have X11 bitmap subdirectories
9380 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9381 if test -d "${bmd}/X11/bitmaps"; then
9382 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9384 if test -d "${bmd}/bitmaps"; then
9385 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9388 if test ${bmd_acc} != "dummyval"; then
9389 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9396 tmp_CPPFLAGS
="$CPPFLAGS"
9397 tmp_CFLAGS
="$CFLAGS"
9398 CPPFLAGS
="$CPPFLAGS -x objective-c"
9399 CFLAGS
="$CFLAGS -x objective-c"
9400 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9402 if test "${with_ns}" != no
; then
9403 if test "${opsys}" = darwin
; then
9405 ns_appdir
=`pwd`/nextstep
/Emacs.app
9406 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9407 ns_appresdir
=${ns_appdir}/Contents
/Resources
9408 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9409 elif test -f $GNUSTEP_CONFIG_FILE; then
9411 ns_appdir
=`pwd`/nextstep
/Emacs.app
9412 ns_appbindir
=${ns_appdir}
9413 ns_appresdir
=${ns_appdir}/Resources
9414 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9415 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9416 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9417 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9418 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9419 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9420 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9421 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9422 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9423 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9424 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9425 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9430 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9431 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
9434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 #include <GNUstepBase/GSConfig.h>
9440 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9449 if ac_fn_c_try_compile
"$LINENO"; then :
9450 emacs_cv_objc_exceptions
=yes
9452 emacs_cv_objc_exceptions
=no
9454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9457 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9458 if test $emacs_cv_objc_exceptions = yes; then
9460 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9462 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9466 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9468 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9469 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9472 as_fn_error
"\`--with-ns' was specified, but the include
9473 files are missing or cannot be compiled." "$LINENO" 5
9477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <Foundation/NSObjCRuntime.h>
9488 if ac_fn_c_try_compile
"$LINENO"; then :
9489 ns_have_nsinteger
=yes
9491 ns_have_nsinteger
=no
9493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9494 if test $ns_have_nsinteger = yes; then
9496 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9502 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9503 ns_self_contained
=no
9507 if test "${HAVE_NS}" = yes; then
9508 if test "$with_toolkit_scroll_bars" = "no"; then
9509 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9512 window_system
=nextstep
9514 # set up packaging dirs
9515 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9516 ns_self_contained
=yes
9517 prefix
=${ns_appresdir}
9518 exec_prefix
=${ns_appbindir}
9519 libexecdir
="\${ns_appbindir}/libexec"
9520 archlibdir
="\${ns_appbindir}/libexec"
9521 docdir
="\${ns_appresdir}/etc"
9522 etcdir
="\${ns_appresdir}/etc"
9523 infodir
="\${ns_appresdir}/info"
9524 mandir
="\${ns_appresdir}/man"
9525 lispdir
="\${ns_appresdir}/lisp"
9526 leimdir
="\${ns_appresdir}/leim"
9527 INSTALL_ARCH_INDEP_EXTRA
=
9529 ns_frag
=$srcdir/src
/ns.mk
9530 NS_OBJ
="fontset.o fringe.o image.o"
9531 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9533 CFLAGS
="$tmp_CFLAGS"
9534 CPPFLAGS
="$tmp_CPPFLAGS"
9542 case "${window_system}" in
9546 case "${with_x_toolkit}" in
9547 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9548 motif
) USE_X_TOOLKIT
=MOTIF
;;
9550 USE_X_TOOLKIT
=none
;;
9551 gtk3
) with_gtk3
=yes
9552 USE_X_TOOLKIT
=none
;;
9553 no
) USE_X_TOOLKIT
=none
;;
9554 * ) USE_X_TOOLKIT
=maybe
;;
9564 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9565 # Extract the first word of "X", so it can be a program name with args.
9566 set dummy X
; ac_word
=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9572 if test -n "$HAVE_XSERVER"; then
9573 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9579 test -z "$as_dir" && as_dir
=.
9580 for ac_exec_ext
in '' $ac_executable_extensions; do
9581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9582 ac_cv_prog_HAVE_XSERVER
="true"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9593 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9594 if test -n "$HAVE_XSERVER"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9596 $as_echo "$HAVE_XSERVER" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9603 if test "$HAVE_XSERVER" = true ||
9604 test -n "$DISPLAY" ||
9605 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9606 as_fn_error
"You seem to be running X, but no X development libraries
9607 were found. You should install the relevant development files for X
9608 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9609 sure you have development files for image handling, i.e.
9610 tiff, gif, jpeg, png and xpm.
9611 If you are sure you want Emacs compiled without X window support, pass
9613 to configure." "$LINENO" 5
9617 ### If we're using X11, we should use the X menu package.
9620 yes ) HAVE_MENUS
=yes ;;
9623 # Does the opsystem file prohibit the use of the GNU malloc?
9624 # Assume not, until told otherwise.
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9628 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9629 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
9632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9635 static void hook (void) {}
9639 malloc_set_state (malloc_get_state ());
9640 __after_morecore_hook = hook;
9641 __malloc_initialize_hook = hook;
9646 if ac_fn_c_try_link
"$LINENO"; then :
9647 emacs_cv_var_doug_lea_malloc
=yes
9649 emacs_cv_var_doug_lea_malloc
=no
9651 rm -f core conftest.err conftest.
$ac_objext \
9652 conftest
$ac_exeext conftest.
$ac_ext
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9655 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9656 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9661 ## darwin ld insists on the use of malloc routines in the System framework.
9662 darwin|sol2-10
) system_malloc
=yes ;;
9665 if test "${system_malloc}" = "yes"; then
9667 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9671 (The GNU allocators don't work with this system configuration.)"
9675 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9676 VMLIMIT_OBJ
=vm-limit.o
9681 if test "$doug_lea_malloc" = "yes" ; then
9682 if test "$GNU_MALLOC" = yes ; then
9684 (Using Doug Lea's new malloc from the GNU C Library.)"
9687 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9690 ## Use mmap directly for allocating larger buffers.
9691 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9692 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9693 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9695 gnu
*) REL_ALLOC
=no
;;
9699 if test x
"${REL_ALLOC}" = x
; then
9700 REL_ALLOC
=${GNU_MALLOC}
9703 use_mmap_for_buffers
=no
9705 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9715 for ac_func
in getpagesize
9717 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9718 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9719 cat >>confdefs.h
<<_ACEOF
9720 #define HAVE_GETPAGESIZE 1
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9727 $as_echo_n "checking for working mmap... " >&6; }
9728 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9729 $as_echo_n "(cached) " >&6
9731 if test "$cross_compiling" = yes; then :
9732 ac_cv_func_mmap_fixed_mapped
=no
9734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9736 $ac_includes_default
9737 /* malloc might have been renamed as rpl_malloc. */
9740 /* Thanks to Mike Haertel and Jim Avera for this test.
9741 Here is a matrix of mmap possibilities:
9742 mmap private not fixed
9743 mmap private fixed at somewhere currently unmapped
9744 mmap private fixed at somewhere already mapped
9745 mmap shared not fixed
9746 mmap shared fixed at somewhere currently unmapped
9747 mmap shared fixed at somewhere already mapped
9748 For private mappings, we should verify that changes cannot be read()
9749 back from the file, nor mmap's back from the file at a different
9750 address. (There have been systems where private was not correctly
9751 implemented like the infamous i386 svr4.0, and systems where the
9752 VM page cache was not coherent with the file system buffer cache
9753 like early versions of FreeBSD and possibly contemporary NetBSD.)
9754 For shared mappings, we should conversely verify that changes get
9755 propagated back to all the places they're supposed to be.
9757 Grep wants private fixed already mapped.
9758 The main things grep needs to know about mmap are:
9759 * does it exist and is it safe to write into the mmap'd area
9760 * how to use it (BSD variants) */
9763 #include <sys/mman.h>
9765 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9769 /* This mess was copied from the GNU getpagesize.h. */
9770 #ifndef HAVE_GETPAGESIZE
9771 # ifdef _SC_PAGESIZE
9772 # define getpagesize() sysconf(_SC_PAGESIZE)
9773 # else /* no _SC_PAGESIZE */
9774 # ifdef HAVE_SYS_PARAM_H
9775 # include <sys/param.h>
9776 # ifdef EXEC_PAGESIZE
9777 # define getpagesize() EXEC_PAGESIZE
9778 # else /* no EXEC_PAGESIZE */
9780 # define getpagesize() NBPG * CLSIZE
9783 # endif /* no CLSIZE */
9784 # else /* no NBPG */
9786 # define getpagesize() NBPC
9787 # else /* no NBPC */
9789 # define getpagesize() PAGESIZE
9790 # endif /* PAGESIZE */
9791 # endif /* no NBPC */
9792 # endif /* no NBPG */
9793 # endif /* no EXEC_PAGESIZE */
9794 # else /* no HAVE_SYS_PARAM_H */
9795 # define getpagesize() 8192 /* punt totally */
9796 # endif /* no HAVE_SYS_PARAM_H */
9797 # endif /* no _SC_PAGESIZE */
9799 #endif /* no HAVE_GETPAGESIZE */
9804 char *data, *data2, *data3;
9809 pagesize = getpagesize ();
9811 /* First, make a file with some known garbage in it. */
9812 data = (char *) malloc (pagesize);
9815 for (i = 0; i < pagesize; ++i)
9816 *(data + i) = rand ();
9818 fd = creat ("conftest.mmap", 0600);
9821 if (write (fd, data, pagesize) != pagesize)
9825 /* Next, check that the tail of a page is zero-filled. File must have
9826 non-zero length, otherwise we risk SIGBUS for entire page. */
9827 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9831 if (write (fd2, cdata2, 1) != 1)
9833 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9834 if (data2 == MAP_FAILED)
9836 for (i = 0; i < pagesize; ++i)
9840 if (munmap (data2, pagesize))
9843 /* Next, try to mmap the file at a fixed address which already has
9844 something else allocated at it. If we can, also make sure that
9845 we see the same garbage. */
9846 fd = open ("conftest.mmap", O_RDWR);
9849 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9850 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9852 for (i = 0; i < pagesize; ++i)
9853 if (*(data + i) != *(data2 + i))
9856 /* Finally, make sure that changes to the mapped area do not
9857 percolate back to the file as seen by read(). (This is a bug on
9858 some variants of i386 svr4.0.) */
9859 for (i = 0; i < pagesize; ++i)
9860 *(data2 + i) = *(data2 + i) + 1;
9861 data3 = (char *) malloc (pagesize);
9864 if (read (fd, data3, pagesize) != pagesize)
9866 for (i = 0; i < pagesize; ++i)
9867 if (*(data + i) != *(data3 + i))
9873 if ac_fn_c_try_run
"$LINENO"; then :
9874 ac_cv_func_mmap_fixed_mapped
=yes
9876 ac_cv_func_mmap_fixed_mapped
=no
9878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9879 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9884 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9885 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9887 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9890 rm -f conftest.mmap conftest.txt
9892 if test $use_mmap_for_buffers = yes; then
9894 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9899 LIBS
="$LIBS_SYSTEM $LIBS"
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9902 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9903 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9906 ac_check_lib_save_LIBS
=$LIBS
9908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9911 /* Override any GCC internal prototype to avoid an error.
9912 Use char because int might match the return type of a GCC
9913 builtin and then its argument prototype would still apply. */
9921 return dnet_ntoa ();
9926 if ac_fn_c_try_link
"$LINENO"; then :
9927 ac_cv_lib_dnet_dnet_ntoa
=yes
9929 ac_cv_lib_dnet_dnet_ntoa
=no
9931 rm -f core conftest.err conftest.
$ac_objext \
9932 conftest
$ac_exeext conftest.
$ac_ext
9933 LIBS
=$ac_check_lib_save_LIBS
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9936 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9937 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9938 cat >>confdefs.h
<<_ACEOF
9939 #define HAVE_LIBDNET 1
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9948 $as_echo_n "checking for main in -lXbsd... " >&6; }
9949 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9952 ac_check_lib_save_LIBS
=$LIBS
9954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9966 if ac_fn_c_try_link
"$LINENO"; then :
9967 ac_cv_lib_Xbsd_main
=yes
9969 ac_cv_lib_Xbsd_main
=no
9971 rm -f core conftest.err conftest.
$ac_objext \
9972 conftest
$ac_exeext conftest.
$ac_ext
9973 LIBS
=$ac_check_lib_save_LIBS
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9976 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9977 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9978 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9986 if test "$ac_cv_header_pthread_h"; then
9987 if test "$GMALLOC_OBJ" = gmalloc.o
; then
9988 emacs_pthread_function
=pthread_atfork
9990 emacs_pthread_function
=pthread_self
9992 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
9994 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
9995 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9996 $as_echo_n "(cached) " >&6
9998 ac_check_lib_save_LIBS
=$LIBS
9999 LIBS
="-lpthread $LIBS"
10000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10009 char $emacs_pthread_function ();
10013 return $emacs_pthread_function ();
10018 if ac_fn_c_try_link
"$LINENO"; then :
10019 eval "$as_ac_Lib=yes"
10021 eval "$as_ac_Lib=no"
10023 rm -f core conftest.err conftest.
$ac_objext \
10024 conftest
$ac_exeext conftest.
$ac_ext
10025 LIBS
=$ac_check_lib_save_LIBS
10027 eval ac_res
=\$
$as_ac_Lib
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10029 $as_echo "$ac_res" >&6; }
10030 eval as_val
=\$
$as_ac_Lib
10031 if test "x$as_val" = x
""yes; then :
10036 if test "$HAVE_PTHREAD" = yes; then
10037 case "${canonical}" in
10039 *) LIB_PTHREAD
="-lpthread"
10040 LIBS
="$LIB_PTHREAD $LIBS" ;;
10043 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10049 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10050 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10051 $as_echo_n "(cached) " >&6
10053 ac_check_lib_save_LIBS
=$LIBS
10054 LIBS
="-lpthreads $LIBS"
10055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10056 /* end confdefs.h. */
10058 /* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
10068 return cma_open ();
10073 if ac_fn_c_try_link
"$LINENO"; then :
10074 ac_cv_lib_pthreads_cma_open
=yes
10076 ac_cv_lib_pthreads_cma_open
=no
10078 rm -f core conftest.err conftest.
$ac_objext \
10079 conftest
$ac_exeext conftest.
$ac_ext
10080 LIBS
=$ac_check_lib_save_LIBS
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10083 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10084 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10085 cat >>confdefs.h
<<_ACEOF
10086 #define HAVE_LIBPTHREADS 1
10089 LIBS
="-lpthreads $LIBS"
10094 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10095 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10096 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10097 ## added to LIBS in configure would never contain the pthreads part,
10098 ## but the value used in Makefiles might. FIXME?
10100 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10101 ## be harmless on older versions of X where it happens to exist.
10102 test "$opsys" = "aix4-2" && \
10103 test $ac_cv_lib_pthreads_cma_open = yes && \
10104 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10110 $as_echo_n "checking for -bbigtoc option... " >&6; }
10111 if test "${gdb_cv_bigtoc+set}" = set; then :
10112 $as_echo_n "(cached) " >&6
10116 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10117 *) gdb_cv_bigtoc
=-bbigtoc ;;
10120 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10132 if ac_fn_c_try_link
"$LINENO"; then :
10137 rm -f core conftest.err conftest.
$ac_objext \
10138 conftest
$ac_exeext conftest.
$ac_ext
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10142 $as_echo "$gdb_cv_bigtoc" >&6; }
10146 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10147 # used for the tests that follow. We set them back to REAL_CFLAGS and
10148 # REAL_CPPFLAGS later on.
10150 REAL_CFLAGS
="$CFLAGS"
10151 REAL_CPPFLAGS
="$CPPFLAGS"
10153 if test "${HAVE_X11}" = "yes"; then
10154 DEFS
="$C_SWITCH_X_SITE $DEFS"
10155 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10157 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10158 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10160 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10161 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10162 # but it's more convenient here to set LD_RUN_PATH since this
10163 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10164 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10165 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10169 if test "${opsys}" = "gnu-linux"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10171 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10178 XOpenDisplay ("foo");
10183 if ac_fn_c_try_link
"$LINENO"; then :
10184 xgnu_linux_first_failure
=no
10186 xgnu_linux_first_failure
=yes
10188 rm -f core conftest.err conftest.
$ac_objext \
10189 conftest
$ac_exeext conftest.
$ac_ext
10190 if test "${xgnu_linux_first_failure}" = "yes"; then
10191 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10192 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10193 OLD_CPPFLAGS
="$CPPFLAGS"
10195 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10196 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10197 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10198 LIBS
="$LIBS -b i486-linuxaout"
10199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10205 XOpenDisplay ("foo");
10210 if ac_fn_c_try_link
"$LINENO"; then :
10211 xgnu_linux_second_failure
=no
10213 xgnu_linux_second_failure
=yes
10215 rm -f core conftest.err conftest.
$ac_objext \
10216 conftest
$ac_exeext conftest.
$ac_ext
10217 if test "${xgnu_linux_second_failure}" = "yes"; then
10218 # If we get the same failure with -b, there is no use adding -b.
10219 # So take it out. This plays safe.
10220 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10221 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10222 CPPFLAGS
="$OLD_CPPFLAGS"
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10228 $as_echo "yes" >&6; }
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10236 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10237 # header files included from there.
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10239 $as_echo_n "checking for Xkb... " >&6; }
10240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 #include <X11/Xlib.h>
10243 #include <X11/XKBlib.h>
10247 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10252 if ac_fn_c_try_link
"$LINENO"; then :
10257 rm -f core conftest.err conftest.
$ac_objext \
10258 conftest
$ac_exeext conftest.
$ac_ext
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10260 $as_echo "$emacs_xkb" >&6; }
10261 if test $emacs_xkb = yes; then
10263 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10267 for ac_func
in XrmSetDatabase XScreenResourceString \
10268 XScreenNumberOfScreen
10270 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10271 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10272 eval as_val
=\$
$as_ac_var
10273 if test "x$as_val" = x
""yes; then :
10274 cat >>confdefs.h
<<_ACEOF
10275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10283 if test "${window_system}" = "x11"; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10285 $as_echo_n "checking X11 version 6... " >&6; }
10286 if test "${emacs_cv_x11_version_6+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291 #include <X11/Xlib.h>
10295 #if XlibSpecificationRelease < 6
10303 if ac_fn_c_try_link
"$LINENO"; then :
10304 emacs_cv_x11_version_6
=yes
10306 emacs_cv_x11_version_6
=no
10308 rm -f core conftest.err conftest.
$ac_objext \
10309 conftest
$ac_exeext conftest.
$ac_ext
10312 if test $emacs_cv_x11_version_6 = yes; then
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10314 $as_echo "6 or newer" >&6; }
10316 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10319 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10321 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10326 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10332 $as_echo "before 6" >&6; }
10337 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10339 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10340 if test "${with_rsvg}" != "no"; then
10341 RSVG_REQUIRED
=2.11.0
10342 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10347 if test "$PKG_CONFIG" = "no" ; then
10350 PKG_CONFIG_MIN_VERSION
=0.9.0
10351 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10353 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10355 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10356 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10357 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10364 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10365 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10367 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10374 ## If we have a custom action on failure, don't print errors, but
10375 ## do set a variable so people can do so.
10376 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10383 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10384 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10388 if test $succeeded = yes; then
10397 if test $HAVE_RSVG = yes; then
10399 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10401 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10402 LIBS
="$RSVG_LIBS $LIBS"
10407 HAVE_IMAGEMAGICK
=no
10408 if test "${HAVE_X11}" = "yes"; then
10409 if test "${with_imagemagick}" != "no"; then
10410 ## 6.2.8 is the earliest version known to work, but earlier versions
10411 ## might work - let us know if you find one.
10412 ## 6.0.7 does not work. See bug#7955.
10413 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10417 if test "$PKG_CONFIG" = "no" ; then
10420 PKG_CONFIG_MIN_VERSION
=0.9.0
10421 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10423 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10425 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10426 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10427 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10434 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10435 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10437 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10442 IMAGEMAGICK_CFLAGS
=""
10443 IMAGEMAGICK_LIBS
=""
10444 ## If we have a custom action on failure, don't print errors, but
10445 ## do set a variable so people can do so.
10446 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10453 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10454 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10458 if test $succeeded = yes; then
10459 HAVE_IMAGEMAGICK
=yes
10467 if test $HAVE_IMAGEMAGICK = yes; then
10469 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10471 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10472 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10473 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10475 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10476 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10477 eval as_val
=\$
$as_ac_var
10478 if test "x$as_val" = x
""yes; then :
10479 cat >>confdefs.h
<<_ACEOF
10480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10493 if test "${with_gtk3}" = "yes"; then
10496 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10501 if test "$PKG_CONFIG" = "no" ; then
10504 PKG_CONFIG_MIN_VERSION
=0.9.0
10505 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10507 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10509 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10510 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10511 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10518 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10519 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10521 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10528 ## If we have a custom action on failure, don't print errors, but
10529 ## do set a variable so people can do so.
10530 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10537 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10538 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10542 if test $succeeded = yes; then
10548 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10549 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10552 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10554 GTK_OBJ
=emacsgtkfixed.o
10557 if test "$pkg_check_gtk" != "yes"; then
10559 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10562 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10567 if test "$PKG_CONFIG" = "no" ; then
10570 PKG_CONFIG_MIN_VERSION
=0.9.0
10571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10573 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10575 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10576 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10577 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10584 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10585 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10587 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 $as_echo "no" >&6; }
10594 ## If we have a custom action on failure, don't print errors, but
10595 ## do set a variable so people can do so.
10596 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10603 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10604 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10608 if test $succeeded = yes; then
10614 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10615 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10620 if test x
"$pkg_check_gtk" = xyes
; then
10624 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10625 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10626 LIBS
="$GTK_LIBS $LIBS"
10628 for ac_func
in gtk_main
10630 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10631 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10632 cat >>confdefs.h
<<_ACEOF
10633 #define HAVE_GTK_MAIN 1
10639 if test "${GTK_COMPILES}" != "yes"; then
10640 if test "$USE_X_TOOLKIT" != "maybe"; then
10641 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10646 $as_echo "#define USE_GTK 1" >>confdefs.h
10648 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10650 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10654 closing open displays. This is no problem if you just use
10655 one display, but if you use more than one and close one of them
10656 Emacs may crash." >&5
10657 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10658 closing open displays. This is no problem if you just use
10659 one display, but if you use more than one and close one of them
10660 Emacs may crash." >&2;}
10669 if test "${HAVE_GTK}" = "yes"; then
10671 if test "$with_toolkit_scroll_bars" != no
; then
10672 with_toolkit_scroll_bars
=yes
10675 HAVE_GTK_FILE_SELECTION
=no
10676 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10677 #include <gtk/gtk.h>
10679 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10680 HAVE_GTK_FILE_SELECTION
=yes
10682 HAVE_GTK_FILE_SELECTION
=no
10685 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10686 for ac_func
in gtk_file_selection_new
10688 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10689 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10690 cat >>confdefs.h
<<_ACEOF
10691 #define HAVE_GTK_FILE_SELECTION_NEW 1
10700 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10701 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10702 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10703 gtk_orientable_set_orientation \
10704 gtk_window_set_has_resize_grip
10706 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10707 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10708 eval as_val
=\$
$as_ac_var
10709 if test "x$as_val" = x
""yes; then :
10710 cat >>confdefs.h
<<_ACEOF
10711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10721 if test "${with_dbus}" = "yes"; then
10725 if test "$PKG_CONFIG" = "no" ; then
10728 PKG_CONFIG_MIN_VERSION
=0.9.0
10729 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10731 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10733 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10734 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10735 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10742 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10743 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10745 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10752 ## If we have a custom action on failure, don't print errors, but
10753 ## do set a variable so people can do so.
10754 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10761 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10762 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10766 if test $succeeded = yes; then
10772 if test "$HAVE_DBUS" = yes; then
10773 LIBS
="$LIBS $DBUS_LIBS"
10775 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10777 for ac_func
in dbus_watch_get_unix_fd \
10778 dbus_type_is_valid \
10779 dbus_validate_bus_name \
10780 dbus_validate_path \
10781 dbus_validate_interface \
10782 dbus_validate_member
10784 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10785 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10786 eval as_val
=\$
$as_ac_var
10787 if test "x$as_val" = x
""yes; then :
10788 cat >>confdefs.h
<<_ACEOF
10789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10795 DBUS_OBJ
=dbusbind.o
10801 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10805 if test "$PKG_CONFIG" = "no" ; then
10808 PKG_CONFIG_MIN_VERSION
=0.9.0
10809 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10811 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10813 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10814 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10815 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10822 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10823 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10825 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830 GSETTINGS_CFLAGS
=""
10832 ## If we have a custom action on failure, don't print errors, but
10833 ## do set a variable so people can do so.
10834 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
10841 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10842 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10846 if test $succeeded = yes; then
10852 if test "$HAVE_GSETTINGS" = "yes"; then
10854 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10856 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10857 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10862 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10866 if test "$PKG_CONFIG" = "no" ; then
10869 PKG_CONFIG_MIN_VERSION
=0.9.0
10870 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10872 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10874 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10875 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10876 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10883 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10884 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10886 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10893 ## If we have a custom action on failure, don't print errors, but
10894 ## do set a variable so people can do so.
10895 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10902 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10903 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10907 if test $succeeded = yes; then
10913 if test "$HAVE_GCONF" = yes; then
10915 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10917 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10918 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10922 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10923 SAVE_CFLAGS
="$CFLAGS"
10925 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
10926 LIBS
="$SETTINGS_LIBS $LIBS"
10927 for ac_func
in g_type_init
10929 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10930 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
10931 cat >>confdefs.h
<<_ACEOF
10932 #define HAVE_G_TYPE_INIT 1
10938 CFLAGS
="$SAVE_CFLAGS"
10947 if test "${with_selinux}" = "yes"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10949 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10950 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10951 $as_echo_n "(cached) " >&6
10953 ac_check_lib_save_LIBS
=$LIBS
10954 LIBS
="-lselinux $LIBS"
10955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10958 /* Override any GCC internal prototype to avoid an error.
10959 Use char because int might match the return type of a GCC
10960 builtin and then its argument prototype would still apply. */
10964 char lgetfilecon ();
10968 return lgetfilecon ();
10973 if ac_fn_c_try_link
"$LINENO"; then :
10974 ac_cv_lib_selinux_lgetfilecon
=yes
10976 ac_cv_lib_selinux_lgetfilecon
=no
10978 rm -f core conftest.err conftest.
$ac_objext \
10979 conftest
$ac_exeext conftest.
$ac_ext
10980 LIBS
=$ac_check_lib_save_LIBS
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10983 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10984 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
10985 HAVE_LIBSELINUX
=yes
10990 if test "$HAVE_LIBSELINUX" = yes; then
10992 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10994 LIBSELINUX_LIBS
=-lselinux
11000 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11001 if test "${with_gnutls}" = "yes" ; then
11005 if test "$PKG_CONFIG" = "no" ; then
11008 PKG_CONFIG_MIN_VERSION
=0.9.0
11009 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11011 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11013 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11014 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11015 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11022 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11023 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11025 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11030 LIBGNUTLS_CFLAGS
=""
11032 ## If we have a custom action on failure, don't print errors, but
11033 ## do set a variable so people can do so.
11034 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11046 if test $succeeded = yes; then
11052 if test "${HAVE_GNUTLS}" = "yes"; then
11054 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11058 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11059 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11060 for ac_func
in gnutls_certificate_set_verify_function
11062 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11063 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11064 cat >>confdefs.h
<<_ACEOF
11065 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11067 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11072 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11074 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11084 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11085 if test "$with_xaw3d" != no
; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11087 $as_echo_n "checking for xaw3d... " >&6; }
11088 if test "${emacs_cv_xaw3d+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 #include <X11/Intrinsic.h>
11095 #include <X11/Xaw3d/Simple.h>
11104 if ac_fn_c_try_link
"$LINENO"; then :
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11106 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11107 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11110 ac_check_lib_save_LIBS
=$LIBS
11111 LIBS
="-lXaw3d $LIBS"
11112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11121 char XawScrollbarSetThumb ();
11125 return XawScrollbarSetThumb ();
11130 if ac_fn_c_try_link
"$LINENO"; then :
11131 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11133 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11135 rm -f core conftest.err conftest.
$ac_objext \
11136 conftest
$ac_exeext conftest.
$ac_ext
11137 LIBS
=$ac_check_lib_save_LIBS
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11140 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11141 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11150 rm -f core conftest.err conftest.
$ac_objext \
11151 conftest
$ac_exeext conftest.
$ac_ext
11157 if test $emacs_cv_xaw3d = yes; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11159 $as_echo "yes; using Lucid toolkit" >&6; }
11160 USE_X_TOOLKIT
=LUCID
11164 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11170 $as_echo_n "checking for libXaw... " >&6; }
11171 if test "${emacs_cv_xaw+set}" = set; then :
11172 $as_echo_n "(cached) " >&6
11174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 #include <X11/Intrinsic.h>
11178 #include <X11/Xaw/Simple.h>
11187 if ac_fn_c_try_link
"$LINENO"; then :
11192 rm -f core conftest.err conftest.
$ac_objext \
11193 conftest
$ac_exeext conftest.
$ac_ext
11196 if test $emacs_cv_xaw = yes; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11198 $as_echo "yes; using Lucid toolkit" >&6; }
11199 USE_X_TOOLKIT
=LUCID
11201 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11202 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11204 as_fn_error
"No X toolkit could be found.
11205 If you are sure you want Emacs compiled without an X toolkit, pass
11206 --with-x-toolkit=no
11207 to configure. Otherwise, install the development libraries for the toolkit
11208 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11213 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11216 if test "${USE_X_TOOLKIT}" != "none"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11218 $as_echo_n "checking X11 toolkit version... " >&6; }
11219 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224 #include <X11/Intrinsic.h>
11228 #if XtSpecificationRelease < 6
11236 if ac_fn_c_try_link
"$LINENO"; then :
11237 emacs_cv_x11_toolkit_version_6
=yes
11239 emacs_cv_x11_toolkit_version_6
=no
11241 rm -f core conftest.err conftest.
$ac_objext \
11242 conftest
$ac_exeext conftest.
$ac_ext
11245 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11246 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11248 $as_echo "6 or newer" >&6; }
11250 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11252 LIBXTR6
="-lSM -lICE"
11254 ## Use libw.a along with X11R6 Xt.
11255 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11259 $as_echo "before 6" >&6; }
11263 if test x
$HAVE_X11XTR6 = xyes
; then
11264 LIBS
="-lXt -lSM -lICE $LIBS"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11269 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11270 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11273 ac_check_lib_save_LIBS
=$LIBS
11275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11284 char XmuConvertStandardSelection ();
11288 return XmuConvertStandardSelection ();
11293 if ac_fn_c_try_link
"$LINENO"; then :
11294 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11296 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11298 rm -f core conftest.err conftest.
$ac_objext \
11299 conftest
$ac_exeext conftest.
$ac_ext
11300 LIBS
=$ac_check_lib_save_LIBS
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11303 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11304 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11305 cat >>confdefs.h
<<_ACEOF
11306 #define HAVE_LIBXMU 1
11313 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11319 ## These systems don't supply Xmu.
11321 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11326 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11327 if test "${HAVE_X11}" = "yes"; then
11328 if test "${USE_X_TOOLKIT}" != "none"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11330 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11331 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11332 $as_echo_n "(cached) " >&6
11334 ac_check_lib_save_LIBS
=$LIBS
11335 LIBS
="-lXext $LIBS"
11336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11345 char XShapeQueryExtension ();
11349 return XShapeQueryExtension ();
11354 if ac_fn_c_try_link
"$LINENO"; then :
11355 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11357 ac_cv_lib_Xext_XShapeQueryExtension
=no
11359 rm -f core conftest.err conftest.
$ac_objext \
11360 conftest
$ac_exeext conftest.
$ac_ext
11361 LIBS
=$ac_check_lib_save_LIBS
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11364 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11365 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11366 cat >>confdefs.h
<<_ACEOF
11367 #define HAVE_LIBXEXT 1
11370 LIBS
="-lXext $LIBS"
11378 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11380 $as_echo_n "checking for Motif version 2.1... " >&6; }
11381 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11390 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11393 Motif version prior to 2.1.
11399 if ac_fn_c_try_compile
"$LINENO"; then :
11400 emacs_cv_motif_version_2_1
=yes
11402 emacs_cv_motif_version_2_1
=no
11404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11407 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11408 if test $emacs_cv_motif_version_2_1 = yes; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11410 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11411 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11414 ac_check_lib_save_LIBS
=$LIBS
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11425 char XpCreateContext ();
11429 return XpCreateContext ();
11434 if ac_fn_c_try_link
"$LINENO"; then :
11435 ac_cv_lib_Xp_XpCreateContext
=yes
11437 ac_cv_lib_Xp_XpCreateContext
=no
11439 rm -f core conftest.err conftest.
$ac_objext \
11440 conftest
$ac_exeext conftest.
$ac_ext
11441 LIBS
=$ac_check_lib_save_LIBS
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11444 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11445 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11451 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11452 if test "${emacs_cv_lesstif+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11455 # We put this in CFLAGS temporarily to precede other -I options
11456 # that might be in CFLAGS temporarily.
11457 # We put this in CPPFLAGS where it precedes the other -I options.
11458 OLD_CPPFLAGS
=$CPPFLAGS
11460 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11461 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11473 if ac_fn_c_try_compile
"$LINENO"; then :
11474 emacs_cv_lesstif
=yes
11476 emacs_cv_lesstif
=no
11478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11481 $as_echo "$emacs_cv_lesstif" >&6; }
11482 if test $emacs_cv_lesstif = yes; then
11483 # Make sure this -I option remains in CPPFLAGS after it is set
11484 # back to REAL_CPPFLAGS.
11485 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11486 # have those other -I options anyway. Ultimately, having this
11487 # directory ultimately in CPPFLAGS will be enough.
11488 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11489 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11492 CPPFLAGS
=$OLD_CPPFLAGS
11495 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11496 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11499 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11506 USE_TOOLKIT_SCROLL_BARS
=no
11507 if test "${with_toolkit_scroll_bars}" != "no"; then
11508 if test "${USE_X_TOOLKIT}" != "none"; then
11509 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11510 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11513 USE_TOOLKIT_SCROLL_BARS
=yes
11514 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11515 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11517 USE_TOOLKIT_SCROLL_BARS
=yes
11519 elif test "${HAVE_GTK}" = "yes"; then
11520 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11522 USE_TOOLKIT_SCROLL_BARS
=yes
11523 elif test "${HAVE_NS}" = "yes"; then
11524 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11526 USE_TOOLKIT_SCROLL_BARS
=yes
11530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 #include <X11/Xlib.h>
11534 #include <X11/Xresource.h>
11543 if ac_fn_c_try_compile
"$LINENO"; then :
11546 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11554 if test "${with_xim}" != "no"; then
11556 $as_echo "#define USE_XIM 1" >>confdefs.h
11561 if test "${HAVE_XIM}" != "no"; then
11562 late_CFLAGS
=$CFLAGS
11563 if test "$GCC" = yes; then
11564 CFLAGS
="$CFLAGS --pedantic-errors"
11566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 #include <X11/Xlib.h>
11570 #include <X11/Xresource.h>
11579 XPointer *client_data;
11581 /* If we're not using GCC, it's probably not XFree86, and this is
11582 probably right, but we can't use something like --pedantic-errors. */
11583 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11584 char*, XIMProc, XPointer*);
11586 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11592 if ac_fn_c_try_compile
"$LINENO"; then :
11593 emacs_cv_arg6_star
=yes
11595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11596 if test "$emacs_cv_arg6_star" = yes; then
11597 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11600 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11603 CFLAGS
=$late_CFLAGS
11606 ### Start of font-backend (under any platform) section.
11607 # (nothing here yet -- this is a placeholder)
11608 ### End of font-backend (under any platform) section.
11610 ### Start of font-backend (under X11) section.
11611 if test "${HAVE_X11}" = "yes"; then
11615 if test "$PKG_CONFIG" = "no" ; then
11618 PKG_CONFIG_MIN_VERSION
=0.9.0
11619 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11621 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11623 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11624 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11625 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11632 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11633 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11635 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 FONTCONFIG_CFLAGS
=""
11642 ## If we have a custom action on failure, don't print errors, but
11643 ## do set a variable so people can do so.
11644 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11651 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11652 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11656 if test $succeeded = yes; then
11663 ## Use -lXft if available, unless `--with-xft=no'.
11665 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11668 if test "x${with_xft}" != "xno"; then
11673 if test "$PKG_CONFIG" = "no" ; then
11676 PKG_CONFIG_MIN_VERSION
=0.9.0
11677 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11679 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11681 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11682 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11683 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11690 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11691 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11693 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11700 ## If we have a custom action on failure, don't print errors, but
11701 ## do set a variable so people can do so.
11702 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11709 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11710 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11714 if test $succeeded = yes; then
11720 ## Because xftfont.c uses XRenderQueryExtension, we also
11721 ## need to link to -lXrender.
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11724 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11725 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11728 ac_check_lib_save_LIBS
=$LIBS
11729 LIBS
="-lXrender $LIBS"
11730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11739 char XRenderQueryExtension ();
11743 return XRenderQueryExtension ();
11748 if ac_fn_c_try_link
"$LINENO"; then :
11749 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11751 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11753 rm -f core conftest.err conftest.
$ac_objext \
11754 conftest
$ac_exeext conftest.
$ac_ext
11755 LIBS
=$ac_check_lib_save_LIBS
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11758 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11759 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11763 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11764 OLD_CPPFLAGS
="$CPPFLAGS"
11765 OLD_CFLAGS
="$CFLAGS"
11767 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11768 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11769 XFT_LIBS
="-lXrender $XFT_LIBS"
11770 LIBS
="$XFT_LIBS $LIBS"
11771 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11772 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11774 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11775 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11778 ac_check_lib_save_LIBS
=$LIBS
11779 LIBS
="-lXft $XFT_LIBS $LIBS"
11780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 /* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11789 char XftFontOpen ();
11793 return XftFontOpen ();
11798 if ac_fn_c_try_link
"$LINENO"; then :
11799 ac_cv_lib_Xft_XftFontOpen
=yes
11801 ac_cv_lib_Xft_XftFontOpen
=no
11803 rm -f core conftest.err conftest.
$ac_objext \
11804 conftest
$ac_exeext conftest.
$ac_ext
11805 LIBS
=$ac_check_lib_save_LIBS
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11808 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11809 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11817 if test "${HAVE_XFT}" = "yes"; then
11819 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11822 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11824 CPPFLAGS
="$OLD_CPPFLAGS"
11825 CFLAGS
="$OLD_CFLAGS"
11827 fi # "${HAVE_XFT}" = "yes"
11828 fi # "$HAVE_XFT" != no
11829 fi # "x${with_xft}" != "xno"
11831 ## We used to allow building with FreeType and without Xft.
11832 ## However, the ftx font backend driver is not in good shape.
11833 if test "$HAVE_XFT" != "yes"; then
11840 if test "$PKG_CONFIG" = "no" ; then
11843 PKG_CONFIG_MIN_VERSION
=0.9.0
11844 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11846 $as_echo_n "checking for freetype2... " >&6; }
11848 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11849 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11850 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11857 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11858 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11860 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11867 ## If we have a custom action on failure, don't print errors, but
11868 ## do set a variable so people can do so.
11869 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11881 if test $succeeded = yes; then
11888 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11892 if test "${HAVE_FREETYPE}" = "yes"; then
11894 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11896 if test "${with_libotf}" != "no"; then
11900 if test "$PKG_CONFIG" = "no" ; then
11903 PKG_CONFIG_MIN_VERSION
=0.9.0
11904 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11906 $as_echo_n "checking for libotf... " >&6; }
11908 if $PKG_CONFIG --exists "libotf" 2>&5 &&
11909 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
11910 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
11917 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
11918 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
11920 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11927 ## If we have a custom action on failure, don't print errors, but
11928 ## do set a variable so people can do so.
11929 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11936 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11937 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11941 if test $succeeded = yes; then
11947 if test "$HAVE_LIBOTF" = "yes"; then
11949 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11952 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11953 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
11956 ac_check_lib_save_LIBS
=$LIBS
11958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11961 /* Override any GCC internal prototype to avoid an error.
11962 Use char because int might match the return type of a GCC
11963 builtin and then its argument prototype would still apply. */
11967 char OTF_get_variation_glyphs ();
11971 return OTF_get_variation_glyphs ();
11976 if ac_fn_c_try_link
"$LINENO"; then :
11977 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
11979 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
11981 rm -f core conftest.err conftest.
$ac_objext \
11982 conftest
$ac_exeext conftest.
$ac_ext
11983 LIBS
=$ac_check_lib_save_LIBS
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11986 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11987 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
11988 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
11990 HAVE_OTF_GET_VARIATION_GLYPHS
=no
11993 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11995 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12003 if test "${HAVE_LIBOTF}" = yes; then
12004 if test "${with_m17n_flt}" != "no"; then
12008 if test "$PKG_CONFIG" = "no" ; then
12011 PKG_CONFIG_MIN_VERSION
=0.9.0
12012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12014 $as_echo_n "checking for m17n-flt... " >&6; }
12016 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12017 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12018 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12025 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12026 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12028 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12035 ## If we have a custom action on failure, don't print errors, but
12036 ## do set a variable so people can do so.
12037 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12049 if test $succeeded = yes; then
12055 if test "$HAVE_M17N_FLT" = "yes"; then
12057 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12069 ### End of font-backend (under X11) section.
12080 ### Use -lXpm if available, unless `--with-xpm=no'.
12083 if test "${HAVE_X11}" = "yes"; then
12084 if test "${with_xpm}" != "no"; then
12085 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12086 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12088 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12089 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12092 ac_check_lib_save_LIBS
=$LIBS
12093 LIBS
="-lXpm -lX11 $LIBS"
12094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12097 /* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
12103 char XpmReadFileToPixmap ();
12107 return XpmReadFileToPixmap ();
12112 if ac_fn_c_try_link
"$LINENO"; then :
12113 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12115 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12117 rm -f core conftest.err conftest.
$ac_objext \
12118 conftest
$ac_exeext conftest.
$ac_ext
12119 LIBS
=$ac_check_lib_save_LIBS
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12122 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12123 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12130 if test "${HAVE_XPM}" = "yes"; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12132 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 #include "X11/xpm.h"
12136 #ifndef XpmReturnAllocPixels
12137 no_return_alloc_pixels
12141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12142 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12150 if test "${HAVE_XPM}" = "yes"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12160 if test "${HAVE_XPM}" = "yes"; then
12162 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12169 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12172 if test "${HAVE_X11}" = "yes"; then
12173 if test "${with_jpeg}" != "no"; then
12174 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12175 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12177 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12178 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12181 ac_check_lib_save_LIBS
=$LIBS
12182 LIBS
="-ljpeg $LIBS"
12183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12192 char jpeg_destroy_compress ();
12196 return jpeg_destroy_compress ();
12201 if ac_fn_c_try_link
"$LINENO"; then :
12202 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12204 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12206 rm -f core conftest.err conftest.
$ac_objext \
12207 conftest
$ac_exeext conftest.
$ac_ext
12208 LIBS
=$ac_check_lib_save_LIBS
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12211 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12212 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12221 if test "${HAVE_JPEG}" = "yes"; then
12222 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 #include <jpeglib.h>
12227 version=JPEG_LIB_VERSION
12230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12231 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12232 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12236 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12242 if test "${HAVE_JPEG}" = "yes"; then
12248 ### Use -lpng if available, unless `--with-png=no'.
12251 if test "${HAVE_X11}" = "yes"; then
12252 if test "${with_png}" != "no"; then
12253 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12254 # in /usr/include/libpng.
12255 for ac_header
in png.h libpng
/png.h
12257 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12258 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12259 eval as_val
=\$
$as_ac_Header
12260 if test "x$as_val" = x
""yes; then :
12261 cat >>confdefs.h
<<_ACEOF
12262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12269 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12271 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12272 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12273 $as_echo_n "(cached) " >&6
12275 ac_check_lib_save_LIBS
=$LIBS
12276 LIBS
="-lpng -lz -lm $LIBS"
12277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12286 char png_get_channels ();
12290 return png_get_channels ();
12295 if ac_fn_c_try_link
"$LINENO"; then :
12296 ac_cv_lib_png_png_get_channels
=yes
12298 ac_cv_lib_png_png_get_channels
=no
12300 rm -f core conftest.err conftest.
$ac_objext \
12301 conftest
$ac_exeext conftest.
$ac_ext
12302 LIBS
=$ac_check_lib_save_LIBS
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12305 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12306 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12313 if test "${HAVE_PNG}" = "yes"; then
12315 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12317 LIBPNG
="-lpng -lz -lm"
12322 ### Use -ltiff if available, unless `--with-tiff=no'.
12325 if test "${HAVE_X11}" = "yes"; then
12326 if test "${with_tiff}" != "no"; then
12327 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12328 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12330 # At least one tiff package requires the jpeg library.
12331 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12333 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12334 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12337 ac_check_lib_save_LIBS
=$LIBS
12338 LIBS
="-ltiff $tifflibs $LIBS"
12339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12348 char TIFFGetVersion ();
12352 return TIFFGetVersion ();
12357 if ac_fn_c_try_link
"$LINENO"; then :
12358 ac_cv_lib_tiff_TIFFGetVersion
=yes
12360 ac_cv_lib_tiff_TIFFGetVersion
=no
12362 rm -f core conftest.err conftest.
$ac_objext \
12363 conftest
$ac_exeext conftest.
$ac_ext
12364 LIBS
=$ac_check_lib_save_LIBS
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12367 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12368 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12377 if test "${HAVE_TIFF}" = "yes"; then
12379 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12386 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12389 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12390 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12391 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12392 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12393 # Earlier versions can crash Emacs.
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12395 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12396 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12397 $as_echo_n "(cached) " >&6
12399 ac_check_lib_save_LIBS
=$LIBS
12401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 /* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12410 char EGifPutExtensionLast ();
12414 return EGifPutExtensionLast ();
12419 if ac_fn_c_try_link
"$LINENO"; then :
12420 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12422 ac_cv_lib_gif_EGifPutExtensionLast
=no
12424 rm -f core conftest.err conftest.
$ac_objext \
12425 conftest
$ac_exeext conftest.
$ac_ext
12426 LIBS
=$ac_check_lib_save_LIBS
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12429 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12430 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12440 if test "$HAVE_GIF" = yes; then
12442 elif test "$HAVE_GIF" = maybe
; then
12443 # If gif_lib.h but no libgif, try libungif.
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12445 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12446 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12449 ac_check_lib_save_LIBS
=$LIBS
12450 LIBS
="-lungif $LIBS"
12451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12454 /* Override any GCC internal prototype to avoid an error.
12455 Use char because int might match the return type of a GCC
12456 builtin and then its argument prototype would still apply. */
12460 char EGifPutExtensionLast ();
12464 return EGifPutExtensionLast ();
12469 if ac_fn_c_try_link
"$LINENO"; then :
12470 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12472 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12474 rm -f core conftest.err conftest.
$ac_objext \
12475 conftest
$ac_exeext conftest.
$ac_ext
12476 LIBS
=$ac_check_lib_save_LIBS
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12479 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12480 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12486 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12489 if test "${HAVE_GIF}" = "yes"; then
12491 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12497 if test "${HAVE_X11}" = "yes"; then
12500 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12501 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12502 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12503 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12504 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12505 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12506 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12507 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12508 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12509 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12511 if test "X${MISSING}" != X
; then
12512 as_fn_error
"The following required libraries were not found:
12514 Maybe some development libraries/packages are missing?
12515 If you don't want to link with them give
12517 as options to configure" "$LINENO" 5
12521 ### Use -lgpm if available, unless `--with-gpm=no'.
12524 if test "${with_gpm}" != "no"; then
12525 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12526 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12528 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12529 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12530 $as_echo_n "(cached) " >&6
12532 ac_check_lib_save_LIBS
=$LIBS
12534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12535 /* end confdefs.h. */
12537 /* Override any GCC internal prototype to avoid an error.
12538 Use char because int might match the return type of a GCC
12539 builtin and then its argument prototype would still apply. */
12547 return Gpm_Open ();
12552 if ac_fn_c_try_link
"$LINENO"; then :
12553 ac_cv_lib_gpm_Gpm_Open
=yes
12555 ac_cv_lib_gpm_Gpm_Open
=no
12557 rm -f core conftest.err conftest.
$ac_objext \
12558 conftest
$ac_exeext conftest.
$ac_ext
12559 LIBS
=$ac_check_lib_save_LIBS
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12562 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12563 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12571 if test "${HAVE_GPM}" = "yes"; then
12573 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12585 ### Use NeXTstep API to implement GUI.
12586 if test "${HAVE_NS}" = "yes"; then
12588 $as_echo "#define HAVE_NS 1" >>confdefs.h
12590 if test "${NS_IMPL_COCOA}" = "yes"; then
12592 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12595 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12597 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12599 # See also .m.o rule in Makefile.in */
12600 # FIXME: are all these flags really needed? Document here why. */
12601 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12602 ## Extra CFLAGS applied to src/*.m files.
12603 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"
12605 # We also have mouse menus.
12611 ### Use session management (-lSM -lICE) if available
12614 if test "${HAVE_X11}" = "yes"; then
12615 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12616 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12618 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12619 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12622 ac_check_lib_save_LIBS
=$LIBS
12623 LIBS
="-lSM -lICE $LIBS"
12624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12633 char SmcOpenConnection ();
12637 return SmcOpenConnection ();
12642 if ac_fn_c_try_link
"$LINENO"; then :
12643 ac_cv_lib_SM_SmcOpenConnection
=yes
12645 ac_cv_lib_SM_SmcOpenConnection
=no
12647 rm -f core conftest.err conftest.
$ac_objext \
12648 conftest
$ac_exeext conftest.
$ac_ext
12649 LIBS
=$ac_check_lib_save_LIBS
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12652 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12653 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12661 if test "${HAVE_X_SM}" = "yes"; then
12663 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12665 LIBXSM
="-lSM -lICE"
12668 *) LIBS
="$LIBXSM $LIBS" ;;
12674 ### Use libxml (-lxml2) if available
12676 if test "${with_xml2}" != "no"; then
12677 ### I'm not sure what the version number should be, so I just guessed.
12681 if test "$PKG_CONFIG" = "no" ; then
12684 PKG_CONFIG_MIN_VERSION
=0.9.0
12685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12687 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12689 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12690 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12691 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12698 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12699 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12701 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12708 ## If we have a custom action on failure, don't print errors, but
12709 ## do set a variable so people can do so.
12710 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12717 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12718 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12722 if test $succeeded = yes; then
12728 if test "${HAVE_LIBXML2}" = "yes"; then
12729 LIBS
="$LIBXML2_LIBS $LIBS"
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12731 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12732 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12735 ac_check_lib_save_LIBS
=$LIBS
12736 LIBS
="-lxml2 $LIBS"
12737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12746 char htmlReadMemory ();
12750 return htmlReadMemory ();
12755 if ac_fn_c_try_link
"$LINENO"; then :
12756 ac_cv_lib_xml2_htmlReadMemory
=yes
12758 ac_cv_lib_xml2_htmlReadMemory
=no
12760 rm -f core conftest.err conftest.
$ac_objext \
12761 conftest
$ac_exeext conftest.
$ac_ext
12762 LIBS
=$ac_check_lib_save_LIBS
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12765 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12766 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12772 if test "${HAVE_LIBXML2}" = "yes"; then
12774 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12785 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12787 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12788 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12802 if ac_fn_c_try_link
"$LINENO"; then :
12803 emacs_cv_netdb_declares_h_errno
=yes
12805 emacs_cv_netdb_declares_h_errno
=no
12807 rm -f core conftest.err conftest.
$ac_objext \
12808 conftest
$ac_exeext conftest.
$ac_ext
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12811 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12812 if test $emacs_cv_netdb_declares_h_errno = yes; then
12814 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12818 # fmod, logb, and frexp are found in -lm on most systems.
12819 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12821 $as_echo_n "checking for sqrt in -lm... " >&6; }
12822 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12825 ac_check_lib_save_LIBS
=$LIBS
12827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12830 /* Override any GCC internal prototype to avoid an error.
12831 Use char because int might match the return type of a GCC
12832 builtin and then its argument prototype would still apply. */
12845 if ac_fn_c_try_link
"$LINENO"; then :
12846 ac_cv_lib_m_sqrt
=yes
12848 ac_cv_lib_m_sqrt
=no
12850 rm -f core conftest.err conftest.
$ac_objext \
12851 conftest
$ac_exeext conftest.
$ac_ext
12852 LIBS
=$ac_check_lib_save_LIBS
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12855 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12856 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12857 cat >>confdefs.h
<<_ACEOF
12858 #define HAVE_LIBM 1
12866 # Check for mail-locking functions in a "mail" library. Probably this should
12867 # have the same check as for liblockfile below.
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12869 $as_echo_n "checking for maillock in -lmail... " >&6; }
12870 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12873 ac_check_lib_save_LIBS
=$LIBS
12874 LIBS
="-lmail $LIBS"
12875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12888 return maillock ();
12893 if ac_fn_c_try_link
"$LINENO"; then :
12894 ac_cv_lib_mail_maillock
=yes
12896 ac_cv_lib_mail_maillock
=no
12898 rm -f core conftest.err conftest.
$ac_objext \
12899 conftest
$ac_exeext conftest.
$ac_ext
12900 LIBS
=$ac_check_lib_save_LIBS
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12903 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12904 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
12910 if test $have_mail = yes; then
12912 LIBS
="$LIBS_MAIL $LIBS"
12914 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12920 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12921 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
12922 $as_echo_n "(cached) " >&6
12924 ac_check_lib_save_LIBS
=$LIBS
12925 LIBS
="-llockfile $LIBS"
12926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12929 /* Override any GCC internal prototype to avoid an error.
12930 Use char because int might match the return type of a GCC
12931 builtin and then its argument prototype would still apply. */
12939 return maillock ();
12944 if ac_fn_c_try_link
"$LINENO"; then :
12945 ac_cv_lib_lockfile_maillock
=yes
12947 ac_cv_lib_lockfile_maillock
=no
12949 rm -f core conftest.err conftest.
$ac_objext \
12950 conftest
$ac_exeext conftest.
$ac_ext
12951 LIBS
=$ac_check_lib_save_LIBS
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12954 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12955 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
12961 if test $have_lockfile = yes; then
12962 LIBS_MAIL
=-llockfile
12963 LIBS
="$LIBS_MAIL $LIBS"
12965 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12968 # If we have the shared liblockfile, assume we must use it for mail
12969 # locking (e.g. Debian). If we couldn't link against liblockfile
12970 # (no liblockfile.a installed), ensure that we don't need to.
12971 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12972 set dummy liblockfile.so
; ac_word
=$2
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12974 $as_echo_n "checking for $ac_word... " >&6; }
12975 if test "${ac_cv_prog_liblockfile+set}" = set; then :
12976 $as_echo_n "(cached) " >&6
12978 if test -n "$liblockfile"; then
12979 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12982 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12983 for as_dir
in $as_dummy
12986 test -z "$as_dir" && as_dir
=.
12987 for ac_exec_ext
in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_prog_liblockfile
="yes"
12990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13000 liblockfile
=$ac_cv_prog_liblockfile
13001 if test -n "$liblockfile"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13003 $as_echo "$liblockfile" >&6; }
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13010 if test $ac_cv_prog_liblockfile = yes; then
13011 as_fn_error
"Shared liblockfile found but can't link against it.
13012 This probably means that movemail could lose mail.
13013 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13021 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13022 ## interlock access to the mail spool. The alternative is a lock file named
13023 ## /usr/spool/mail/$USER.lock.
13026 aix4-2
) mail_lock
="lockf" ;;
13028 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13030 ## On GNU/Linux systems, both methods are used by various mail programs.
13031 ## I assume most people are using newer mailers that have heard of flock.
13032 ## Change this if you need to.
13033 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13034 ## configure gets the right answers, and that means *NOT* using flock.
13035 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13036 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13037 ## Debian maintainer hasn't provided a clean fix for Emacs.
13038 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13039 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13040 ## correct logic. -- fx
13041 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13042 ## liblockfile is a Free Software replacement for libmail, used on
13043 ## Debian systems and elsewhere. -rfr.
13046 if test $have_mail = yes ||
test $have_lockfile = yes; then
13047 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13053 case "$mail_lock" in
13055 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13059 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13062 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13070 for ac_func
in $ac_func_list
13072 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13074 eval as_val
=\$
$as_ac_var
13075 if test "x$as_val" = x
""yes; then :
13076 cat >>confdefs.h
<<_ACEOF
13077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13196 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13197 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13206 __builtin_unwind_init ();
13211 if ac_fn_c_try_link
"$LINENO"; then :
13212 emacs_cv_func___builtin_unwind_init
=yes
13214 emacs_cv_func___builtin_unwind_init
=no
13216 rm -f core conftest.err conftest.
$ac_objext \
13217 conftest
$ac_exeext conftest.
$ac_ext
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13220 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13221 if test $emacs_cv_func___builtin_unwind_init = yes; then
13223 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13232 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13233 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239 #include <sys/types.h> /* for off_t */
13244 int (*fp) (FILE *, off_t, int) = fseeko;
13245 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13250 if ac_fn_c_try_link
"$LINENO"; then :
13251 ac_cv_sys_largefile_source
=no
; break
13253 rm -f core conftest.err conftest.
$ac_objext \
13254 conftest
$ac_exeext conftest.
$ac_ext
13255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257 #define _LARGEFILE_SOURCE 1
13258 #include <sys/types.h> /* for off_t */
13263 int (*fp) (FILE *, off_t, int) = fseeko;
13264 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13269 if ac_fn_c_try_link
"$LINENO"; then :
13270 ac_cv_sys_largefile_source
=1; break
13272 rm -f core conftest.err conftest.
$ac_objext \
13273 conftest
$ac_exeext conftest.
$ac_ext
13274 ac_cv_sys_largefile_source
=unknown
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13279 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13280 case $ac_cv_sys_largefile_source in #(
13283 cat >>confdefs.h
<<_ACEOF
13284 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13290 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13291 # in glibc 2.1.3, but that breaks too many other things.
13292 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13293 if test $ac_cv_sys_largefile_source != unknown
; then
13295 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13301 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13302 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13305 # Use it with a single arg.
13306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308 $ac_includes_default
13317 if ac_fn_c_try_compile
"$LINENO"; then :
13318 ac_cv_func_getpgrp_void
=no
13320 ac_cv_func_getpgrp_void
=yes
13322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13326 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13327 if test $ac_cv_func_getpgrp_void = yes; then
13329 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13339 # PTY-related GNU extensions.
13344 # Check this now, so that we will NOT find the above functions in ncurses.
13345 # That is because we have not set up to link ncurses in lib-src.
13346 # It's better to believe a function is not available
13347 # than to expect to find it in ncurses.
13348 # Also we need tputs and friends to be able to build at all.
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13350 $as_echo_n "checking for library containing tputs... " >&6; }
13351 # Run a test program that contains a call to tputs, a call that is
13352 # never executed. This tests whether a pre-'main' dynamic linker
13353 # works with the library. It's too much trouble to actually call
13354 # tputs in the test program, due to portability hassles. When
13355 # cross-compiling, assume the test program will run if it links.
13357 # Maybe curses should be tried earlier?
13358 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13359 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13361 if test -z "$tputs_library"; then
13363 msg
='none required'
13365 LIBS_TERMCAP
=-l$tputs_library
13367 LIBS
="$LIBS_TERMCAP $LIBS"
13369 if test "$cross_compiling" = yes; then :
13370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13373 extern void tputs (const char *, int, int (*)(int));
13374 int main (int argc, char **argv)
13377 tputs (argv[0], 0, 0);
13382 if ac_fn_c_try_link
"$LINENO"; then :
13387 rm -f core conftest.err conftest.
$ac_objext \
13388 conftest
$ac_exeext conftest.
$ac_ext
13390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13393 extern void tputs (const char *, int, int (*)(int));
13394 int main (int argc, char **argv)
13397 tputs (argv[0], 0, 0);
13402 if ac_fn_c_try_run
"$LINENO"; then :
13407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13408 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13412 if test "X$msg" != Xno
; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13417 $as_echo "$msg" >&6; }
13418 if test "X$msg" = Xno
; then
13419 as_fn_error
"The required function \`tputs' was not found in any library.
13420 The following libraries were tried (in order):
13421 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13422 Please try installing whichever of these libraries is most appropriate
13423 for your system, together with its header files.
13424 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13427 ## Use termcap instead of terminfo?
13428 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13430 ## FIXME? In the cases below where we unconditionally set
13431 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13432 ## if that was found above to have tputs.
13433 ## Should we use the gnu* logic everywhere?
13435 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13436 ## The ncurses library has been moved out of the System framework in
13437 ## Mac OS X 10.2. So if configure detects it, set the command-line
13438 ## option to use it.
13439 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13441 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13445 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13446 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 #include <osreldate.h>
13455 #if __FreeBSD_version < 400000
13463 if ac_fn_c_try_link
"$LINENO"; then :
13464 emacs_cv_freebsd_terminfo
=yes
13466 emacs_cv_freebsd_terminfo
=no
13468 rm -f core conftest.err conftest.
$ac_objext \
13469 conftest
$ac_exeext conftest.
$ac_ext
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13474 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13476 if test $emacs_cv_freebsd_terminfo = yes; then
13477 LIBS_TERMCAP
="-lncurses"
13480 LIBS_TERMCAP
="-ltermcap"
13485 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13487 LIBS_TERMCAP
="-ltermcap"
13491 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13493 ## hpux: Make sure we get select from libc rather than from libcurses
13494 ## because libcurses on HPUX 10.10 has a broken version of select.
13495 ## We used to use -lc -lcurses, but this may be cleaner.
13496 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13497 # set that way, now it uses the default). Isn't this a contradiction?
13498 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13502 TERMCAP_OBJ
=tparam.o
13503 if test $TERMINFO = yes; then
13505 $as_echo "#define TERMINFO 1" >>confdefs.h
13507 TERMCAP_OBJ
=terminfo.o
13513 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13517 #include <netinet/in.h>
13518 #include <arpa/nameser.h>
13519 #include <resolv.h>
13528 if ac_fn_c_try_link
"$LINENO"; then :
13533 rm -f core conftest.err conftest.
$ac_objext \
13534 conftest
$ac_exeext conftest.
$ac_ext
13535 if test "$have_res_init" = no
; then
13537 LIBS
="$LIBS -lresolv"
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13539 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #include <netinet/in.h>
13543 #include <arpa/nameser.h>
13544 #include <resolv.h>
13553 if ac_fn_c_try_link
"$LINENO"; then :
13558 rm -f core conftest.err conftest.
$ac_objext \
13559 conftest
$ac_exeext conftest.
$ac_ext
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13561 $as_echo "$have_res_init" >&6; }
13562 if test "$have_res_init" = yes ; then
13568 if test "$have_res_init" = yes; then
13570 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13574 # Do we need the Hesiod library to provide the support routines?
13576 if test "$with_hesiod" != no
; then
13577 # Don't set $LIBS here -- see comments above. FIXME which comments?
13578 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13579 if test "x$ac_cv_func_res_send" = x
""yes; then :
13582 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13583 if test "x$ac_cv_func___res_send" = x
""yes; then :
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13587 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13588 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13591 ac_check_lib_save_LIBS
=$LIBS
13592 LIBS
="-lresolv $LIBS"
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13596 /* Override any GCC internal prototype to avoid an error.
13597 Use char because int might match the return type of a GCC
13598 builtin and then its argument prototype would still apply. */
13606 return res_send ();
13611 if ac_fn_c_try_link
"$LINENO"; then :
13612 ac_cv_lib_resolv_res_send
=yes
13614 ac_cv_lib_resolv_res_send
=no
13616 rm -f core conftest.err conftest.
$ac_objext \
13617 conftest
$ac_exeext conftest.
$ac_ext
13618 LIBS
=$ac_check_lib_save_LIBS
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13621 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13622 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13626 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13627 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13628 $as_echo_n "(cached) " >&6
13630 ac_check_lib_save_LIBS
=$LIBS
13631 LIBS
="-lresolv $LIBS"
13632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 /* Override any GCC internal prototype to avoid an error.
13636 Use char because int might match the return type of a GCC
13637 builtin and then its argument prototype would still apply. */
13641 char __res_send ();
13645 return __res_send ();
13650 if ac_fn_c_try_link
"$LINENO"; then :
13651 ac_cv_lib_resolv___res_send
=yes
13653 ac_cv_lib_resolv___res_send
=no
13655 rm -f core conftest.err conftest.
$ac_objext \
13656 conftest
$ac_exeext conftest.
$ac_ext
13657 LIBS
=$ac_check_lib_save_LIBS
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13660 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13661 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13671 if test "$resolv" = yes ; then
13676 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13677 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13681 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13682 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13683 $as_echo_n "(cached) " >&6
13685 ac_check_lib_save_LIBS
=$LIBS
13686 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13696 char hes_getmailhost ();
13700 return hes_getmailhost ();
13705 if ac_fn_c_try_link
"$LINENO"; then :
13706 ac_cv_lib_hesiod_hes_getmailhost
=yes
13708 ac_cv_lib_hesiod_hes_getmailhost
=no
13710 rm -f core conftest.err conftest.
$ac_objext \
13711 conftest
$ac_exeext conftest.
$ac_ext
13712 LIBS
=$ac_check_lib_save_LIBS
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13715 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13716 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13725 if test x
"$hesiod" = xyes
; then
13727 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13734 # Do we need libresolv (due to res_init or Hesiod)?
13735 if test "$resolv" = yes ; then
13737 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13745 # These tell us which Kerberos-related libraries to use.
13752 if test "${with_kerberos}" != no
; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13754 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13756 $as_echo_n "(cached) " >&6
13758 ac_check_lib_save_LIBS
=$LIBS
13759 LIBS
="-lcom_err $LIBS"
13760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13778 if ac_fn_c_try_link
"$LINENO"; then :
13779 ac_cv_lib_com_err_com_err
=yes
13781 ac_cv_lib_com_err_com_err
=no
13783 rm -f core conftest.err conftest.
$ac_objext \
13784 conftest
$ac_exeext conftest.
$ac_ext
13785 LIBS
=$ac_check_lib_save_LIBS
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13788 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13789 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13795 if test $have_com_err = yes; then
13796 COM_ERRLIB
=-lcom_err
13797 LIBS
="$COM_ERRLIB $LIBS"
13799 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13803 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13804 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13807 ac_check_lib_save_LIBS
=$LIBS
13808 LIBS
="-lcrypto $LIBS"
13809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13818 char mit_des_cbc_encrypt ();
13822 return mit_des_cbc_encrypt ();
13827 if ac_fn_c_try_link
"$LINENO"; then :
13828 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13830 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13832 rm -f core conftest.err conftest.
$ac_objext \
13833 conftest
$ac_exeext conftest.
$ac_ext
13834 LIBS
=$ac_check_lib_save_LIBS
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13837 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13838 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13844 if test $have_crypto = yes; then
13846 LIBS
="$CRYPTOLIB $LIBS"
13848 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13852 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13853 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13854 $as_echo_n "(cached) " >&6
13856 ac_check_lib_save_LIBS
=$LIBS
13857 LIBS
="-lk5crypto $LIBS"
13858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13861 /* Override any GCC internal prototype to avoid an error.
13862 Use char because int might match the return type of a GCC
13863 builtin and then its argument prototype would still apply. */
13867 char mit_des_cbc_encrypt ();
13871 return mit_des_cbc_encrypt ();
13876 if ac_fn_c_try_link
"$LINENO"; then :
13877 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13879 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13881 rm -f core conftest.err conftest.
$ac_objext \
13882 conftest
$ac_exeext conftest.
$ac_ext
13883 LIBS
=$ac_check_lib_save_LIBS
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13886 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13887 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13893 if test $have_k5crypto = yes; then
13894 CRYPTOLIB
=-lk5crypto
13895 LIBS
="$CRYPTOLIB $LIBS"
13897 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13901 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13902 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13905 ac_check_lib_save_LIBS
=$LIBS
13906 LIBS
="-lkrb5 $LIBS"
13907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13910 /* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
13916 char krb5_init_context ();
13920 return krb5_init_context ();
13925 if ac_fn_c_try_link
"$LINENO"; then :
13926 ac_cv_lib_krb5_krb5_init_context
=yes
13928 ac_cv_lib_krb5_krb5_init_context
=no
13930 rm -f core conftest.err conftest.
$ac_objext \
13931 conftest
$ac_exeext conftest.
$ac_ext
13932 LIBS
=$ac_check_lib_save_LIBS
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13935 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13936 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
13942 if test $have_krb5=yes; then
13944 LIBS
="$KRB5LIB $LIBS"
13946 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13949 if test "${with_kerberos5}" = no
; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13951 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13952 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13953 $as_echo_n "(cached) " >&6
13955 ac_check_lib_save_LIBS
=$LIBS
13956 LIBS
="-ldes425 $LIBS"
13957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 /* Override any GCC internal prototype to avoid an error.
13961 Use char because int might match the return type of a GCC
13962 builtin and then its argument prototype would still apply. */
13966 char des_cbc_encrypt ();
13970 return des_cbc_encrypt ();
13975 if ac_fn_c_try_link
"$LINENO"; then :
13976 ac_cv_lib_des425_des_cbc_encrypt
=yes
13978 ac_cv_lib_des425_des_cbc_encrypt
=no
13980 rm -f core conftest.err conftest.
$ac_objext \
13981 conftest
$ac_exeext conftest.
$ac_ext
13982 LIBS
=$ac_check_lib_save_LIBS
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13985 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13986 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
13992 if test $have_des425 = yes; then
13994 LIBS
="$DESLIB $LIBS"
13996 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14000 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14001 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14002 $as_echo_n "(cached) " >&6
14004 ac_check_lib_save_LIBS
=$LIBS
14006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14009 /* Override any GCC internal prototype to avoid an error.
14010 Use char because int might match the return type of a GCC
14011 builtin and then its argument prototype would still apply. */
14015 char des_cbc_encrypt ();
14019 return des_cbc_encrypt ();
14024 if ac_fn_c_try_link
"$LINENO"; then :
14025 ac_cv_lib_des_des_cbc_encrypt
=yes
14027 ac_cv_lib_des_des_cbc_encrypt
=no
14029 rm -f core conftest.err conftest.
$ac_objext \
14030 conftest
$ac_exeext conftest.
$ac_ext
14031 LIBS
=$ac_check_lib_save_LIBS
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14034 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14035 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14041 if test $have_des = yes; then
14043 LIBS
="$DESLIB $LIBS"
14045 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14050 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14051 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14054 ac_check_lib_save_LIBS
=$LIBS
14055 LIBS
="-lkrb4 $LIBS"
14056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14065 char krb_get_cred ();
14069 return krb_get_cred ();
14074 if ac_fn_c_try_link
"$LINENO"; then :
14075 ac_cv_lib_krb4_krb_get_cred
=yes
14077 ac_cv_lib_krb4_krb_get_cred
=no
14079 rm -f core conftest.err conftest.
$ac_objext \
14080 conftest
$ac_exeext conftest.
$ac_ext
14081 LIBS
=$ac_check_lib_save_LIBS
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14084 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14085 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14091 if test $have_krb4 = yes; then
14093 LIBS
="$KRB4LIB $LIBS"
14095 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14099 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14100 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14101 $as_echo_n "(cached) " >&6
14103 ac_check_lib_save_LIBS
=$LIBS
14105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply. */
14114 char krb_get_cred ();
14118 return krb_get_cred ();
14123 if ac_fn_c_try_link
"$LINENO"; then :
14124 ac_cv_lib_krb_krb_get_cred
=yes
14126 ac_cv_lib_krb_krb_get_cred
=no
14128 rm -f core conftest.err conftest.
$ac_objext \
14129 conftest
$ac_exeext conftest.
$ac_ext
14130 LIBS
=$ac_check_lib_save_LIBS
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14133 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14134 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14140 if test $have_krb = yes; then
14142 LIBS
="$KRB4LIB $LIBS"
14144 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14150 if test "${with_kerberos5}" != no
; then
14151 for ac_header
in krb5.h
14153 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14154 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14155 cat >>confdefs.h
<<_ACEOF
14156 #define HAVE_KRB5_H 1
14158 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14160 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14162 cat >>confdefs.h
<<_ACEOF
14163 #define HAVE_KRB5_ERROR_TEXT 1
14168 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14170 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14172 cat >>confdefs.h
<<_ACEOF
14173 #define HAVE_KRB5_ERROR_E_TEXT 1
14184 for ac_header
in des.h
14186 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14187 if test "x$ac_cv_header_des_h" = x
""yes; then :
14188 cat >>confdefs.h
<<_ACEOF
14189 #define HAVE_DES_H 1
14193 for ac_header
in kerberosIV
/des.h
14195 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14196 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14197 cat >>confdefs.h
<<_ACEOF
14198 #define HAVE_KERBEROSIV_DES_H 1
14202 for ac_header
in kerberos
/des.h
14204 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14205 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14206 cat >>confdefs.h
<<_ACEOF
14207 #define HAVE_KERBEROS_DES_H 1
14222 for ac_header
in krb.h
14224 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14225 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14226 cat >>confdefs.h
<<_ACEOF
14227 #define HAVE_KRB_H 1
14231 for ac_header
in kerberosIV
/krb.h
14233 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14234 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14235 cat >>confdefs.h
<<_ACEOF
14236 #define HAVE_KERBEROSIV_KRB_H 1
14240 for ac_header
in kerberos
/krb.h
14242 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14243 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14244 cat >>confdefs.h
<<_ACEOF
14245 #define HAVE_KERBEROS_KRB_H 1
14261 for ac_header
in com_err.h
14263 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14264 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14265 cat >>confdefs.h
<<_ACEOF
14266 #define HAVE_COM_ERR_H 1
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14285 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14286 if test "${emacs_cv_localtime_cache+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14289 if test x
$ac_cv_func_tzset = xyes
; then
14290 if test "$cross_compiling" = yes; then :
14291 # If we have tzset, assume the worst when cross-compiling.
14292 emacs_cv_localtime_cache
=yes
14294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14297 char TZ_GMT0[] = "TZ=GMT0";
14298 char TZ_PST8[] = "TZ=PST8";
14301 time_t now = time ((time_t *) 0);
14302 int hour_GMT0, hour_unset;
14303 if (putenv (TZ_GMT0) != 0)
14305 hour_GMT0 = localtime (&now)->tm_hour;
14307 hour_unset = localtime (&now)->tm_hour;
14308 if (putenv (TZ_PST8) != 0)
14310 if (localtime (&now)->tm_hour == hour_GMT0)
14313 if (localtime (&now)->tm_hour != hour_unset)
14318 if ac_fn_c_try_run
"$LINENO"; then :
14319 emacs_cv_localtime_cache
=no
14321 emacs_cv_localtime_cache
=yes
14323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14328 # If we lack tzset, report that localtime does not cache TZ,
14329 # since we can't invalidate the cache if we don't have tzset.
14330 emacs_cv_localtime_cache
=no
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14334 $as_echo "$emacs_cv_localtime_cache" >&6; }
14335 if test $emacs_cv_localtime_cache = yes; then
14337 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14341 if test "x$HAVE_TIMEVAL" = xyes
; then
14342 for ac_func
in gettimeofday
14344 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14345 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
14346 cat >>confdefs.h
<<_ACEOF
14347 #define HAVE_GETTIMEOFDAY 1
14353 if test $ac_cv_func_gettimeofday = yes; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14355 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14356 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14357 $as_echo_n "(cached) " >&6
14359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14362 #ifdef TIME_WITH_SYS_TIME
14363 #include <sys/time.h>
14366 #ifdef HAVE_SYS_TIME_H
14367 #include <sys/time.h>
14375 struct timeval time;
14376 gettimeofday (&time, 0);
14381 if ac_fn_c_try_compile
"$LINENO"; then :
14382 emacs_cv_gettimeofday_two_arguments
=yes
14384 emacs_cv_gettimeofday_two_arguments
=no
14386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14389 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14390 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14392 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14399 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14400 if test "x$ac_cv_func_socket" = x
""yes; then :
14406 if test $ok_so_far = yes; then
14407 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14408 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14416 if test $ok_so_far = yes; then
14417 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14418 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14426 if test $ok_so_far = yes; then
14428 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14432 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14434 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14439 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14440 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442 $as_echo "yes" >&6; }
14444 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448 $as_echo "no" >&6; }
14451 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14452 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14456 cat >>confdefs.h
<<_ACEOF
14462 for ac_header
in vfork.h
14464 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14465 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14466 cat >>confdefs.h
<<_ACEOF
14467 #define HAVE_VFORK_H 1
14474 for ac_func
in fork vfork
14476 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14477 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14478 eval as_val
=\$
$as_ac_var
14479 if test "x$as_val" = x
""yes; then :
14480 cat >>confdefs.h
<<_ACEOF
14481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14487 if test "x$ac_cv_func_fork" = xyes
; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14489 $as_echo_n "checking for working fork... " >&6; }
14490 if test "${ac_cv_func_fork_works+set}" = set; then :
14491 $as_echo_n "(cached) " >&6
14493 if test "$cross_compiling" = yes; then :
14494 ac_cv_func_fork_works
=cross
14496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 $ac_includes_default
14503 /* By Ruediger Kuhlmann. */
14504 return fork () < 0;
14510 if ac_fn_c_try_run
"$LINENO"; then :
14511 ac_cv_func_fork_works
=yes
14513 ac_cv_func_fork_works
=no
14515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14516 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14521 $as_echo "$ac_cv_func_fork_works" >&6; }
14524 ac_cv_func_fork_works
=$ac_cv_func_fork
14526 if test "x$ac_cv_func_fork_works" = xcross
; then
14528 *-*-amigaos* |
*-*-msdosdjgpp*)
14529 # Override, as these systems have only a dummy fork() stub
14530 ac_cv_func_fork_works
=no
14533 ac_cv_func_fork_works
=yes
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14537 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14539 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14540 if test "x$ac_cv_func_vfork" = xyes
; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14542 $as_echo_n "checking for working vfork... " >&6; }
14543 if test "${ac_cv_func_vfork_works+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14546 if test "$cross_compiling" = yes; then :
14547 ac_cv_func_vfork_works
=cross
14549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 /* Thanks to Paul Eggert for this test. */
14552 $ac_includes_default
14553 #include <sys/wait.h>
14554 #ifdef HAVE_VFORK_H
14555 # include <vfork.h>
14557 /* On some sparc systems, changes by the child to local and incoming
14558 argument registers are propagated back to the parent. The compiler
14559 is told about this with #include <vfork.h>, but some compilers
14560 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14561 static variable whose address is put into a register that is
14562 clobbered by the vfork. */
14565 sparc_address_test (int arg)
14567 sparc_address_test (arg) int arg;
14570 static pid_t child;
14588 pid_t parent = getpid ();
14591 sparc_address_test (0);
14596 /* Here is another test for sparc vfork register problems. This
14597 test uses lots of local variables, at least as many local
14598 variables as main has allocated so far including compiler
14599 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14600 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14601 reuse the register of parent for one of the local variables,
14602 since it will think that parent can't possibly be used any more
14603 in this routine. Assigning to the local variable will thus
14604 munge parent in the parent process. */
14606 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14607 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14608 /* Convince the compiler that p..p7 are live; otherwise, it might
14609 use the same hardware register for all 8 local variables. */
14610 if (p != p1 || p != p2 || p != p3 || p != p4
14611 || p != p5 || p != p6 || p != p7)
14614 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14615 from child file descriptors. If the child closes a descriptor
14616 before it execs or exits, this munges the parent's descriptor
14617 as well. Test for this by closing stdout in the child. */
14618 _exit(close(fileno(stdout)) != 0);
14623 while (wait(&status) != child)
14626 /* Was there some problem with vforking? */
14629 /* Did the child fail? (This shouldn't happen.) */
14632 /* Did the vfork/compiler bug occur? */
14633 || parent != getpid()
14635 /* Did the file descriptor bug occur? */
14636 || fstat(fileno(stdout), &st) != 0
14641 if ac_fn_c_try_run
"$LINENO"; then :
14642 ac_cv_func_vfork_works
=yes
14644 ac_cv_func_vfork_works
=no
14646 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14647 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14652 $as_echo "$ac_cv_func_vfork_works" >&6; }
14655 if test "x$ac_cv_func_fork_works" = xcross
; then
14656 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14658 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14661 if test "x$ac_cv_func_vfork_works" = xyes
; then
14663 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14667 $as_echo "#define vfork fork" >>confdefs.h
14670 if test "x$ac_cv_func_fork_works" = xyes
; then
14672 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14682 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14683 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14688 #include <langinfo.h>
14692 char* cs = nl_langinfo(CODESET);
14697 if ac_fn_c_try_link
"$LINENO"; then :
14698 emacs_cv_langinfo_codeset
=yes
14700 emacs_cv_langinfo_codeset
=no
14702 rm -f core conftest.err conftest.
$ac_objext \
14703 conftest
$ac_exeext conftest.
$ac_ext
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14707 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14708 if test $emacs_cv_langinfo_codeset = yes; then
14710 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14715 $as_echo_n "checking for mbstate_t... " >&6; }
14716 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721 $ac_includes_default
14722 # include <wchar.h>
14726 mbstate_t x; return sizeof x;
14731 if ac_fn_c_try_compile
"$LINENO"; then :
14732 ac_cv_type_mbstate_t
=yes
14734 ac_cv_type_mbstate_t
=no
14736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14739 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14740 if test $ac_cv_type_mbstate_t = yes; then
14742 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14746 $as_echo "#define mbstate_t int" >>confdefs.h
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14751 $as_echo_n "checking for C restricted array declarations... " >&6; }
14752 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757 void fred (int x[__restrict]);
14766 if ac_fn_c_try_compile
"$LINENO"; then :
14767 emacs_cv_c_restrict_arr
=yes
14769 emacs_cv_c_restrict_arr
=no
14771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14774 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14775 if test "$emacs_cv_c_restrict_arr" = yes; then
14777 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14783 darwin | gnu | hpux
* |
*bsd
)
14785 $as_echo "#define NO_TERMIO 1" >>confdefs.h
14791 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14793 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
14801 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14807 gnu-kfreebsd
) opsysfile
="s/gnu-linux.h" ;;
14811 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
14814 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
14817 opsysfile
="s/hpux10-20.h"
14820 openbsd
) opsysfile
="s/netbsd.h" ;;
14824 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
14826 opsysfile
="s/sol2-6.h"
14830 # Set up the CFLAGS for real compilation, so we can substitute it.
14831 CFLAGS
="$REAL_CFLAGS"
14832 CPPFLAGS
="$REAL_CPPFLAGS"
14834 ## Hack to detect a buggy GCC version.
14835 if test "x$GCC" = xyes \
14836 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14837 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
14838 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
14839 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14842 version
=$PACKAGE_VERSION
14844 ### Specify what sort of things we'll be editing into Makefile and config.h.
14845 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14870 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14871 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14872 ## end of LIBX_BASE, but nothing ever set it.
14877 ## Used in lwlib/Makefile.in.
14879 if test -n "${opsysfile}"; then
14880 S_FILE
="\$(srcdir)/${opsysfile}"
14893 cat >>confdefs.h
<<_ACEOF
14894 #define EMACS_CONFIGURATION "${canonical}"
14898 cat >>confdefs.h
<<_ACEOF
14899 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14902 if test -n "$opsysfile"; then
14904 cat >>confdefs.h
<<_ACEOF
14905 #define config_opsysfile "${opsysfile}"
14913 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14915 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14918 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14920 if test "$HAVE_XFT" = "yes"; then
14921 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14922 elif test "$HAVE_FREETYPE" = "yes"; then
14923 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
14933 if test "${USE_X_TOOLKIT}" != "none" ; then
14934 WIDGET_OBJ
=widget.o
14936 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14938 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14940 $as_echo "#define USE_LUCID 1" >>confdefs.h
14942 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14944 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14949 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14950 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
14954 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14955 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14956 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
14960 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14961 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
14964 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14970 case "$USE_X_TOOLKIT" in
14971 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14972 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14973 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14977 if test "$USE_X_TOOLKIT" = "none"; then
14978 LIBXT_OTHER
="\$(LIBXSM)"
14979 OLDXMENU_TARGET
="really-oldXMenu"
14981 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14982 OLDXMENU_TARGET
="really-lwlib"
14986 ## The X Menu stuff is present in the X10 distribution, but missing
14987 ## from X11. If we have X10, just use the installed library;
14988 ## otherwise, use our own copy.
14989 if test "${HAVE_X11}" = "yes" ; then
14991 $as_echo "#define HAVE_X11 1" >>confdefs.h
14994 if test "$USE_X_TOOLKIT" = "none"; then
14995 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
14997 OLDXMENU
="\${lwlibdir}/liblw.a"
14999 LIBXMENU
="\$(OLDXMENU)"
15000 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15001 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15003 ## For a syntactically valid Makefile; not actually used for anything.
15004 ## See comments in src/Makefile.in.
15006 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15007 if test "${HAVE_X_WINDOWS}" = "yes"; then
15016 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15029 if test "${HAVE_MENUS}" = "yes" ; then
15031 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15035 if test "${GNU_MALLOC}" = "yes" ; then
15037 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15042 if test "${REL_ALLOC}" = "yes" ; then
15044 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15047 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
15051 if test "$opsys" = "cygwin"; then
15052 CYGWIN_OBJ
="sheap.o"
15053 ## Cygwin differs because of its unexec().
15055 POST_ALLOC_OBJ
=lastfile.o
15058 PRE_ALLOC_OBJ
=lastfile.o
15065 # Configure gnulib here, now that we know LIBS.
15077 LIBC_FATAL_STDERR_
=1
15078 export LIBC_FATAL_STDERR_
15080 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15081 # for constant arguments. Useless!
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15083 $as_echo_n "checking for working alloca.h... " >&6; }
15084 if test "${ac_cv_working_alloca_h+set}" = set; then :
15085 $as_echo_n "(cached) " >&6
15087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 #include <alloca.h>
15093 char *p = (char *) alloca (2 * sizeof (int));
15099 if ac_fn_c_try_link
"$LINENO"; then :
15100 ac_cv_working_alloca_h
=yes
15102 ac_cv_working_alloca_h
=no
15104 rm -f core conftest.err conftest.
$ac_objext \
15105 conftest
$ac_exeext conftest.
$ac_ext
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15108 $as_echo "$ac_cv_working_alloca_h" >&6; }
15109 if test $ac_cv_working_alloca_h = yes; then
15111 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15116 $as_echo_n "checking for alloca... " >&6; }
15117 if test "${ac_cv_func_alloca_works+set}" = set; then :
15118 $as_echo_n "(cached) " >&6
15120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15123 # define alloca __builtin_alloca
15126 # include <malloc.h>
15127 # define alloca _alloca
15129 # ifdef HAVE_ALLOCA_H
15130 # include <alloca.h>
15135 # ifndef alloca /* predefined by HP cc +Olibcalls */
15146 char *p = (char *) alloca (1);
15152 if ac_fn_c_try_link
"$LINENO"; then :
15153 ac_cv_func_alloca_works
=yes
15155 ac_cv_func_alloca_works
=no
15157 rm -f core conftest.err conftest.
$ac_objext \
15158 conftest
$ac_exeext conftest.
$ac_ext
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15161 $as_echo "$ac_cv_func_alloca_works" >&6; }
15163 if test $ac_cv_func_alloca_works = yes; then
15165 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15168 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15169 # that cause trouble. Some versions do not even contain alloca or
15170 # contain a buggy version. If you still want to use their alloca,
15171 # use ar to extract alloca.o from them instead of compiling alloca.c.
15177 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15179 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
15183 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
15184 if test "${ac_cv_os_cray+set}" = set; then :
15185 $as_echo_n "(cached) " >&6
15187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189 #if defined CRAY && ! defined CRAY2
15196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15197 $EGREP "webecray" >/dev
/null
2>&1; then :
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15206 $as_echo "$ac_cv_os_cray" >&6; }
15207 if test $ac_cv_os_cray = yes; then
15208 for ac_func
in _getb67 GETB67 getb67
; do
15209 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15210 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15211 eval as_val
=\$
$as_ac_var
15212 if test "x$as_val" = x
""yes; then :
15214 cat >>confdefs.h
<<_ACEOF
15215 #define CRAY_STACKSEG_END $ac_func
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15225 $as_echo_n "checking stack direction for C alloca... " >&6; }
15226 if test "${ac_cv_c_stack_direction+set}" = set; then :
15227 $as_echo_n "(cached) " >&6
15229 if test "$cross_compiling" = yes; then :
15230 ac_cv_c_stack_direction
=0
15232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 $ac_includes_default
15236 find_stack_direction (int *addr, int depth)
15238 int dir, dummy = 0;
15241 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15242 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15243 return dir + dummy;
15247 main (int argc, char **argv)
15249 return find_stack_direction (0, argc + !argv + 20) < 0;
15252 if ac_fn_c_try_run
"$LINENO"; then :
15253 ac_cv_c_stack_direction
=1
15255 ac_cv_c_stack_direction
=-1
15257 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15258 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15263 $as_echo "$ac_cv_c_stack_direction" >&6; }
15264 cat >>confdefs.h
<<_ACEOF
15265 #define STACK_DIRECTION $ac_cv_c_stack_direction
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15275 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15276 if test "${ac_cv_c_bigendian+set}" = set; then :
15277 $as_echo_n "(cached) " >&6
15279 ac_cv_c_bigendian
=unknown
15280 # See if we're dealing with a universal compiler.
15281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283 #ifndef __APPLE_CC__
15284 not a universal capable compiler
15289 if ac_fn_c_try_compile
"$LINENO"; then :
15291 # Check for potential -arch flags. It is not universal unless
15292 # there are at least two -arch flags with different values.
15295 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15296 if test -n "$ac_prev"; then
15298 i?
86 | x86_64 | ppc | ppc64
)
15299 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15302 ac_cv_c_bigendian
=universal
15308 elif test "x$ac_word" = "x-arch"; then
15313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15314 if test $ac_cv_c_bigendian = unknown
; then
15315 # See if sys/param.h defines the BYTE_ORDER macro.
15316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 #include <sys/types.h>
15319 #include <sys/param.h>
15324 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15325 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15327 bogus endian macros
15334 if ac_fn_c_try_compile
"$LINENO"; then :
15335 # It does; now see whether it defined to BIG_ENDIAN or not.
15336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 #include <sys/types.h>
15339 #include <sys/param.h>
15344 #if BYTE_ORDER != BIG_ENDIAN
15352 if ac_fn_c_try_compile
"$LINENO"; then :
15353 ac_cv_c_bigendian
=yes
15355 ac_cv_c_bigendian
=no
15357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15361 if test $ac_cv_c_bigendian = unknown
; then
15362 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 #include <limits.h>
15370 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15371 bogus endian macros
15378 if ac_fn_c_try_compile
"$LINENO"; then :
15379 # It does; now see whether it defined to _BIG_ENDIAN or not.
15380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 #include <limits.h>
15387 #ifndef _BIG_ENDIAN
15395 if ac_fn_c_try_compile
"$LINENO"; then :
15396 ac_cv_c_bigendian
=yes
15398 ac_cv_c_bigendian
=no
15400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15404 if test $ac_cv_c_bigendian = unknown
; then
15405 # Compile a test program.
15406 if test "$cross_compiling" = yes; then :
15407 # Try to guess by grepping values from an object file.
15408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410 short int ascii_mm[] =
15411 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15412 short int ascii_ii[] =
15413 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15414 int use_ascii (int i) {
15415 return ascii_mm[i] + ascii_ii[i];
15417 short int ebcdic_ii[] =
15418 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15419 short int ebcdic_mm[] =
15420 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15421 int use_ebcdic (int i) {
15422 return ebcdic_mm[i] + ebcdic_ii[i];
15429 return use_ascii (foo) == use_ebcdic (foo);
15434 if ac_fn_c_try_compile
"$LINENO"; then :
15435 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15436 ac_cv_c_bigendian
=yes
15438 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15439 if test "$ac_cv_c_bigendian" = unknown
; then
15440 ac_cv_c_bigendian
=no
15442 # finding both strings is unlikely to happen, but who knows?
15443 ac_cv_c_bigendian
=unknown
15447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 $ac_includes_default
15456 /* Are we little or big endian? From Harbison&Steele. */
15460 char c[sizeof (long int)];
15463 return u.c[sizeof (long int) - 1] == 1;
15469 if ac_fn_c_try_run
"$LINENO"; then :
15470 ac_cv_c_bigendian
=no
15472 ac_cv_c_bigendian
=yes
15474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15481 $as_echo "$ac_cv_c_bigendian" >&6; }
15482 case $ac_cv_c_bigendian in #(
15484 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15490 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15494 as_fn_error
"unknown endianness
15495 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15500 $as_echo_n "checking for inline... " >&6; }
15501 if test "${ac_cv_c_inline+set}" = set; then :
15502 $as_echo_n "(cached) " >&6
15505 for ac_kw
in inline __inline__ __inline
; do
15506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 #ifndef __cplusplus
15510 static $ac_kw foo_t static_foo () {return 0; }
15511 $ac_kw foo_t foo () {return 0; }
15515 if ac_fn_c_try_compile
"$LINENO"; then :
15516 ac_cv_c_inline
=$ac_kw
15518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15519 test "$ac_cv_c_inline" != no
&& break
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15524 $as_echo "$ac_cv_c_inline" >&6; }
15526 case $ac_cv_c_inline in
15529 case $ac_cv_c_inline in
15531 *) ac_val
=$ac_cv_c_inline;;
15533 cat >>confdefs.h
<<_ACEOF
15534 #ifndef __cplusplus
15535 #define inline $ac_val
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15543 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15544 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15545 $as_echo_n "(cached) " >&6
15547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549 /* On HP-UX before 11.23, strtold returns a struct instead of
15550 long double. Reject implementations like that, by requiring
15551 compatibility with the C99 prototype. */
15552 #include <stdlib.h>
15553 static long double (*p) (char const *, char **) = strtold;
15555 test (char const *nptr, char **endptr)
15558 r = strtold (nptr, endptr);
15564 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15569 if ac_fn_c_try_link
"$LINENO"; then :
15570 gl_cv_func_c99_strtold
=yes
15572 gl_cv_func_c99_strtold
=no
15574 rm -f core conftest.err conftest.
$ac_objext \
15575 conftest
$ac_exeext conftest.
$ac_ext
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15578 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15579 if test $gl_cv_func_c99_strtold = yes; then
15581 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15593 GNULIB_EUIDACCESS
=0;
15594 GNULIB_FACCESSAT
=0;
15597 GNULIB_FDATASYNC
=0;
15599 GNULIB_FTRUNCATE
=0;
15601 GNULIB_GETDOMAINNAME
=0;
15602 GNULIB_GETDTABLESIZE
=0;
15603 GNULIB_GETGROUPS
=0;
15604 GNULIB_GETHOSTNAME
=0;
15606 GNULIB_GETLOGIN_R
=0;
15607 GNULIB_GETPAGESIZE
=0;
15608 GNULIB_GETUSERSHELL
=0;
15609 GNULIB_GROUP_MEMBER
=0;
15621 GNULIB_READLINKAT
=0;
15623 GNULIB_SETHOSTNAME
=0;
15626 GNULIB_SYMLINKAT
=0;
15627 GNULIB_TTYNAME_R
=0;
15628 GNULIB_UNISTD_H_NONBLOCKING
=0;
15629 GNULIB_UNISTD_H_SIGPIPE
=0;
15644 HAVE_GETDTABLESIZE
=1;
15646 HAVE_GETHOSTNAME
=1;
15648 HAVE_GETPAGESIZE
=1;
15649 HAVE_GROUP_MEMBER
=1;
15659 HAVE_SETHOSTNAME
=1;
15665 HAVE_DECL_ENVIRON
=1;
15666 HAVE_DECL_FCHDIR
=1;
15667 HAVE_DECL_FDATASYNC
=1;
15668 HAVE_DECL_GETDOMAINNAME
=1;
15669 HAVE_DECL_GETLOGIN_R
=1;
15670 HAVE_DECL_GETPAGESIZE
=1;
15671 HAVE_DECL_GETUSERSHELL
=1;
15672 HAVE_DECL_SETHOSTNAME
=1;
15673 HAVE_DECL_TTYNAME_R
=1;
15675 HAVE_SYS_PARAM_H
=0;
15680 REPLACE_FCHOWNAT
=0;
15681 REPLACE_FTRUNCATE
=0;
15683 REPLACE_GETDOMAINNAME
=0;
15684 REPLACE_GETLOGIN_R
=0;
15685 REPLACE_GETGROUPS
=0;
15686 REPLACE_GETPAGESIZE
=0;
15695 REPLACE_READLINK
=0;
15699 REPLACE_TTYNAME_R
=0;
15701 REPLACE_UNLINKAT
=0;
15704 UNISTD_H_HAVE_WINSOCK2_H
=0;
15705 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
15709 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
15710 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
15711 $as_echo_n "(cached) " >&6
15713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15716 #include <sys/types.h>
15717 #include <sys/stat.h>
15721 struct stat s; s.st_dm_mode;
15726 if ac_fn_c_try_compile
"$LINENO"; then :
15727 ac_cv_struct_st_dm_mode
=yes
15729 ac_cv_struct_st_dm_mode
=no
15731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
15734 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
15736 if test $ac_cv_struct_st_dm_mode = yes; then
15738 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
15743 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
15744 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
15750 cat >>confdefs.h
<<_ACEOF
15751 #define HAVE_DECL_STRMODE $ac_have_decl
15757 GNULIB_CALLOC_POSIX
=0;
15758 GNULIB_CANONICALIZE_FILE_NAME
=0;
15759 GNULIB_GETLOADAVG
=0;
15760 GNULIB_GETSUBOPT
=0;
15762 GNULIB_MALLOC_POSIX
=0;
15766 GNULIB_MKOSTEMPS
=0;
15769 GNULIB_POSIX_OPENPT
=0;
15771 GNULIB_PTSNAME_R
=0;
15775 GNULIB_REALLOC_POSIX
=0;
15782 GNULIB_SYSTEM_POSIX
=0;
15788 HAVE_CANONICALIZE_FILE_NAME
=1;
15789 HAVE_DECL_GETLOADAVG
=1;
15797 HAVE_POSIX_OPENPT
=1;
15806 HAVE_DECL_SETENV
=1;
15810 HAVE_STRUCT_RANDOM_DATA
=1;
15811 HAVE_SYS_LOADAVG_H
=0;
15813 HAVE_DECL_UNSETENV
=1;
15815 REPLACE_CANONICALIZE_FILE_NAME
=0;
15819 REPLACE_PTSNAME_R
=0;
15821 REPLACE_RANDOM_R
=0;
15823 REPLACE_REALPATH
=0;
15826 REPLACE_UNSETENV
=0;
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15832 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15833 if test "${gl_cv_have_include_next+set}" = set; then :
15834 $as_echo_n "(cached) " >&6
15836 rm -rf conftestd1a conftestd1b conftestd2
15837 mkdir conftestd1a conftestd1b conftestd2
15838 cat <<EOF > conftestd1a/conftest.h
15839 #define DEFINED_IN_CONFTESTD1
15840 #include_next <conftest.h>
15841 #ifdef DEFINED_IN_CONFTESTD2
15844 #error "include_next doesn't work"
15847 cat <<EOF > conftestd1b/conftest.h
15848 #define DEFINED_IN_CONFTESTD1
15850 #include_next <conftest.h>
15851 #ifdef DEFINED_IN_CONFTESTD2
15854 #error "include_next doesn't work"
15857 cat <<EOF > conftestd2/conftest.h
15858 #ifndef DEFINED_IN_CONFTESTD1
15859 #error "include_next test doesn't work"
15861 #define DEFINED_IN_CONFTESTD2
15863 gl_save_CPPFLAGS
="$CPPFLAGS"
15864 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15867 #include <conftest.h>
15869 if ac_fn_c_try_compile
"$LINENO"; then :
15870 gl_cv_have_include_next
=yes
15872 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15875 #include <conftest.h>
15877 if ac_fn_c_try_compile
"$LINENO"; then :
15878 gl_cv_have_include_next
=buggy
15880 gl_cv_have_include_next
=no
15882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15886 CPPFLAGS
="$gl_save_CPPFLAGS"
15887 rm -rf conftestd1a conftestd1b conftestd2
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15891 $as_echo "$gl_cv_have_include_next" >&6; }
15892 PRAGMA_SYSTEM_HEADER
=
15893 if test $gl_cv_have_include_next = yes; then
15894 INCLUDE_NEXT
=include_next
15895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
15896 if test -n "$GCC"; then
15897 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
15900 if test $gl_cv_have_include_next = buggy
; then
15901 INCLUDE_NEXT
=include
15902 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
15904 INCLUDE_NEXT
=include
15905 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15912 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15913 if test "${gl_cv_pragma_columns+set}" = set; then :
15914 $as_echo_n "(cached) " >&6
15916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15925 $EGREP "choke me" >/dev
/null
2>&1; then :
15926 gl_cv_pragma_columns
=yes
15928 gl_cv_pragma_columns
=no
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15935 $as_echo "$gl_cv_pragma_columns" >&6; }
15936 if test $gl_cv_pragma_columns = yes; then
15937 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
15958 if test $gl_cv_have_include_next = yes; then
15959 gl_cv_next_getopt_h
='<'getopt.h
'>'
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
15962 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15963 if test "${gl_cv_next_getopt_h+set}" = set; then :
15964 $as_echo_n "(cached) " >&6
15967 if test $ac_cv_header_getopt_h = yes; then
15970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <getopt.h>
15976 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15977 *) gl_absname_cpp
="$ac_cpp" ;;
15982 gl_dirsep_regex
='[/\\]'
15985 gl_dirsep_regex
='\/'
15988 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15990 gl_header_literal_regex
=`echo 'getopt.h' \
15991 | sed -e "$gl_make_literal_regex_sed"`
15992 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15993 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15998 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15999 sed -n "$gl_absolute_header_sed"`'"'
16001 gl_cv_next_getopt_h
='<'getopt.h
'>'
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16007 $as_echo "$gl_cv_next_getopt_h" >&6; }
16009 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
16011 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16012 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16013 gl_next_as_first_directive
='<'getopt.h
'>'
16015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16016 gl_next_as_first_directive
=$gl_cv_next_getopt_h
16018 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
16023 if test $ac_cv_header_getopt_h = yes; then
16032 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16033 for ac_header
in getopt.h
16035 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16036 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
16037 cat >>confdefs.h
<<_ACEOF
16038 #define HAVE_GETOPT_H 1
16042 gl_replace_getopt
=yes
16049 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16050 for ac_func
in getopt_long_only
16052 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16053 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
16054 cat >>confdefs.h
<<_ACEOF
16055 #define HAVE_GETOPT_LONG_ONLY 1
16059 gl_replace_getopt
=yes
16065 if test -z "$gl_replace_getopt"; then
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16067 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16068 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16069 $as_echo_n "(cached) " >&6
16072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16074 #include <unistd.h>
16078 int *p = &optreset; return optreset;
16083 if ac_fn_c_try_link
"$LINENO"; then :
16086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16088 #include <getopt.h>
16092 return !getopt_clip;
16097 if ac_fn_c_try_compile
"$LINENO"; then :
16102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16104 rm -f core conftest.err conftest.
$ac_objext \
16105 conftest
$ac_exeext conftest.
$ac_ext
16107 gl_save_CPPFLAGS
=$CPPFLAGS
16108 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16109 if test "$cross_compiling" = yes; then :
16111 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
16112 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
16113 *) gl_cv_func_getopt_posix
="guessing yes";;
16117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16120 #include <unistd.h>
16121 #include <stdlib.h>
16122 #include <string.h>
16128 static char program[] = "program";
16129 static char a[] = "-a";
16130 static char foo[] = "foo";
16131 static char bar[] = "bar";
16132 char *argv[] = { program, a, foo, bar, NULL };
16135 optind = OPTIND_MIN;
16138 c = getopt (4, argv, "ab");
16141 c = getopt (4, argv, "ab");
16144 if (!(optind == 2))
16147 /* Some internal state exists at this point. */
16149 static char program[] = "program";
16150 static char donald[] = "donald";
16151 static char p[] = "-p";
16152 static char billy[] = "billy";
16153 static char duck[] = "duck";
16154 static char a[] = "-a";
16155 static char bar[] = "bar";
16156 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
16159 optind = OPTIND_MIN;
16162 c = getopt (7, argv, "+abp:q:");
16165 if (!(strcmp (argv[0], "program") == 0))
16167 if (!(strcmp (argv[1], "donald") == 0))
16169 if (!(strcmp (argv[2], "-p") == 0))
16171 if (!(strcmp (argv[3], "billy") == 0))
16173 if (!(strcmp (argv[4], "duck") == 0))
16175 if (!(strcmp (argv[5], "-a") == 0))
16177 if (!(strcmp (argv[6], "bar") == 0))
16179 if (!(optind == 1))
16182 /* Detect MacOS 10.5, AIX 7.1 bug. */
16184 static char program[] = "program";
16185 static char ab[] = "-ab";
16186 char *argv[3] = { program, ab, NULL };
16187 optind = OPTIND_MIN;
16189 if (getopt (2, argv, "ab:") != 'a')
16191 if (getopt (2, argv, "ab:") != '?')
16203 if ac_fn_c_try_run
"$LINENO"; then :
16204 gl_cv_func_getopt_posix
=yes
16206 gl_cv_func_getopt_posix
=no
16208 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16209 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16212 CPPFLAGS
=$gl_save_CPPFLAGS
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16216 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16217 case "$gl_cv_func_getopt_posix" in
16218 *no
) gl_replace_getopt
=yes ;;
16222 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16224 $as_echo_n "checking for working GNU getopt function... " >&6; }
16225 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16226 $as_echo_n "(cached) " >&6
16228 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16229 # optstring is necessary for programs like m4 that have POSIX-mandated
16230 # semantics for supporting options interspersed with files.
16231 # Also, since getopt_long is a GNU extension, we require optind=0.
16232 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16233 # so take care to revert to the correct (non-)export state.
16234 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16235 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16236 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
16237 x
) gl_had_POSIXLY_CORRECT
=yes ;;
16238 *) gl_had_POSIXLY_CORRECT
= ;;
16241 export POSIXLY_CORRECT
16242 if test "$cross_compiling" = yes; then :
16243 case $host_os:$ac_cv_have_decl_optreset in
16244 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
16245 *:yes) gl_cv_func_getopt_gnu
=no
;;
16246 *) gl_cv_func_getopt_gnu
=yes;;
16250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 #include <getopt.h>
16253 #include <stddef.h>
16254 #include <string.h>
16256 #include <stdlib.h>
16257 #if defined __MACH__ && defined __APPLE__
16258 /* Avoid a crash on MacOS X. */
16259 #include <mach/mach.h>
16260 #include <mach/mach_error.h>
16261 #include <mach/thread_status.h>
16262 #include <mach/exception.h>
16263 #include <mach/task.h>
16264 #include <pthread.h>
16265 /* The exception port on which our thread listens. */
16266 static mach_port_t our_exception_port;
16267 /* The main function of the thread listening for exceptions of type
16270 mach_exception_thread (void *arg)
16272 /* Buffer for a message to be received. */
16274 mach_msg_header_t head;
16275 mach_msg_body_t msgh_body;
16278 mach_msg_return_t retval;
16279 /* Wait for a message on the exception port. */
16280 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
16281 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
16282 if (retval != MACH_MSG_SUCCESS)
16287 nocrash_init (void)
16289 mach_port_t self = mach_task_self ();
16290 /* Allocate a port on which the thread shall listen for exceptions. */
16291 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
16293 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
16294 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
16295 MACH_MSG_TYPE_MAKE_SEND)
16297 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
16299 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
16300 /* Create the thread listening on the exception port. */
16301 pthread_attr_t attr;
16303 if (pthread_attr_init (&attr) == 0
16304 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
16305 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
16306 pthread_attr_destroy (&attr);
16307 /* Replace the exception port info for these exceptions with our own.
16308 Note that we replace the exception port for the entire task, not only
16309 for a particular thread. This has the effect that when our exception
16310 port gets the message, the thread specific exception port has already
16311 been asked, and we don't need to bother about it.
16312 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
16313 task_set_exception_ports (self, mask, our_exception_port,
16314 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
16319 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16320 /* Avoid a crash on native Windows. */
16321 #define WIN32_LEAN_AND_MEAN
16322 #include <windows.h>
16323 #include <winerror.h>
16325 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
16327 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
16329 case EXCEPTION_ACCESS_VIOLATION:
16330 case EXCEPTION_IN_PAGE_ERROR:
16331 case EXCEPTION_STACK_OVERFLOW:
16332 case EXCEPTION_GUARD_PAGE:
16333 case EXCEPTION_PRIV_INSTRUCTION:
16334 case EXCEPTION_ILLEGAL_INSTRUCTION:
16335 case EXCEPTION_DATATYPE_MISALIGNMENT:
16336 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
16337 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
16340 return EXCEPTION_CONTINUE_SEARCH;
16343 nocrash_init (void)
16345 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
16348 /* Avoid a crash on POSIX systems. */
16349 #include <signal.h>
16350 /* A POSIX signal handler. */
16352 exception_handler (int sig)
16357 nocrash_init (void)
16360 signal (SIGSEGV, exception_handler);
16363 signal (SIGBUS, exception_handler);
16377 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16378 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16379 OSF/1 5.1, Solaris 10. */
16381 static char conftest[] = "conftest";
16382 static char plus[] = "-+";
16383 char *argv[3] = { conftest, plus, NULL };
16385 if (getopt (2, argv, "+a") != '?')
16388 /* This code succeeds on glibc 2.8, mingw,
16389 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16390 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16392 static char program[] = "program";
16393 static char p[] = "-p";
16394 static char foo[] = "foo";
16395 static char bar[] = "bar";
16396 char *argv[] = { program, p, foo, bar, NULL };
16399 if (getopt (4, argv, "p::") != 'p')
16401 else if (optarg != NULL)
16403 else if (getopt (4, argv, "p::") != -1)
16405 else if (optind != 2)
16408 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16410 static char program[] = "program";
16411 static char foo[] = "foo";
16412 static char p[] = "-p";
16413 char *argv[] = { program, foo, p, NULL };
16415 if (getopt (3, argv, "-p") != 1)
16417 else if (getopt (3, argv, "-p") != 'p')
16420 /* This code fails on glibc 2.11. */
16422 static char program[] = "program";
16423 static char b[] = "-b";
16424 static char a[] = "-a";
16425 char *argv[] = { program, b, a, NULL };
16426 optind = opterr = 0;
16427 if (getopt (3, argv, "+:a:b") != 'b')
16429 else if (getopt (3, argv, "+:a:b") != ':')
16432 /* This code dumps core on glibc 2.14. */
16434 static char program[] = "program";
16435 static char w[] = "-W";
16436 static char dummy[] = "dummy";
16437 char *argv[] = { program, w, dummy, NULL };
16438 optind = opterr = 1;
16439 if (getopt (3, argv, "W;") != 'W')
16448 if ac_fn_c_try_run
"$LINENO"; then :
16449 gl_cv_func_getopt_gnu
=yes
16451 gl_cv_func_getopt_gnu
=no
16453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16457 case $gl_had_POSIXLY_CORRECT in
16459 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
16460 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16465 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16466 if test "$gl_cv_func_getopt_gnu" = "no"; then
16467 gl_replace_getopt
=yes
16478 if test -n "$gl_replace_getopt"; then :
16485 if test $REPLACE_GETOPT = 1; then
16489 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16495 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16496 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
16502 cat >>confdefs.h
<<_ACEOF
16503 #define HAVE_DECL_GETENV $ac_have_decl
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16508 $as_echo_n "checking for unsigned long long int... " >&6; }
16509 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16510 $as_echo_n "(cached) " >&6
16512 ac_cv_type_unsigned_long_long_int
=yes
16513 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
16514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16517 /* For now, do not test the preprocessor; as of 2007 there are too many
16518 implementations with broken preprocessors. Perhaps this can
16519 be revisited in 2012. In the meantime, code should not expect
16520 #if to work with literals wider than 32 bits. */
16521 /* Test literals. */
16522 long long int ll = 9223372036854775807ll;
16523 long long int nll = -9223372036854775807LL;
16524 unsigned long long int ull = 18446744073709551615ULL;
16525 /* Test constant expressions. */
16526 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16528 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16534 /* Test availability of runtime routines for shift and division. */
16535 long long int llmax = 9223372036854775807ll;
16536 unsigned long long int ullmax = 18446744073709551615ull;
16537 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16538 | (llmax / ll) | (llmax % ll)
16539 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16540 | (ullmax / ull) | (ullmax % ull));
16546 if ac_fn_c_try_link
"$LINENO"; then :
16549 ac_cv_type_unsigned_long_long_int
=no
16551 rm -f core conftest.err conftest.
$ac_objext \
16552 conftest
$ac_exeext conftest.
$ac_ext
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16556 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16557 if test $ac_cv_type_unsigned_long_long_int = yes; then
16559 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16566 $as_echo_n "checking for long long int... " >&6; }
16567 if test "${ac_cv_type_long_long_int+set}" = set; then :
16568 $as_echo_n "(cached) " >&6
16570 ac_cv_type_long_long_int
=yes
16571 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
16572 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
16573 if test $ac_cv_type_long_long_int = yes; then
16574 if test "$cross_compiling" = yes; then :
16577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16578 /* end confdefs.h. */
16579 #include <limits.h>
16582 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16583 # define LLONG_MAX (HALF - 1 + HALF)
16588 long long int n = 1;
16592 long long int m = n << i;
16595 if (LLONG_MAX / 2 < m)
16603 if ac_fn_c_try_run
"$LINENO"; then :
16606 ac_cv_type_long_long_int
=no
16608 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16609 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16616 $as_echo "$ac_cv_type_long_long_int" >&6; }
16617 if test $ac_cv_type_long_long_int = yes; then
16619 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16628 gl_cv_c_multiarch
=no
16629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631 #ifndef __APPLE_CC__
16632 not a universal capable compiler
16637 if ac_fn_c_try_compile
"$LINENO"; then :
16641 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16642 if test -n "$prev"; then
16644 i?
86 | x86_64 | ppc | ppc64
)
16645 if test -z "$arch" ||
test "$arch" = "$word"; then
16648 gl_cv_c_multiarch
=yes
16654 if test "x$word" = "x-arch"; then
16661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16662 if test $gl_cv_c_multiarch = yes; then
16663 APPLE_UNIVERSAL_BUILD
=1
16665 APPLE_UNIVERSAL_BUILD
=0
16672 if test $ac_cv_type_long_long_int = yes; then
16673 HAVE_LONG_LONG_INT
=1
16675 HAVE_LONG_LONG_INT
=0
16679 if test $ac_cv_type_unsigned_long_long_int = yes; then
16680 HAVE_UNSIGNED_LONG_LONG_INT
=1
16682 HAVE_UNSIGNED_LONG_LONG_INT
=0
16687 if test $ac_cv_header_wchar_h = yes; then
16694 if test $ac_cv_header_inttypes_h = yes; then
16701 if test $ac_cv_header_sys_types_h = yes; then
16717 if test $gl_cv_have_include_next = yes; then
16718 gl_cv_next_stdint_h
='<'stdint.h
'>'
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16721 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16722 if test "${gl_cv_next_stdint_h+set}" = set; then :
16723 $as_echo_n "(cached) " >&6
16726 if test $ac_cv_header_stdint_h = yes; then
16729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731 #include <stdint.h>
16735 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16736 *) gl_absname_cpp
="$ac_cpp" ;;
16741 gl_dirsep_regex
='[/\\]'
16744 gl_dirsep_regex
='\/'
16747 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16749 gl_header_literal_regex
=`echo 'stdint.h' \
16750 | sed -e "$gl_make_literal_regex_sed"`
16751 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16752 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16757 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16758 sed -n "$gl_absolute_header_sed"`'"'
16760 gl_cv_next_stdint_h
='<'stdint.h
'>'
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16766 $as_echo "$gl_cv_next_stdint_h" >&6; }
16768 NEXT_STDINT_H
=$gl_cv_next_stdint_h
16770 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16772 gl_next_as_first_directive
='<'stdint.h
'>'
16774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16775 gl_next_as_first_directive
=$gl_cv_next_stdint_h
16777 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
16782 if test $ac_cv_header_stdint_h = yes; then
16789 if test $ac_cv_header_stdint_h = yes; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16791 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16792 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16793 $as_echo_n "(cached) " >&6
16795 gl_cv_header_working_stdint_h
=no
16796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16800 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16801 #include <stdint.h>
16802 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16803 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16804 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16809 included before <wchar.h>. */
16810 #include <stddef.h>
16811 #include <signal.h>
16813 # include <stdio.h>
16815 # include <wchar.h>
16820 int8_t a1 = INT8_MAX;
16821 int8_t a1min = INT8_MIN;
16824 int16_t a2 = INT16_MAX;
16825 int16_t a2min = INT16_MIN;
16828 int32_t a3 = INT32_MAX;
16829 int32_t a3min = INT32_MIN;
16832 int64_t a4 = INT64_MAX;
16833 int64_t a4min = INT64_MIN;
16836 uint8_t b1 = UINT8_MAX;
16838 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16841 uint16_t b2 = UINT16_MAX;
16844 uint32_t b3 = UINT32_MAX;
16847 uint64_t b4 = UINT64_MAX;
16849 int_least8_t c1 = INT8_C (0x7f);
16850 int_least8_t c1max = INT_LEAST8_MAX;
16851 int_least8_t c1min = INT_LEAST8_MIN;
16852 int_least16_t c2 = INT16_C (0x7fff);
16853 int_least16_t c2max = INT_LEAST16_MAX;
16854 int_least16_t c2min = INT_LEAST16_MIN;
16855 int_least32_t c3 = INT32_C (0x7fffffff);
16856 int_least32_t c3max = INT_LEAST32_MAX;
16857 int_least32_t c3min = INT_LEAST32_MIN;
16858 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16859 int_least64_t c4max = INT_LEAST64_MAX;
16860 int_least64_t c4min = INT_LEAST64_MIN;
16861 uint_least8_t d1 = UINT8_C (0xff);
16862 uint_least8_t d1max = UINT_LEAST8_MAX;
16863 uint_least16_t d2 = UINT16_C (0xffff);
16864 uint_least16_t d2max = UINT_LEAST16_MAX;
16865 uint_least32_t d3 = UINT32_C (0xffffffff);
16866 uint_least32_t d3max = UINT_LEAST32_MAX;
16867 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16868 uint_least64_t d4max = UINT_LEAST64_MAX;
16869 int_fast8_t e1 = INT_FAST8_MAX;
16870 int_fast8_t e1min = INT_FAST8_MIN;
16871 int_fast16_t e2 = INT_FAST16_MAX;
16872 int_fast16_t e2min = INT_FAST16_MIN;
16873 int_fast32_t e3 = INT_FAST32_MAX;
16874 int_fast32_t e3min = INT_FAST32_MIN;
16875 int_fast64_t e4 = INT_FAST64_MAX;
16876 int_fast64_t e4min = INT_FAST64_MIN;
16877 uint_fast8_t f1 = UINT_FAST8_MAX;
16878 uint_fast16_t f2 = UINT_FAST16_MAX;
16879 uint_fast32_t f3 = UINT_FAST32_MAX;
16880 uint_fast64_t f4 = UINT_FAST64_MAX;
16882 intptr_t g = INTPTR_MAX;
16883 intptr_t gmin = INTPTR_MIN;
16886 uintptr_t h = UINTPTR_MAX;
16888 intmax_t i = INTMAX_MAX;
16889 uintmax_t j = UINTMAX_MAX;
16891 #include <limits.h> /* for CHAR_BIT */
16892 #define TYPE_MINIMUM(t) \
16893 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16894 #define TYPE_MAXIMUM(t) \
16895 ((t) ((t) 0 < (t) -1 \
16897 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16900 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16901 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16903 /* Detect bug in FreeBSD 6.0 / ia64. */
16904 int check_SIG_ATOMIC:
16905 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16906 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16908 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16910 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16911 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16913 /* Detect bug in mingw. */
16915 WINT_MIN == TYPE_MINIMUM (wint_t)
16916 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16919 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16921 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16922 int check_UINT16_C:
16923 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16925 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16927 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16930 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16933 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16936 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16938 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16939 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16940 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16941 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16942 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16943 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16944 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16945 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16946 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16947 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16948 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16959 if ac_fn_c_try_compile
"$LINENO"; then :
16960 if test "$cross_compiling" = yes; then :
16961 gl_cv_header_working_stdint_h
=yes
16964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16968 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16969 #include <stdint.h>
16972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16973 included before <wchar.h>. */
16974 #include <stddef.h>
16975 #include <signal.h>
16977 # include <stdio.h>
16979 # include <wchar.h>
16984 #include <string.h>
16985 #define MVAL(macro) MVAL1(macro)
16986 #define MVAL1(expression) #expression
16987 static const char *macro_values[] =
17021 for (mv = macro_values; *mv != NULL; mv++)
17023 const char *value = *mv;
17024 /* Test whether it looks like a cast expression. */
17025 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17026 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17027 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17028 || strncmp (value, "((int)"/*)*/, 6) == 0
17029 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17030 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17031 return mv - macro_values + 1;
17039 if ac_fn_c_try_run
"$LINENO"; then :
17040 gl_cv_header_working_stdint_h
=yes
17042 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17043 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17052 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17054 if test "$gl_cv_header_working_stdint_h" = yes; then
17057 for ac_header
in sys
/inttypes.h sys
/bitypes.h
17059 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17060 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17061 eval as_val
=\$
$as_ac_Header
17062 if test "x$as_val" = x
""yes; then :
17063 cat >>confdefs.h
<<_ACEOF
17064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17071 if test $ac_cv_header_sys_inttypes_h = yes; then
17072 HAVE_SYS_INTTYPES_H
=1
17074 HAVE_SYS_INTTYPES_H
=0
17077 if test $ac_cv_header_sys_bitypes_h = yes; then
17078 HAVE_SYS_BITYPES_H
=1
17080 HAVE_SYS_BITYPES_H
=0
17086 if test $APPLE_UNIVERSAL_BUILD = 0; then
17089 for gltype
in ptrdiff_t size_t
; do
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17091 $as_echo_n "checking for bit size of $gltype... " >&6; }
17092 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17093 $as_echo_n "(cached) " >&6
17095 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17096 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17097 included before <wchar.h>. */
17098 #include <stddef.h>
17099 #include <signal.h>
17101 # include <stdio.h>
17103 # include <wchar.h>
17106 #include <limits.h>"; then :
17112 eval gl_cv_bitsizeof_
${gltype}=\
$result
17115 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17117 $as_echo "$ac_res" >&6; }
17118 eval result
=\
$gl_cv_bitsizeof_${gltype}
17119 if test $result = unknown
; then
17122 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17123 cat >>confdefs.h
<<_ACEOF
17124 #define BITSIZEOF_${GLTYPE} $result
17127 eval BITSIZEOF_
${GLTYPE}=\
$result
17134 for gltype
in sig_atomic_t wchar_t wint_t
; do
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17136 $as_echo_n "checking for bit size of $gltype... " >&6; }
17137 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17138 $as_echo_n "(cached) " >&6
17140 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17141 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17142 included before <wchar.h>. */
17143 #include <stddef.h>
17144 #include <signal.h>
17146 # include <stdio.h>
17148 # include <wchar.h>
17151 #include <limits.h>"; then :
17157 eval gl_cv_bitsizeof_
${gltype}=\
$result
17160 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17162 $as_echo "$ac_res" >&6; }
17163 eval result
=\
$gl_cv_bitsizeof_${gltype}
17164 if test $result = unknown
; then
17167 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17168 cat >>confdefs.h
<<_ACEOF
17169 #define BITSIZEOF_${GLTYPE} $result
17172 eval BITSIZEOF_
${GLTYPE}=\
$result
17178 for gltype
in sig_atomic_t wchar_t wint_t
; do
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17180 $as_echo_n "checking whether $gltype is signed... " >&6; }
17181 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17182 $as_echo_n "(cached) " >&6
17184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17185 /* end confdefs.h. */
17187 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17188 included before <wchar.h>. */
17189 #include <stddef.h>
17190 #include <signal.h>
17192 # include <stdio.h>
17194 # include <wchar.h>
17197 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17206 if ac_fn_c_try_compile
"$LINENO"; then :
17211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17212 eval gl_cv_type_
${gltype}_signed
=\
$result
17215 eval ac_res
=\
$gl_cv_type_${gltype}_signed
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17217 $as_echo "$ac_res" >&6; }
17218 eval result
=\
$gl_cv_type_${gltype}_signed
17219 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17220 if test "$result" = yes; then
17221 cat >>confdefs.h
<<_ACEOF
17222 #define HAVE_SIGNED_${GLTYPE} 1
17225 eval HAVE_SIGNED_
${GLTYPE}=1
17227 eval HAVE_SIGNED_
${GLTYPE}=0
17232 gl_cv_type_ptrdiff_t_signed
=yes
17233 gl_cv_type_size_t_signed
=no
17234 if test $APPLE_UNIVERSAL_BUILD = 0; then
17237 for gltype
in ptrdiff_t size_t
; do
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17239 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17240 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17241 $as_echo_n "(cached) " >&6
17243 eval gl_cv_type_
${gltype}_suffix
=no
17244 eval result
=\
$gl_cv_type_${gltype}_signed
17245 if test "$result" = yes; then
17250 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17252 '') gltype1
='int';;
17253 l
) gltype1
='long int';;
17254 ll
) gltype1
='long long int';;
17255 i64
) gltype1
='__int64';;
17256 u
) gltype1
='unsigned int';;
17257 ul
) gltype1
='unsigned long int';;
17258 ull
) gltype1
='unsigned long long int';;
17259 ui64
)gltype1
='unsigned __int64';;
17261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17264 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17265 included before <wchar.h>. */
17266 #include <stddef.h>
17267 #include <signal.h>
17269 # include <stdio.h>
17271 # include <wchar.h>
17274 extern $gltype foo;
17275 extern $gltype1 foo;
17284 if ac_fn_c_try_compile
"$LINENO"; then :
17285 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17288 eval result
=\
$gl_cv_type_${gltype}_suffix
17289 test "$result" != no
&& break
17292 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17294 $as_echo "$ac_res" >&6; }
17295 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17296 eval result
=\
$gl_cv_type_${gltype}_suffix
17297 test "$result" = no
&& result
=
17298 eval ${GLTYPE}_SUFFIX
=\
$result
17299 cat >>confdefs.h
<<_ACEOF
17300 #define ${GLTYPE}_SUFFIX $result
17309 for gltype
in sig_atomic_t wchar_t wint_t
; do
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17311 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17312 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17313 $as_echo_n "(cached) " >&6
17315 eval gl_cv_type_
${gltype}_suffix
=no
17316 eval result
=\
$gl_cv_type_${gltype}_signed
17317 if test "$result" = yes; then
17322 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
17324 '') gltype1
='int';;
17325 l
) gltype1
='long int';;
17326 ll
) gltype1
='long long int';;
17327 i64
) gltype1
='__int64';;
17328 u
) gltype1
='unsigned int';;
17329 ul
) gltype1
='unsigned long int';;
17330 ull
) gltype1
='unsigned long long int';;
17331 ui64
)gltype1
='unsigned __int64';;
17333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17336 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17337 included before <wchar.h>. */
17338 #include <stddef.h>
17339 #include <signal.h>
17341 # include <stdio.h>
17343 # include <wchar.h>
17346 extern $gltype foo;
17347 extern $gltype1 foo;
17356 if ac_fn_c_try_compile
"$LINENO"; then :
17357 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
17359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17360 eval result
=\
$gl_cv_type_${gltype}_suffix
17361 test "$result" != no
&& break
17364 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17366 $as_echo "$ac_res" >&6; }
17367 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17368 eval result
=\
$gl_cv_type_${gltype}_suffix
17369 test "$result" = no
&& result
=
17370 eval ${GLTYPE}_SUFFIX
=\
$result
17371 cat >>confdefs.h
<<_ACEOF
17372 #define ${GLTYPE}_SUFFIX $result
17379 if test $BITSIZEOF_WINT_T -lt 32; then
17380 BITSIZEOF_WINT_T
=32
17386 if test -n "$STDINT_H"; then
17387 GL_GENERATE_STDINT_H_TRUE
=
17388 GL_GENERATE_STDINT_H_FALSE
='#'
17390 GL_GENERATE_STDINT_H_TRUE
='#'
17391 GL_GENERATE_STDINT_H_FALSE
=
17400 GNULIB_STRTOIMAX
=0;
17401 GNULIB_STRTOUMAX
=0;
17402 HAVE_DECL_IMAXABS
=1;
17403 HAVE_DECL_IMAXDIV
=1;
17404 HAVE_DECL_STRTOIMAX
=1;
17405 HAVE_DECL_STRTOUMAX
=1;
17406 REPLACE_STRTOIMAX
=0;
17407 INT32_MAX_LT_INTMAX_MAX
=1;
17408 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
17409 PRI_MACROS_BROKEN
=0;
17410 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
17411 UINT32_MAX_LT_UINTMAX_MAX
=1;
17412 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
17428 if test $gl_cv_have_include_next = yes; then
17429 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17432 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17433 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17434 $as_echo_n "(cached) " >&6
17437 if test $ac_cv_header_inttypes_h = yes; then
17440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442 #include <inttypes.h>
17446 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17447 *) gl_absname_cpp
="$ac_cpp" ;;
17452 gl_dirsep_regex
='[/\\]'
17455 gl_dirsep_regex
='\/'
17458 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17460 gl_header_literal_regex
=`echo 'inttypes.h' \
17461 | sed -e "$gl_make_literal_regex_sed"`
17462 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17463 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17468 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17469 sed -n "$gl_absolute_header_sed"`'"'
17471 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17477 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17479 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
17481 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17483 gl_next_as_first_directive
='<'inttypes.h
'>'
17485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17486 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
17488 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17503 $as_echo_n "checking for 64-bit off_t... " >&6; }
17504 if test "${gl_cv_type_off_t_64+set}" = set; then :
17505 $as_echo_n "(cached) " >&6
17507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 #include <sys/types.h>
17510 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17520 if ac_fn_c_try_compile
"$LINENO"; then :
17521 gl_cv_type_off_t_64
=yes
17523 gl_cv_type_off_t_64
=no
17525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17529 $as_echo "$gl_cv_type_off_t_64" >&6; }
17530 if test $gl_cv_type_off_t_64 = no
; then
17531 WINDOWS_64_BIT_OFF_T
=1
17533 WINDOWS_64_BIT_OFF_T
=0
17535 WINDOWS_64_BIT_ST_SIZE
=1
17538 WINDOWS_64_BIT_OFF_T
=0
17539 WINDOWS_64_BIT_ST_SIZE
=0
17556 GNULIB_UTIMENSAT
=0;
17570 REPLACE_FUTIMENS
=0;
17576 REPLACE_UTIMENSAT
=0;
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17582 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17583 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17584 $as_echo_n "(cached) " >&6
17586 rm -f conftest.sym conftest.
file
17587 echo >conftest.
file
17588 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
17589 if test "$cross_compiling" = yes; then :
17591 # Guess yes on glibc systems.
17592 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
17593 # If we don't know, assume the worst.
17594 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
17598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17599 /* end confdefs.h. */
17600 $ac_includes_default
17605 /* Linux will dereference the symlink and fail, as required by
17606 POSIX. That is better in the sense that it means we will not
17607 have to compile and use the lstat wrapper. */
17608 return lstat ("conftest.sym/", &sbuf) == 0;
17614 if ac_fn_c_try_run
"$LINENO"; then :
17615 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
17617 gl_cv_func_lstat_dereferences_slashed_symlink
=no
17619 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17620 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17624 # If the 'ln -s' command failed, then we probably don't even
17625 # have an lstat function.
17626 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
17628 rm -f conftest.sym conftest.
file
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17632 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17633 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17636 cat >>confdefs.h
<<_ACEOF
17637 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17645 GNULIB_NANOSLEEP
=0;
17649 HAVE_DECL_LOCALTIME_R
=1;
17653 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
17654 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
17655 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
17656 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
17661 GNULIB_PTHREAD_SIGMASK
=0;
17663 GNULIB_SIGNAL_H_SIGPIPE
=0;
17664 GNULIB_SIGPROCMASK
=0;
17665 GNULIB_SIGACTION
=0;
17666 HAVE_POSIX_SIGNALBLOCKING
=1;
17667 HAVE_PTHREAD_SIGMASK
=1;
17672 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
17674 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
17676 HAVE_SIGHANDLER_T
=1;
17677 REPLACE_PTHREAD_SIGMASK
=0;
17685 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17686 #include <signal.h>
17687 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
17688 #include <sys/types.h>
17691 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
17693 cat >>confdefs.h
<<_ACEOF
17694 #define HAVE_SIGSET_T 1
17697 gl_cv_type_sigset_t
=yes
17699 gl_cv_type_sigset_t
=no
17702 if test $gl_cv_type_sigset_t != yes; then
17708 if test $ac_cv_header_sys_socket_h = no
; then
17709 for ac_header
in ws2tcpip.h
17711 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17712 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
17713 cat >>confdefs.h
<<_ACEOF
17714 #define HAVE_WS2TCPIP_H 1
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17724 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17725 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17726 $as_echo_n "(cached) " >&6
17728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17731 #include <stdbool.h>
17733 "error: bool is not defined"
17736 "error: false is not defined"
17739 "error: false is not 0"
17742 "error: true is not defined"
17745 "error: true is not 1"
17747 #ifndef __bool_true_false_are_defined
17748 "error: __bool_true_false_are_defined is not defined"
17751 struct s { _Bool s: 1; _Bool t; } s;
17753 char a[true == 1 ? 1 : -1];
17754 char b[false == 0 ? 1 : -1];
17755 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17756 char d[(bool) 0.5 == true ? 1 : -1];
17757 /* See body of main program for 'e'. */
17758 char f[(_Bool) 0.0 == false ? 1 : -1];
17760 char h[sizeof (_Bool)];
17761 char i[sizeof s.t];
17762 enum { j = false, k = true, l = false * true, m = true * 256 };
17763 /* The following fails for
17764 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17766 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17767 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17768 /* Catch a bug in an HP-UX C compiler. See
17769 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17770 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17782 /* Refer to every declared value, to avoid compiler optimizations. */
17783 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17784 + !m + !n + !o + !p + !q + !pq);
17790 if ac_fn_c_try_compile
"$LINENO"; then :
17791 ac_cv_header_stdbool_h
=yes
17793 ac_cv_header_stdbool_h
=no
17795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17798 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17799 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17800 if test "x$ac_cv_type__Bool" = x
""yes; then :
17802 cat >>confdefs.h
<<_ACEOF
17803 #define HAVE__BOOL 1
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17816 $as_echo_n "checking for wchar_t... " >&6; }
17817 if test "${gt_cv_c_wchar_t+set}" = set; then :
17818 $as_echo_n "(cached) " >&6
17820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17822 #include <stddef.h>
17823 wchar_t foo = (wchar_t)'\0';
17832 if ac_fn_c_try_compile
"$LINENO"; then :
17833 gt_cv_c_wchar_t
=yes
17837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17840 $as_echo "$gt_cv_c_wchar_t" >&6; }
17841 if test $gt_cv_c_wchar_t = yes; then
17843 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17856 GNULIB_FPRINTF_POSIX
=0;
17872 GNULIB_OBSTACK_PRINTF
=0;
17873 GNULIB_OBSTACK_PRINTF_POSIX
=0;
17878 GNULIB_PRINTF_POSIX
=0;
17887 GNULIB_SPRINTF_POSIX
=0;
17888 GNULIB_STDIO_H_NONBLOCKING
=0;
17889 GNULIB_STDIO_H_SIGPIPE
=0;
17891 GNULIB_VASPRINTF
=0;
17896 GNULIB_VFPRINTF_POSIX
=0;
17898 GNULIB_VPRINTF_POSIX
=0;
17899 GNULIB_VSNPRINTF
=0;
17900 GNULIB_VSPRINTF_POSIX
=0;
17901 HAVE_DECL_FPURGE
=1;
17902 HAVE_DECL_FSEEKO
=1;
17903 HAVE_DECL_FTELLO
=1;
17904 HAVE_DECL_GETDELIM
=1;
17905 HAVE_DECL_GETLINE
=1;
17906 HAVE_DECL_OBSTACK_PRINTF
=1;
17907 HAVE_DECL_SNPRINTF
=1;
17908 HAVE_DECL_VSNPRINTF
=1;
17929 REPLACE_GETDELIM
=0;
17931 REPLACE_OBSTACK_PRINTF
=0;
17937 REPLACE_RENAMEAT
=0;
17938 REPLACE_SNPRINTF
=0;
17940 REPLACE_STDIO_READ_FUNCS
=0;
17941 REPLACE_STDIO_WRITE_FUNCS
=0;
17943 REPLACE_VASPRINTF
=0;
17944 REPLACE_VDPRINTF
=0;
17945 REPLACE_VFPRINTF
=0;
17947 REPLACE_VSNPRINTF
=0;
17948 REPLACE_VSPRINTF
=0;
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17951 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17952 if test "${ac_cv_struct_tm+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17957 #include <sys/types.h>
17964 int *p = &tm.tm_sec;
17970 if ac_fn_c_try_compile
"$LINENO"; then :
17971 ac_cv_struct_tm
=time.h
17973 ac_cv_struct_tm
=sys
/time.h
17975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17978 $as_echo "$ac_cv_struct_tm" >&6; }
17979 if test $ac_cv_struct_tm = sys
/time.h
; then
17981 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17985 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17986 #include <$ac_cv_struct_tm>
17989 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
17991 cat >>confdefs.h
<<_ACEOF
17992 #define HAVE_STRUCT_TM_TM_ZONE 1
17998 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18000 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18003 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18005 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
18011 cat >>confdefs.h
<<_ACEOF
18012 #define HAVE_DECL_TZNAME $ac_have_decl
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18016 $as_echo_n "checking for tzname... " >&6; }
18017 if test "${ac_cv_var_tzname+set}" = set; then :
18018 $as_echo_n "(cached) " >&6
18020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18023 #if !HAVE_DECL_TZNAME
18024 extern char *tzname[];
18030 return tzname[0][0];
18035 if ac_fn_c_try_link
"$LINENO"; then :
18036 ac_cv_var_tzname
=yes
18038 ac_cv_var_tzname
=no
18040 rm -f core conftest.err conftest.
$ac_objext \
18041 conftest
$ac_exeext conftest.
$ac_ext
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18044 $as_echo "$ac_cv_var_tzname" >&6; }
18045 if test $ac_cv_var_tzname = yes; then
18047 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18053 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18055 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
18057 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18064 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18065 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
18071 cat >>confdefs.h
<<_ACEOF
18072 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18077 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18078 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
18084 cat >>confdefs.h
<<_ACEOF
18085 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18091 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18092 if test "${ac_cv_header_stat_broken+set}" = set; then :
18093 $as_echo_n "(cached) " >&6
18095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18097 #include <sys/types.h>
18098 #include <sys/stat.h>
18100 #if defined S_ISBLK && defined S_IFDIR
18101 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18104 #if defined S_ISBLK && defined S_IFCHR
18105 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18108 #if defined S_ISLNK && defined S_IFREG
18109 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18112 #if defined S_ISSOCK && defined S_IFREG
18113 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18117 if ac_fn_c_try_compile
"$LINENO"; then :
18118 ac_cv_header_stat_broken
=no
18120 ac_cv_header_stat_broken
=yes
18122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18125 $as_echo "$ac_cv_header_stat_broken" >&6; }
18126 if test $ac_cv_header_stat_broken = yes; then
18128 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18134 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18135 if test "x$ac_cv_type_mode_t" = x
""yes; then :
18139 cat >>confdefs.h
<<_ACEOF
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18154 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18155 if test "${ac_cv_c_restrict+set}" = set; then :
18156 $as_echo_n "(cached) " >&6
18158 ac_cv_c_restrict
=no
18159 # The order here caters to the fact that C++ does not require restrict.
18160 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
18161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18162 /* end confdefs.h. */
18163 typedef int * int_ptr;
18164 int foo (int_ptr $ac_kw ip) {
18171 int * $ac_kw t = s;
18178 if ac_fn_c_try_compile
"$LINENO"; then :
18179 ac_cv_c_restrict
=$ac_kw
18181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18182 test "$ac_cv_c_restrict" != no
&& break
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18187 $as_echo "$ac_cv_c_restrict" >&6; }
18189 case $ac_cv_c_restrict in
18191 no
) $as_echo "#define restrict /**/" >>confdefs.h
18193 *) cat >>confdefs.h
<<_ACEOF
18194 #define restrict $ac_cv_c_restrict
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18202 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18203 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18204 $as_echo_n "(cached) " >&6
18206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18207 /* end confdefs.h. */
18213 static struct timespec x; x.tv_sec = x.tv_nsec;
18218 if ac_fn_c_try_compile
"$LINENO"; then :
18219 gl_cv_sys_struct_timespec_in_time_h
=yes
18221 gl_cv_sys_struct_timespec_in_time_h
=no
18223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18226 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18228 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18229 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
18230 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
18231 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18232 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18235 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18236 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18237 $as_echo_n "(cached) " >&6
18239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18241 #include <sys/time.h>
18246 static struct timespec x; x.tv_sec = x.tv_nsec;
18251 if ac_fn_c_try_compile
"$LINENO"; then :
18252 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
18254 gl_cv_sys_struct_timespec_in_sys_time_h
=no
18256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18259 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18260 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18261 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18264 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18265 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18266 $as_echo_n "(cached) " >&6
18268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18270 #include <pthread.h>
18275 static struct timespec x; x.tv_sec = x.tv_nsec;
18280 if ac_fn_c_try_compile
"$LINENO"; then :
18281 gl_cv_sys_struct_timespec_in_pthread_h
=yes
18283 gl_cv_sys_struct_timespec_in_pthread_h
=no
18285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18288 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18289 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18290 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
18309 if test $gl_cv_have_include_next = yes; then
18310 gl_cv_next_time_h
='<'time.h
'>'
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18313 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18314 if test "${gl_cv_next_time_h+set}" = set; then :
18315 $as_echo_n "(cached) " >&6
18318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18324 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18325 *) gl_absname_cpp
="$ac_cpp" ;;
18330 gl_dirsep_regex
='[/\\]'
18333 gl_dirsep_regex
='\/'
18336 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18338 gl_header_literal_regex
=`echo 'time.h' \
18339 | sed -e "$gl_make_literal_regex_sed"`
18340 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18341 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18346 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18347 sed -n "$gl_absolute_header_sed"`'"'
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18352 $as_echo "$gl_cv_next_time_h" >&6; }
18354 NEXT_TIME_H
=$gl_cv_next_time_h
18356 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18357 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18358 gl_next_as_first_directive
='<'time.h
'>'
18360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18361 gl_next_as_first_directive
=$gl_cv_next_time_h
18363 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
18370 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18371 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
18377 cat >>confdefs.h
<<_ACEOF
18378 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18385 GL_COND_LIBTOOL_TRUE
=
18386 GL_COND_LIBTOOL_FALSE
='#'
18388 GL_COND_LIBTOOL_TRUE
='#'
18389 GL_COND_LIBTOOL_FALSE
=
18392 gl_cond_libtool
=false
18405 gl_source_base
='lib'
18408 if test $ac_cv_func_alloca_works = no
; then
18412 # Define an additional variable used in the Makefile substitution.
18413 if test $ac_cv_working_alloca_h = yes; then
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18415 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18416 if test "${gl_cv_rpl_alloca+set}" = set; then :
18417 $as_echo_n "(cached) " >&6
18420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18423 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18429 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
18430 gl_cv_rpl_alloca
=yes
18432 gl_cv_rpl_alloca
=no
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18439 $as_echo "$gl_cv_rpl_alloca" >&6; }
18440 if test $gl_cv_rpl_alloca = yes; then
18442 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18452 if test -n "$ALLOCA_H"; then
18453 GL_GENERATE_ALLOCA_H_TRUE
=
18454 GL_GENERATE_ALLOCA_H_FALSE
='#'
18456 GL_GENERATE_ALLOCA_H_TRUE
='#'
18457 GL_GENERATE_ALLOCA_H_FALSE
=
18486 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18489 if test $HAVE_DUP2 = 1; then
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18491 $as_echo_n "checking whether dup2 works... " >&6; }
18492 if test "${gl_cv_func_dup2_works+set}" = set; then :
18493 $as_echo_n "(cached) " >&6
18495 if test "$cross_compiling" = yes; then :
18497 mingw
*) # on this platform, dup2 always returns 0 for success
18498 gl_cv_func_dup2_works
="guessing no" ;;
18499 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18500 gl_cv_func_dup2_works
="guessing no" ;;
18501 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18502 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18503 gl_cv_func_dup2_works
="guessing no" ;;
18504 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18505 gl_cv_func_dup2_works
="guessing no" ;;
18506 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18507 gl_cv_func_dup2_works
="guessing no" ;;
18508 *) gl_cv_func_dup2_works
="guessing yes" ;;
18511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18514 #include <unistd.h>
18522 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18525 if (dup2 (1, 1) == 0)
18528 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18532 if (dup2 (0, 0) != -1)
18534 /* Many gnulib modules require POSIX conformance of EBADF. */
18535 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18544 if ac_fn_c_try_run
"$LINENO"; then :
18545 gl_cv_func_dup2_works
=yes
18547 gl_cv_func_dup2_works
=no
18549 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18550 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18556 $as_echo "$gl_cv_func_dup2_works" >&6; }
18557 case "$gl_cv_func_dup2_works" in
18566 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
18575 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18596 # Persuade glibc <stdlib.h> to declare getloadavg().
18601 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18602 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18604 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18605 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
18608 gl_func_getloadavg_done
=no
18610 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18611 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18612 # to get the right answer into the cache.
18613 # For kstat on solaris, we need to test for libelf and libkvm to force the
18614 # definition of SVR4 below.
18615 if test $gl_func_getloadavg_done = no
; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18617 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18618 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18621 ac_check_lib_save_LIBS
=$LIBS
18623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18626 /* Override any GCC internal prototype to avoid an error.
18627 Use char because int might match the return type of a GCC
18628 builtin and then its argument prototype would still apply. */
18636 return elf_begin ();
18641 if ac_fn_c_try_link
"$LINENO"; then :
18642 ac_cv_lib_elf_elf_begin
=yes
18644 ac_cv_lib_elf_elf_begin
=no
18646 rm -f core conftest.err conftest.
$ac_objext \
18647 conftest
$ac_exeext conftest.
$ac_ext
18648 LIBS
=$ac_check_lib_save_LIBS
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18651 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18652 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18657 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18658 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18659 $as_echo_n "(cached) " >&6
18661 ac_check_lib_save_LIBS
=$LIBS
18663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18676 return kvm_open ();
18681 if ac_fn_c_try_link
"$LINENO"; then :
18682 ac_cv_lib_kvm_kvm_open
=yes
18684 ac_cv_lib_kvm_kvm_open
=no
18686 rm -f core conftest.err conftest.
$ac_objext \
18687 conftest
$ac_exeext conftest.
$ac_ext
18688 LIBS
=$ac_check_lib_save_LIBS
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18691 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18692 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
18696 # Check for the 4.4BSD definition of getloadavg.
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18698 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18699 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18700 $as_echo_n "(cached) " >&6
18702 ac_check_lib_save_LIBS
=$LIBS
18703 LIBS
="-lutil $LIBS"
18704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18707 /* Override any GCC internal prototype to avoid an error.
18708 Use char because int might match the return type of a GCC
18709 builtin and then its argument prototype would still apply. */
18713 char getloadavg ();
18717 return getloadavg ();
18722 if ac_fn_c_try_link
"$LINENO"; then :
18723 ac_cv_lib_util_getloadavg
=yes
18725 ac_cv_lib_util_getloadavg
=no
18727 rm -f core conftest.err conftest.
$ac_objext \
18728 conftest
$ac_exeext conftest.
$ac_ext
18729 LIBS
=$ac_check_lib_save_LIBS
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18732 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18733 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
18734 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
18739 if test $gl_func_getloadavg_done = no
; then
18740 # There is a commonly available library for RS/6000 AIX.
18741 # Since it is not a standard part of AIX, it might be installed locally.
18742 gl_getloadavg_LIBS
=$LIBS
18743 LIBS
="-L/usr/local/lib $LIBS"
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18745 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18746 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18747 $as_echo_n "(cached) " >&6
18749 ac_check_lib_save_LIBS
=$LIBS
18750 LIBS
="-lgetloadavg $LIBS"
18751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18754 /* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18760 char getloadavg ();
18764 return getloadavg ();
18769 if ac_fn_c_try_link
"$LINENO"; then :
18770 ac_cv_lib_getloadavg_getloadavg
=yes
18772 ac_cv_lib_getloadavg_getloadavg
=no
18774 rm -f core conftest.err conftest.
$ac_objext \
18775 conftest
$ac_exeext conftest.
$ac_ext
18776 LIBS
=$ac_check_lib_save_LIBS
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18779 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18780 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
18781 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
18783 LIBS
=$gl_getloadavg_LIBS
18788 # Set up the replacement function if necessary.
18789 if test $gl_func_getloadavg_done = no
; then
18792 # Solaris has libkstat which does not require root.
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18794 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18795 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18796 $as_echo_n "(cached) " >&6
18798 ac_check_lib_save_LIBS
=$LIBS
18799 LIBS
="-lkstat $LIBS"
18800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18801 /* end confdefs.h. */
18803 /* Override any GCC internal prototype to avoid an error.
18804 Use char because int might match the return type of a GCC
18805 builtin and then its argument prototype would still apply. */
18809 char kstat_open ();
18813 return kstat_open ();
18818 if ac_fn_c_try_link
"$LINENO"; then :
18819 ac_cv_lib_kstat_kstat_open
=yes
18821 ac_cv_lib_kstat_kstat_open
=no
18823 rm -f core conftest.err conftest.
$ac_objext \
18824 conftest
$ac_exeext conftest.
$ac_ext
18825 LIBS
=$ac_check_lib_save_LIBS
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18828 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18829 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
18830 cat >>confdefs.h
<<_ACEOF
18831 #define HAVE_LIBKSTAT 1
18834 LIBS
="-lkstat $LIBS"
18838 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
18840 # AIX has libperfstat which does not require root
18841 if test $gl_func_getloadavg_done = no
; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18843 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18844 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18845 $as_echo_n "(cached) " >&6
18847 ac_check_lib_save_LIBS
=$LIBS
18848 LIBS
="-lperfstat $LIBS"
18849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18850 /* end confdefs.h. */
18852 /* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18858 char perfstat_cpu_total ();
18862 return perfstat_cpu_total ();
18867 if ac_fn_c_try_link
"$LINENO"; then :
18868 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
18870 ac_cv_lib_perfstat_perfstat_cpu_total
=no
18872 rm -f core conftest.err conftest.
$ac_objext \
18873 conftest
$ac_exeext conftest.
$ac_ext
18874 LIBS
=$ac_check_lib_save_LIBS
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18877 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18878 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
18879 cat >>confdefs.h
<<_ACEOF
18880 #define HAVE_LIBPERFSTAT 1
18883 LIBS
="-lperfstat $LIBS"
18887 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
18890 if test $gl_func_getloadavg_done = no
; then
18891 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18892 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
18893 gl_func_getloadavg_done
=yes
18895 $as_echo "#define DGUX 1" >>confdefs.h
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18898 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18899 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18900 $as_echo_n "(cached) " >&6
18902 ac_check_lib_save_LIBS
=$LIBS
18904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18913 char dg_sys_info ();
18917 return dg_sys_info ();
18922 if ac_fn_c_try_link
"$LINENO"; then :
18923 ac_cv_lib_dgc_dg_sys_info
=yes
18925 ac_cv_lib_dgc_dg_sys_info
=no
18927 rm -f core conftest.err conftest.
$ac_objext \
18928 conftest
$ac_exeext conftest.
$ac_ext
18929 LIBS
=$ac_check_lib_save_LIBS
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18932 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18933 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
18934 cat >>confdefs.h
<<_ACEOF
18935 #define HAVE_LIBDGC 1
18950 if test "x$gl_save_LIBS" = x
; then
18951 GETLOADAVG_LIBS
=$LIBS
18953 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18958 # Test whether the system declares getloadavg. Solaris has the function
18959 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18960 for ac_header
in sys
/loadavg.h
18962 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18963 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
18964 cat >>confdefs.h
<<_ACEOF
18965 #define HAVE_SYS_LOADAVG_H 1
18972 if test $ac_cv_header_sys_loadavg_h = yes; then
18973 HAVE_SYS_LOADAVG_H
=1
18975 HAVE_SYS_LOADAVG_H
=0
18977 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18978 # include <sys/loadavg.h>
18980 #include <stdlib.h>
18982 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
18985 HAVE_DECL_GETLOADAVG
=0
18989 if test $HAVE_GETLOADAVG = 0; then
18998 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
19001 # Figure out what our getloadavg.c needs.
19003 # On HPUX9, an unprivileged user can get load averages this way.
19004 if test $gl_func_getloadavg_done = no
; then
19005 for ac_func
in pstat_getdynamic
19007 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19008 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
19009 cat >>confdefs.h
<<_ACEOF
19010 #define HAVE_PSTAT_GETDYNAMIC 1
19012 gl_func_getloadavg_done
=yes
19018 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19019 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19020 # Irix 4.0.5F has the header but not the library.
19021 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
19022 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19023 gl_func_getloadavg_done
=yes
19025 $as_echo "#define SVR4 1" >>confdefs.h
19029 if test $gl_func_getloadavg_done = no
; then
19030 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19031 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
19032 gl_func_getloadavg_done
=yes
19034 $as_echo "#define UMAX 1" >>confdefs.h
19037 $as_echo "#define UMAX4_3 1" >>confdefs.h
19044 if test $gl_func_getloadavg_done = no
; then
19045 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19046 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
19047 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
19054 if test $gl_func_getloadavg_done = no
; then
19055 for ac_header
in mach
/mach.h
19057 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19058 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
19059 cat >>confdefs.h
<<_ACEOF
19060 #define HAVE_MACH_MACH_H 1
19069 for ac_header
in nlist.h
19071 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19072 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
19073 cat >>confdefs.h
<<_ACEOF
19074 #define HAVE_NLIST_H 1
19076 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19078 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
19080 cat >>confdefs.h
<<_ACEOF
19081 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19094 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19095 x.n_un.n_name = "";
19103 if ac_fn_c_try_link
"$LINENO"; then :
19105 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19108 rm -f core conftest.err conftest.
$ac_objext \
19109 conftest
$ac_exeext conftest.
$ac_ext
19121 GNULIB_GETLOADAVG
=1
19132 if test $REPLACE_GETOPT = 1; then
19141 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19151 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19156 GNULIB_GL_UNISTD_H_GETOPT
=1
19167 if test -n "$gl_replace_getopt"; then :
19174 if test $REPLACE_GETOPT = 1; then
19178 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19184 if test $REPLACE_GETOPT = 1; then
19193 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
19203 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
19208 GNULIB_GL_UNISTD_H_GETOPT
=1
19217 if test $ac_cv_func_lstat = yes; then
19219 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19228 if test $REPLACE_LSTAT = 1; then
19237 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19261 if test $APPLE_UNIVERSAL_BUILD = 1; then
19262 # A universal build on Apple MacOS X platforms.
19263 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19264 # But we need a configuration result that is valid in both modes.
19265 gl_cv_func_working_mktime
=no
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19268 $as_echo_n "checking for working mktime... " >&6; }
19269 if test "${gl_cv_func_working_mktime+set}" = set; then :
19270 $as_echo_n "(cached) " >&6
19272 if test "$cross_compiling" = yes; then :
19273 gl_cv_func_working_mktime
=no
19275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19277 /* Test program from Paul Eggert and Tony Leneis. */
19278 #include <limits.h>
19279 #include <stdlib.h>
19282 #ifdef HAVE_UNISTD_H
19283 # include <unistd.h>
19287 # define alarm(X) /* empty */
19290 /* Work around redefinition to rpl_putenv by other config tests. */
19293 static time_t time_t_max;
19294 static time_t time_t_min;
19296 /* Values we'll use to set the TZ environment variable. */
19297 static char *tz_strings[] = {
19298 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19299 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19301 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19303 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19304 Based on a problem report from Andreas Jaeger. */
19306 spring_forward_gap ()
19308 /* glibc (up to about 1998-10-07) failed this test. */
19311 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19312 instead of "TZ=America/Vancouver" in order to detect the bug even
19313 on systems that don't support the Olson extension, or don't have the
19314 full zoneinfo tables installed. */
19315 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19324 return mktime (&tm) != (time_t) -1;
19328 mktime_test1 (time_t now)
19331 return ! (lt = localtime (&now)) || mktime (lt) == now;
19335 mktime_test (time_t now)
19337 return (mktime_test1 (now)
19338 && mktime_test1 ((time_t) (time_t_max - now))
19339 && mktime_test1 ((time_t) (time_t_min + now)));
19345 /* Based on code from Ariel Faigon. */
19355 return tm.tm_mon == 2 && tm.tm_mday == 31;
19359 bigtime_test (int j)
19363 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19364 now = mktime (&tm);
19365 if (now != (time_t) -1)
19367 struct tm *lt = localtime (&now);
19369 && lt->tm_year == tm.tm_year
19370 && lt->tm_mon == tm.tm_mon
19371 && lt->tm_mday == tm.tm_mday
19372 && lt->tm_hour == tm.tm_hour
19373 && lt->tm_min == tm.tm_min
19374 && lt->tm_sec == tm.tm_sec
19375 && lt->tm_yday == tm.tm_yday
19376 && lt->tm_wday == tm.tm_wday
19377 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19378 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19387 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19388 ignoring leap seconds. */
19389 unsigned long int answer = 2527315200UL;
19393 tm.tm_year = 2050 - 1900;
19396 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19399 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19400 instead of "TZ=America/Vancouver" in order to detect the bug even
19401 on systems that don't support the Olson extension, or don't have the
19402 full zoneinfo tables installed. */
19403 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19407 /* Check that the result is either a failure, or close enough
19408 to the correct answer that we can assume the discrepancy is
19409 due to leap seconds. */
19410 return (t == (time_t) -1
19411 || (0 < t && answer - 120 <= t && t <= answer + 120));
19420 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19421 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19423 /* This test makes some buggy mktime implementations loop.
19424 Give up after 60 seconds; a mktime slower than that
19425 isn't worth using anyway. */
19428 time_t_max = (! time_t_signed
19430 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19432 time_t_min = (! time_t_signed
19434 : time_t_signed_magnitude
19438 delta = time_t_max / 997; /* a suitable prime number */
19439 for (i = 0; i < N_STRINGS; i++)
19442 putenv (tz_strings[i]);
19444 for (t = 0; t <= time_t_max - delta; t += delta)
19445 if (! mktime_test (t))
19447 if (! (mktime_test ((time_t) 1)
19448 && mktime_test ((time_t) (60 * 60))
19449 && mktime_test ((time_t) (60 * 60 * 24))))
19452 for (j = 1; ; j <<= 1)
19453 if (! bigtime_test (j))
19455 else if (INT_MAX / 2 < j)
19457 if (! bigtime_test (INT_MAX))
19460 if (! irix_6_4_bug ())
19462 if (! spring_forward_gap ())
19464 if (! year_2050_test ())
19469 if ac_fn_c_try_run
"$LINENO"; then :
19470 gl_cv_func_working_mktime
=yes
19472 gl_cv_func_working_mktime
=no
19474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19481 $as_echo "$gl_cv_func_working_mktime" >&6; }
19483 if test $gl_cv_func_working_mktime = no
; then
19489 if test $REPLACE_MKTIME = 1; then
19498 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
19520 LIB_PTHREAD_SIGMASK
=
19523 if test $ac_cv_func_pthread_sigmask = yes; then
19526 HAVE_PTHREAD_SIGMASK
=0
19527 REPLACE_PTHREAD_SIGMASK
=1
19533 if test $HAVE_PTHREAD_SIGMASK = 1; then
19536 if test -z "$LIB_PTHREAD_SIGMASK"; then
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
19538 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
19539 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
19540 $as_echo_n "(cached) " >&6
19543 if test "$cross_compiling" = yes; then :
19546 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
19547 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
19549 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
19553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19556 #include <pthread.h>
19557 #include <signal.h>
19558 #include <stddef.h>
19562 sigemptyset (&set);
19563 return pthread_sigmask (1729, &set, NULL) != 0;
19566 if ac_fn_c_try_run
"$LINENO"; then :
19567 gl_cv_func_pthread_sigmask_in_libc_works
=no
19569 gl_cv_func_pthread_sigmask_in_libc_works
=yes
19571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19572 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
19578 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
19579 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
19581 REPLACE_PTHREAD_SIGMASK
=1
19583 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
19590 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
19591 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
19592 $as_echo_n "(cached) " >&6
19595 gl_save_LIBS
="$LIBS"
19596 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
19597 if test "$cross_compiling" = yes; then :
19600 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
19602 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
19606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19609 #include <pthread.h>
19610 #include <signal.h>
19611 #include <stddef.h>
19615 sigemptyset (&set);
19616 if (pthread_sigmask (1729, &set, NULL) == -1)
19621 if ac_fn_c_try_run
"$LINENO"; then :
19622 gl_cv_func_pthread_sigmask_return_works
=yes
19624 gl_cv_func_pthread_sigmask_return_works
=no
19626 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19627 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19630 LIBS
="$gl_save_LIBS"
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
19634 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
19635 case "$gl_cv_func_pthread_sigmask_return_works" in
19637 REPLACE_PTHREAD_SIGMASK
=1
19639 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
19645 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
19646 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
19647 $as_echo_n "(cached) " >&6
19652 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
19654 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
19656 gl_save_LIBS
="$LIBS"
19657 LIBS
="$LIBS $LIBMULTITHREAD"
19658 if test "$cross_compiling" = yes; then :
19661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19664 #include <pthread.h>
19665 #include <signal.h>
19667 #include <stdlib.h>
19668 #include <unistd.h>
19669 static volatile int sigint_occurred;
19671 sigint_handler (int sig)
19678 int pid = getpid ();
19680 signal (SIGINT, sigint_handler);
19681 sigemptyset (&set);
19682 sigaddset (&set, SIGINT);
19683 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
19685 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
19686 if (!(system (command) == 0))
19689 if (!(sigint_occurred == 0))
19691 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
19693 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
19698 if ac_fn_c_try_run
"$LINENO"; then :
19701 gl_cv_func_pthread_sigmask_unblock_works
=no
19703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19707 LIBS
="$gl_save_LIBS"
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
19711 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
19712 case "$gl_cv_func_pthread_sigmask_unblock_works" in
19714 REPLACE_PTHREAD_SIGMASK
=1
19716 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
19722 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
19731 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
19734 if test $HAVE_PTHREAD_SIGMASK = 1; then
19736 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
19746 GNULIB_PTHREAD_SIGMASK
=1
19755 if test $ac_cv_func_readlink = no
; then
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19759 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19760 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19761 $as_echo_n "(cached) " >&6
19763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h. */
19765 #include <unistd.h>
19766 /* Cause compilation failure if original declaration has wrong type. */
19767 ssize_t readlink (const char *, char *, size_t);
19776 if ac_fn_c_try_compile
"$LINENO"; then :
19777 gl_cv_decl_readlink_works
=yes
19779 gl_cv_decl_readlink_works
=no
19781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19784 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19786 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19787 if test "${gl_cv_func_readlink_works+set}" = set; then :
19788 $as_echo_n "(cached) " >&6
19790 # We have readlink, so assume ln -s works.
19791 ln -s conftest.no-such conftest.link
19792 ln -s conftest.link conftest.lnk2
19793 if test "$cross_compiling" = yes; then :
19795 # Guess yes on glibc systems.
19796 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
19797 # If we don't know, assume the worst.
19798 *) gl_cv_func_readlink_works
="guessing no" ;;
19802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19804 #include <unistd.h>
19810 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19815 if ac_fn_c_try_run
"$LINENO"; then :
19816 gl_cv_func_readlink_works
=yes
19818 gl_cv_func_readlink_works
=no
19820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19824 rm -f conftest.link conftest.lnk2
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19827 $as_echo "$gl_cv_func_readlink_works" >&6; }
19828 case "$gl_cv_func_readlink_works" in
19830 if test "$gl_cv_decl_readlink_works" != yes; then
19836 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19843 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
19852 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
19880 if test $gl_cv_have_include_next = yes; then
19881 gl_cv_next_signal_h
='<'signal.h
'>'
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
19884 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
19885 if test "${gl_cv_next_signal_h+set}" = set; then :
19886 $as_echo_n "(cached) " >&6
19889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19890 /* end confdefs.h. */
19891 #include <signal.h>
19895 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19896 *) gl_absname_cpp
="$ac_cpp" ;;
19901 gl_dirsep_regex
='[/\\]'
19904 gl_dirsep_regex
='\/'
19907 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19909 gl_header_literal_regex
=`echo 'signal.h' \
19910 | sed -e "$gl_make_literal_regex_sed"`
19911 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19912 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19917 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19918 sed -n "$gl_absolute_header_sed"`'"'
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
19923 $as_echo "$gl_cv_next_signal_h" >&6; }
19925 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
19927 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19929 gl_next_as_first_directive
='<'signal.h
'>'
19931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19932 gl_next_as_first_directive
=$gl_cv_next_signal_h
19934 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
19940 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
19941 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
19942 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
19943 #include <signal.h>
19946 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
19949 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
19958 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
19959 #include <signal.h>
19962 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
19965 HAVE_SIGHANDLER_T
=0
19971 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19972 /* <sys/types.h> is not needed according to POSIX, but the
19973 <sys/socket.h> in i386-unknown-freebsd4.10 and
19974 powerpc-apple-darwin5.5 required it. */
19975 #include <sys/types.h>
19976 #if HAVE_SYS_SOCKET_H
19977 # include <sys/socket.h>
19978 #elif HAVE_WS2TCPIP_H
19979 # include <ws2tcpip.h>
19983 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19987 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19988 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19989 $as_echo_n "(cached) " >&6
19991 # Systems have either "struct sockaddr *" or
19992 # "void *" as the second argument to getpeername
19993 gl_cv_socklen_t_equiv
=
19994 for arg2
in "struct sockaddr" void
; do
19995 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
19996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
19998 #include <sys/types.h>
19999 #include <sys/socket.h>
20001 int getpeername (int, $arg2 *, $t *);
20006 getpeername (0, 0, &len);
20011 if ac_fn_c_try_compile
"$LINENO"; then :
20012 gl_cv_socklen_t_equiv
="$t"
20014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20015 test "$gl_cv_socklen_t_equiv" != "" && break
20017 test "$gl_cv_socklen_t_equiv" != "" && break
20022 if test "$gl_cv_socklen_t_equiv" = ""; then
20023 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20026 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20028 cat >>confdefs.h
<<_ACEOF
20029 #define socklen_t $gl_cv_socklen_t_equiv
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20036 $as_echo_n "checking for ssize_t... " >&6; }
20037 if test "${gt_cv_ssize_t+set}" = set; then :
20038 $as_echo_n "(cached) " >&6
20040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20041 /* end confdefs.h. */
20042 #include <sys/types.h>
20046 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20052 if ac_fn_c_try_compile
"$LINENO"; then :
20057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20060 $as_echo "$gt_cv_ssize_t" >&6; }
20061 if test $gt_cv_ssize_t = no
; then
20063 $as_echo "#define ssize_t int" >>confdefs.h
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
20069 $as_echo_n "checking for working stdalign.h... " >&6; }
20070 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
20071 $as_echo_n "(cached) " >&6
20073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20074 /* end confdefs.h. */
20075 #include <stdalign.h>
20076 #include <stddef.h>
20078 /* Test that alignof yields a result consistent with offsetof.
20079 This catches GCC bug 52023
20080 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
20082 template <class t> struct alignof_helper { char a; t b; };
20083 # define ao(type) offsetof (alignof_helper<type>, b)
20085 # define ao(type) offsetof (struct { char a; type b; }, b)
20087 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
20088 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
20089 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
20091 /* Test _Alignas only on platforms where gnulib can help. */
20093 (__GNUC__ || __IBMC__ || __IBMCPP__ \
20094 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
20095 int alignas (8) alignas_int = 1;
20096 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
20107 if ac_fn_c_try_compile
"$LINENO"; then :
20108 gl_cv_header_working_stdalign_h
=yes
20110 gl_cv_header_working_stdalign_h
=no
20112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
20115 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
20117 if test $gl_cv_header_working_stdalign_h = yes; then
20120 STDALIGN_H
='stdalign.h'
20124 if test -n "$STDALIGN_H"; then
20125 GL_GENERATE_STDALIGN_H_TRUE
=
20126 GL_GENERATE_STDALIGN_H_FALSE
='#'
20128 GL_GENERATE_STDALIGN_H_TRUE
='#'
20129 GL_GENERATE_STDALIGN_H_FALSE
=
20135 NEXT_STDARG_H
='<stdarg.h>'
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20137 $as_echo_n "checking for va_copy... " >&6; }
20138 if test "${gl_cv_func_va_copy+set}" = set; then :
20139 $as_echo_n "(cached) " >&6
20142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20143 /* end confdefs.h. */
20144 #include <stdarg.h>
20150 void (*func) (va_list, va_list) = va_copy;
20157 if ac_fn_c_try_compile
"$LINENO"; then :
20158 gl_cv_func_va_copy
=yes
20160 gl_cv_func_va_copy
=no
20162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20166 $as_echo "$gl_cv_func_va_copy" >&6; }
20167 if test $gl_cv_func_va_copy = no
; then
20168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20170 #if defined _AIX && !defined __GNUC__
20175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20176 $EGREP "vaccine" >/dev
/null
2>&1; then :
20183 if test $gl_aixcc = yes; then
20193 if test $gl_cv_have_include_next = yes; then
20194 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20197 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20198 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20199 $as_echo_n "(cached) " >&6
20202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20204 #include <stdarg.h>
20208 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20209 *) gl_absname_cpp
="$ac_cpp" ;;
20214 gl_dirsep_regex
='[/\\]'
20217 gl_dirsep_regex
='\/'
20220 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20222 gl_header_literal_regex
=`echo 'stdarg.h' \
20223 | sed -e "$gl_make_literal_regex_sed"`
20224 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20225 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20230 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20231 sed -n "$gl_absolute_header_sed"`'"'
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20236 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20238 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
20240 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20242 gl_next_as_first_directive
='<'stdarg.h
'>'
20244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20245 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
20247 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
20252 if test "$gl_cv_next_stdarg_h" = '""'; then
20253 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
20254 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
20258 saved_as_echo_n
="$as_echo_n"
20260 if test "${gl_cv_func___va_copy+set}" = set; then :
20261 $as_echo_n "(cached) " >&6
20264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266 #include <stdarg.h>
20279 if ac_fn_c_try_compile
"$LINENO"; then :
20280 gl_cv_func___va_copy
=yes
20282 gl_cv_func___va_copy
=no
20284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20287 as_echo_n
="$saved_as_echo_n"
20289 if test $gl_cv_func___va_copy = yes; then
20291 $as_echo "#define va_copy __va_copy" >>confdefs.h
20296 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20302 if test -n "$STDARG_H"; then
20303 GL_GENERATE_STDARG_H_TRUE
=
20304 GL_GENERATE_STDARG_H_FALSE
='#'
20306 GL_GENERATE_STDARG_H_TRUE
='#'
20307 GL_GENERATE_STDARG_H_FALSE
=
20315 # Define two additional variables used in the Makefile substitution.
20317 if test "$ac_cv_header_stdbool_h" = yes; then
20320 STDBOOL_H
='stdbool.h'
20323 if test -n "$STDBOOL_H"; then
20324 GL_GENERATE_STDBOOL_H_TRUE
=
20325 GL_GENERATE_STDBOOL_H_FALSE
='#'
20327 GL_GENERATE_STDBOOL_H_TRUE
='#'
20328 GL_GENERATE_STDBOOL_H_FALSE
=
20332 if test "$ac_cv_type__Bool" = yes; then
20343 if test $gt_cv_c_wchar_t = no
; then
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20348 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20349 if test "${gl_cv_decl_null_works+set}" = set; then :
20350 $as_echo_n "(cached) " >&6
20352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20354 #include <stddef.h>
20355 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20365 if ac_fn_c_try_compile
"$LINENO"; then :
20366 gl_cv_decl_null_works
=yes
20368 gl_cv_decl_null_works
=no
20370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20373 $as_echo "$gl_cv_decl_null_works" >&6; }
20374 if test $gl_cv_decl_null_works = no
; then
20379 if test -n "$STDDEF_H"; then
20380 GL_GENERATE_STDDEF_H_TRUE
=
20381 GL_GENERATE_STDDEF_H_FALSE
='#'
20383 GL_GENERATE_STDDEF_H_TRUE
='#'
20384 GL_GENERATE_STDDEF_H_FALSE
=
20387 if test -n "$STDDEF_H"; then
20396 if test $gl_cv_have_include_next = yes; then
20397 gl_cv_next_stddef_h
='<'stddef.h
'>'
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20400 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20401 if test "${gl_cv_next_stddef_h+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20406 /* end confdefs.h. */
20407 #include <stddef.h>
20411 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20412 *) gl_absname_cpp
="$ac_cpp" ;;
20417 gl_dirsep_regex
='[/\\]'
20420 gl_dirsep_regex
='\/'
20423 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20425 gl_header_literal_regex
=`echo 'stddef.h' \
20426 | sed -e "$gl_make_literal_regex_sed"`
20427 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20428 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20433 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20434 sed -n "$gl_absolute_header_sed"`'"'
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
20439 $as_echo "$gl_cv_next_stddef_h" >&6; }
20441 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
20443 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20445 gl_next_as_first_directive
='<'stddef.h
'>'
20447 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20448 gl_next_as_first_directive
=$gl_cv_next_stddef_h
20450 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
20469 if test $gl_cv_have_include_next = yes; then
20470 gl_cv_next_stdio_h
='<'stdio.h
'>'
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
20473 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
20474 if test "${gl_cv_next_stdio_h+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20484 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20485 *) gl_absname_cpp
="$ac_cpp" ;;
20490 gl_dirsep_regex
='[/\\]'
20493 gl_dirsep_regex
='\/'
20496 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20498 gl_header_literal_regex
=`echo 'stdio.h' \
20499 | sed -e "$gl_make_literal_regex_sed"`
20500 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20501 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20506 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20507 sed -n "$gl_absolute_header_sed"`'"'
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
20512 $as_echo "$gl_cv_next_stdio_h" >&6; }
20514 NEXT_STDIO_H
=$gl_cv_next_stdio_h
20516 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20518 gl_next_as_first_directive
='<'stdio.h
'>'
20520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20521 gl_next_as_first_directive
=$gl_cv_next_stdio_h
20523 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
20563 if test $gl_cv_have_include_next = yes; then
20564 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20567 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20568 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20569 $as_echo_n "(cached) " >&6
20572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574 #include <stdlib.h>
20578 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20579 *) gl_absname_cpp
="$ac_cpp" ;;
20584 gl_dirsep_regex
='[/\\]'
20587 gl_dirsep_regex
='\/'
20590 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20592 gl_header_literal_regex
=`echo 'stdlib.h' \
20593 | sed -e "$gl_make_literal_regex_sed"`
20594 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20595 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20600 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20601 sed -n "$gl_absolute_header_sed"`'"'
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20606 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20608 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
20610 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20612 gl_next_as_first_directive
='<'stdlib.h
'>'
20614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20615 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
20617 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
20627 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20635 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20644 if test "$ac_cv_have_decl_strtoimax" != yes; then
20645 HAVE_DECL_STRTOIMAX
=0
20648 if test $ac_cv_func_strtoimax = yes; then
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
20651 $as_echo_n "checking whether strtoimax works... " >&6; }
20652 if test "${gl_cv_func_strtoimax+set}" = set; then :
20653 $as_echo_n "(cached) " >&6
20655 if test "$cross_compiling" = yes; then :
20657 # Guess no on AIX 5.
20658 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
20659 # Guess yes otherwise.
20660 *) gl_cv_func_strtoimax
="guessing yes" ;;
20664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20668 #include <string.h>
20669 #include <inttypes.h>
20672 if (sizeof (intmax_t) > sizeof (int))
20674 const char *s = "4294967295";
20678 res = strtoimax (s, &p, 10);
20679 if (p != s + strlen (s))
20683 if (res != (intmax_t) 65535 * (intmax_t) 65537)
20688 const char *s = "2147483647";
20692 res = strtoimax (s, &p, 10);
20693 if (p != s + strlen (s))
20697 if (res != 2147483647)
20704 if ac_fn_c_try_run
"$LINENO"; then :
20705 gl_cv_func_strtoimax
=yes
20707 gl_cv_func_strtoimax
=no
20709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20710 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
20716 $as_echo "$gl_cv_func_strtoimax" >&6; }
20717 case "$gl_cv_func_strtoimax" in
20718 *no
) REPLACE_STRTOIMAX
=1 ;;
20724 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
20733 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
20736 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
20737 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
20743 cat >>confdefs.h
<<_ACEOF
20744 #define HAVE_DECL_STRTOLL $ac_have_decl
20765 if test "$ac_cv_have_decl_strtoumax" != yes; then
20766 HAVE_DECL_STRTOUMAX
=0
20769 if test $ac_cv_func_strtoumax = no
; then
20778 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
20781 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20782 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
20788 cat >>confdefs.h
<<_ACEOF
20789 #define HAVE_DECL_STRTOULL $ac_have_decl
20808 if test $ac_cv_func_symlink = no
; then
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20812 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20813 if test "${gl_cv_func_symlink_works+set}" = set; then :
20814 $as_echo_n "(cached) " >&6
20816 if test "$cross_compiling" = yes; then :
20818 # Guess yes on glibc systems.
20819 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
20820 # If we don't know, assume the worst.
20821 *) gl_cv_func_symlink_works
="guessing no" ;;
20825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h. */
20827 #include <unistd.h>
20833 if (!symlink ("a", "conftest.link/"))
20835 if (symlink ("conftest.f", "conftest.lnk2"))
20837 else if (!symlink ("a", "conftest.lnk2/"))
20845 if ac_fn_c_try_run
"$LINENO"; then :
20846 gl_cv_func_symlink_works
=yes
20848 gl_cv_func_symlink_works
=no
20850 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20851 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20854 rm -f conftest.f conftest.link conftest.lnk2
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20857 $as_echo "$gl_cv_func_symlink_works" >&6; }
20858 case "$gl_cv_func_symlink_works" in
20866 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
20875 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
20905 if test $gl_cv_have_include_next = yes; then
20906 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20909 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20910 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20911 $as_echo_n "(cached) " >&6
20914 if test $ac_cv_header_sys_stat_h = yes; then
20917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20918 /* end confdefs.h. */
20919 #include <sys/stat.h>
20923 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20924 *) gl_absname_cpp
="$ac_cpp" ;;
20929 gl_dirsep_regex
='[/\\]'
20932 gl_dirsep_regex
='\/'
20935 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20937 gl_header_literal_regex
=`echo 'sys/stat.h' \
20938 | sed -e "$gl_make_literal_regex_sed"`
20939 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20940 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20945 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20946 sed -n "$gl_absolute_header_sed"`'"'
20948 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20954 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20956 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
20958 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20959 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20960 gl_next_as_first_directive
='<'sys
/stat.h
'>'
20962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20963 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
20965 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
20977 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20979 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20983 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20984 #include <sys/stat.h>
20986 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
20990 $as_echo "#define nlink_t int" >>confdefs.h
21008 if test $gl_cv_have_include_next = yes; then
21009 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
21012 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
21013 if test "${gl_cv_next_sys_types_h+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21018 /* end confdefs.h. */
21019 #include <sys/types.h>
21023 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21024 *) gl_absname_cpp
="$ac_cpp" ;;
21029 gl_dirsep_regex
='[/\\]'
21032 gl_dirsep_regex
='\/'
21035 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21037 gl_header_literal_regex
=`echo 'sys/types.h' \
21038 | sed -e "$gl_make_literal_regex_sed"`
21039 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21040 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21045 gl_cv_next_sys_types_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21046 sed -n "$gl_absolute_header_sed"`'"'
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
21051 $as_echo "$gl_cv_next_sys_types_h" >&6; }
21053 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
21055 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21057 gl_next_as_first_directive
='<'sys
/types.h
'>'
21059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21060 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
21062 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
21085 if test $ac_cv_have_decl_localtime_r = no
; then
21086 HAVE_DECL_LOCALTIME_R
=0
21090 if test $ac_cv_func_localtime_r = yes; then
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21093 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21094 if test "${gl_cv_time_r_posix+set}" = set; then :
21095 $as_echo_n "(cached) " >&6
21097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h. */
21103 /* We don't need to append 'restrict's to the argument types,
21104 even though the POSIX signature has the 'restrict's,
21105 since C99 says they can't affect type compatibility. */
21106 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21108 /* Check the return type is a pointer.
21109 On HP-UX 10 it is 'int'. */
21110 *localtime_r (0, 0);
21116 if ac_fn_c_try_compile
"$LINENO"; then :
21117 gl_cv_time_r_posix
=yes
21119 gl_cv_time_r_posix
=no
21121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21125 $as_echo "$gl_cv_time_r_posix" >&6; }
21126 if test $gl_cv_time_r_posix = yes; then
21127 REPLACE_LOCALTIME_R
=0
21129 REPLACE_LOCALTIME_R
=1
21135 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
21144 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
21175 if test $gl_cv_have_include_next = yes; then
21176 gl_cv_next_unistd_h
='<'unistd.h
'>'
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21179 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21180 if test "${gl_cv_next_unistd_h+set}" = set; then :
21181 $as_echo_n "(cached) " >&6
21184 if test $ac_cv_header_unistd_h = yes; then
21187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21188 /* end confdefs.h. */
21189 #include <unistd.h>
21193 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21194 *) gl_absname_cpp
="$ac_cpp" ;;
21199 gl_dirsep_regex
='[/\\]'
21202 gl_dirsep_regex
='\/'
21205 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21207 gl_header_literal_regex
=`echo 'unistd.h' \
21208 | sed -e "$gl_make_literal_regex_sed"`
21209 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21210 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21215 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21216 sed -n "$gl_absolute_header_sed"`'"'
21218 gl_cv_next_unistd_h
='<'unistd.h
'>'
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21224 $as_echo "$gl_cv_next_unistd_h" >&6; }
21226 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
21228 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21230 gl_next_as_first_directive
='<'unistd.h
'>'
21232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21233 gl_next_as_first_directive
=$gl_cv_next_unistd_h
21235 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
21240 if test $ac_cv_header_unistd_h = yes; then
21253 gl_gnulib_enabled_dosname
=false
21254 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
21255 gl_gnulib_enabled_pathmax
=false
21256 gl_gnulib_enabled_sigprocmask
=false
21257 gl_gnulib_enabled_stat
=false
21258 gl_gnulib_enabled_strtoll
=false
21259 gl_gnulib_enabled_strtoull
=false
21260 gl_gnulib_enabled_verify
=false
21261 func_gl_gnulib_m4code_dosname
()
21263 if ! $gl_gnulib_enabled_dosname; then
21264 gl_gnulib_enabled_dosname
=true
21267 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
21269 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21272 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
21275 func_gl_gnulib_m4code_pathmax
()
21277 if ! $gl_gnulib_enabled_pathmax; then
21281 gl_gnulib_enabled_pathmax
=true
21284 func_gl_gnulib_m4code_sigprocmask
()
21286 if ! $gl_gnulib_enabled_sigprocmask; then
21290 if test $gl_cv_type_sigset_t = yes; then
21291 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21292 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
21293 gl_cv_func_sigprocmask
=1
21297 if test -z "$gl_cv_func_sigprocmask"; then
21298 HAVE_POSIX_SIGNALBLOCKING
=0
21301 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21310 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
21321 GNULIB_SIGPROCMASK
=1
21327 gl_gnulib_enabled_sigprocmask
=true
21330 func_gl_gnulib_m4code_stat
()
21332 if ! $gl_gnulib_enabled_stat; then
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21337 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21338 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21339 $as_echo_n "(cached) " >&6
21341 if test "$cross_compiling" = yes; then :
21343 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
21344 *) gl_cv_func_stat_dir_slash
="guessing yes";;
21347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21349 #include <sys/stat.h>
21354 struct stat st; return stat (".", &st) != stat ("./", &st);
21359 if ac_fn_c_try_run
"$LINENO"; then :
21360 gl_cv_func_stat_dir_slash
=yes
21362 gl_cv_func_stat_dir_slash
=no
21364 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21365 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21370 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21372 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21373 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21374 $as_echo_n "(cached) " >&6
21377 # Assume that if we have lstat, we can also check symlinks.
21378 if test $ac_cv_func_lstat = yes; then
21379 ln -s conftest.tmp conftest.lnk
21381 if test "$cross_compiling" = yes; then :
21383 # Guess yes on glibc systems.
21384 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
21385 # If we don't know, assume the worst.
21386 *) gl_cv_func_stat_file_slash
="guessing no" ;;
21390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21391 /* end confdefs.h. */
21392 #include <sys/stat.h>
21399 if (!stat ("conftest.tmp/", &st))
21402 if (!stat ("conftest.lnk/", &st))
21411 if ac_fn_c_try_run
"$LINENO"; then :
21412 gl_cv_func_stat_file_slash
=yes
21414 gl_cv_func_stat_file_slash
=no
21416 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21417 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21420 rm -f conftest.tmp conftest.lnk
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21423 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21424 case $gl_cv_func_stat_dir_slash in
21425 *no
) REPLACE_STAT
=1
21427 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21430 case $gl_cv_func_stat_file_slash in
21431 *no
) REPLACE_STAT
=1
21433 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21437 if test $REPLACE_STAT = 1; then
21446 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
21464 gl_gnulib_enabled_stat
=true
21465 if test $REPLACE_STAT = 1; then
21466 func_gl_gnulib_m4code_dosname
21468 if test $REPLACE_STAT = 1; then
21469 func_gl_gnulib_m4code_pathmax
21471 if test $REPLACE_STAT = 1; then
21472 func_gl_gnulib_m4code_verify
21476 func_gl_gnulib_m4code_strtoll
()
21478 if ! $gl_gnulib_enabled_strtoll; then
21482 if test "$ac_cv_type_long_long_int" = yes; then
21483 for ac_func
in strtoll
21485 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
21486 if test "x$ac_cv_func_strtoll" = x
""yes; then :
21487 cat >>confdefs.h
<<_ACEOF
21488 #define HAVE_STRTOLL 1
21494 if test $ac_cv_func_strtoll = no
; then
21499 if test $HAVE_STRTOLL = 0; then
21508 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
21525 gl_gnulib_enabled_strtoll
=true
21528 func_gl_gnulib_m4code_strtoull
()
21530 if ! $gl_gnulib_enabled_strtoull; then
21534 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21535 for ac_func
in strtoull
21537 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
21538 if test "x$ac_cv_func_strtoull" = x
""yes; then :
21539 cat >>confdefs.h
<<_ACEOF
21540 #define HAVE_STRTOULL 1
21546 if test $ac_cv_func_strtoull = no
; then
21551 if test $HAVE_STRTOULL = 0; then
21560 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
21577 gl_gnulib_enabled_strtoull
=true
21580 func_gl_gnulib_m4code_verify
()
21582 if ! $gl_gnulib_enabled_verify; then
21583 gl_gnulib_enabled_verify
=true
21586 if test $REPLACE_GETOPT = 1; then
21587 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21589 if test $REPLACE_LSTAT = 1; then
21590 func_gl_gnulib_m4code_dosname
21592 if test $REPLACE_LSTAT = 1; then
21593 func_gl_gnulib_m4code_stat
21595 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21596 func_gl_gnulib_m4code_sigprocmask
21598 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21599 func_gl_gnulib_m4code_stat
21601 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
21602 func_gl_gnulib_m4code_strtoll
21604 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
21605 func_gl_gnulib_m4code_verify
21607 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
21608 func_gl_gnulib_m4code_strtoull
21610 if test $ac_cv_func_strtoumax = no
; then
21611 func_gl_gnulib_m4code_verify
21614 if $gl_gnulib_enabled_dosname; then
21615 gl_GNULIB_ENABLED_dosname_TRUE
=
21616 gl_GNULIB_ENABLED_dosname_FALSE
='#'
21618 gl_GNULIB_ENABLED_dosname_TRUE
='#'
21619 gl_GNULIB_ENABLED_dosname_FALSE
=
21622 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
21624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
21626 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
21627 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
21630 if $gl_gnulib_enabled_pathmax; then
21631 gl_GNULIB_ENABLED_pathmax_TRUE
=
21632 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
21634 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
21635 gl_GNULIB_ENABLED_pathmax_FALSE
=
21638 if $gl_gnulib_enabled_sigprocmask; then
21639 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
21640 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
21642 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
21643 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
21646 if $gl_gnulib_enabled_stat; then
21647 gl_GNULIB_ENABLED_stat_TRUE
=
21648 gl_GNULIB_ENABLED_stat_FALSE
='#'
21650 gl_GNULIB_ENABLED_stat_TRUE
='#'
21651 gl_GNULIB_ENABLED_stat_FALSE
=
21654 if $gl_gnulib_enabled_strtoll; then
21655 gl_GNULIB_ENABLED_strtoll_TRUE
=
21656 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
21658 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
21659 gl_GNULIB_ENABLED_strtoll_FALSE
=
21662 if $gl_gnulib_enabled_strtoull; then
21663 gl_GNULIB_ENABLED_strtoull_TRUE
=
21664 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
21666 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
21667 gl_GNULIB_ENABLED_strtoull_FALSE
=
21670 if $gl_gnulib_enabled_verify; then
21671 gl_GNULIB_ENABLED_verify_TRUE
=
21672 gl_GNULIB_ENABLED_verify_FALSE
='#'
21674 gl_GNULIB_ENABLED_verify_TRUE
='#'
21675 gl_GNULIB_ENABLED_verify_FALSE
=
21678 # End of code from modules
21699 gl_source_base
='tests'
21700 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
21702 gl_module_indicator_condition
=$gltests_WITNESS
21713 LIBGNU_LIBDEPS
="$gl_libdeps"
21715 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
21720 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
21723 ## The -headerpad option tells ld (see man page) to leave room at the
21724 ## end of the header for adding load commands. Needed for dumping.
21725 ## 0x690 is the total size of 30 segment load commands (at 56
21726 ## each); under Cocoa 31 commands are required.
21727 if test "$HAVE_NS" = "yes"; then
21728 libs_nsgui
="-framework AppKit"
21729 headerpad_extra
=6C8
21732 headerpad_extra
=690
21734 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
21736 ## This is here because src/Makefile.in did some extra fiddling around
21737 ## with LD_SWITCH_SYSTEM. The cpp logic was:
21738 ## #ifndef LD_SWITCH_SYSTEM
21739 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
21740 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
21741 ## not using gcc, darwin.
21742 ## Because this was done in src/Makefile.in, the resulting part of
21743 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
21744 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
21745 ## rather than LD_SWITCH_SYSTEM.
21746 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
21747 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
21750 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
21751 ## find X at run-time.
21752 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
21753 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
21754 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
21755 ## had different values in configure (in ac_link) and src/Makefile.in.
21756 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
21757 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
21759 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
21762 if test "$NS_IMPL_GNUSTEP" = "yes"; then
21763 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
21772 ## gnu: GNU needs its own crt0.
21773 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
21775 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
21776 ## library search parth, i.e. it won't search /usr/lib for libc and
21777 ## friends. Using -nostartfiles instead avoids this problem, and
21778 ## will also work on earlier NetBSD releases.
21779 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
21781 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
21782 ## MkLinux/LinuxPPC needs this.
21783 ## s390x-* only supports opsys = gnu-linux so it can be added here.
21785 case "$canonical" in
21786 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
21792 if test "x$ORDINARY_LINK" = "xyes"; then
21796 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
21799 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
21800 ## freebsd, gnu-* not on powerpc*|s390x*.
21801 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
21803 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
21804 ## places that are difficult to figure out at make time. Fortunately,
21805 ## these same versions allow you to pass arbitrary flags on to the
21806 ## linker, so there is no reason not to use it as a linker.
21808 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
21809 ## searching for libraries in its internal directories, so we have to
21810 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
21811 LD_FIRSTFLAG
="-nostdlib"
21814 ## FIXME? What setting of EDIT_LDFLAGS should this have?
21815 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
21820 ## FIXME? The logic here is not precisely the same as that above.
21821 ## There is no check here for a pre-defined LD_FIRSTFLAG.
21822 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
21824 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
21827 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
21830 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
21831 ## build on ARM EABI under GNU/Linux. (Bug#5518)
21837 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
21838 ## immediately undefine it again and redefine it to empty.
21839 ## Was the C_SWITCH_X_SITE part really necessary?
21840 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
21846 ## Ask GCC where to find libgcc.a.
21847 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
21852 ## If we're using X11/GNUstep, define some consequences.
21853 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
21855 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
21858 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
21865 #### Report on what we decided to do.
21866 #### Report GTK as a toolkit, even if it doesn't use Xt.
21867 #### It makes printing result more understandable as using GTK sets
21868 #### toolkit_scroll_bars to yes by default.
21869 if test "${HAVE_GTK}" = "yes"; then
21874 Configured for \`${canonical}'.
21876 Where should the build process find the source code? ${srcdir}
21877 What operating system file should Emacs use? ${opsysfile-none}
21878 What compiler should emacs be built with? ${CC} ${CFLAGS}
21879 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21880 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21881 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21882 What window system should Emacs use? ${window_system}
21883 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21885 if test -n "${x_includes}"; then
21886 echo " Where do we find X Windows header files? ${x_includes}"
21888 echo " Where do we find X Windows header files? Standard dirs"
21890 if test -n "${x_libraries}"; then
21891 echo " Where do we find X Windows libraries? ${x_libraries}"
21893 echo " Where do we find X Windows libraries? Standard dirs"
21896 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21897 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21898 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21899 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21900 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
21901 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21902 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
21903 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
21905 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
21906 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
21907 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
21908 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
21909 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
21910 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
21911 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
21913 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
21914 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
21915 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
21916 echo " Does Emacs use -lxft? ${HAVE_XFT}"
21918 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21921 if test -n "${EMACSDATA}"; then
21922 echo " Environment variable EMACSDATA set to: $EMACSDATA"
21924 if test -n "${EMACSDOC}"; then
21925 echo " Environment variable EMACSDOC set to: $EMACSDOC"
21928 if test $USE_XASSERTS = yes; then
21929 echo " Compiling with asserts turned on."
21930 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
21935 if test "$HAVE_NS" = "yes"; then
21937 echo "You must run \"${MAKE-make} install\" in order to test the built application.
21938 The installed application will go to nextstep/Emacs.app and can be
21939 run or moved from there."
21940 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
21941 echo "The application will be fully self-contained."
21943 echo "The lisp resources for the application will be installed under ${prefix}.
21944 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
21945 to run if these resources are not installed."
21950 if test "${opsys}" = "cygwin"; then
21952 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
21953 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
21959 # Remove any trailing slashes in these variables.
21960 test "${prefix}" != NONE
&&
21961 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21962 test "${exec_prefix}" != NONE
&&
21963 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21965 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"
21967 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"
21970 opt_makefile
=test
/automated
/Makefile
21972 if test -f $srcdir/${opt_makefile}.
in; then
21973 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
21974 ac_config_files
="$ac_config_files test/automated/Makefile"
21979 opt_makefile
=admin
/unidata
/Makefile
21981 if test -f $srcdir/${opt_makefile}.
in; then
21982 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
21983 ac_config_files
="$ac_config_files admin/unidata/Makefile"
21988 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21992 ac_config_commands
="$ac_config_commands mkdirs"
21995 ac_config_commands
="$ac_config_commands epaths"
21998 ac_config_commands
="$ac_config_commands gdbinit"
22001 cat >confcache
<<\_ACEOF
22002 # This file is a shell script that caches the results of configure
22003 # tests run on this system so they can be shared between configure
22004 # scripts and configure runs, see configure's option --config-cache.
22005 # It is not useful on other systems. If it contains results you don't
22006 # want to keep, you may remove or edit it.
22008 # config.status only pays attention to the cache file if you give it
22009 # the --recheck option to rerun configure.
22011 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22012 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22013 # following values.
22017 # The following way of writing the cache mishandles newlines in values,
22018 # but we know of no workaround that is simple, portable, and efficient.
22019 # So, we kill variables containing newlines.
22020 # Ultrix sh set writes to stderr and can't be redirected directly,
22021 # and sets the high bit in the cache file unless we assign to the vars.
22023 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22024 eval ac_val
=\$
$ac_var
22028 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22029 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22032 _ | IFS | as_nl
) ;; #(
22033 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
22034 *) { eval $ac_var=; unset $ac_var;} ;;
22040 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22041 *${as_nl}ac_space
=\
*)
22042 # `set' does not quote correctly, so add quotes: double-quote
22043 # substitution turns \\\\ into \\, and sed turns \\ into \.
22046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22049 # `set' quotes correctly as required by POSIX, so do not add quotes.
22050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22063 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22064 if test -w "$cache_file"; then
22065 test "x$cache_file" != "x/dev/null" &&
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22067 $as_echo "$as_me: updating cache $cache_file" >&6;}
22068 cat confcache
>$cache_file
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22071 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22076 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22077 # Let make expand exec_prefix.
22078 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22080 DEFS
=-DHAVE_CONFIG_H
22084 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22085 # 1. Remove the extension, and $U if already installed.
22086 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22087 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
22088 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22089 # will be set to the directory where LIBOBJS objects are built.
22090 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22091 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
22093 LIBOBJS
=$ac_libobjs
22095 LTLIBOBJS
=$ac_ltlibobjs
22098 if test -n "$EXEEXT"; then
22100 am__EXEEXT_FALSE
='#'
22102 am__EXEEXT_TRUE
='#'
22106 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22107 as_fn_error
"conditional \"AMDEP\" was never defined.
22108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22110 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22111 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
22112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22114 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22115 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
22116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22118 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22119 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22123 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22124 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
22125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22127 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
22128 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
22129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22131 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22132 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
22133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22135 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22136 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22139 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22140 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22143 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22144 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22147 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22148 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22151 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
22152 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
22153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22155 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22156 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22159 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22160 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22163 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22164 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22167 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22168 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22171 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22172 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22178 if test -n "$gl_LIBOBJS"; then
22179 # Remove the extension.
22180 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22181 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22182 gl_libobjs
="$gl_libobjs $i.$ac_objext"
22183 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
22186 gl_LIBOBJS
=$gl_libobjs
22188 gl_LTLIBOBJS
=$gl_ltlibobjs
22194 if test -n "$gltests_LIBOBJS"; then
22195 # Remove the extension.
22196 sed_drop_objext
='s/\.o$//;s/\.obj$//'
22197 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22198 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
22199 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
22202 gltests_LIBOBJS
=$gltests_libobjs
22204 gltests_LTLIBOBJS
=$gltests_ltlibobjs
22208 : ${CONFIG_STATUS=./config.status}
22210 ac_clean_files_save
=$ac_clean_files
22211 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22213 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22215 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22217 # Generated by $as_me.
22218 # Run this file to recreate the current configuration.
22219 # Compiler output produced by configure, useful for debugging
22220 # configure, is in config.log if it exists.
22223 ac_cs_recheck=false
22226 SHELL=\${CONFIG_SHELL-$SHELL}
22229 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
22230 ## -------------------- ##
22231 ## M4sh Initialization. ##
22232 ## -------------------- ##
22234 # Be more Bourne compatible
22235 DUALCASE
=1; export DUALCASE
# for MKS sh
22236 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22240 # is contrary to our usage. Disable this feature.
22241 alias -g '${1+"$@"}'='"$@"'
22242 setopt NO_GLOB_SUBST
22244 case `(set -o) 2>/dev/null` in #(
22256 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22257 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22260 # Prefer a ksh shell builtin over an external printf program on Solaris,
22261 # but without wasting forks for bash or zsh.
22262 if test -z "$BASH_VERSION$ZSH_VERSION" \
22263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22264 as_echo='print
-r --'
22265 as_echo_n='print
-rn --'
22266 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22267 as_echo='printf %s
\n'
22268 as_echo_n='printf %s
'
22270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22271 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
22272 as_echo_n='/usr
/ucb
/echo -n'
22274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22275 as_echo_n_body='eval
22279 expr "X$arg" : "X\\(.*\\)$as_nl";
22280 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22282 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
22284 export as_echo_n_body
22285 as_echo_n='sh
-c $as_echo_n_body as_echo
'
22287 export as_echo_body
22288 as_echo='sh
-c $as_echo_body as_echo
'
22291 # The user is always right.
22292 if test "${PATH_SEPARATOR+set}" != set; then
22294 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22295 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22302 # We need space, tab and new line, in precisely that order. Quoting is
22303 # there to prevent editors from complaining about space-tab.
22304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22305 # splitting by setting IFS to empty value.)
22308 # Find who we are. Look in the path if we contain no directory separator.
22310 *[\\/]* ) as_myself=$0 ;;
22311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22312 for as_dir in $PATH
22315 test -z "$as_dir" && as_dir=.
22316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22322 # We did not find ourselves, most probably we were run as `sh COMMAND'
22323 # in which case we are not to be found in the path.
22324 if test "x$as_myself" = x
; then
22327 if test ! -f "$as_myself"; then
22328 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22332 # Unset variables that we do not need and which cause bugs (e.g. in
22333 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22334 # suppresses any "Segmentation fault" message there. '((' could
22335 # trigger a bug in pdksh 5.2.14.
22336 for as_var
in BASH_ENV ENV MAIL MAILPATH
22337 do eval test x\
${$as_var+set} = xset \
22338 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
22351 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
22354 # as_fn_error ERROR [LINENO LOG_FD]
22355 # ---------------------------------
22356 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22357 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22358 # script with status $?, using 1 if that was 0.
22361 as_status
=$?
; test $as_status -eq 0 && as_status
=1
22363 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
22364 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22366 $as_echo "$as_me: error: $1" >&2
22367 as_fn_exit
$as_status
22371 # as_fn_set_status STATUS
22372 # -----------------------
22373 # Set $? to STATUS, without forking.
22374 as_fn_set_status
()
22377 } # as_fn_set_status
22379 # as_fn_exit STATUS
22380 # -----------------
22381 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22385 as_fn_set_status
$1
22391 # Portably unset VAR.
22394 { eval $1=; unset $1;}
22396 as_unset
=as_fn_unset
22397 # as_fn_append VAR VALUE
22398 # ----------------------
22399 # Append the text in VALUE to the end of the definition contained in VAR. Take
22400 # advantage of any shell optimizations that allow amortized linear growth over
22401 # repeated appends, instead of the typical quadratic growth present in naive
22403 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
22404 eval 'as_fn_append ()
22415 # as_fn_arith ARG...
22416 # ------------------
22417 # Perform arithmetic evaluation on the ARGs, and store the result in the
22418 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22419 # must be portable across $(()) and expr.
22420 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
22421 eval 'as_fn_arith ()
22428 as_val
=`expr "$@" || test $? -eq 1`
22433 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22434 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22440 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22441 as_basename
=basename
22446 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22452 as_me
=`$as_basename -- "$0" ||
22453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22454 X"$0" : 'X\(//\)$' \| \
22455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22457 sed '/^.*\/\([^/][^/]*\)\/*$/{
22471 # Avoid depending upon Character Ranges.
22472 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22473 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22474 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22475 as_cr_digits
='0123456789'
22476 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22478 ECHO_C
= ECHO_N
= ECHO_T
=
22479 case `echo -n x` in #(((((
22481 case `echo 'xy\c'` in
22482 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22484 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
22491 rm -f conf$$ conf$$.exe conf$$.
file
22492 if test -d conf$$.dir
; then
22493 rm -f conf$$.dir
/conf$$.
file
22496 mkdir conf$$.dir
2>/dev
/null
22498 if (echo >conf$$.
file) 2>/dev
/null
; then
22499 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22501 # ... but there are two gotchas:
22502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22504 # In both cases, we have to default to `cp -p'.
22505 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
22507 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22515 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
22516 rmdir conf$$.dir
2>/dev
/null
22521 # Create "$as_dir" as a directory, including parents if necessary.
22526 -*) as_dir
=.
/$as_dir;;
22528 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
22532 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22533 *) as_qdir
=$as_dir;;
22535 as_dirs
="'$as_qdir' $as_dirs"
22536 as_dir
=`$as_dirname -- "$as_dir" ||
22537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22538 X"$as_dir" : 'X\(//\)[^/]' \| \
22539 X"$as_dir" : 'X\(//\)$' \| \
22540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22541 $as_echo X"$as_dir" |
22542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22546 /^X\(\/\/\)[^/].*/{
22559 test -d "$as_dir" && break
22561 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22562 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
22566 if mkdir
-p .
2>/dev
/null
; then
22567 as_mkdir_p
='mkdir -p "$as_dir"'
22569 test -d .
/-p && rmdir .
/-p
22573 if test -x / >/dev
/null
2>&1; then
22574 as_test_x
='test -x'
22576 if ls -dL / >/dev
/null
2>&1; then
22583 if test -d "$1"; then
22589 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22590 ???[sx]*):;;*)false;;esac;fi
22594 as_executable_p
=$as_test_x
22596 # Sed expression to map a string onto a valid CPP name.
22597 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22599 # Sed expression to map a string onto a valid variable name.
22600 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22604 ## ----------------------------------- ##
22605 ## Main body of $CONFIG_STATUS script. ##
22606 ## ----------------------------------- ##
22608 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
22610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22611 # Save the log message, to keep $0 and so on meaningful, and to
22612 # report actual input values of CONFIG_FILES etc. instead of their
22613 # values after options handling.
22615 This file was extended by emacs $as_me 24.1.50, which was
22616 generated by GNU Autoconf 2.65. Invocation command line was
22618 CONFIG_FILES = $CONFIG_FILES
22619 CONFIG_HEADERS = $CONFIG_HEADERS
22620 CONFIG_LINKS = $CONFIG_LINKS
22621 CONFIG_COMMANDS = $CONFIG_COMMANDS
22624 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22629 case $ac_config_files in *"
22630 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
22633 case $ac_config_headers in *"
22634 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
22638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22639 # Files that config.status was made for.
22640 config_files="$ac_config_files"
22641 config_headers="$ac_config_headers"
22642 config_commands="$ac_config_commands"
22646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22648 \`$as_me' instantiates files and other configuration actions
22649 from templates according to the current configuration. Unless the files
22650 and actions are specified as TAGs, all are instantiated by default.
22652 Usage: $0 [OPTION]... [TAG]...
22654 -h, --help print this help, then exit
22655 -V, --version print version number and configuration settings, then exit
22656 --config print configuration, then exit
22657 -q, --quiet, --silent
22658 do not print progress messages
22659 -d, --debug don't remove temporary files
22660 --recheck update $as_me by reconfiguring in the same conditions
22661 --file=FILE[:TEMPLATE]
22662 instantiate the configuration file FILE
22663 --header=FILE[:TEMPLATE]
22664 instantiate the configuration header FILE
22666 Configuration files:
22669 Configuration headers:
22672 Configuration commands:
22675 Report bugs to the package provider."
22678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22679 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22681 emacs config.status 24.1.50
22682 configured by $0, generated by GNU Autoconf 2.65,
22683 with options \\"\$ac_cs_config\\"
22685 Copyright (C) 2009 Free Software Foundation, Inc.
22686 This config.status script is free software; the Free Software Foundation
22687 gives unlimited permission to copy, distribute and modify it."
22694 test -n "\$AWK" || AWK=awk
22697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22698 # The default lists apply if the user does not specify any file.
22704 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
22705 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
22716 # Handling of the options.
22717 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22719 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
22720 $as_echo "$ac_cs_version"; exit ;;
22721 --config |
--confi |
--conf |
--con |
--co |
--c )
22722 $as_echo "$ac_cs_config"; exit ;;
22723 --debug |
--debu |
--deb |
--de |
--d |
-d )
22725 --file |
--fil |
--fi |
--f )
22728 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22730 as_fn_append CONFIG_FILES
" '$ac_optarg'"
22731 ac_need_defaults
=false
;;
22732 --header |
--heade |
--head |
--hea )
22735 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22737 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
22738 ac_need_defaults
=false
;;
22740 # Conflict between --help and --header
22741 as_fn_error
"ambiguous option: \`$1'
22742 Try \`$0 --help' for more information.";;
22743 --help |
--hel |
-h )
22744 $as_echo "$ac_cs_usage"; exit ;;
22745 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22746 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22749 # This is an error.
22750 -*) as_fn_error
"unrecognized option: \`$1'
22751 Try \`$0 --help' for more information." ;;
22753 *) as_fn_append ac_config_targets
" $1"
22754 ac_need_defaults
=false
;;
22760 ac_configure_extra_args
=
22762 if $ac_cs_silent; then
22764 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22769 if \$ac_cs_recheck; then
22770 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22772 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22773 CONFIG_SHELL='$SHELL'
22774 export CONFIG_SHELL
22779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22784 ## Running $as_me. ##
22790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22794 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22795 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
22799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
22801 # Handling of arguments.
22802 for ac_config_target
in $ac_config_targets
22804 case $ac_config_target in
22805 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22806 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
22807 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22808 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
22809 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
22810 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22811 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
22812 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
22813 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
22814 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
22815 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
22816 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22817 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22818 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22819 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
22820 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
22821 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
22822 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
22823 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
22825 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22830 # If the user did not use the arguments to specify the items to instantiate,
22831 # then the envvar interface is used. Set only those that are not.
22832 # We use the long form for the default assignment because of an extremely
22833 # bizarre bug on SunOS 4.1.3.
22834 if $ac_need_defaults; then
22835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22836 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22837 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22840 # Have a temporary directory for convenience. Make it in the build tree
22841 # simply because there is no reason against having it here, and in addition,
22842 # creating and moving files from /tmp can sometimes cause problems.
22843 # Hook for its removal unless debugging.
22844 # Note that there is a small window in which the directory will not be cleaned:
22845 # after its creation but before its name has been assigned to `$tmp'.
22849 trap 'exit_status=$?
22850 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22852 trap 'as_fn_exit 1' 1 2 13 15
22854 # Create a (secure) tmp directory for tmp files.
22857 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22858 test -n "$tmp" && test -d "$tmp"
22861 tmp
=.
/conf$$
-$RANDOM
22862 (umask 077 && mkdir
"$tmp")
22863 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
22865 # Set up the scripts for CONFIG_FILES section.
22866 # No need to generate them if there are no CONFIG_FILES.
22867 # This happens for instance with `./config.status config.h'.
22868 if test -n "$CONFIG_FILES"; then
22870 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
22871 ac_cs_awk_getline
=:
22872 ac_cs_awk_pipe_init
=
22873 ac_cs_awk_read_file
='
22874 while ((getline aline < (F[key])) > 0)
22877 ac_cs_awk_pipe_fini
=
22879 ac_cs_awk_getline
=false
22880 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
22881 ac_cs_awk_read_file
='
22883 print "cat " F[key] " &&"
22884 '$ac_cs_awk_pipe_init
22885 # The final `:' finishes the AND list.
22886 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
22888 ac_cr
=`echo X | tr X '\015'`
22889 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22890 # But we know of no other shell where ac_cr would be empty at this
22891 # point, so we can use a bashism as a fallback.
22892 if test "x$ac_cr" = x
; then
22893 eval ac_cr
=\$
\'\\r
\'
22895 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22896 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22899 ac_cs_awk_cr
=$ac_cr
22902 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22905 # Create commands to substitute file output variables.
22907 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22908 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
22909 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
22912 } >conf$
$files.sh
&&
22913 . .
/conf$
$files.sh ||
22914 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
22915 rm -f conf$
$files.sh
22918 echo "cat >conf$$subs.awk <<_ACEOF" &&
22919 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22921 } >conf$$subs.sh ||
22922 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22923 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22925 for ac_last_try in false false false false false :; do
22926 . ./conf$$subs.sh ||
22927 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22929 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
22930 if test $ac_delim_n = $ac_delim_num; then
22932 elif $ac_last_try; then
22933 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
22935 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
22938 rm -f conf$$subs.sh
22940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22941 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
22945 s/^/S["/; s
/!.
*/"]=/
22955 s/\(.\{148\}\)..*/\1/
22957 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
22962 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22969 s/\(.\{148\}\)..*/\1/
22971 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
22975 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
22980 ' <conf$$subs.awk | sed '
22985 ' >>$CONFIG_STATUS || ac_write_fail=1
22986 rm -f conf$$subs.awk
22987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22989 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
22990 for (key in S) S_is_set[key] = 1
22992 \$ac_cs_awk_pipe_init
22996 nfields = split(line, field, "@
")
22998 len = length(field[1])
22999 for (i = 2; i < nfields; i++) {
23001 keylen = length(key)
23002 if (S_is_set[key]) {
23004 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23005 len += length(value) + length(field[++i])
23010 if (nfields == 3 && !substed) {
23012 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23013 \$ac_cs_awk_read_file
23019 \$ac_cs_awk_pipe_fini
23022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23023 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23024 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
23027 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
23028 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
23031 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23032 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
23033 # trailing colons and then remove the whole line if VPATH becomes empty
23034 # (actually we leave an empty line to preserve line numbers).
23035 if test "x
$srcdir" = x.; then
23036 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23037 s/:*\$(srcdir):*/:/
23038 s/:*\${srcdir}:*/:/
23040 s/^\([^=]*=[ ]*\):*/\1/
23046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23047 fi # test -n "$CONFIG_FILES"
23049 # Set up the scripts for CONFIG_HEADERS section.
23050 # No need to generate them if there are no CONFIG_HEADERS.
23051 # This happens for instance with `./config.status Makefile'.
23052 if test -n "$CONFIG_HEADERS"; then
23053 cat >"$tmp/defines.
awk" <<\_ACAWK ||
23057 # Transform confdefs.h into an awk script `defines.awk', embedded as
23058 # here-document in config.status, that substitutes the proper values into
23059 # config.h.in to produce config.h.
23061 # Create a delimiter string that does not exist in confdefs.h, to ease
23062 # handling of long lines.
23064 for ac_last_try in false false :; do
23065 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
23066 if test -z "$ac_t"; then
23068 elif $ac_last_try; then
23069 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
23071 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
23075 # For the awk script, D is an array of macro values keyed by name,
23076 # likewise P contains macro parameters if any. Preserve backslash
23077 # newline sequences.
23079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23081 s/.\{148\}/&'"$ac_delim"'/g
23084 s/^[ ]*#[ ]*define[ ][ ]*/ /
23091 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
23093 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
23097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
23098 D["\
1"]=" \
3\\\\\\n
"\\/p
23100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
23105 s/.\{148\}/&'"$ac_delim"'/g
23110 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
23113 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
23115 ' <confdefs.h | sed '
23116 s/'"$ac_delim"'/"\\\
23117 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23120 for (key in D) D_is_set[key] = 1
23123 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23125 split(line, arg, " ")
23126 if (arg[1] == "#") {
23130 defundef
= substr
(arg
[1], 2)
23133 split(mac1
, mac2
, "(") #)
23135 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
23136 if (D_is_set
[macro
]) {
23137 # Preserve the white space surrounding the "#".
23138 print prefix
"define", macro P
[macro
] D
[macro
]
23141 # Replace #undef with comments. This is necessary, for example,
23142 # in the case of _POSIX_SOURCE, which is predefined and required
23143 # on some systems where configure will not decide to define it.
23144 if (defundef
== "undef") {
23145 print
"/*", prefix defundef
, macro
, "*/"
23153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23154 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
23155 fi # test -n "$CONFIG_HEADERS"
23158 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23163 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23165 case $ac_mode$ac_tag in
23167 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
23168 :[FH
]-) ac_tag
=-:-;;
23169 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23186 -) ac_f
="$tmp/stdin";;
23187 *) # Look for the file first in the build tree, then in the source tree
23188 # (if the path is not absolute). The absolute path cannot be DOS-style,
23189 # because $ac_f cannot contain `:'.
23193 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23195 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
23197 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23198 as_fn_append ac_file_inputs
" '$ac_f'"
23201 # Let's still pretend it is `configure' which instantiates (i.e., don't
23202 # use $as_me), people would be surprised to read:
23203 # /* config.h. Generated by config.status. */
23204 configure_input
='Generated from '`
23205 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23207 if test x
"$ac_file" != x-
; then
23208 configure_input
="$ac_file. $configure_input"
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23210 $as_echo "$as_me: creating $ac_file" >&6;}
23212 # Neutralize special characters interpreted by sed in replacement strings.
23213 case $configure_input in #(
23214 *\
&* |
*\|
* |
*\\* )
23215 ac_sed_conf_input
=`$as_echo "$configure_input" |
23216 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23217 *) ac_sed_conf_input
=$configure_input;;
23221 *:-:* |
*:-) cat >"$tmp/stdin" \
23222 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
23227 ac_dir
=`$as_dirname -- "$ac_file" ||
23228 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23229 X"$ac_file" : 'X\(//\)[^/]' \| \
23230 X"$ac_file" : 'X\(//\)$' \| \
23231 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23232 $as_echo X"$ac_file" |
23233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23237 /^X\(\/\/\)[^/].*/{
23250 as_dir
="$ac_dir"; as_fn_mkdir_p
23254 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23256 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23257 # A ".." for each directory in $ac_dir_suffix.
23258 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23259 case $ac_top_builddir_sub in
23260 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23261 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23264 ac_abs_top_builddir
=$ac_pwd
23265 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23266 # for backward compatibility:
23267 ac_top_builddir
=$ac_top_build_prefix
23270 .
) # We are building in place.
23272 ac_top_srcdir
=$ac_top_builddir_sub
23273 ac_abs_top_srcdir
=$ac_pwd ;;
23274 [\\/]* | ?
:[\\/]* ) # Absolute name.
23275 ac_srcdir
=$srcdir$ac_dir_suffix;
23276 ac_top_srcdir
=$srcdir
23277 ac_abs_top_srcdir
=$srcdir ;;
23278 *) # Relative name.
23279 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23280 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23281 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23283 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23293 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23294 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23296 ac_MKDIR_P
=$MKDIR_P
23298 [\\/$
]* | ?
:[\\/]* ) ;;
23299 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
23303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23304 # If the template does not know about datarootdir, expand it.
23305 # FIXME: This hack should be removed a few years after 2.60.
23306 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23317 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23318 *datarootdir
*) ac_datarootdir_seen
=yes;;
23319 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23321 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23324 ac_datarootdir_hack='
23325 s&@datadir@&$datadir&g
23326 s&@docdir@&$docdir&g
23327 s&@infodir@&$infodir&g
23328 s&@localedir@&$localedir&g
23329 s&@mandir@&$mandir&g
23330 s&\\\${datarootdir}&$datarootdir&g' ;;
23334 # Neutralize VPATH when `$srcdir' = `.'.
23335 # Shell code in configure.ac might set extrasub.
23336 # FIXME: do we really want to maintain this feature?
23337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23338 ac_sed_extra="$ac_vpsub
23341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23343 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23344 s|@configure_input@|
$ac_sed_conf_input|
;t t
23345 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23346 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
23347 s
&@srcdir@
&$ac_srcdir&;t t
23348 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23349 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23350 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23351 s
&@builddir@
&$ac_builddir&;t t
23352 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23353 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23354 s
&@INSTALL@
&$ac_INSTALL&;t t
23355 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
23356 $ac_datarootdir_hack
23358 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23359 if $ac_cs_awk_getline; then
23360 $AWK -f "$tmp/subs.
awk"
23362 $AWK -f "$tmp/subs.
awk" | $SHELL
23364 || as_fn_error "could not create
$ac_file" "$LINENO" 5
23366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23367 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23370 which seems to be undefined. Please make sure it is defined." >&5
23371 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23372 which seems to be undefined. Please make sure it is defined." >&2;}
23376 -) cat "$tmp/out" && rm -f "$tmp/out";;
23377 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23379 || as_fn_error "could not create $ac_file" "$LINENO" 5
23385 if test x"$ac_file" != x-; then
23387 $as_echo "/* $configure_input */" \
23388 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23389 } >"$tmp/config.h" \
23390 || as_fn_error "could not create $ac_file" "$LINENO" 5
23391 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23393 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23396 mv "$tmp/config.h" "$ac_file" \
23397 || as_fn_error "could not create $ac_file" "$LINENO" 5
23400 $as_echo "/* $configure_input */" \
23401 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23402 || as_fn_error "could not create -" "$LINENO" 5
23404 # Compute "$ac_file"'s index
in $config_headers.
23407 for _am_header
in $config_headers :; do
23408 case $_am_header in
23409 $_am_arg |
$_am_arg:* )
23412 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
23415 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23416 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23417 X"$_am_arg" : 'X\(//\)[^/]' \| \
23418 X"$_am_arg" : 'X\(//\)$' \| \
23419 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23420 $as_echo X"$_am_arg" |
23421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23425 /^X\(\/\/\)[^/].*/{
23437 s/.*/./; q'`/stamp-h
$_am_stamp_count
23440 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23441 $as_echo "$as_me: executing $ac_file commands" >&6;}
23446 case $ac_file$ac_mode in
23447 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
23448 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23449 # are listed without --file. Let's play safe and only enable the eval
23450 # if we detect the quoting.
23451 case $CONFIG_FILES in
23452 *\'*) eval set x
"$CONFIG_FILES" ;;
23453 *) set x
$CONFIG_FILES ;;
23458 # Strip MF so we end up with the name of the file.
23459 mf
=`echo "$mf" | sed -e 's/:.*$//'`
23460 # Check whether this is an Automake generated Makefile or not.
23461 # We used to match only the files named `Makefile.in', but
23462 # some people rename them; so instead we look at the file content.
23463 # Grep'ing the first line is not enough: some people post-process
23464 # each Makefile.in and add a new line on top of each file to say so.
23465 # Grep'ing the whole file is not good either: AIX grep has a line
23466 # limit of 2048, but all sed's we know have understand at least 4000.
23467 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
23468 dirpart
=`$as_dirname -- "$mf" ||
23469 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23470 X"$mf" : 'X\(//\)[^/]' \| \
23471 X"$mf" : 'X\(//\)$' \| \
23472 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23478 /^X\(\/\/\)[^/].*/{
23494 # Extract the definition of DEPDIR, am__include, and am__quote
23495 # from the Makefile without running `make'.
23496 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
23497 test -z "$DEPDIR" && continue
23498 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
23499 test -z "am__include" && continue
23500 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
23501 # When using ansi2knr, U may be empty or an underscore; expand it
23502 U
=`sed -n 's/^U = //p' < "$mf"`
23503 # Find all dependency output files, they are included files with
23504 # $(DEPDIR) in their names. We invoke sed twice because it is the
23505 # simplest approach to changing $(DEPDIR) to its actual value in the
23507 for file in `sed -n "
23508 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23509 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23510 # Make sure the directory exists.
23511 test -f "$dirpart/$file" && continue
23512 fdir
=`$as_dirname -- "$file" ||
23513 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23514 X"$file" : 'X\(//\)[^/]' \| \
23515 X"$file" : 'X\(//\)$' \| \
23516 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23517 $as_echo X"$file" |
23518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23522 /^X\(\/\/\)[^/].*/{
23535 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
23536 # echo "creating $dirpart/$file"
23537 echo '# dummy' > "$dirpart/$file"
23543 for dir
in etc lisp
; do
23544 test -d ${dir} || mkdir
${dir}
23548 echo creating src
/epaths.h
23549 ${MAKE-make} epaths-force
23552 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23553 echo creating src
/.gdbinit
23554 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23564 ac_clean_files
=$ac_clean_files_save
23566 test $ac_write_fail = 0 ||
23567 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
23570 # configure is writing to config.log, and then calls config.status.
23571 # config.status does its own redirection, appending to config.log.
23572 # Unfortunately, on DOS this fails, as config.log is still kept open
23573 # by configure, so config.status won't be able to write to it; its
23574 # output is simply discarded. So we exec the FD to /dev/null,
23575 # effectively closing config.log, so it can be properly (re)opened and
23576 # appended to by config.status. When coming back to configure, we
23577 # need to make the FD available again.
23578 if test "$no_create" != yes; then
23580 ac_config_status_args
=
23581 test "$silent" = yes &&
23582 ac_config_status_args
="$ac_config_status_args --quiet"
23584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23587 # would make configure fail if this is the last instruction.
23588 $ac_cs_success || as_fn_exit $?
23590 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23592 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}