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
633 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
640 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
642 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
644 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
653 REPLACE_STDIO_WRITE_FUNCS
654 REPLACE_STDIO_READ_FUNCS
663 REPLACE_OBSTACK_PRINTF
688 HAVE_DECL_OBSTACK_PRINTF
694 GNULIB_VSPRINTF_POSIX
698 GNULIB_VFPRINTF_POSIX
705 GNULIB_STDIO_H_SIGPIPE
706 GNULIB_STDIO_H_NONBLOCKING
721 GNULIB_OBSTACK_PRINTF_POSIX
722 GNULIB_OBSTACK_PRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
767 REPLACE_PTHREAD_SIGMASK
769 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
770 HAVE_STRUCT_SIGACTION_SA_SIGACTION
776 HAVE_POSIX_SIGNALBLOCKING
779 GNULIB_SIGNAL_H_SIGPIPE
781 GNULIB_PTHREAD_SIGMASK
790 HAVE_DECL_LOCALTIME_R
829 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
831 UINT64_MAX_EQ_ULONG_MAX
832 UINT32_MAX_LT_UINTMAX_MAX
835 INT64_MAX_EQ_LONG_MAX
836 INT32_MAX_LT_INTMAX_MAX
845 GL_GENERATE_STDINT_H_FALSE
846 GL_GENERATE_STDINT_H_TRUE
855 HAVE_SIGNED_SIG_ATOMIC_T
858 BITSIZEOF_SIG_ATOMIC_T
861 APPLE_UNIVERSAL_BUILD
865 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
870 HAVE_UNSIGNED_LONG_LONG_INT
874 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
878 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
891 REPLACE_CANONICALIZE_FILE_NAME
896 HAVE_STRUCT_RANDOM_DATA
915 HAVE_CANONICALIZE_FILE_NAME
942 GNULIB_CANONICALIZE_FILE_NAME
946 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
947 UNISTD_H_HAVE_WINSOCK2_H
967 REPLACE_GETDOMAINNAME
977 HAVE_DECL_GETUSERSHELL
978 HAVE_DECL_GETPAGESIZE
980 HAVE_DECL_GETDOMAINNAME
1018 GNULIB_UNISTD_H_SIGPIPE
1019 GNULIB_UNISTD_H_NONBLOCKING
1020 GNULIB_UNISTD_H_GETOPT
1044 GNULIB_GETDTABLESIZE
1045 GNULIB_GETDOMAINNAME
1061 GL_GENERATE_ALLOCA_H_FALSE
1062 GL_GENERATE_ALLOCA_H_TRUE
1065 GL_COND_LIBTOOL_FALSE
1066 GL_COND_LIBTOOL_TRUE
1099 x_default_search_path
1167 LD_SWITCH_X_SITE_RPATH
1232 INSTALL_STRIP_PROGRAM
1274 program_transform_name
1285 ac_subst_files
='deps_frag
1289 enable_option_checking
1312 with_toolkit_scroll_bars
1324 with_pkg_config_prog
1328 enable_ns_self_contained
1330 enable_maintainer_mode
1331 enable_locallisppath
1333 enable_use_lisp_union_type
1336 enable_dependency_tracking
1341 ac_precious_vars
='build_alias
1353 # Initialize some variables set by options.
1355 ac_init_version
=false
1356 ac_unrecognized_opts
=
1357 ac_unrecognized_sep
=
1358 # The variables have the same names as the options, with
1359 # dashes changed to underlines.
1360 cache_file
=/dev
/null
1367 program_transform_name
=s
,x
,x
,
1375 # Installation directory options.
1376 # These are left unexpanded so users can "make install exec_prefix=/foo"
1377 # and all the variables that are supposed to be based on exec_prefix
1378 # by default will actually change.
1379 # Use braces instead of parens because sh, perl, etc. also accept them.
1380 # (The list follows the same order as the GNU Coding Standards.)
1381 bindir
='${exec_prefix}/bin'
1382 sbindir
='${exec_prefix}/sbin'
1383 libexecdir
='${exec_prefix}/libexec'
1384 datarootdir
='${prefix}/share'
1385 datadir
='${datarootdir}'
1386 sysconfdir
='${prefix}/etc'
1387 sharedstatedir
='${prefix}/com'
1388 localstatedir
='${prefix}/var'
1389 includedir
='${prefix}/include'
1390 oldincludedir
='/usr/include'
1391 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1392 infodir
='${datarootdir}/info'
1397 libdir
='${exec_prefix}/lib'
1398 localedir
='${datarootdir}/locale'
1399 mandir
='${datarootdir}/man'
1405 # If the previous option needs an argument, assign it.
1406 if test -n "$ac_prev"; then
1407 eval $ac_prev=\
$ac_option
1413 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1417 # Accept the important Cygnus configure options, so we can diagnose typos.
1419 case $ac_dashdash$ac_option in
1423 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1425 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1426 bindir
=$ac_optarg ;;
1428 -build |
--build |
--buil |
--bui |
--bu)
1429 ac_prev
=build_alias
;;
1430 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1431 build_alias
=$ac_optarg ;;
1433 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1434 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1435 ac_prev
=cache_file
;;
1436 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1437 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1438 cache_file
=$ac_optarg ;;
1440 --config-cache |
-C)
1441 cache_file
=config.cache
;;
1443 -datadir |
--datadir |
--datadi |
--datad)
1445 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1446 datadir
=$ac_optarg ;;
1448 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1449 |
--dataroo |
--dataro |
--datar)
1450 ac_prev
=datarootdir
;;
1451 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1452 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1453 datarootdir
=$ac_optarg ;;
1455 -disable-* |
--disable-*)
1456 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1457 # Reject names that are not valid shell variable names.
1458 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1459 as_fn_error
"invalid feature name: $ac_useropt"
1460 ac_useropt_orig
=$ac_useropt
1461 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1462 case $ac_user_opts in
1464 "enable_
$ac_useropt"
1466 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1467 ac_unrecognized_sep
=', ';;
1469 eval enable_
$ac_useropt=no
;;
1471 -docdir |
--docdir |
--docdi |
--doc |
--do)
1473 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1474 docdir
=$ac_optarg ;;
1476 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1478 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1479 dvidir
=$ac_optarg ;;
1481 -enable-* |
--enable-*)
1482 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1483 # Reject names that are not valid shell variable names.
1484 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1485 as_fn_error
"invalid feature name: $ac_useropt"
1486 ac_useropt_orig
=$ac_useropt
1487 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1488 case $ac_user_opts in
1490 "enable_
$ac_useropt"
1492 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1493 ac_unrecognized_sep
=', ';;
1495 eval enable_
$ac_useropt=\
$ac_optarg ;;
1497 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1498 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1499 |
--exec |
--exe |
--ex)
1500 ac_prev
=exec_prefix
;;
1501 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1502 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1503 |
--exec=* |
--exe=* |
--ex=*)
1504 exec_prefix
=$ac_optarg ;;
1506 -gas |
--gas |
--ga |
--g)
1507 # Obsolete; use --with-gas.
1510 -help |
--help |
--hel |
--he |
-h)
1511 ac_init_help
=long
;;
1512 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1513 ac_init_help
=recursive
;;
1514 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1515 ac_init_help
=short
;;
1517 -host |
--host |
--hos |
--ho)
1518 ac_prev
=host_alias
;;
1519 -host=* |
--host=* |
--hos=* |
--ho=*)
1520 host_alias
=$ac_optarg ;;
1522 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1524 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1526 htmldir
=$ac_optarg ;;
1528 -includedir |
--includedir |
--includedi |
--included |
--include \
1529 |
--includ |
--inclu |
--incl |
--inc)
1530 ac_prev
=includedir
;;
1531 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1532 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1533 includedir
=$ac_optarg ;;
1535 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1537 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1538 infodir
=$ac_optarg ;;
1540 -libdir |
--libdir |
--libdi |
--libd)
1542 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1543 libdir
=$ac_optarg ;;
1545 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1546 |
--libexe |
--libex |
--libe)
1547 ac_prev
=libexecdir
;;
1548 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1549 |
--libexe=* |
--libex=* |
--libe=*)
1550 libexecdir
=$ac_optarg ;;
1552 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1553 ac_prev
=localedir
;;
1554 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1555 localedir
=$ac_optarg ;;
1557 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1558 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1559 ac_prev
=localstatedir
;;
1560 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1561 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1562 localstatedir
=$ac_optarg ;;
1564 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1566 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1567 mandir
=$ac_optarg ;;
1569 -nfp |
--nfp |
--nf)
1570 # Obsolete; use --without-fp.
1573 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1574 |
--no-cr |
--no-c |
-n)
1577 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1578 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1581 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1582 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1583 |
--oldin |
--oldi |
--old |
--ol |
--o)
1584 ac_prev
=oldincludedir
;;
1585 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1586 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1587 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1588 oldincludedir
=$ac_optarg ;;
1590 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1592 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1593 prefix
=$ac_optarg ;;
1595 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1596 |
--program-pre |
--program-pr |
--program-p)
1597 ac_prev
=program_prefix
;;
1598 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1599 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1600 program_prefix
=$ac_optarg ;;
1602 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1603 |
--program-suf |
--program-su |
--program-s)
1604 ac_prev
=program_suffix
;;
1605 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1606 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1607 program_suffix
=$ac_optarg ;;
1609 -program-transform-name |
--program-transform-name \
1610 |
--program-transform-nam |
--program-transform-na \
1611 |
--program-transform-n |
--program-transform- \
1612 |
--program-transform |
--program-transfor \
1613 |
--program-transfo |
--program-transf \
1614 |
--program-trans |
--program-tran \
1615 |
--progr-tra |
--program-tr |
--program-t)
1616 ac_prev
=program_transform_name
;;
1617 -program-transform-name=* |
--program-transform-name=* \
1618 |
--program-transform-nam=* |
--program-transform-na=* \
1619 |
--program-transform-n=* |
--program-transform-=* \
1620 |
--program-transform=* |
--program-transfor=* \
1621 |
--program-transfo=* |
--program-transf=* \
1622 |
--program-trans=* |
--program-tran=* \
1623 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1624 program_transform_name
=$ac_optarg ;;
1626 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1628 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1629 pdfdir
=$ac_optarg ;;
1631 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1633 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1636 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1637 |
-silent |
--silent |
--silen |
--sile |
--sil)
1640 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1642 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1644 sbindir
=$ac_optarg ;;
1646 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1647 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1648 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1650 ac_prev
=sharedstatedir
;;
1651 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1652 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1653 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1655 sharedstatedir
=$ac_optarg ;;
1657 -site |
--site |
--sit)
1659 -site=* |
--site=* |
--sit=*)
1662 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1664 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1665 srcdir
=$ac_optarg ;;
1667 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1668 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1669 ac_prev
=sysconfdir
;;
1670 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1671 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1672 sysconfdir
=$ac_optarg ;;
1674 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1675 ac_prev
=target_alias
;;
1676 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1677 target_alias
=$ac_optarg ;;
1679 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1682 -version |
--version |
--versio |
--versi |
--vers |
-V)
1683 ac_init_version
=: ;;
1686 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1687 # Reject names that are not valid shell variable names.
1688 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1689 as_fn_error
"invalid package name: $ac_useropt"
1690 ac_useropt_orig
=$ac_useropt
1691 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1692 case $ac_user_opts in
1696 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1697 ac_unrecognized_sep
=', ';;
1699 eval with_
$ac_useropt=\
$ac_optarg ;;
1701 -without-* |
--without-*)
1702 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1703 # Reject names that are not valid shell variable names.
1704 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1705 as_fn_error
"invalid package name: $ac_useropt"
1706 ac_useropt_orig
=$ac_useropt
1707 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1708 case $ac_user_opts in
1712 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1713 ac_unrecognized_sep
=', ';;
1715 eval with_
$ac_useropt=no
;;
1718 # Obsolete; use --with-x.
1721 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1722 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1723 ac_prev
=x_includes
;;
1724 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1725 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1726 x_includes
=$ac_optarg ;;
1728 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1729 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1730 ac_prev
=x_libraries
;;
1731 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1732 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1733 x_libraries
=$ac_optarg ;;
1735 -*) as_fn_error
"unrecognized option: \`$ac_option'
1736 Try \`$0 --help' for more information."
1740 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1741 # Reject names that are not valid shell variable names.
1742 case $ac_envvar in #(
1743 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1744 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1746 eval $ac_envvar=\
$ac_optarg
1747 export $ac_envvar ;;
1750 # FIXME: should be removed in autoconf 3.0.
1751 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1752 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1753 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1754 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1760 if test -n "$ac_prev"; then
1761 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1762 as_fn_error
"missing argument to $ac_option"
1765 if test -n "$ac_unrecognized_opts"; then
1766 case $enable_option_checking in
1768 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1769 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1773 # Check all directory arguments for consistency.
1774 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1775 datadir sysconfdir sharedstatedir localstatedir includedir \
1776 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1777 libdir localedir mandir
1779 eval ac_val
=\$
$ac_var
1780 # Remove trailing slashes.
1783 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1784 eval $ac_var=\
$ac_val;;
1786 # Be sure to have absolute directory names.
1788 [\\/$
]* | ?
:[\\/]* ) continue;;
1789 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1791 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1794 # There might be people who depend on the old broken behavior: `$host'
1795 # used to hold the argument of --host etc.
1796 # FIXME: To remove some day.
1799 target
=$target_alias
1801 # FIXME: To remove some day.
1802 if test "x$host_alias" != x
; then
1803 if test "x$build_alias" = x
; then
1804 cross_compiling
=maybe
1805 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1806 If a cross compiler is detected then cross compile mode will be used." >&2
1807 elif test "x$build_alias" != "x$host_alias"; then
1813 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1815 test "$silent" = yes && exec 6>/dev
/null
1818 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1819 ac_ls_di
=`ls -di .` &&
1820 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1821 as_fn_error
"working directory cannot be determined"
1822 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1823 as_fn_error
"pwd does not report name of working directory"
1826 # Find the source files, if location was not specified.
1827 if test -z "$srcdir"; then
1828 ac_srcdir_defaulted
=yes
1829 # Try the directory containing this script, then the parent directory.
1830 ac_confdir
=`$as_dirname -- "$as_myself" ||
1831 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1832 X"$as_myself" : 'X\(//\)[^/]' \| \
1833 X"$as_myself" : 'X\(//\)$' \| \
1834 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1835 $as_echo X"$as_myself" |
1836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1854 if test ! -r "$srcdir/$ac_unique_file"; then
1858 ac_srcdir_defaulted
=no
1860 if test ! -r "$srcdir/$ac_unique_file"; then
1861 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1862 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1864 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1866 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1868 # When building in place, set srcdir=.
1869 if test "$ac_abs_confdir" = "$ac_pwd"; then
1872 # Remove unnecessary trailing slashes from srcdir.
1873 # Double slashes in file names in object file debugging info
1874 # mess up M-x gdb in Emacs.
1876 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1878 for ac_var
in $ac_precious_vars; do
1879 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1880 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1881 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1882 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1886 # Report the --help message.
1888 if test "$ac_init_help" = "long"; then
1889 # Omit some internal or obsolete options to make the list less imposing.
1890 # This message is too long to be a string in the A/UX 3.1 sh.
1892 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1894 Usage: $0 [OPTION]... [VAR=VALUE]...
1896 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1897 VAR=VALUE. See below for descriptions of some of the useful variables.
1899 Defaults for the options are specified in brackets.
1902 -h, --help display this help and exit
1903 --help=short display options specific to this package
1904 --help=recursive display the short help of all the included packages
1905 -V, --version display version information and exit
1906 -q, --quiet, --silent do not print \`checking...' messages
1907 --cache-file=FILE cache test results in FILE [disabled]
1908 -C, --config-cache alias for \`--cache-file=config.cache'
1909 -n, --no-create do not create output files
1910 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1912 Installation directories:
1913 --prefix=PREFIX install architecture-independent files in PREFIX
1914 [$ac_default_prefix]
1915 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1918 By default, \`make install' will install all the files in
1919 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1920 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1921 for instance \`--prefix=\$HOME'.
1923 For better control, use the options below.
1925 Fine tuning of the installation directories:
1926 --bindir=DIR user executables [EPREFIX/bin]
1927 --sbindir=DIR system admin executables [EPREFIX/sbin]
1928 --libexecdir=DIR program executables [EPREFIX/libexec]
1929 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1930 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1931 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1932 --libdir=DIR object code libraries [EPREFIX/lib]
1933 --includedir=DIR C header files [PREFIX/include]
1934 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1935 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1936 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1937 --infodir=DIR info documentation [DATAROOTDIR/info]
1938 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1939 --mandir=DIR man documentation [DATAROOTDIR/man]
1940 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1941 --htmldir=DIR html documentation [DOCDIR]
1942 --dvidir=DIR dvi documentation [DOCDIR]
1943 --pdfdir=DIR pdf documentation [DOCDIR]
1944 --psdir=DIR ps documentation [DOCDIR]
1950 --program-prefix=PREFIX prepend PREFIX to installed program names
1951 --program-suffix=SUFFIX append SUFFIX to installed program names
1952 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1955 --x-includes=DIR X include files are
in DIR
1956 --x-libraries=DIR X library files are
in DIR
1959 --build=BUILD configure
for building on BUILD
[guessed
]
1960 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1964 if test -n "$ac_init_help"; then
1965 case $ac_init_help in
1966 short | recursive
) echo "Configuration of emacs 24.1.50:";;
1971 --disable-option-checking ignore unrecognized
--enable/--with options
1972 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1973 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1974 --disable-ns-self-contained
1975 disable self contained build under NeXTstep
1976 --enable-asserts compile code with asserts enabled
1977 --disable-maintainer-mode
1978 disable
make rules and dependencies not useful
(and
1979 sometimes confusing
) to the casual installer
1980 --enable-locallisppath=PATH
1981 directories Emacs should search
for lisp files
1982 specific to this site
1983 --enable-checking[=LIST
]
1984 enable expensive run-time checks. With LIST
, enable
1985 only specific categories of checks. Categories are
:
1986 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1987 stringfreelist
, xmallocoverrun
, conslist
1988 --enable-use-lisp-union-type
1989 use a union
for the Lisp_Object data
type. This is
1990 only useful
for development
for catching certain
1992 --enable-profiling build emacs with profiling support. This might not
1993 work on all platforms
1994 --enable-autodepend automatically generate dependencies to .h-files.
1995 Requires GNU Make and Gcc. Enabled
if GNU Make and
1997 --disable-dependency-tracking speeds up one-time build
1998 --enable-dependency-tracking do not reject slow dependency extractors
1999 --disable-largefile omit support
for large files
2000 --enable-gcc-warnings turn on lots of GCC warnings
(for developers
)
2003 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2004 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2005 --without-pop don
't support POP mail retrieval with movemail
2006 --with-kerberos support Kerberos-authenticated POP
2007 --with-kerberos5 support Kerberos version 5 authenticated POP
2008 --with-hesiod support Hesiod to get the POP server host
2009 --with-mmdf support MMDF mailboxes
2010 --with-mail-unlink unlink, rather than empty, mail spool after reading
2011 --with-mailhost=HOSTNAME
2012 string giving default POP mail host
2013 --without-sound don't compile with sound support
2014 --without-sync-input process async input synchronously
2015 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
2016 lucid or athena
, motif
, no
)
2017 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2018 --without-xpm don
't compile with XPM image support
2019 --without-jpeg don't compile with JPEG image support
2020 --without-tiff don
't compile with TIFF image support
2021 --without-gif don't compile with GIF image support
2022 --without-png don
't compile with PNG image support
2023 --without-rsvg don't compile with SVG image support
2024 --without-xml2 don
't compile with XML parsing support
2025 --without-imagemagick don't compile with ImageMagick image support
2026 --without-xft don
't use XFT for anti aliased fonts
2027 --without-libotf don't use libotf
for OpenType font support
2028 --without-m17n-flt don
't use m17n-flt for text shaping
2029 --without-toolkit-scroll-bars
2030 don't use Motif or Xaw3d scroll bars
2031 --without-xaw3d don
't use Xaw3d
2032 --without-xim don't use X11 XIM
2033 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2034 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2036 --without-dbus don't compile with D-Bus support
2037 --without-gconf don
't compile with GConf support
2038 --without-gsettings don't compile with GSettings support
2039 --without-selinux don
't compile with SELinux support
2040 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2041 --without-makeinfo don
't require makeinfo for building manuals
2042 --without-compress-info don't
compress the installed Info pages
2043 --with-pkg-config-prog=PATH
2044 path to pkg-config
for finding GTK and librsvg
2045 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2046 /usr
/lib
, or
/usr
/lib64 on some platforms.
2047 --with-gameuser=USER user
for shared game score files
2048 --with-gnustep-conf=PATH
2049 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2050 or
/etc
/GNUstep
/GNUstep.conf
2051 --with-x use the X Window System
2053 Some influential environment variables
:
2054 CC C compiler
command
2055 CFLAGS C compiler flags
2056 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2057 nonstandard directory
<lib dir
>
2058 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2059 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2060 you have headers
in a nonstandard directory
<include dir
>
2062 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2064 Use these variables to override the choices made by
`configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2067 Report bugs to the package provider.
2072 if test "$ac_init_help" = "recursive"; then
2073 # If there are subdirs, report their specific --help.
2074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2075 test -d "$ac_dir" ||
2076 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2084 # A ".." for each directory in $ac_dir_suffix.
2085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2086 case $ac_top_builddir_sub in
2087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2091 ac_abs_top_builddir=$ac_pwd
2092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2093 # for backward compatibility:
2094 ac_top_builddir=$ac_top_build_prefix
2097 .) # We are building in place.
2099 ac_top_srcdir=$ac_top_builddir_sub
2100 ac_abs_top_srcdir=$ac_pwd ;;
2101 [\\/]* | ?:[\\/]* ) # Absolute name.
2102 ac_srcdir=$srcdir$ac_dir_suffix;
2103 ac_top_srcdir=$srcdir
2104 ac_abs_top_srcdir=$srcdir ;;
2106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2107 ac_top_srcdir=$ac_top_build_prefix$srcdir
2108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2112 cd "$ac_dir" || { ac_status=$?; continue; }
2113 # Check for guested configure.
2114 if test -f "$ac_srcdir/configure.gnu"; then
2116 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2117 elif test -f "$ac_srcdir/configure"; then
2119 $SHELL "$ac_srcdir/configure" --help=recursive
2121 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2123 cd "$ac_pwd" || { ac_status=$?; break; }
2127 test -n "$ac_init_help" && exit $ac_status
2128 if $ac_init_version; then
2130 emacs configure 24.1.50
2131 generated by GNU Autoconf 2.65
2133 Copyright (C) 2009 Free Software Foundation, Inc.
2134 This configure script is free software; the Free Software Foundation
2135 gives unlimited permission to copy, distribute and modify it.
2140 ## ------------------------ ##
2141 ## Autoconf initialization. ##
2142 ## ------------------------ ##
2144 # ac_fn_c_try_compile LINENO
2145 # --------------------------
2146 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2147 ac_fn_c_try_compile ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 rm -f conftest.$ac_objext
2151 if { { ac_try="$ac_compile"
2153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2154 *) ac_try_echo
=$ac_try;;
2156 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2157 $as_echo "$ac_try_echo"; } >&5
2158 (eval "$ac_compile") 2>conftest.err
2160 if test -s conftest.err
; then
2161 grep -v '^ *+' conftest.err
>conftest.er1
2162 cat conftest.er1
>&5
2163 mv -f conftest.er1 conftest.err
2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166 test $ac_status = 0; } && {
2167 test -z "$ac_c_werror_flag" ||
2168 test ! -s conftest.err
2169 } && test -s conftest.
$ac_objext; then :
2172 $as_echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.
$ac_ext >&5
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2178 as_fn_set_status
$ac_retval
2180 } # ac_fn_c_try_compile
2182 # ac_fn_c_try_cpp LINENO
2183 # ----------------------
2184 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2188 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 $as_echo "$ac_try_echo"; } >&5
2195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2197 if test -s conftest.err; then
2198 grep -v '^ *+' conftest.err >conftest.er1
2199 cat conftest.er1 >&5
2200 mv -f conftest.er1 conftest.err
2202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203 test $ac_status = 0; } >/dev/null && {
2204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2205 test ! -s conftest.err
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2214 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2215 as_fn_set_status $ac_retval
2219 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2220 # -------------------------------------------------------
2221 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2222 # the include files in INCLUDES and setting the cache variable VAR
2224 ac_fn_c_check_header_mongrel ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2231 $as_echo_n "(cached) " >&6
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2237 # Is the header compilable?
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2239 $as_echo_n "checking $2 usability... " >&6; }
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 ac_header_compiler=yes
2248 ac_header_compiler=no
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2252 $as_echo "$ac_header_compiler" >&6; }
2254 # Is the header present?
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2256 $as_echo_n "checking $2 presence... " >&6; }
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2261 if ac_fn_c_try_cpp "$LINENO"; then :
2262 ac_header_preproc=yes
2264 ac_header_preproc=no
2266 rm -f conftest.err conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2268 $as_echo "$ac_header_preproc" >&6; }
2270 # So? What about this header?
2271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2274 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2276 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2280 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2282 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2284 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2286 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292 $as_echo_n "checking for $2... " >&6; }
2293 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2294 $as_echo_n "(cached) " >&6
2296 eval "$3=\$ac_header_compiler"
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2304 } # ac_fn_c_check_header_mongrel
2306 # ac_fn_c_try_run LINENO
2307 # ----------------------
2308 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2309 # that executables *can* be run.
2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313 if { { ac_try="$ac_link"
2315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2316 *) ac_try_echo
=$ac_try;;
2318 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319 $as_echo "$ac_try_echo"; } >&5
2320 (eval "$ac_link") 2>&5
2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2324 { { case "(($ac_try" in
2325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2329 $as_echo "$ac_try_echo"; } >&5
2330 (eval "$ac_try") 2>&5
2332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2333 test $ac_status = 0; }; }; then :
2336 $as_echo "$as_me: program exited with status $ac_status" >&5
2337 $as_echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 ac_retval=$ac_status
2342 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2343 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2344 as_fn_set_status $ac_retval
2348 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2349 # -------------------------------------------------------
2350 # Tests whether HEADER exists and can be compiled using the include files in
2351 # INCLUDES, setting the cache variable VAR accordingly.
2352 ac_fn_c_check_header_compile ()
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2356 $as_echo_n "checking for $2... " >&6; }
2357 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2358 $as_echo_n "(cached) " >&6
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2365 if ac_fn_c_try_compile "$LINENO"; then :
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2377 } # ac_fn_c_check_header_compile
2379 # ac_fn_c_try_link LINENO
2380 # -----------------------
2381 # Try to link conftest.$ac_ext, and return whether this succeeded.
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { { ac_try="$ac_link"
2388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2389 *) ac_try_echo
=$ac_try;;
2391 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2392 $as_echo "$ac_try_echo"; } >&5
2393 (eval "$ac_link") 2>conftest.err
2395 if test -s conftest.err
; then
2396 grep -v '^ *+' conftest.err
>conftest.er1
2397 cat conftest.er1
>&5
2398 mv -f conftest.er1 conftest.err
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; } && {
2402 test -z "$ac_c_werror_flag" ||
2403 test ! -s conftest.err
2404 } && test -s conftest
$ac_exeext && {
2405 test "$cross_compiling" = yes ||
2406 $as_test_x conftest
$ac_exeext
2410 $as_echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.
$ac_ext >&5
2415 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2416 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2417 # interfere with the next link command; also delete a directory that is
2418 # left behind by Apple's compiler. We do this before executing the actions.
2419 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2421 as_fn_set_status
$ac_retval
2423 } # ac_fn_c_try_link
2425 # ac_fn_c_check_decl LINENO SYMBOL VAR
2426 # ------------------------------------
2427 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2428 ac_fn_c_check_decl
()
2430 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2432 $as_echo_n "checking whether $2 is declared... " >&6; }
2433 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2450 if ac_fn_c_try_compile
"$LINENO"; then :
2455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2462 } # ac_fn_c_check_decl
2464 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2465 # ----------------------------------------------
2466 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2467 ac_fn_c_check_header_preproc
()
2469 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2479 if ac_fn_c_try_cpp
"$LINENO"; then :
2484 rm -f conftest.err conftest.
$ac_ext
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2491 } # ac_fn_c_check_header_preproc
2493 # ac_fn_c_check_func LINENO FUNC VAR
2494 # ----------------------------------
2495 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2496 ac_fn_c_check_func
()
2498 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2500 $as_echo_n "checking for $2... " >&6; }
2501 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2502 $as_echo_n "(cached) " >&6
2504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2506 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2508 #define $2 innocuous_$2
2510 /* System header to define __stub macros and hopefully few prototypes,
2511 which can conflict with char $2 (); below.
2512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2513 <limits.h> exists even on freestanding compilers. */
2516 # include <limits.h>
2518 # include <assert.h>
2523 /* Override any GCC internal prototype to avoid an error.
2524 Use char because int might match the return type of a GCC
2525 builtin and then its argument prototype would still apply. */
2530 /* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533 #if defined __stub_$2 || defined __stub___$2
2545 if ac_fn_c_try_link
"$LINENO"; then :
2550 rm -f core conftest.err conftest.
$ac_objext \
2551 conftest
$ac_exeext conftest.
$ac_ext
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2558 } # ac_fn_c_check_func
2560 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561 # ----------------------------------------------------
2562 # Tries to find if the field MEMBER exists in type AGGR, after including
2563 # INCLUDES, setting cache variable VAR accordingly.
2564 ac_fn_c_check_member
()
2566 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568 $as_echo_n "checking for $2.$3... " >&6; }
2569 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2570 $as_echo_n "(cached) " >&6
2572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2585 if ac_fn_c_try_compile
"$LINENO"; then :
2588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2595 if (sizeof ac_aggr.$3)
2601 if ac_fn_c_try_compile
"$LINENO"; then :
2606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2615 } # ac_fn_c_check_member
2617 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2618 # -------------------------------------------
2619 # Tests whether TYPE exists after having included INCLUDES, setting cache
2620 # variable VAR accordingly.
2621 ac_fn_c_check_type
()
2623 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2625 $as_echo_n "checking for $2... " >&6; }
2626 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2627 $as_echo_n "(cached) " >&6
2630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2642 if ac_fn_c_try_compile
"$LINENO"; then :
2643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2655 if ac_fn_c_try_compile
"$LINENO"; then :
2660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2666 $as_echo "$ac_res" >&6; }
2667 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2669 } # ac_fn_c_check_type
2671 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2672 # --------------------------------------------
2673 # Tries to find the compile-time value of EXPR in a program that includes
2674 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2676 ac_fn_c_compute_int
()
2678 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2679 if test "$cross_compiling" = yes; then
2680 # Depending upon the size, compute the lo and hi bounds.
2681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2687 static int test_array [1 - 2 * !(($2) >= 0)];
2694 if ac_fn_c_try_compile
"$LINENO"; then :
2697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h. */
2703 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2710 if ac_fn_c_try_compile
"$LINENO"; then :
2711 ac_hi
=$ac_mid; break
2713 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2714 if test $ac_lo -le $ac_mid; then
2718 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2724 /* end confdefs.h. */
2729 static int test_array [1 - 2 * !(($2) < 0)];
2736 if ac_fn_c_try_compile
"$LINENO"; then :
2739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2745 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2752 if ac_fn_c_try_compile
"$LINENO"; then :
2753 ac_lo
=$ac_mid; break
2755 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2756 if test $ac_mid -le $ac_hi; then
2760 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2770 # Binary search between lo and hi bounds.
2771 while test "x$ac_lo" != "x$ac_hi"; do
2772 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2779 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2786 if ac_fn_c_try_compile
"$LINENO"; then :
2789 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2794 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2801 static long int longval () { return $2; }
2802 static unsigned long int ulongval () { return $2; }
2809 FILE *f = fopen ("conftest.val", "w");
2814 long int i = longval ();
2817 fprintf (f, "%ld", i);
2821 unsigned long int i = ulongval ();
2824 fprintf (f, "%lu", i);
2826 /* Do not output a trailing newline, as this causes \r\n confusion
2827 on some platforms. */
2828 return ferror (f) || fclose (f) != 0;
2834 if ac_fn_c_try_run
"$LINENO"; then :
2835 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2839 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2840 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2844 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2845 as_fn_set_status
$ac_retval
2847 } # ac_fn_c_compute_int
2848 cat >config.log
<<_ACEOF
2849 This file contains any messages produced by compilers while
2850 running configure, to aid debugging if configure makes a mistake.
2852 It was created by emacs $as_me 24.1.50, which was
2853 generated by GNU Autoconf 2.65. Invocation command line was
2865 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2866 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2867 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2868 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2869 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2871 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2872 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2874 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2875 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2876 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2877 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2878 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2879 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2880 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir
=.
2889 $as_echo "PATH: $as_dir"
2905 # Keep a trace of the command line.
2906 # Strip out --no-create and --no-recursion so they do not pile up.
2907 # Strip out --silent because we don't want to record it for future runs.
2908 # Also quote any args containing shell meta-characters.
2909 # Make two passes to allow for proper duplicate-argument suppression.
2913 ac_must_keep_next
=false
2919 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2920 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2921 |
-silent |
--silent |
--silen |
--sile |
--sil)
2924 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2927 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2929 as_fn_append ac_configure_args1
" '$ac_arg'"
2930 if test $ac_must_keep_next = true
; then
2931 ac_must_keep_next
=false
# Got value, back to normal.
2934 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2935 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2936 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2937 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2938 case "$ac_configure_args0 " in
2939 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2942 -* ) ac_must_keep_next
=true
;;
2945 as_fn_append ac_configure_args
" '$ac_arg'"
2950 { ac_configure_args0
=; unset ac_configure_args0
;}
2951 { ac_configure_args1
=; unset ac_configure_args1
;}
2953 # When interrupted or exit'd, cleanup temporary files, and complete
2954 # config.log. We remove comments because anyway the quotes in there
2955 # would cause problems or look ugly.
2956 # WARNING: Use '\'' to represent an apostrophe within the trap.
2957 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2958 trap 'exit_status=$?
2959 # Save into config.log some information that might help in debugging.
2964 ## ---------------- ##
2965 ## Cache variables. ##
2966 ## ---------------- ##
2969 # The following way of writing the cache mishandles newlines in values,
2971 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2972 eval ac_val=\$$ac_var
2976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2980 _ | IFS | as_nl) ;; #(
2981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2982 *) { eval $ac_var=; unset $ac_var;} ;;
2987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2988 *${as_nl}ac_space=\ *)
2990 "s/'\''/'\''\\\\'\'''\''/g;
2991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3002 ## ----------------- ##
3003 ## Output variables. ##
3004 ## ----------------- ##
3007 for ac_var in $ac_subst_vars
3009 eval ac_val=\$$ac_var
3011 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 $as_echo "$ac_var='\''$ac_val'\''"
3017 if test -n "$ac_subst_files"; then
3019 ## ------------------- ##
3020 ## File substitutions. ##
3021 ## ------------------- ##
3024 for ac_var
in $ac_subst_files
3026 eval ac_val
=\$
$ac_var
3028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3030 $as_echo "$ac_var='\''$ac_val'\''"
3035 if test -s confdefs.h; then
3045 test "$ac_signal" != 0 &&
3046 $as_echo "$as_me: caught signal $ac_signal"
3047 $as_echo "$as_me: exit $exit_status"
3049 rm -f core *.core core.conftest.* &&
3050 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3053 for ac_signal
in 1 2 13 15; do
3054 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3059 rm -f -r conftest
* confdefs.h
3061 $as_echo "/* confdefs.h */" > confdefs.h
3063 # Predefined preprocessor variables.
3065 cat >>confdefs.h
<<_ACEOF
3066 #define PACKAGE_NAME "$PACKAGE_NAME"
3069 cat >>confdefs.h
<<_ACEOF
3070 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3073 cat >>confdefs.h
<<_ACEOF
3074 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3077 cat >>confdefs.h
<<_ACEOF
3078 #define PACKAGE_STRING "$PACKAGE_STRING"
3081 cat >>confdefs.h
<<_ACEOF
3082 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3085 cat >>confdefs.h
<<_ACEOF
3086 #define PACKAGE_URL "$PACKAGE_URL"
3090 # Let the site file select an alternate cache file if it wants to.
3091 # Prefer an explicitly selected file to automatically selected ones.
3094 if test -n "$CONFIG_SITE"; then
3095 ac_site_file1
=$CONFIG_SITE
3096 elif test "x$prefix" != xNONE
; then
3097 ac_site_file1
=$prefix/share
/config.site
3098 ac_site_file2
=$prefix/etc
/config.site
3100 ac_site_file1
=$ac_default_prefix/share
/config.site
3101 ac_site_file2
=$ac_default_prefix/etc
/config.site
3103 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3105 test "x$ac_site_file" = xNONE
&& continue
3106 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3108 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3109 sed 's/^/| /' "$ac_site_file" >&5
3114 if test -r "$cache_file"; then
3115 # Some versions of bash will fail to source /dev/null (special files
3116 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3117 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3119 $as_echo "$as_me: loading cache $cache_file" >&6;}
3121 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3122 *) .
"./$cache_file";;
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3127 $as_echo "$as_me: creating cache $cache_file" >&6;}
3131 as_fn_append ac_header_list
" stdlib.h"
3132 as_fn_append ac_header_list
" unistd.h"
3133 as_fn_append ac_header_list
" sys/param.h"
3134 as_fn_append ac_func_list
" readlinkat"
3135 gl_getopt_required
=GNU
3136 as_fn_append ac_header_list
" getopt.h"
3137 as_fn_append ac_header_list
" wchar.h"
3138 as_fn_append ac_header_list
" stdint.h"
3139 as_fn_append ac_header_list
" inttypes.h"
3140 as_fn_append ac_func_list
" lstat"
3141 as_fn_append ac_func_list
" alarm"
3142 as_fn_append ac_func_list
" pthread_sigmask"
3143 as_fn_append ac_func_list
" readlink"
3144 as_fn_append ac_header_list
" sys/socket.h"
3145 as_fn_append ac_func_list
" tzset"
3146 as_fn_append ac_func_list
" strtoimax"
3147 as_fn_append ac_func_list
" strtoumax"
3148 as_fn_append ac_func_list
" symlink"
3149 as_fn_append ac_header_list
" sys/stat.h"
3150 as_fn_append ac_header_list
" sys/time.h"
3151 as_fn_append ac_func_list
" localtime_r"
3152 # Check that the precious variables saved in the cache have kept the same
3154 ac_cache_corrupted
=false
3155 for ac_var
in $ac_precious_vars; do
3156 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3157 eval ac_new_set
=\
$ac_env_${ac_var}_set
3158 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3159 eval ac_new_val
=\
$ac_env_${ac_var}_value
3160 case $ac_old_set,$ac_new_set in
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3163 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3164 ac_cache_corrupted
=: ;;
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3167 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3168 ac_cache_corrupted
=: ;;
3171 if test "x$ac_old_val" != "x$ac_new_val"; then
3172 # differences in whitespace do not lead to failure.
3173 ac_old_val_w
=`echo x $ac_old_val`
3174 ac_new_val_w
=`echo x $ac_new_val`
3175 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3177 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3178 ac_cache_corrupted
=:
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3181 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3182 eval $ac_var=\
$ac_old_val
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3185 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3187 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3190 # Pass precious variables to config.status.
3191 if test "$ac_new_set" = set; then
3193 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3194 *) ac_arg
=$ac_var=$ac_new_val ;;
3196 case " $ac_configure_args " in
3197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3198 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3202 if $ac_cache_corrupted; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3206 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3207 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3209 ## -------------------- ##
3210 ## Main body of script. ##
3211 ## -------------------- ##
3214 ac_cpp
='$CPP $CPPFLAGS'
3215 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3220 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3224 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3225 for ac_t
in install-sh
install.sh shtool
; do
3226 if test -f "$ac_dir/$ac_t"; then
3228 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3233 if test -z "$ac_aux_dir"; then
3234 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3237 # These three variables are undocumented and unsupported,
3238 # and are intended to be withdrawn in a future Autoconf release.
3239 # They can cause serious problems if a builder's source tree is in a directory
3240 # whose full name contains unusual characters.
3241 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3242 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3243 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3246 am__api_version
='1.11'
3248 # Find a good install program. We prefer a C program (faster),
3249 # so one script is as good as another. But avoid the broken or
3250 # incompatible versions:
3251 # SysV /etc/install, /usr/sbin/install
3252 # SunOS /usr/etc/install
3253 # IRIX /sbin/install
3255 # AmigaOS /C/install, which installs bootblocks on floppy discs
3256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3259 # OS/2's system install, which has a completely different semantic
3260 # ./install, which can be erroneously created by make from ./install.sh.
3261 # Reject install programs that cannot install multiple files.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3263 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3264 if test -z "$INSTALL"; then
3265 if test "${ac_cv_path_install+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir
=.
3273 # Account for people who put trailing slashes in PATH elements.
3274 case $as_dir/ in #((
3275 .
/ | .
// |
/[cC
]/* | \
3276 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3277 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3280 # OSF1 and SCO ODT 3.0 have their own names for install.
3281 # Don't use installbsd from OSF since it installs stuff as root
3283 for ac_prog
in ginstall scoinst
install; do
3284 for ac_exec_ext
in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3286 if test $ac_prog = install &&
3287 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3288 # AIX install. It has an incompatible calling convention.
3290 elif test $ac_prog = install &&
3291 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3292 # program-specific install script used by HP pwplus--don't use.
3295 rm -rf conftest.one conftest.two conftest.dir
3296 echo one
> conftest.one
3297 echo two
> conftest.two
3299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3300 test -s conftest.one
&& test -s conftest.two
&&
3301 test -s conftest.dir
/conftest.one
&&
3302 test -s conftest.dir
/conftest.two
3304 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3317 rm -rf conftest.one conftest.two conftest.dir
3320 if test "${ac_cv_path_install+set}" = set; then
3321 INSTALL
=$ac_cv_path_install
3323 # As a last resort, use the slow shell script. Don't cache a
3324 # value for INSTALL within a source directory, because that will
3325 # break other packages using the cache if that directory is
3326 # removed, or if the value is a relative name.
3327 INSTALL
=$ac_install_sh
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3331 $as_echo "$INSTALL" >&6; }
3333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3334 # It thinks the first close brace ends the variable substitution.
3335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3342 $as_echo_n "checking whether build environment is sane... " >&6; }
3345 echo timestamp
> conftest.
file
3346 # Reject unsafe characters in $srcdir or the absolute working directory
3347 # name. Accept space and tab only in the latter.
3351 *[\\\"\
#\$\&\'\`$am_lf]*)
3352 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3355 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3356 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3359 # Do `set' in a subshell so we don't clobber the current shell's
3360 # arguments. Must try -L first in case configure is actually a
3361 # symlink; some systems play weird games with the mod time of symlinks
3362 # (eg FreeBSD returns the mod time of the symlink's containing
3365 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3366 if test "$*" = "X"; then
3368 set X
`ls -t "$srcdir/configure" conftest.file`
3371 if test "$*" != "X $srcdir/configure conftest.file" \
3372 && test "$*" != "X conftest.file $srcdir/configure"; then
3374 # If neither matched, then we have a broken ls. This can happen
3375 # if, for instance, CONFIG_SHELL is bash and it inherits a
3376 # broken ls alias from the environment. This has actually
3377 # happened. Such a system could not be considered "sane".
3378 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3379 alias in your environment" "$LINENO" 5
3382 test "$2" = conftest.
file
3388 as_fn_error
"newly created file is older than distributed files!
3389 Check your system clock" "$LINENO" 5
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392 $as_echo "yes" >&6; }
3393 test "$program_prefix" != NONE
&&
3394 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3395 # Use a double $ so make ignores it.
3396 test "$program_suffix" != NONE
&&
3397 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3398 # Double any \ or $.
3399 # By default was `s,x,x', remove it if useless.
3400 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3401 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3403 # expand $ac_aux_dir to an absolute path
3404 am_aux_dir
=`cd $ac_aux_dir && pwd`
3406 if test x
"${MISSING+set}" != xset
; then
3409 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3411 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3414 # Use eval to expand $SHELL
3415 if eval "$MISSING --run true"; then
3416 am_missing_run
="$MISSING --run "
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3420 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3423 if test x
"${install_sh}" != xset
; then
3426 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3428 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3432 # Installed binaries are usually stripped using `strip' when the user
3433 # run `make install-strip'. However `strip' might not be the right
3434 # tool to use in cross-compilation environments, therefore Automake
3435 # will honor the `STRIP' environment variable to overrule this program.
3436 if test "$cross_compiling" != no
; then
3437 if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3439 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_STRIP+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$STRIP"; then
3446 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir
=.
3453 for ac_exec_ext
in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 STRIP
=$ac_cv_prog_STRIP
3466 if test -n "$STRIP"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3468 $as_echo "$STRIP" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3476 if test -z "$ac_cv_prog_STRIP"; then
3478 # Extract the first word of "strip", so it can be a program name with args.
3479 set dummy strip
; ac_word
=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3485 if test -n "$ac_ct_STRIP"; then
3486 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir
=.
3493 for ac_exec_ext
in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_ac_ct_STRIP
="strip"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3506 if test -n "$ac_ct_STRIP"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3508 $as_echo "$ac_ct_STRIP" >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3514 if test "x$ac_ct_STRIP" = x
; then
3517 case $cross_compiling:$ac_tool_warned in
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521 ac_tool_warned
=yes ;;
3526 STRIP
="$ac_cv_prog_STRIP"
3530 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3533 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3534 if test -z "$MKDIR_P"; then
3535 if test "${ac_cv_path_mkdir+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3539 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3542 test -z "$as_dir" && as_dir
=.
3543 for ac_prog
in mkdir gmkdir
; do
3544 for ac_exec_ext
in '' $ac_executable_extensions; do
3545 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3547 'mkdir (GNU coreutils) '* | \
3548 'mkdir (coreutils) '* | \
3549 'mkdir (fileutils) '4.1*)
3550 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3560 test -d .
/--version && rmdir .
/--version
3561 if test "${ac_cv_path_mkdir+set}" = set; then
3562 MKDIR_P
="$ac_cv_path_mkdir -p"
3564 # As a last resort, use the slow shell script. Don't cache a
3565 # value for MKDIR_P within a source directory, because that will
3566 # break other packages using the cache if that directory is
3567 # removed, or if the value is a relative name.
3568 MKDIR_P
="$ac_install_sh -d"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3572 $as_echo "$MKDIR_P" >&6; }
3577 [\\/$
]* | ?
:[\\/]*) ;;
3578 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3581 for ac_prog
in gawk mawk nawk
awk
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy
$ac_prog; ac_word
=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_AWK+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3590 if test -n "$AWK"; then
3591 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3597 test -z "$as_dir" && as_dir
=.
3598 for ac_exec_ext
in '' $ac_executable_extensions; do
3599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600 ac_cv_prog_AWK
="$ac_prog"
3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 if test -n "$AWK"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3613 $as_echo "$AWK" >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3620 test -n "$AWK" && break
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3626 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3627 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3628 $as_echo_n "(cached) " >&6
3630 cat >conftest.
make <<\_ACEOF
3633 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3638 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3640 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3644 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3651 SET_MAKE
="MAKE=${MAKE-make}"
3654 rm -rf .tst
2>/dev
/null
3655 mkdir .tst
2>/dev
/null
3656 if test -d .tst
; then
3661 rmdir .tst
2>/dev
/null
3663 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3664 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3665 # is not polluted with repeated "-I."
3666 am__isrc
=' -I$(srcdir)'
3667 # test to see if srcdir already configured
3668 if test -f $srcdir/config.status
; then
3669 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3673 # test whether we have cygpath
3674 if test -z "$CYGPATH_W"; then
3675 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3676 CYGPATH_W
='cygpath -w'
3683 # Define the identity of the package.
3688 cat >>confdefs.h
<<_ACEOF
3689 #define PACKAGE "$PACKAGE"
3693 cat >>confdefs.h
<<_ACEOF
3694 #define VERSION "$VERSION"
3697 # Some tools Automake needs.
3699 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3702 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3705 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3708 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3711 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3713 # We need awk for the "check" target. The system "awk" is bad on
3715 # Always define AMTAR for backward compatibility.
3717 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3719 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3728 lispdir
='${datadir}/emacs/${version}/lisp'
3729 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3730 '${datadir}/emacs/site-lisp'
3731 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3732 etcdir
='${datadir}/emacs/${version}/etc'
3733 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3734 docdir
='${datadir}/emacs/${version}/etc'
3735 gamedir
='${localstatedir}/games/emacs'
3740 # Check whether --with-pop was given.
3741 if test "${with_pop+set}" = set; then :
3747 if test "$with_pop" = yes; then
3748 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3753 # Check whether --with-kerberos was given.
3754 if test "${with_kerberos+set}" = set; then :
3755 withval
=$with_kerberos;
3760 if test "$with_kerberos" != no
; then
3761 $as_echo "#define KERBEROS 1" >>confdefs.h
3766 # Check whether --with-kerberos5 was given.
3767 if test "${with_kerberos5+set}" = set; then :
3768 withval
=$with_kerberos5;
3773 if test "${with_kerberos5}" != no
; then
3774 if test "${with_kerberos}" = no
; then
3776 $as_echo "#define KERBEROS 1" >>confdefs.h
3780 $as_echo "#define KERBEROS5 1" >>confdefs.h
3785 # Check whether --with-hesiod was given.
3786 if test "${with_hesiod+set}" = set; then :
3787 withval
=$with_hesiod;
3792 if test "$with_hesiod" != no
; then
3794 $as_echo "#define HESIOD 1" >>confdefs.h
3799 # Check whether --with-mmdf was given.
3800 if test "${with_mmdf+set}" = set; then :
3806 if test "$with_mmdf" != no
; then
3808 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3813 # Check whether --with-mail-unlink was given.
3814 if test "${with_mail_unlink+set}" = set; then :
3815 withval
=$with_mail_unlink;
3820 if test "$with_mail_unlink" != no
; then
3822 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3827 # Check whether --with-mailhost was given.
3828 if test "${with_mailhost+set}" = set; then :
3829 withval
=$with_mailhost;
3830 cat >>confdefs.h
<<_ACEOF
3831 #define MAILHOST "$withval"
3838 # Check whether --with-sound was given.
3839 if test "${with_sound+set}" = set; then :
3840 withval
=$with_sound;
3847 # Check whether --with-sync-input was given.
3848 if test "${with_sync_input+set}" = set; then :
3849 withval
=$with_sync_input;
3854 if test "$with_sync_input" = yes; then
3856 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3861 # Check whether --with-x-toolkit was given.
3862 if test "${with_x_toolkit+set}" = set; then :
3863 withval
=$with_x_toolkit; case "${withval}" in
3864 y | ye |
yes ) val
=gtk
;;
3866 l | lu | luc | luci | lucid
) val
=lucid
;;
3867 a |
at | ath | athe | athen | athena
) val
=athena
;;
3868 m | mo | mot | moti | motif
) val
=motif
;;
3869 g | gt | gtk
) val
=gtk
;;
3872 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3873 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3874 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3883 # Check whether --with-wide-int was given.
3884 if test "${with_wide_int+set}" = set; then :
3885 withval
=$with_wide_int;
3890 if test "$with_wide_int" = yes; then
3892 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3897 # Check whether --with-xpm was given.
3898 if test "${with_xpm+set}" = set; then :
3905 # Check whether --with-jpeg was given.
3906 if test "${with_jpeg+set}" = set; then :
3913 # Check whether --with-tiff was given.
3914 if test "${with_tiff+set}" = set; then :
3921 # Check whether --with-gif was given.
3922 if test "${with_gif+set}" = set; then :
3929 # Check whether --with-png was given.
3930 if test "${with_png+set}" = set; then :
3937 # Check whether --with-rsvg was given.
3938 if test "${with_rsvg+set}" = set; then :
3945 # Check whether --with-xml2 was given.
3946 if test "${with_xml2+set}" = set; then :
3953 # Check whether --with-imagemagick was given.
3954 if test "${with_imagemagick+set}" = set; then :
3955 withval
=$with_imagemagick;
3957 with_imagemagick
=yes
3962 # Check whether --with-xft was given.
3963 if test "${with_xft+set}" = set; then :
3970 # Check whether --with-libotf was given.
3971 if test "${with_libotf+set}" = set; then :
3972 withval
=$with_libotf;
3978 # Check whether --with-m17n-flt was given.
3979 if test "${with_m17n_flt+set}" = set; then :
3980 withval
=$with_m17n_flt;
3987 # Check whether --with-toolkit-scroll-bars was given.
3988 if test "${with_toolkit_scroll_bars+set}" = set; then :
3989 withval
=$with_toolkit_scroll_bars;
3991 with_toolkit_scroll_bars
=yes
3995 # Check whether --with-xaw3d was given.
3996 if test "${with_xaw3d+set}" = set; then :
3997 withval
=$with_xaw3d;
4003 # Check whether --with-xim was given.
4004 if test "${with_xim+set}" = set; then :
4011 # Check whether --with-ns was given.
4012 if test "${with_ns+set}" = set; then :
4020 # Check whether --with-gpm was given.
4021 if test "${with_gpm+set}" = set; then :
4028 # Check whether --with-dbus was given.
4029 if test "${with_dbus+set}" = set; then :
4036 # Check whether --with-gconf was given.
4037 if test "${with_gconf+set}" = set; then :
4038 withval
=$with_gconf;
4044 # Check whether --with-gsettings was given.
4045 if test "${with_gsettings+set}" = set; then :
4046 withval
=$with_gsettings;
4052 # Check whether --with-selinux was given.
4053 if test "${with_selinux+set}" = set; then :
4054 withval
=$with_selinux;
4060 # Check whether --with-gnutls was given.
4061 if test "${with_gnutls+set}" = set; then :
4062 withval
=$with_gnutls;
4068 ## For the times when you want to build Emacs but don't have
4069 ## a suitable makeinfo, and can live without the manuals.
4071 # Check whether --with-makeinfo was given.
4072 if test "${with_makeinfo+set}" = set; then :
4073 withval
=$with_makeinfo;
4079 ## Makefile.in needs the cache file name.
4082 ## This is an option because I do not know if all info/man support
4083 ## compressed files, nor how to test if they do so.
4085 # Check whether --with-compress-info was given.
4086 if test "${with_compress_info+set}" = set; then :
4087 withval
=$with_compress_info;
4089 with_compress_info
=yes
4092 if test $with_compress_info = yes; then
4100 # Check whether --with-pkg-config-prog was given.
4101 if test "${with_pkg_config_prog+set}" = set; then :
4102 withval
=$with_pkg_config_prog;
4105 if test "X${with_pkg_config_prog}" != X
; then
4106 if test "${with_pkg_config_prog}" != yes; then
4107 PKG_CONFIG
="${with_pkg_config_prog}"
4113 # Check whether --with-crt-dir was given.
4114 if test "${with_crt_dir+set}" = set; then :
4115 withval
=$with_crt_dir;
4118 CRT_DIR
="${with_crt_dir}"
4121 # Check whether --with-gameuser was given.
4122 if test "${with_gameuser+set}" = set; then :
4123 withval
=$with_gameuser;
4126 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4127 && gameuser
="${with_gameuser}"
4128 test "X$gameuser" = X
&& gameuser
=games
4131 # Check whether --with-gnustep-conf was given.
4132 if test "${with_gnustep_conf+set}" = set; then :
4133 withval
=$with_gnustep_conf;
4136 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4137 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4138 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4139 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4141 # Check whether --enable-ns-self-contained was given.
4142 if test "${enable_ns_self_contained+set}" = set; then :
4143 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4145 EN_NS_SELF_CONTAINED
=yes
4149 # Check whether --enable-asserts was given.
4150 if test "${enable_asserts+set}" = set; then :
4151 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
4157 # Check whether --enable-maintainer-mode was given.
4158 if test "${enable_maintainer_mode+set}" = set; then :
4159 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4161 USE_MAINTAINER_MODE
=yes
4164 if test $USE_MAINTAINER_MODE = yes; then
4171 # Check whether --enable-locallisppath was given.
4172 if test "${enable_locallisppath+set}" = set; then :
4173 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4175 elif test "${enableval}" != "yes"; then
4176 locallisppath
=${enableval}
4181 # Check whether --enable-checking was given.
4182 if test "${enable_checking+set}" = set; then :
4183 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4186 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4187 for check
in $ac_checking_flags
4190 # these set all the flags to specific states
4191 yes) ac_enable_checking
=1 ;;
4192 no
) ac_enable_checking
= ;
4193 ac_gc_check_stringbytes
= ;
4194 ac_gc_check_string_overrun
= ;
4195 ac_gc_check_string_free_list
= ;
4196 ac_xmalloc_overrun
= ;
4197 ac_gc_check_cons_list
= ;;
4198 all
) ac_enable_checking
=1 ;
4199 ac_gc_check_stringbytes
=1 ;
4200 ac_gc_check_string_overrun
=1 ;
4201 ac_gc_check_string_free_list
=1 ;
4202 ac_xmalloc_overrun
=1 ;
4203 ac_gc_check_cons_list
=1 ;;
4204 # these enable particular checks
4205 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4206 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4207 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4208 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4209 conslist
) ac_gc_check_cons_list
=1 ;;
4210 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4215 if test x
$ac_enable_checking != x
; then
4217 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4220 if test x
$ac_gc_check_stringbytes != x
; then
4222 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4225 if test x
$ac_gc_check_string_overrun != x
; then
4227 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4230 if test x
$ac_gc_check_string_free_list != x
; then
4232 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4235 if test x
$ac_xmalloc_overrun != x
; then
4237 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4240 if test x
$ac_gc_check_cons_list != x
; then
4242 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4246 # Check whether --enable-use-lisp-union-type was given.
4247 if test "${enable_use_lisp_union_type+set}" = set; then :
4248 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4250 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4257 # Check whether --enable-profiling was given.
4258 if test "${enable_profiling+set}" = set; then :
4259 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4262 if test x
$ac_enable_profiling != x
; then
4263 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4269 # Check whether --enable-autodepend was given.
4270 if test "${enable_autodepend+set}" = set; then :
4271 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4273 ac_enable_autodepend
=yes
4277 #### Make srcdir absolute, if it isn't already. It's important to
4278 #### avoid running the path through pwd unnecessarily, since pwd can
4279 #### give you automounter prefixes, which can go away. We do all this
4280 #### so Emacs can find its files when run uninstalled.
4281 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4286 ## We may be able to use the $PWD environment variable to make this
4287 ## absolute. But sometimes PWD is inaccurate.
4288 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4289 ## but that tested only for a well-formed and valid PWD,
4290 ## it did not object when PWD was well-formed and valid but just wrong.
4291 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4295 srcdir
="`(cd ${srcdir}; pwd)`"
4298 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4301 #### Given the configuration name, set machfile and opsysfile to the
4302 #### names of the m/*.h and s/*.h files we should use.
4304 ### Canonicalize the configuration name.
4306 # Make sure we can run config.sub.
4307 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4308 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4311 $as_echo_n "checking build system type... " >&6; }
4312 if test "${ac_cv_build+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4315 ac_build_alias
=$build_alias
4316 test "x$ac_build_alias" = x
&&
4317 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4318 test "x$ac_build_alias" = x
&&
4319 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4320 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4321 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4325 $as_echo "$ac_cv_build" >&6; }
4326 case $ac_cv_build in
4328 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4331 ac_save_IFS
=$IFS; IFS
='-'
4337 # Remember, the first character of IFS is used to create $*,
4338 # except with old shells:
4341 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4345 $as_echo_n "checking host system type... " >&6; }
4346 if test "${ac_cv_host+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4349 if test "x$host_alias" = x
; then
4350 ac_cv_host
=$ac_cv_build
4352 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4353 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4358 $as_echo "$ac_cv_host" >&6; }
4361 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4364 ac_save_IFS
=$IFS; IFS
='-'
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4374 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4378 configuration
=${host_alias-${build_alias-$host}}
4382 ### If you add support for a new configuration, add code to this
4383 ### switch statement to recognize your configuration name and select
4384 ### the appropriate operating system and machine description files.
4386 ### You would hope that you could choose an m/*.h file pretty much
4387 ### based on the machine portion of the configuration name, and an s/*.h
4388 ### file based on the operating system portion. However, it turns out
4389 ### that each m/*.h file is pretty manufacturer-specific - for
4390 ### example mips.h is MIPS
4391 ### So we basically have to have a special case for each
4392 ### configuration name.
4394 ### As far as handling version numbers on operating systems is
4395 ### concerned, make sure things will fail in a fixable way. If
4396 ### /etc/MACHINES doesn't say anything about version numbers, be
4397 ### prepared to handle anything reasonably. If version numbers
4398 ### matter, be sure /etc/MACHINES says something about it.
4400 machine
='' opsys
='' unported
=no
4401 case "${canonical}" in
4403 ## GNU/Linux and similar ports
4406 case ${canonical} in
4407 alpha
*) machine
=alpha
;;
4408 s390x-
*) machine
=ibms390x
;;
4409 powerpc
*) machine
=macppc
;;
4410 sparc
*) machine
=sparc
;;
4411 ia64
*) machine
=ia64
;;
4412 m68k
*) machine
=m68k
;;
4413 x86_64
*) machine
=amdx86-64
;;
4420 case "${canonical}" in
4421 alpha
*) machine
=alpha
;;
4422 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4423 ia64-
*) machine
=ia64
;;
4424 i
[3456]86-*) machine
=intel386
;;
4425 powerpc-
*) machine
=macppc
;;
4426 sparc-
*) machine
=sparc
;;
4427 sparc64-
*) machine
=sparc
;;
4431 ## FreeBSD kernel + glibc based userland
4434 case "${canonical}" in
4435 alpha
*) machine
=alpha
;;
4436 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
4437 ia64-
*) machine
=ia64
;;
4438 i
[3456]86-*) machine
=intel386
;;
4439 powerpc-
*) machine
=macppc
;;
4440 sparc-
*) machine
=sparc
;;
4441 sparc64-
*) machine
=sparc
;;
4448 case "${canonical}" in
4449 alpha
*) machine
=alpha
;;
4450 x86_64-
*) machine
=amdx86-64
;;
4451 i
[3456]86-*) machine
=intel386
;;
4452 m68k-
*) machine
=m68k
;;
4453 powerpc-
*) machine
=macppc
;;
4454 sparc
*-) machine
=sparc
;;
4455 vax-
*) machine
=vax
;;
4462 case "${canonical}" in
4463 alpha
*) machine
=alpha
;;
4464 x86_64-
*) machine
=amdx86-64
;;
4465 i386-
*) machine
=intel386
;;
4466 powerpc-
*) machine
=macppc
;;
4467 sparc
*) machine
=sparc
;;
4468 vax-
*) machine
=vax
;;
4472 ## Apple Darwin / Mac OS X
4474 case "${canonical}" in
4475 i
[3456]86-* ) machine
=intel386
;;
4476 powerpc-
* ) machine
=macppc
;;
4477 x86_64-
* ) machine
=amdx86-64
;;
4481 # Define CPP as follows to make autoconf work correctly.
4482 CPP
="${CC-cc} -E -no-cpp-precomp"
4483 # Use fink packages if available.
4484 if test -d /sw
/include
&& test -d /sw
/lib
; then
4485 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
4486 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
4487 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
4491 ## HP 9000 series 700 and 800, running HP/UX
4492 hppa
*-hp-hpux10.2
* )
4495 hppa
*-hp-hpux1[1-9]* )
4497 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4501 rs6000-ibm-aix4.
[23]* )
4502 machine
=ibmrs6000 opsys
=aix4-2
4504 powerpc-ibm-aix4.
[23]* )
4505 machine
=ibmrs6000 opsys
=aix4-2
4507 rs6000-ibm-aix
[56]* )
4508 machine
=ibmrs6000 opsys
=aix4-2
4510 powerpc-ibm-aix
[56]* )
4511 machine
=ibmrs6000 opsys
=aix4-2
4514 ## Silicon Graphics machines
4518 # Without defining _LANGUAGE_C, things get masked out in the headers
4519 # so that, for instance, grepping for `free' in stdlib.h fails and
4520 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4521 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
4522 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4527 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4528 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4529 case "${canonical}" in
4530 i
[3456]86-*-* ) machine
=intel386
;;
4531 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
4532 sparc
* ) machine
=sparc
;;
4535 case "${canonical}" in
4536 *-sunos5.6
* |
*-solaris2.6
* )
4538 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4541 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4543 emacs_check_sunpro_c
=yes
4544 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4546 *-sunos5* |
*-solaris* )
4548 emacs_check_sunpro_c
=yes
4549 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
4552 ## Watch out for a compiler that we know will not work.
4553 case "${canonical}" in
4554 *-solaris* |
*-sunos5* )
4555 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4556 ## /usr/ucb/cc doesn't work;
4557 ## we should find some other compiler that does work.
4565 ## Intel 386 machines where we don't care about the manufacturer.
4568 case "${canonical}" in
4569 *-cygwin ) opsys
=cygwin
;;
4570 *-darwin* ) opsys
=darwin
4571 CPP
="${CC-cc} -E -no-cpp-precomp"
4573 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4574 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4575 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
4576 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4585 ### If the code above didn't choose an operating system, just choose
4586 ### an operating system based on the configuration name. You really
4587 ### only want to use this when you have no idea what the right
4588 ### operating system is; if you know what operating systems a machine
4589 ### runs, it's cleaner to make it explicit in the case statement
4591 if test x
"${opsys}" = x
; then
4592 case "${canonical}" in
4593 *-gnu* ) opsys
=gnu
;;
4602 if test $unported = yes; then
4603 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4604 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4607 if test -n "$machine"; then
4608 machfile
="m/${machine}.h"
4612 opsysfile
="s/${opsys}.h"
4615 #### Choose a compiler.
4616 test -n "$CC" && cc_specified
=yes
4618 # Save the value of CFLAGS that the user specified.
4619 SPECIFIED_CFLAGS
="$CFLAGS"
4622 ac_cpp
='$CPP $CPPFLAGS'
4623 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4628 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_CC+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4634 if test -n "$CC"; then
4635 ac_cv_prog_CC
="$CC" # Let the user override the test.
4637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir
=.
4642 for ac_exec_ext
in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 if test -n "$CC"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4657 $as_echo "$CC" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4665 if test -z "$ac_cv_prog_CC"; then
4667 # Extract the first word of "gcc", so it can be a program name with args.
4668 set dummy gcc
; ac_word
=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4674 if test -n "$ac_ct_CC"; then
4675 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir
=.
4682 for ac_exec_ext
in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_ac_ct_CC
="gcc"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4695 if test -n "$ac_ct_CC"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4697 $as_echo "$ac_ct_CC" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4703 if test "x$ac_ct_CC" = x
; then
4706 case $cross_compiling:$ac_tool_warned in
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned
=yes ;;
4718 if test -z "$CC"; then
4719 if test -n "$ac_tool_prefix"; then
4720 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4721 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_CC+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4727 if test -n "$CC"; then
4728 ac_cv_prog_CC
="$CC" # Let the user override the test.
4730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir
=.
4735 for ac_exec_ext
in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 if test -n "$CC"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4750 $as_echo "$CC" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4759 if test -z "$CC"; then
4760 # Extract the first word of "cc", so it can be a program name with args.
4761 set dummy cc
; ac_word
=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_CC+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4767 if test -n "$CC"; then
4768 ac_cv_prog_CC
="$CC" # Let the user override the test.
4771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir
=.
4776 for ac_exec_ext
in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4779 ac_prog_rejected
=yes
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 if test $ac_prog_rejected = yes; then
4791 # We found a bogon in the path, so make sure we never use it.
4792 set dummy
$ac_cv_prog_CC
4794 if test $# != 0; then
4795 # We chose a different compiler from the bogus one.
4796 # However, it has the same basename, so the bogon will be chosen
4797 # first if we set CC to just the basename; use the full file name.
4799 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4805 if test -n "$CC"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4807 $as_echo "$CC" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4815 if test -z "$CC"; then
4816 if test -n "$ac_tool_prefix"; then
4817 for ac_prog
in cl.exe
4819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4820 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if test "${ac_cv_prog_CC+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4826 if test -n "$CC"; then
4827 ac_cv_prog_CC
="$CC" # Let the user override the test.
4829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4833 test -z "$as_dir" && as_dir
=.
4834 for ac_exec_ext
in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 if test -n "$CC"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4849 $as_echo "$CC" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4856 test -n "$CC" && break
4859 if test -z "$CC"; then
4861 for ac_prog
in cl.exe
4863 # Extract the first word of "$ac_prog", so it can be a program name with args.
4864 set dummy
$ac_prog; ac_word
=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4870 if test -n "$ac_ct_CC"; then
4871 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir
=.
4878 for ac_exec_ext
in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_ac_ct_CC
="$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4891 if test -n "$ac_ct_CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4893 $as_echo "$ac_ct_CC" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4900 test -n "$ac_ct_CC" && break
4903 if test "x$ac_ct_CC" = x
; then
4906 case $cross_compiling:$ac_tool_warned in
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4910 ac_tool_warned
=yes ;;
4919 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4921 as_fn_error
"no acceptable C compiler found in \$PATH
4922 See \`config.log' for more details." "$LINENO" 5; }
4924 # Provide some information about the compiler.
4925 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4928 for ac_option
in --version -v -V -qversion; do
4929 { { ac_try
="$ac_compiler $ac_option >&5"
4931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4935 $as_echo "$ac_try_echo"; } >&5
4936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4938 if test -s conftest.err; then
4940 ... rest of stderr output deleted ...
4941 10q' conftest.err >conftest.er1
4942 cat conftest.er1 >&5
4944 rm -f conftest.er1 conftest.err
4945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4946 test $ac_status = 0; }
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4960 ac_clean_files_save=$ac_clean_files
4961 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4962 # Try to create an executable without -o first, disregard a.out.
4963 # It will help us diagnose broken compilers, and finding out an intuition
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4966 $as_echo_n "checking whether the C compiler works... " >&6; }
4967 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4969 # The possible output files:
4970 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4973 for ac_file in $ac_files
4976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4977 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4982 if { { ac_try="$ac_link_default"
4984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4985 *) ac_try_echo
=$ac_try;;
4987 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988 $as_echo "$ac_try_echo"; } >&5
4989 (eval "$ac_link_default") 2>&5
4991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }; then :
4993 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4994 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4995 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4996 # so that the user can short-circuit this test for compilers unknown to
4998 for ac_file
in $ac_files ''
5000 test -f "$ac_file" ||
continue
5002 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5005 # We found the default executable, but exeext='' is most
5009 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5011 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5013 # We set ac_cv_exeext here because the later test for it is not
5014 # safe: cross compilers may not add the suffix if given an `-o'
5015 # argument, so we may need to know it at that point already.
5016 # Even if this section looks crufty: it has the advantage of
5023 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5028 if test -z "$ac_file"; then :
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 $as_echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5036 { as_fn_set_status
77
5037 as_fn_error
"C compiler cannot create executables
5038 See \`config.log' for more details." "$LINENO" 5; }; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041 $as_echo "yes" >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5044 $as_echo_n "checking for C compiler default output file name... " >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5046 $as_echo "$ac_file" >&6; }
5047 ac_exeext
=$ac_cv_exeext
5049 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5050 ac_clean_files
=$ac_clean_files_save
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5052 $as_echo_n "checking for suffix of executables... " >&6; }
5053 if { { ac_try
="$ac_link"
5055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5059 $as_echo "$ac_try_echo"; } >&5
5060 (eval "$ac_link") 2>&5
5062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5063 test $ac_status = 0; }; then :
5064 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5065 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5066 # work properly (i.e., refer to `conftest.exe'), while it won't with
5068 for ac_file
in conftest.exe conftest conftest.
*; do
5069 test -f "$ac_file" ||
continue
5071 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5072 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5080 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5081 See \`config.log' for more details." "$LINENO" 5; }
5083 rm -f conftest conftest
$ac_cv_exeext
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5085 $as_echo "$ac_cv_exeext" >&6; }
5087 rm -f conftest.
$ac_ext
5088 EXEEXT
=$ac_cv_exeext
5090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5096 FILE *f = fopen ("conftest.out", "w");
5097 return ferror (f) || fclose (f) != 0;
5103 ac_clean_files
="$ac_clean_files conftest.out"
5104 # Check that the compiler produces executables we can run. If not, either
5105 # the compiler is broken, or we cross compile.
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5107 $as_echo_n "checking whether we are cross compiling... " >&6; }
5108 if test "$cross_compiling" != yes; then
5109 { { ac_try
="$ac_link"
5111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5115 $as_echo "$ac_try_echo"; } >&5
5116 (eval "$ac_link") 2>&5
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }
5120 if { ac_try='./conftest$ac_cv_exeext'
5121 { { case "(($ac_try" in
5122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5123 *) ac_try_echo
=$ac_try;;
5125 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5126 $as_echo "$ac_try_echo"; } >&5
5127 (eval "$ac_try") 2>&5
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; }; }; then
5133 if test "$cross_compiling" = maybe
; then
5136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error
"cannot run C compiled programs.
5139 If you meant to cross compile, use \`--host'.
5140 See \`config.log' for more details." "$LINENO" 5; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5145 $as_echo "$cross_compiling" >&6; }
5147 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5148 ac_clean_files
=$ac_clean_files_save
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5150 $as_echo_n "checking for suffix of object files... " >&6; }
5151 if test "${ac_cv_objext+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5165 rm -f conftest.o conftest.obj
5166 if { { ac_try
="$ac_compile"
5168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_compile") 2>&5
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }; then :
5177 for ac_file in conftest.o conftest.obj conftest.*; do
5178 test -f "$ac_file" || continue;
5180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5191 as_fn_error "cannot compute suffix of object files
: cannot compile
5192 See \
`config.log' for more details." "$LINENO" 5; }
5194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5197 $as_echo "$ac_cv_objext" >&6; }
5198 OBJEXT=$ac_cv_objext
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5201 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5202 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5219 if ac_fn_c_try_compile "$LINENO"; then :
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5229 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5230 if test $ac_compiler_gnu = yes; then
5235 ac_test_CFLAGS=${CFLAGS+set}
5236 ac_save_CFLAGS=$CFLAGS
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5238 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5239 if test "${ac_cv_prog_cc_g+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5242 ac_save_c_werror_flag=$ac_c_werror_flag
5243 ac_c_werror_flag=yes
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5257 if ac_fn_c_try_compile "$LINENO"; then :
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5272 if ac_fn_c_try_compile "$LINENO"; then :
5275 ac_c_werror_flag=$ac_save_c_werror_flag
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5288 if ac_fn_c_try_compile "$LINENO"; then :
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_c_werror_flag=$ac_save_c_werror_flag
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5299 $as_echo "$ac_cv_prog_cc_g" >&6; }
5300 if test "$ac_test_CFLAGS" = set; then
5301 CFLAGS=$ac_save_CFLAGS
5302 elif test $ac_cv_prog_cc_g = yes; then
5303 if test "$GCC" = yes; then
5309 if test "$GCC" = yes; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5316 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5317 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5320 ac_cv_prog_cc_c89=no
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5326 #include <sys/types.h>
5327 #include <sys/stat.h>
5328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5329 struct buf { int x; };
5330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5331 static char *e (p, i)
5337 static char *f (char * (*g) (char **, int), char **p, ...)
5342 s = g (p, va_arg (v,int));
5347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5348 function prototypes and stuff, but not '\xHH' hex character constants.
5349 These don't provoke an error unfortunately, instead are silently treated
5350 as 'x'. The following induces an error, until -std is added to get
5351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5352 array size at least. It's necessary to write '\x00'==0 to get something
5353 that's true only with -std. */
5354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5357 inside strings and character constants. */
5359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5361 int test (int i, double x);
5362 struct s1 {int (*f) (int a);};
5363 struct s2 {int (*f) (double a);};
5364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5378 CC="$ac_save_CC $ac_arg"
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_prog_cc_c89=$ac_arg
5382 rm -f core conftest.err conftest.$ac_objext
5383 test "x$ac_cv_prog_cc_c89" != "xno" && break
5385 rm -f conftest.$ac_ext
5390 case "x$ac_cv_prog_cc_c89" in
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5393 $as_echo "none needed" >&6; } ;;
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5396 $as_echo "unsupported" >&6; } ;;
5398 CC="$CC $ac_cv_prog_cc_c89"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5402 if test "x$ac_cv_prog_cc_c89" != xno; then :
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411 DEPDIR="${am__leading_dot}deps"
5413 ac_config_commands="$ac_config_commands depfiles"
5416 am_make=${MAKE-make}
5417 cat > confinc << 'END'
5419 @echo this is the am__doit target
5422 # If we don't find an include directive, just comment out the code.
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5424 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5428 # First try GNU make style include.
5429 echo "include confinc" > confmf
5430 # Ignore all kinds of additional output from `make'.
5431 case `$am_make -s -f confmf 2> /dev/null` in #(
5432 *the\ am__doit\ target*)
5438 # Now try BSD make style include.
5439 if test "$am__include" = "#"; then
5440 echo '.include
"confinc"' > confmf
5441 case `$am_make -s -f confmf 2> /dev/null` in #(
5442 *the\ am__doit\ target*)
5443 am__include=.include
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5452 $as_echo "$_am_result" >&6; }
5453 rm -f confinc confmf
5455 # Check whether --enable-dependency-tracking was given.
5456 if test "${enable_dependency_tracking+set}" = set; then :
5457 enableval=$enable_dependency_tracking;
5460 if test "x$enable_dependency_tracking" != xno; then
5461 am_depcomp="$ac_aux_dir/depcomp"
5464 if test "x$enable_dependency_tracking" != xno
; then
5474 depcc
="$CC" am_compiler_list
=
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5477 $as_echo_n "checking dependency style of $depcc... " >&6; }
5478 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5482 # We make a subdir and do the tests there. Otherwise we can end up
5483 # making bogus files that we don't know about and never remove. For
5484 # instance it was reported that on HP-UX the gcc test will end up
5485 # making a dummy file named `D' -- because `-MD' means `put the output
5488 # Copy depcomp to subdir because otherwise we won't find it if we're
5489 # using a relative directory.
5490 cp "$am_depcomp" conftest.dir
5492 # We will build objects and dependencies in a subdirectory because
5493 # it helps to detect inapplicable dependency modes. For instance
5494 # both Tru64's cc and ICC support -MD to output dependencies as a
5495 # side effect of compilation, but ICC will put the dependencies in
5496 # the current directory while Tru64 will put them in the object
5500 am_cv_CC_dependencies_compiler_type
=none
5501 if test "$am_compiler_list" = ""; then
5502 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5505 case " $depcc " in #(
5506 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5509 for depmode
in $am_compiler_list; do
5510 # Setup a source with many dependencies, because some compilers
5511 # like to wrap large dependency lists on column 80 (with \), and
5512 # we should not choose a depcomp mode which is confused by this.
5514 # We need to recreate these files for each test, as the compiler may
5515 # overwrite some of them when testing with obscure command lines.
5516 # This happens at least with the AIX C compiler.
5518 for i
in 1 2 3 4 5 6; do
5519 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5520 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5521 # Solaris 8's {/usr,}/bin/sh.
5522 touch sub
/conftst
$i.h
5524 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5526 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5527 # mode. It turns out that the SunPro C++ compiler does not properly
5528 # handle `-M -o', and we need to detect this. Also, some Intel
5529 # versions had trouble with output in subdirs
5530 am__obj
=sub
/conftest.
${OBJEXT-o}
5531 am__minus_obj
="-o $am__obj"
5534 # This depmode causes a compiler race in universal mode.
5535 test "$am__universal" = false ||
continue
5538 # after this tag, mechanisms are not by side-effect, so they'll
5539 # only be used when explicitly requested
5540 if test "x$enable_dependency_tracking" = xyes
; then
5546 msvisualcpp | msvcmsys
)
5547 # This compiler won't grok `-c -o', but also, the minuso test has
5548 # not run yet. These depmodes are late enough in the game, and
5549 # so weak that their functioning should not be impacted.
5550 am__obj
=conftest.
${OBJEXT-o}
5555 if depmode
=$depmode \
5556 source=sub
/conftest.c object
=$am__obj \
5557 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5558 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5559 >/dev
/null
2>conftest.err
&&
5560 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5561 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5562 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5563 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5564 # icc doesn't choke on unknown options, it will just issue warnings
5565 # or remarks (even with -Werror). So we grep stderr for any message
5566 # that says an option was ignored or not supported.
5567 # When given -MP, icc 7.0 and 7.1 complain thusly:
5568 # icc: Command line warning: ignoring option '-M'; no argument required
5569 # The diagnosis changed in icc 8.0:
5570 # icc: Command line remark: option '-MP' not supported
5571 if (grep 'ignoring option' conftest.err ||
5572 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5573 am_cv_CC_dependencies_compiler_type
=$depmode
5582 am_cv_CC_dependencies_compiler_type
=none
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5587 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5588 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5591 test "x$enable_dependency_tracking" != xno \
5592 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5594 am__fastdepCC_FALSE
='#'
5596 am__fastdepCC_TRUE
='#'
5597 am__fastdepCC_FALSE
=
5601 if test "x$CC" != xcc
; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5603 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5606 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5608 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5609 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5610 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5611 $as_echo_n "(cached) " >&6
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5624 # Make sure it works both with $CC and with simple cc.
5625 # We do the test twice because some compilers refuse to overwrite an
5626 # existing .o file with -o, though they will create one.
5627 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5629 if { { case "(($ac_try" in
5630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5634 $as_echo "$ac_try_echo"; } >&5
5635 (eval "$ac_try") 2>&5
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; } &&
5639 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5641 *) ac_try_echo
=$ac_try;;
5643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; };
5650 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5651 if test "x$CC" != xcc
; then
5652 # Test first that cc exists at all.
5653 if { ac_try
='cc -c conftest.$ac_ext >&5'
5654 { { case "(($ac_try" in
5655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5659 $as_echo "$ac_try_echo"; } >&5
5660 (eval "$ac_try") 2>&5
5662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 test $ac_status = 0; }; }; then
5664 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5666 if { { case "(($ac_try" in
5667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5668 *) ac_try_echo
=$ac_try;;
5670 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5671 $as_echo "$ac_try_echo"; } >&5
5672 (eval "$ac_try") 2>&5
5674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675 test $ac_status = 0; } &&
5676 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682 (eval "$ac_try") 2>&5
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; };
5690 # cc exists but doesn't like -o.
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5696 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5698 rm -f core conftest*
5701 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5703 $as_echo "yes" >&6; }
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5708 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5712 # FIXME: we rely on the cache variable name because
5713 # there is no other way.
5715 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5716 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5717 if test "$am_t" != yes; then
5718 # Losing compiler, so override with the script.
5719 # FIXME: It is wrong to rewrite CC.
5720 # But if we don't then we get into trouble of one sort or another.
5721 # A longer-term fix would be to have automake use am__CC in this case,
5722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5723 CC="$am_aux_dir/compile $CC"
5728 # Initialize gnulib right after verifying that the C compiler works.
5731 ac_cpp='$CPP $CPPFLAGS'
5732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5736 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5737 # On Suns, sometimes $CPP names a directory.
5738 if test -n "$CPP" && test -d "$CPP"; then
5741 if test -z "$CPP"; then
5742 if test "${ac_cv_prog_CPP+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 # Double quotes because CPP needs to be expanded
5746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5749 for ac_c_preproc_warn_flag in '' yes
5751 # Use a header file that comes with gcc, so configuring glibc
5752 # with a fresh cross-compiler works.
5753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754 # <limits.h> exists even on freestanding compilers.
5755 # On the NeXT, cc -E runs the code through the compiler's parser,
5756 # not just through cpp. "Syntax error" is here to catch this case.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5760 # include <limits.h>
5762 # include <assert.h>
5766 if ac_fn_c_try_cpp "$LINENO"; then :
5769 # Broken: fails on valid input.
5772 rm -f conftest.err conftest.$ac_ext
5774 # OK, works on sane cases. Now check whether nonexistent headers
5775 # can be detected and how.
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <ac_nonexistent.h>
5780 if ac_fn_c_try_cpp "$LINENO"; then :
5781 # Broken: success on invalid input.
5784 # Passes both tests.
5788 rm -f conftest.err conftest.$ac_ext
5791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5792 rm -f conftest.err conftest.
$ac_ext
5793 if $ac_preproc_ok; then :
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5806 $as_echo "$CPP" >&6; }
5808 for ac_c_preproc_warn_flag
in '' yes
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5819 # include <limits.h>
5821 # include <assert.h>
5825 if ac_fn_c_try_cpp
"$LINENO"; then :
5828 # Broken: fails on valid input.
5831 rm -f conftest.err conftest.
$ac_ext
5833 # OK, works on sane cases. Now check whether nonexistent headers
5834 # can be detected and how.
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #include <ac_nonexistent.h>
5839 if ac_fn_c_try_cpp
"$LINENO"; then :
5840 # Broken: success on invalid input.
5843 # Passes both tests.
5847 rm -f conftest.err conftest.
$ac_ext
5850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5851 rm -f conftest.err conftest.
$ac_ext
5852 if $ac_preproc_ok; then :
5855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5857 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5858 See \`config.log' for more details." "$LINENO" 5; }
5862 ac_cpp
='$CPP $CPPFLAGS'
5863 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5869 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5870 if test "${ac_cv_path_GREP+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5873 if test -z "$GREP"; then
5874 ac_path_GREP_found
=false
5875 # Loop through the user's path and test for each of PROGNAME-LIST
5876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5877 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5880 test -z "$as_dir" && as_dir
=.
5881 for ac_prog
in grep ggrep
; do
5882 for ac_exec_ext
in '' $ac_executable_extensions; do
5883 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5884 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5885 # Check for GNU ac_path_GREP and select it if it is found.
5886 # Check for GNU $ac_path_GREP
5887 case `"$ac_path_GREP" --version 2>&1` in
5889 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5892 $as_echo_n 0123456789 >"conftest.in"
5895 cat "conftest.in" "conftest.in" >"conftest.tmp"
5896 mv "conftest.tmp" "conftest.in"
5897 cp "conftest.in" "conftest.nl"
5898 $as_echo 'GREP' >> "conftest.nl"
5899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5900 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5901 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5902 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5903 # Best one so far, save it but keep looking for a better one
5904 ac_cv_path_GREP
="$ac_path_GREP"
5905 ac_path_GREP_max
=$ac_count
5907 # 10*(2^10) chars as input seems more than enough
5908 test $ac_count -gt 10 && break
5910 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5913 $ac_path_GREP_found && break 3
5918 if test -z "$ac_cv_path_GREP"; then
5919 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5922 ac_cv_path_GREP
=$GREP
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5927 $as_echo "$ac_cv_path_GREP" >&6; }
5928 GREP
="$ac_cv_path_GREP"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5932 $as_echo_n "checking for egrep... " >&6; }
5933 if test "${ac_cv_path_EGREP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5936 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5937 then ac_cv_path_EGREP
="$GREP -E"
5939 if test -z "$EGREP"; then
5940 ac_path_EGREP_found
=false
5941 # Loop through the user's path and test for each of PROGNAME-LIST
5942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5943 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5946 test -z "$as_dir" && as_dir
=.
5947 for ac_prog
in egrep; do
5948 for ac_exec_ext
in '' $ac_executable_extensions; do
5949 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5950 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5951 # Check for GNU ac_path_EGREP and select it if it is found.
5952 # Check for GNU $ac_path_EGREP
5953 case `"$ac_path_EGREP" --version 2>&1` in
5955 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5958 $as_echo_n 0123456789 >"conftest.in"
5961 cat "conftest.in" "conftest.in" >"conftest.tmp"
5962 mv "conftest.tmp" "conftest.in"
5963 cp "conftest.in" "conftest.nl"
5964 $as_echo 'EGREP' >> "conftest.nl"
5965 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5966 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5967 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5968 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5969 # Best one so far, save it but keep looking for a better one
5970 ac_cv_path_EGREP
="$ac_path_EGREP"
5971 ac_path_EGREP_max
=$ac_count
5973 # 10*(2^10) chars as input seems more than enough
5974 test $ac_count -gt 10 && break
5976 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5979 $ac_path_EGREP_found && break 3
5984 if test -z "$ac_cv_path_EGREP"; then
5985 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5988 ac_cv_path_EGREP
=$EGREP
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5994 $as_echo "$ac_cv_path_EGREP" >&6; }
5995 EGREP
="$ac_cv_path_EGREP"
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6001 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6002 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6016 gl_cv_c_amsterdam_compiler
=yes
6018 gl_cv_c_amsterdam_compiler
=no
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6025 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6026 if test -z "$AR"; then
6027 if test $gl_cv_c_amsterdam_compiler = yes; then
6029 if test -z "$ARFLAGS"; then
6033 if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6035 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if test "${ac_cv_prog_AR+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$AR"; then
6042 ac_cv_prog_AR
="$AR" # Let the user override the test.
6044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir
=.
6049 for ac_exec_ext
in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 if test -n "$AR"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6064 $as_echo "$AR" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6072 if test -z "$ac_cv_prog_AR"; then
6074 # Extract the first word of "ar", so it can be a program name with args.
6075 set dummy
ar; ac_word
=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6081 if test -n "$ac_ct_AR"; then
6082 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir
=.
6089 for ac_exec_ext
in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_ac_ct_AR
="ar"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6102 if test -n "$ac_ct_AR"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6104 $as_echo "$ac_ct_AR" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6110 if test "x$ac_ct_AR" = x
; then
6113 case $cross_compiling:$ac_tool_warned in
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117 ac_tool_warned
=yes ;;
6125 if test -z "$ARFLAGS"; then
6130 if test -z "$ARFLAGS"; then
6136 if test -z "$RANLIB"; then
6137 if test $gl_cv_c_amsterdam_compiler = yes; then
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6142 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6148 if test -n "$RANLIB"; then
6149 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir
=.
6156 for ac_exec_ext
in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 RANLIB
=$ac_cv_prog_RANLIB
6169 if test -n "$RANLIB"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6171 $as_echo "$RANLIB" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6179 if test -z "$ac_cv_prog_RANLIB"; then
6180 ac_ct_RANLIB
=$RANLIB
6181 # Extract the first word of "ranlib", so it can be a program name with args.
6182 set dummy ranlib
; ac_word
=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$ac_ct_RANLIB"; then
6189 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir
=.
6196 for ac_exec_ext
in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6209 if test -n "$ac_ct_RANLIB"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6211 $as_echo "$ac_ct_RANLIB" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_ct_RANLIB" = x
; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned
=yes ;;
6226 RANLIB
=$ac_ct_RANLIB
6229 RANLIB
="$ac_cv_prog_RANLIB"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6237 $as_echo_n "checking for ANSI C header files... " >&6; }
6238 if test "${ac_cv_header_stdc+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6256 if ac_fn_c_try_compile
"$LINENO"; then :
6257 ac_cv_header_stdc
=yes
6259 ac_cv_header_stdc
=no
6261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6263 if test $ac_cv_header_stdc = yes; then
6264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "memchr" >/dev
/null
2>&1; then :
6274 ac_cv_header_stdc
=no
6280 if test $ac_cv_header_stdc = yes; then
6281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "free" >/dev
/null
2>&1; then :
6291 ac_cv_header_stdc
=no
6297 if test $ac_cv_header_stdc = yes; then
6298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6299 if test "$cross_compiling" = yes; then :
6302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6306 #if ((' ' & 0x0FF) == 0x020)
6307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6310 # define ISLOWER(c) \
6311 (('a' <= (c) && (c) <= 'i') \
6312 || ('j' <= (c) && (c) <= 'r') \
6313 || ('s' <= (c) && (c) <= 'z'))
6314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6322 for (i = 0; i < 256; i++)
6323 if (XOR (islower (i), ISLOWER (i))
6324 || toupper (i) != TOUPPER (i))
6329 if ac_fn_c_try_run
"$LINENO"; then :
6332 ac_cv_header_stdc
=no
6334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6341 $as_echo "$ac_cv_header_stdc" >&6; }
6342 if test $ac_cv_header_stdc = yes; then
6344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6349 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6350 inttypes.h stdint.h unistd.h
6352 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6353 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6355 eval as_val
=\$
$as_ac_Header
6356 if test "x$as_val" = x
""yes; then :
6357 cat >>confdefs.h
<<_ACEOF
6358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6369 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6370 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6377 if test "$MINIX" = yes; then
6379 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6382 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6385 $as_echo "#define _MINIX 1" >>confdefs.h
6392 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6399 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6400 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6406 # define __EXTENSIONS__ 1
6407 $ac_includes_default
6416 if ac_fn_c_try_compile
"$LINENO"; then :
6417 ac_cv_safe_to_define___extensions__
=yes
6419 ac_cv_safe_to_define___extensions__
=no
6421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6424 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6425 test $ac_cv_safe_to_define___extensions__ = yes &&
6426 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6428 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6430 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6432 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6434 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6436 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6445 # Check whether --enable-largefile was given.
6446 if test "${enable_largefile+set}" = set; then :
6447 enableval
=$enable_largefile;
6450 if test "$enable_largefile" != no
; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6453 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6454 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6457 ac_cv_sys_largefile_CC
=no
6458 if test "$GCC" != yes; then
6461 # IRIX 6.2 and later do not support large files by default,
6462 # so use the C compiler's -n32 option if that helps.
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 #include <sys/types.h>
6466 /* Check that off_t can represent 2**63 - 1 correctly.
6467 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6468 since some C++ compilers masquerading as C compilers
6469 incorrectly reject 9223372036854775807. */
6470 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6471 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6472 && LARGE_OFF_T % 2147483647 == 1)
6482 if ac_fn_c_try_compile
"$LINENO"; then :
6485 rm -f core conftest.err conftest.
$ac_objext
6487 if ac_fn_c_try_compile
"$LINENO"; then :
6488 ac_cv_sys_largefile_CC
=' -n32'; break
6490 rm -f core conftest.err conftest.
$ac_objext
6494 rm -f conftest.
$ac_ext
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6498 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6499 if test "$ac_cv_sys_largefile_CC" != no
; then
6500 CC
=$CC$ac_cv_sys_largefile_CC
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6504 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6505 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 #include <sys/types.h>
6512 /* Check that off_t can represent 2**63 - 1 correctly.
6513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6514 since some C++ compilers masquerading as C compilers
6515 incorrectly reject 9223372036854775807. */
6516 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6518 && LARGE_OFF_T % 2147483647 == 1)
6528 if ac_fn_c_try_compile
"$LINENO"; then :
6529 ac_cv_sys_file_offset_bits
=no
; break
6531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 #define _FILE_OFFSET_BITS 64
6535 #include <sys/types.h>
6536 /* Check that off_t can represent 2**63 - 1 correctly.
6537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6538 since some C++ compilers masquerading as C compilers
6539 incorrectly reject 9223372036854775807. */
6540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6542 && LARGE_OFF_T % 2147483647 == 1)
6552 if ac_fn_c_try_compile
"$LINENO"; then :
6553 ac_cv_sys_file_offset_bits
=64; break
6555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6556 ac_cv_sys_file_offset_bits
=unknown
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6561 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6562 case $ac_cv_sys_file_offset_bits in #(
6565 cat >>confdefs.h
<<_ACEOF
6566 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6571 if test $ac_cv_sys_file_offset_bits = unknown
; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6573 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6574 if test "${ac_cv_sys_large_files+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6581 /* Check that off_t can represent 2**63 - 1 correctly.
6582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6583 since some C++ compilers masquerading as C compilers
6584 incorrectly reject 9223372036854775807. */
6585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6587 && LARGE_OFF_T % 2147483647 == 1)
6597 if ac_fn_c_try_compile
"$LINENO"; then :
6598 ac_cv_sys_large_files
=no
; break
6600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 #define _LARGE_FILES 1
6604 #include <sys/types.h>
6605 /* Check that off_t can represent 2**63 - 1 correctly.
6606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6607 since some C++ compilers masquerading as C compilers
6608 incorrectly reject 9223372036854775807. */
6609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6611 && LARGE_OFF_T % 2147483647 == 1)
6621 if ac_fn_c_try_compile
"$LINENO"; then :
6622 ac_cv_sys_large_files
=1; break
6624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6625 ac_cv_sys_large_files
=unknown
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6630 $as_echo "$ac_cv_sys_large_files" >&6; }
6631 case $ac_cv_sys_large_files in #(
6634 cat >>confdefs.h
<<_ACEOF
6635 #define _LARGE_FILES $ac_cv_sys_large_files
6645 case $ac_cv_prog_cc_stdc in #(
6647 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6650 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6651 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6654 ac_cv_prog_cc_c99
=no
6656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6659 #include <stdbool.h>
6664 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6665 #define debug(...) fprintf (stderr, __VA_ARGS__)
6666 #define showlist(...) puts (#__VA_ARGS__)
6667 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6669 test_varargs_macros (void)
6674 debug ("X = %d\n", x);
6675 showlist (The first, second, and third items.);
6676 report (x>y, "x is %d but y is %d", x, y);
6679 // Check long long types.
6680 #define BIG64 18446744073709551615ull
6681 #define BIG32 4294967295ul
6682 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6684 your preprocessor is broken;
6688 your preprocessor is broken;
6690 static long long int bignum = -9223372036854775807LL;
6691 static unsigned long long int ubignum = BIG64;
6693 struct incomplete_array
6701 const wchar_t *name;
6705 typedef const char *ccp;
6708 test_restrict (ccp restrict text)
6710 // See if C++-style comments work.
6711 // Iterate through items via the restricted pointer.
6712 // Also check for declarations in for loops.
6713 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6718 // Check varargs and va_copy.
6720 test_varargs (const char *format, ...)
6723 va_start (args, format);
6725 va_copy (args_copy, args);
6736 str = va_arg (args_copy, const char *);
6739 number = va_arg (args_copy, int);
6742 fnumber = va_arg (args_copy, double);
6757 _Bool success = false;
6760 if (test_restrict ("String literal") == 0)
6762 char *restrict newvar = "Another string";
6765 test_varargs ("s, d' f .", "string", 65, 34.234);
6766 test_varargs_macros ();
6768 // Check flexible array members.
6769 struct incomplete_array *ia =
6770 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6772 for (int i = 0; i < ia->datasize; ++i)
6773 ia->data[i] = i * 1.234;
6775 // Check named initializers.
6776 struct named_init ni = {
6778 .name = L"Test wide string",
6779 .average = 543.34343,
6784 int dynamic_array[ni.number];
6785 dynamic_array[ni.number - 1] = 543;
6787 // work around unused variable warnings
6788 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6789 || dynamic_array[ni.number - 1] != 543);
6795 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6797 CC
="$ac_save_CC $ac_arg"
6798 if ac_fn_c_try_compile
"$LINENO"; then :
6799 ac_cv_prog_cc_c99
=$ac_arg
6801 rm -f core conftest.err conftest.
$ac_objext
6802 test "x$ac_cv_prog_cc_c99" != "xno" && break
6804 rm -f conftest.
$ac_ext
6809 case "x$ac_cv_prog_cc_c99" in
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6812 $as_echo "none needed" >&6; } ;;
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6815 $as_echo "unsupported" >&6; } ;;
6817 CC
="$CC $ac_cv_prog_cc_c99"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6819 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6821 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6822 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6826 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
6829 ac_cv_prog_cc_c89
=no
6831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6835 #include <sys/types.h>
6836 #include <sys/stat.h>
6837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6838 struct buf { int x; };
6839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6840 static char *e (p, i)
6846 static char *f (char * (*g) (char **, int), char **p, ...)
6851 s = g (p, va_arg (v,int));
6856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6857 function prototypes and stuff, but not '\xHH' hex character constants.
6858 These don't provoke an error unfortunately, instead are silently treated
6859 as 'x'. The following induces an error, until -std is added to get
6860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6861 array size at least. It's necessary to write '\x00'==0 to get something
6862 that's true only with -std. */
6863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6866 inside strings and character constants. */
6868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6870 int test (int i, double x);
6871 struct s1 {int (*f) (int a);};
6872 struct s2 {int (*f) (double a);};
6873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6884 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6887 CC
="$ac_save_CC $ac_arg"
6888 if ac_fn_c_try_compile
"$LINENO"; then :
6889 ac_cv_prog_cc_c89
=$ac_arg
6891 rm -f core conftest.err conftest.
$ac_objext
6892 test "x$ac_cv_prog_cc_c89" != "xno" && break
6894 rm -f conftest.
$ac_ext
6899 case "x$ac_cv_prog_cc_c89" in
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6902 $as_echo "none needed" >&6; } ;;
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6905 $as_echo "unsupported" >&6; } ;;
6907 CC
="$CC $ac_cv_prog_cc_c89"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6911 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6912 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6914 ac_cv_prog_cc_stdc
=no
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6921 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6922 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6926 case $ac_cv_prog_cc_stdc in #(
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6929 $as_echo "unsupported" >&6; } ;; #(
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6932 $as_echo "none needed" >&6; } ;; #(
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6935 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6940 # Code from module alloca-opt:
6941 # Code from module allocator:
6942 # Code from module careadlinkat:
6943 # Code from module crypto/md5:
6944 # Code from module crypto/sha1:
6945 # Code from module crypto/sha256:
6946 # Code from module crypto/sha512:
6947 # Code from module dosname:
6948 # Code from module dtoastr:
6949 # Code from module dup2:
6950 # Code from module extensions:
6952 # Code from module filemode:
6953 # Code from module getloadavg:
6954 # Code from module getopt-gnu:
6955 # Code from module getopt-posix:
6956 # Code from module gettext-h:
6957 # Code from module ignore-value:
6958 # Code from module include_next:
6959 # Code from module intprops:
6960 # Code from module inttypes-incomplete:
6961 # Code from module largefile:
6963 # Code from module lstat:
6964 # Code from module manywarnings:
6965 # Code from module mktime:
6966 # Code from module multiarch:
6967 # Code from module nocrash:
6968 # Code from module pathmax:
6969 # Code from module pthread_sigmask:
6970 # Code from module readlink:
6971 # Code from module signal-h:
6972 # Code from module sigprocmask:
6973 # Code from module snippet/_Noreturn:
6974 # Code from module snippet/arg-nonnull:
6975 # Code from module snippet/c++defs:
6976 # Code from module snippet/warn-on-use:
6977 # Code from module socklen:
6978 # Code from module ssize_t:
6979 # Code from module stat:
6980 # Code from module stdarg:
6984 # Code from module stdbool:
6985 # Code from module stddef:
6986 # Code from module stdint:
6987 # Code from module stdio:
6988 # Code from module stdlib:
6989 # Code from module strftime:
6990 # Code from module strtoimax:
6991 # Code from module strtoll:
6992 # Code from module strtoull:
6993 # Code from module strtoumax:
6994 # Code from module symlink:
6995 # Code from module sys_stat:
6996 # Code from module time:
6997 # Code from module time_r:
6998 # Code from module u64:
6999 # Code from module unistd:
7000 # Code from module verify:
7001 # Code from module warnings:
7004 # On Suns, sometimes $CPP names a directory.
7005 if test -n "$CPP" && test -d "$CPP"; then
7009 ## If not using gcc, and on Solaris, and no CPP specified, see if
7010 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7011 if test x
"$GCC" != xyes
&& test x
"$emacs_check_sunpro_c" = xyes
&& \
7012 test x
"$CPP" = x
; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7014 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7015 if test "${emacs_cv_sunpro_c+set}" = set; then :
7016 $as_echo_n "(cached) " >&6
7018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7032 if ac_fn_c_try_link
"$LINENO"; then :
7033 emacs_cv_sunpro_c
=yes
7035 emacs_cv_sunpro_c
=no
7037 rm -f core conftest.err conftest.
$ac_objext \
7038 conftest
$ac_exeext conftest.
$ac_ext
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7042 $as_echo "$emacs_cv_sunpro_c" >&6; }
7044 if test x
"$emacs_cv_sunpro_c" = xyes
; then
7045 NON_GNU_CPP
="$CC -E -Xs"
7049 #### Some systems specify a CPP to use unless we are using GCC.
7050 #### Now that we know whether we are using GCC, we can decide whether
7051 #### to use that one.
7052 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
7057 #### Some systems specify a CC to use unless we are using GCC.
7058 #### Now that we know whether we are using GCC, we can decide whether
7059 #### to use that one.
7060 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
7061 test x
$cc_specified != xyes
7066 if test x
$GCC = xyes
; then
7067 test "x$GCC_TEST_OPTIONS" != x
&& CC
="$CC $GCC_TEST_OPTIONS"
7069 test "x$NON_GCC_TEST_OPTIONS" != x
&& CC
="$CC $NON_GCC_TEST_OPTIONS"
7072 # Check whether --enable-gcc-warnings was given.
7073 if test "${enable_gcc_warnings+set}" = set; then :
7074 enableval
=$enable_gcc_warnings; case $enableval in
7076 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7078 gl_gcc_warnings
=$enableval
7085 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7086 # ------------------------------------------------
7087 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7088 # Otherwise, run RUN-IF-NOT-FOUND.
7091 # When compiling with GCC, prefer -isystem to -I when including system
7092 # include files, to avoid generating useless diagnostics for the files.
7093 if test "$gl_gcc_warnings" != yes; then
7098 # This, $nw, is the list of warnings we disable.
7101 case $with_x_toolkit in
7102 lucid | athena | motif
)
7103 # Old toolkits mishandle 'const'.
7104 nw
="$nw -Wwrite-strings"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7108 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7109 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7113 gl_save_compiler_FLAGS
="$CFLAGS"
7114 CFLAGS
="$CFLAGS -Werror"
7115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7126 if ac_fn_c_try_compile
"$LINENO"; then :
7127 gl_cv_warn_c__Werror
=yes
7129 gl_cv_warn_c__Werror
=no
7131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7132 CFLAGS
="$gl_save_compiler_FLAGS"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7136 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7137 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7138 as_fn_append WERROR_CFLAGS
" -Werror"
7145 nw
="$nw -Waggregate-return" # anachronistic
7146 nw
="$nw -Wlong-long" # C90 is anachronistic
7147 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7148 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7149 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7150 nw
="$nw -Wcast-qual" # Too many warnings for now
7151 nw
="$nw -Wconversion" # Too many warnings for now
7152 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7153 nw
="$nw -Wsign-conversion" # Too many warnings for now
7154 nw
="$nw -Woverlength-strings" # Not a problem these days
7155 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7156 nw
="$nw -Wpadded" # Our structs are not padded
7157 nw
="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7158 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7159 nw
="$nw -Wformat-nonliteral" # Emacs does this a lot
7160 nw
="$nw -Wvla" # warnings in gettext.h
7161 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7162 nw
="$nw -Wswitch-enum" # Too many warnings for now
7163 nw
="$nw -Wswitch-default" # Too many warnings for now
7164 nw
="$nw -Wfloat-equal" # e.g., ftoastr.c
7165 nw
="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7167 # Emacs doesn't care about shadowing; see
7168 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7171 # The following lines should be removable at some point.
7172 nw
="$nw -Wstack-protector"
7173 nw
="$nw -Wstrict-overflow"
7174 nw
="$nw -Wsuggest-attribute=const"
7175 nw
="$nw -Wsuggest-attribute=pure"
7179 if test -n "$GCC"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7182 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7183 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7184 $as_echo_n "(cached) " >&6
7187 gl_save_CFLAGS
="$CFLAGS"
7188 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7200 if ac_fn_c_try_compile
"$LINENO"; then :
7201 gl_cv_cc_nomfi_supported
=yes
7203 gl_cv_cc_nomfi_supported
=no
7205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7206 CFLAGS
="$gl_save_CFLAGS"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7210 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7212 if test "$gl_cv_cc_nomfi_supported" = yes; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7214 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7215 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7219 gl_save_CFLAGS
="$CFLAGS"
7220 CFLAGS
="$CFLAGS -W -Werror"
7221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7225 typedef struct { int a; int b; } s_t;
7237 if ac_fn_c_try_compile
"$LINENO"; then :
7238 gl_cv_cc_nomfi_needed
=no
7240 gl_cv_cc_nomfi_needed
=yes
7242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7243 CFLAGS
="$gl_save_CFLAGS"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7248 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7253 for gl_manywarn_item
in \
7257 -Wformat-nonliteral \
7260 -Wmissing-include-dirs \
7270 -Wtraditional-conversion \
7271 -Wdeclaration-after-statement \
7274 -Wunsafe-loop-optimizations \
7276 -Wbad-function-cast \
7284 -Waggregate-return \
7285 -Wstrict-prototypes \
7286 -Wold-style-definition \
7287 -Wmissing-prototypes \
7288 -Wmissing-declarations \
7289 -Wmissing-noreturn \
7290 -Wmissing-format-attribute \
7295 -Wunreachable-code \
7300 -Wvolatile-register-var \
7301 -Wdisabled-optimization \
7303 -Woverlength-strings \
7304 -Wbuiltin-macro-redefined \
7306 -Wpacked-bitfield-compat \
7309 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7311 # The following are not documented in the manual but are included in
7312 # output from gcc --help=warnings.
7313 for gl_manywarn_item
in \
7315 -Wcoverage-mismatch \
7319 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7321 # More warnings from gcc 4.6.2 --help=warnings.
7322 for gl_manywarn_item
in \
7326 -Wdeprecated-declarations \
7328 -Wdouble-promotion \
7331 -Wformat-contains-nul \
7332 -Wformat-extra-args \
7333 -Wformat-zero-length \
7338 -Wpointer-to-int-cast \
7340 -Wsuggest-attribute=const \
7341 -Wsuggest-attribute=noreturn \
7342 -Wsuggest-attribute=pure \
7345 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7348 # Disable the missing-field-initializers warning if needed
7349 if test "$gl_cv_cc_nomfi_needed" = yes; then
7350 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7361 *" $gl_warn_item "*)
7364 gl_warn_set
="$gl_warn_set $gl_warn_item"
7371 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7373 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7374 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7375 $as_echo_n "(cached) " >&6
7378 gl_save_compiler_FLAGS
="$CFLAGS"
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7391 if ac_fn_c_try_compile
"$LINENO"; then :
7392 eval "$as_gl_Warn=yes"
7394 eval "$as_gl_Warn=no"
7396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7397 CFLAGS
="$gl_save_compiler_FLAGS"
7400 eval ac_res
=\$
$as_gl_Warn
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7402 $as_echo "$ac_res" >&6; }
7403 eval as_val
=\$
$as_gl_Warn
7404 if test "x$as_val" = x
""yes; then :
7405 as_fn_append WARN_CFLAGS
" $w"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7410 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7411 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7415 gl_save_compiler_FLAGS
="$CFLAGS"
7416 CFLAGS
="$CFLAGS -Wno-missing-field-initializers"
7417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7428 if ac_fn_c_try_compile
"$LINENO"; then :
7429 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7431 gl_cv_warn_c__Wno_missing_field_initializers
=no
7433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7434 CFLAGS
="$gl_save_compiler_FLAGS"
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7438 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7439 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7440 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7444 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7445 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7449 gl_save_compiler_FLAGS
="$CFLAGS"
7450 CFLAGS
="$CFLAGS -Wno-sign-compare"
7451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7462 if ac_fn_c_try_compile
"$LINENO"; then :
7463 gl_cv_warn_c__Wno_sign_compare
=yes
7465 gl_cv_warn_c__Wno_sign_compare
=no
7467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7468 CFLAGS
="$gl_save_compiler_FLAGS"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7472 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7473 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7474 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7476 # Too many warnings for now
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7478 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7479 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7480 $as_echo_n "(cached) " >&6
7483 gl_save_compiler_FLAGS
="$CFLAGS"
7484 CFLAGS
="$CFLAGS -Wno-type-limits"
7485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7496 if ac_fn_c_try_compile
"$LINENO"; then :
7497 gl_cv_warn_c__Wno_type_limits
=yes
7499 gl_cv_warn_c__Wno_type_limits
=no
7501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7502 CFLAGS
="$gl_save_compiler_FLAGS"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7506 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7507 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7508 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7510 # Too many warnings for now
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7512 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7513 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7517 gl_save_compiler_FLAGS
="$CFLAGS"
7518 CFLAGS
="$CFLAGS -Wno-switch"
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_switch
=yes
7533 gl_cv_warn_c__Wno_switch
=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_switch" >&5
7540 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7541 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7542 as_fn_append WARN_CFLAGS
" -Wno-switch"
7544 # Too many warnings for now
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7546 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7547 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7551 gl_save_compiler_FLAGS
="$CFLAGS"
7552 CFLAGS
="$CFLAGS -Wno-unused-parameter"
7553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7564 if ac_fn_c_try_compile
"$LINENO"; then :
7565 gl_cv_warn_c__Wno_unused_parameter
=yes
7567 gl_cv_warn_c__Wno_unused_parameter
=no
7569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7570 CFLAGS
="$gl_save_compiler_FLAGS"
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7574 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7575 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7576 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7578 # Too many warnings for now
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7580 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7581 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7585 gl_save_compiler_FLAGS
="$CFLAGS"
7586 CFLAGS
="$CFLAGS -Wno-format-nonliteral"
7587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7598 if ac_fn_c_try_compile
"$LINENO"; then :
7599 gl_cv_warn_c__Wno_format_nonliteral
=yes
7601 gl_cv_warn_c__Wno_format_nonliteral
=no
7603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7604 CFLAGS
="$gl_save_compiler_FLAGS"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7608 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7609 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7610 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7614 # In spite of excluding -Wlogical-op above, it is enabled, as of
7615 # gcc 4.5.0 20090517.
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7617 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7618 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7622 gl_save_compiler_FLAGS
="$CFLAGS"
7623 CFLAGS
="$CFLAGS -Wno-logical-op"
7624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7635 if ac_fn_c_try_compile
"$LINENO"; then :
7636 gl_cv_warn_c__Wno_logical_op
=yes
7638 gl_cv_warn_c__Wno_logical_op
=no
7640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7641 CFLAGS
="$gl_save_compiler_FLAGS"
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7645 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7646 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7647 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7652 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7653 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7657 gl_save_compiler_FLAGS
="$CFLAGS"
7658 CFLAGS
="$CFLAGS -fdiagnostics-show-option"
7659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7670 if ac_fn_c_try_compile
"$LINENO"; then :
7671 gl_cv_warn_c__fdiagnostics_show_option
=yes
7673 gl_cv_warn_c__fdiagnostics_show_option
=no
7675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7676 CFLAGS
="$gl_save_compiler_FLAGS"
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7680 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7681 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7682 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7686 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7687 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7691 gl_save_compiler_FLAGS
="$CFLAGS"
7692 CFLAGS
="$CFLAGS -funit-at-a-time"
7693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7704 if ac_fn_c_try_compile
"$LINENO"; then :
7705 gl_cv_warn_c__funit_at_a_time
=yes
7707 gl_cv_warn_c__funit_at_a_time
=no
7709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7710 CFLAGS
="$gl_save_compiler_FLAGS"
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7714 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7715 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7716 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7721 $as_echo "#define lint 1" >>confdefs.h
7724 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7727 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7730 # We use a slightly smaller set of warning options for lib/.
7731 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7733 nw
="$nw -Wunused-macros"
7737 set x
$WARN_CFLAGS; shift
7741 *" $gl_warn_item "*)
7744 gl_warn_set
="$gl_warn_set $gl_warn_item"
7748 GNULIB_WARN_CFLAGS
=$gl_warn_set
7755 #### Some other nice autoconf tests.
7758 ac_cpp
='$CPP $CPPFLAGS'
7759 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7764 # On Suns, sometimes $CPP names a directory.
7765 if test -n "$CPP" && test -d "$CPP"; then
7768 if test -z "$CPP"; then
7769 if test "${ac_cv_prog_CPP+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7772 # Double quotes because CPP needs to be expanded
7773 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7776 for ac_c_preproc_warn_flag
in '' yes
7778 # Use a header file that comes with gcc, so configuring glibc
7779 # with a fresh cross-compiler works.
7780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 # <limits.h> exists even on freestanding compilers.
7782 # On the NeXT, cc -E runs the code through the compiler's parser,
7783 # not just through cpp. "Syntax error" is here to catch this case.
7784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7787 # include <limits.h>
7789 # include <assert.h>
7793 if ac_fn_c_try_cpp
"$LINENO"; then :
7796 # Broken: fails on valid input.
7799 rm -f conftest.err conftest.
$ac_ext
7801 # OK, works on sane cases. Now check whether nonexistent headers
7802 # can be detected and how.
7803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <ac_nonexistent.h>
7807 if ac_fn_c_try_cpp
"$LINENO"; then :
7808 # Broken: success on invalid input.
7811 # Passes both tests.
7815 rm -f conftest.err conftest.
$ac_ext
7818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819 rm -f conftest.err conftest.
$ac_ext
7820 if $ac_preproc_ok; then :
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7833 $as_echo "$CPP" >&6; }
7835 for ac_c_preproc_warn_flag
in '' yes
7837 # Use a header file that comes with gcc, so configuring glibc
7838 # with a fresh cross-compiler works.
7839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 # <limits.h> exists even on freestanding compilers.
7841 # On the NeXT, cc -E runs the code through the compiler's parser,
7842 # not just through cpp. "Syntax error" is here to catch this case.
7843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7846 # include <limits.h>
7848 # include <assert.h>
7852 if ac_fn_c_try_cpp
"$LINENO"; then :
7855 # Broken: fails on valid input.
7858 rm -f conftest.err conftest.
$ac_ext
7860 # OK, works on sane cases. Now check whether nonexistent headers
7861 # can be detected and how.
7862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <ac_nonexistent.h>
7866 if ac_fn_c_try_cpp
"$LINENO"; then :
7867 # Broken: success on invalid input.
7870 # Passes both tests.
7874 rm -f conftest.err conftest.
$ac_ext
7877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7878 rm -f conftest.err conftest.
$ac_ext
7879 if $ac_preproc_ok; then :
7882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7884 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7885 See \`config.log' for more details." "$LINENO" 5; }
7889 ac_cpp
='$CPP $CPPFLAGS'
7890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7895 if test "x$RANLIB" = x
; then
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7898 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7904 if test -n "$RANLIB"; then
7905 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir
=.
7912 for ac_exec_ext
in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 RANLIB
=$ac_cv_prog_RANLIB
7925 if test -n "$RANLIB"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7927 $as_echo "$RANLIB" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_RANLIB"; then
7936 ac_ct_RANLIB
=$RANLIB
7937 # Extract the first word of "ranlib", so it can be a program name with args.
7938 set dummy ranlib
; ac_word
=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$ac_ct_RANLIB"; then
7945 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir
=.
7952 for ac_exec_ext
in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7965 if test -n "$ac_ct_RANLIB"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7967 $as_echo "$ac_ct_RANLIB" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_RANLIB" = x
; then
7976 case $cross_compiling:$ac_tool_warned in
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned
=yes ;;
7982 RANLIB
=$ac_ct_RANLIB
7985 RANLIB
="$ac_cv_prog_RANLIB"
7990 ## Although we're running on an amd64 kernel, we're actually compiling for
7991 ## the x86 architecture. The user should probably have provided an
7992 ## explicit --build to `configure', but if everything else than the kernel
7993 ## is running in i386 mode, we can help them out.
7994 if test "$machine" = "amdx86-64"; then
7995 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7996 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
8000 if test "$ac_cv_have_decl_i386" = "yes"; then
8001 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
8003 machfile
="m/${machine}.h"
8007 # Extract the first word of "install-info", so it can be a program name with args.
8008 set dummy install-info
; ac_word
=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8014 case $INSTALL_INFO in
8016 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir
=.
8024 for ac_exec_ext
in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8038 if test -n "$INSTALL_INFO"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8040 $as_echo "$INSTALL_INFO" >&6; }
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043 $as_echo "no" >&6; }
8047 # Extract the first word of "install-info", so it can be a program name with args.
8048 set dummy install-info
; ac_word
=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8054 case $INSTALL_INFO in
8056 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8060 for as_dir
in /usr
/sbin
8063 test -z "$as_dir" && as_dir
=.
8064 for ac_exec_ext
in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8078 if test -n "$INSTALL_INFO"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8080 $as_echo "$INSTALL_INFO" >&6; }
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8087 # Extract the first word of "install-info", so it can be a program name with args.
8088 set dummy install-info
; ac_word
=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8094 case $INSTALL_INFO in
8096 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
8099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8103 test -z "$as_dir" && as_dir
=.
8104 for ac_exec_ext
in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
8118 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
8119 if test -n "$INSTALL_INFO"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8121 $as_echo "$INSTALL_INFO" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8128 # Extract the first word of "gzip", so it can be a program name with args.
8129 set dummy
gzip; ac_word
=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8137 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
8140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir
=.
8145 for ac_exec_ext
in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 GZIP_PROG
=$ac_cv_path_GZIP_PROG
8159 if test -n "$GZIP_PROG"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8161 $as_echo "$GZIP_PROG" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8170 ## Need makeinfo >= 4.7 (?) to build the manuals.
8171 # Extract the first word of "makeinfo", so it can be a program name with args.
8172 set dummy makeinfo
; ac_word
=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8180 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir
=.
8188 for ac_exec_ext
in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8202 MAKEINFO
=$ac_cv_path_MAKEINFO
8203 if test -n "$MAKEINFO"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8205 $as_echo "$MAKEINFO" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8212 if test "$MAKEINFO" != "no" && \
8213 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
8217 ## Makeinfo is unusual. For a released Emacs, the manuals are
8218 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8219 ## therefore in the category of "special tools" not normally required, which
8220 ## configure does not have to check for (eg autoconf itself).
8221 ## In a Bazaar checkout on the other hand, the manuals are not included.
8222 ## So makeinfo is a requirement to build from Bazaar, and configure
8223 ## should test for it as it does for any other build requirement.
8224 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8225 ## with pre-built manuals, from a Bazaar checkout.
8228 if test "$MAKEINFO" = "no"; then
8230 if test "x${with_makeinfo}" = "xno"; then
8232 elif test ! -e $srcdir/info
/emacs
; then
8233 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8234 source tree does not seem to have pre-built manuals in the \`info' directory.
8235 Either install a suitable version of makeinfo, or re-run configure
8236 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8242 if test x
$GCC = xyes
; then
8243 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8244 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8246 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8247 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8251 late_LDFLAGS
=$LDFLAGS
8252 if test x
$GCC = xyes
; then
8253 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8255 LDFLAGS
="$LDFLAGS -znocombreloc"
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8259 $as_echo_n "checking for -znocombreloc... " >&6; }
8260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8271 if ac_fn_c_try_link
"$LINENO"; then :
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8273 $as_echo "yes" >&6; }
8275 LDFLAGS
=$late_LDFLAGS
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8279 rm -f core conftest.err conftest.
$ac_objext \
8280 conftest
$ac_exeext conftest.
$ac_ext
8283 # The value of CPP is a quoted variable reference, so we need to do this
8284 # to get its actual value...
8285 CPP
=`eval "echo $CPP"`
8288 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8290 your-opsys-here
) CANNOT_DUMP
=yes ;;
8293 test "$CANNOT_DUMP" = "yes" && \
8295 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8301 UNEXEC_OBJ
=unexelf.o
8303 # MSDOS uses unexcoff.o
8304 # MSWindows uses unexw32.o
8306 UNEXEC_OBJ
=unexaix.o
8312 UNEXEC_OBJ
=unexmacosx.o
8315 UNEXEC_OBJ
=unexhp9k800.o
8318 # Use the Solaris dldump() function, called from unexsol.c, to dump
8319 # emacs, instead of the generic ELF dump code found in unexelf.c.
8320 # The resulting binary has a complete symbol table, and is better
8321 # for debugging and other observability tools (debuggers, pstack, etc).
8323 # If you encounter a problem using dldump(), please consider sending
8324 # a message to the OpenSolaris tools-linking mailing list:
8325 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8327 # It is likely that dldump() works with older Solaris too, but this has
8328 # not been tested, so for now this change is for Solaris 10 or newer.
8329 UNEXEC_OBJ
=unexsol.o
8336 ## Let `ld' find image libs and similar things in /usr/local/lib.
8337 ## The system compiler, GCC, has apparently been modified to not
8338 ## look there, contrary to what a stock GCC would do.
8339 ### It's not our place to do this. See bug#10313#17.
8340 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8345 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8346 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8350 ### It's not our place to do this. See bug#10313#17.
8351 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8356 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8357 ## otherwise Emacs dumps core on elf systems.
8358 LD_SWITCH_SYSTEM
="-Z"
8363 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8365 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8366 ## which has not been defined yet. When this was handled with cpp,
8367 ## it was expanded to null when configure sourced the s/*.h file.
8368 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8369 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8370 ## (or somesuch), but because it is supposed to go at the _front_
8371 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8372 ## Compare with the gnu-linux case below, which added to the end
8373 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8374 ## LD_SWITCH_SYSTEM_TEMACS.
8377 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8382 if test "$machine" = "alpha"; then
8383 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8384 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8388 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8389 ## With ELF, make sure that all common symbols get allocated to in the
8390 ## data section. Otherwise, the dump of temacs may miss variables in
8391 ## the shared library that have been initialized. For example, with
8392 ## GNU libc, __malloc_initialized would normally be resolved to the
8393 ## shared library's .bss section, which is fatal.
8394 if test "x$GCC" = "xyes"; then
8395 C_SWITCH_MACHINE
="-fno-common"
8397 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8400 UNEXEC_OBJ
=unexalpha.o
8408 ## Some programs in src produce warnings saying certain subprograms
8409 ## are too complex and need a MAXMEM value greater than 2000 for
8410 ## additional optimization. --nils@exp-math.uni-essen.de
8411 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8412 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8413 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8414 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8420 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8421 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8423 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8425 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8427 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8429 ## Motif needs -lgen.
8430 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8435 ### Make sure subsequent tests use flags consistent with the build flags.
8437 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8438 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8440 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8443 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8445 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8448 # Check whether --enable-largefile was given.
8449 if test "${enable_largefile+set}" = set; then :
8450 enableval
=$enable_largefile;
8453 if test "$enable_largefile" != no
; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8456 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8457 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8460 ac_cv_sys_largefile_CC
=no
8461 if test "$GCC" != yes; then
8464 # IRIX 6.2 and later do not support large files by default,
8465 # so use the C compiler's -n32 option if that helps.
8466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 #include <sys/types.h>
8469 /* Check that off_t can represent 2**63 - 1 correctly.
8470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8471 since some C++ compilers masquerading as C compilers
8472 incorrectly reject 9223372036854775807. */
8473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8475 && LARGE_OFF_T % 2147483647 == 1)
8485 if ac_fn_c_try_compile
"$LINENO"; then :
8488 rm -f core conftest.err conftest.
$ac_objext
8490 if ac_fn_c_try_compile
"$LINENO"; then :
8491 ac_cv_sys_largefile_CC
=' -n32'; break
8493 rm -f core conftest.err conftest.
$ac_objext
8497 rm -f conftest.
$ac_ext
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8501 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8502 if test "$ac_cv_sys_largefile_CC" != no
; then
8503 CC
=$CC$ac_cv_sys_largefile_CC
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8507 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8508 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 #include <sys/types.h>
8515 /* Check that off_t can represent 2**63 - 1 correctly.
8516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8517 since some C++ compilers masquerading as C compilers
8518 incorrectly reject 9223372036854775807. */
8519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8521 && LARGE_OFF_T % 2147483647 == 1)
8531 if ac_fn_c_try_compile
"$LINENO"; then :
8532 ac_cv_sys_file_offset_bits
=no
; break
8534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 #define _FILE_OFFSET_BITS 64
8538 #include <sys/types.h>
8539 /* Check that off_t can represent 2**63 - 1 correctly.
8540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8541 since some C++ compilers masquerading as C compilers
8542 incorrectly reject 9223372036854775807. */
8543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8545 && LARGE_OFF_T % 2147483647 == 1)
8555 if ac_fn_c_try_compile
"$LINENO"; then :
8556 ac_cv_sys_file_offset_bits
=64; break
8558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8559 ac_cv_sys_file_offset_bits
=unknown
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8564 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8565 case $ac_cv_sys_file_offset_bits in #(
8568 cat >>confdefs.h
<<_ACEOF
8569 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8574 if test $ac_cv_sys_file_offset_bits = unknown
; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8576 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8577 if test "${ac_cv_sys_large_files+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 #include <sys/types.h>
8584 /* Check that off_t can represent 2**63 - 1 correctly.
8585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8586 since some C++ compilers masquerading as C compilers
8587 incorrectly reject 9223372036854775807. */
8588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8590 && LARGE_OFF_T % 2147483647 == 1)
8600 if ac_fn_c_try_compile
"$LINENO"; then :
8601 ac_cv_sys_large_files
=no
; break
8603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #define _LARGE_FILES 1
8607 #include <sys/types.h>
8608 /* Check that off_t can represent 2**63 - 1 correctly.
8609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8610 since some C++ compilers masquerading as C compilers
8611 incorrectly reject 9223372036854775807. */
8612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8614 && LARGE_OFF_T % 2147483647 == 1)
8624 if ac_fn_c_try_compile
"$LINENO"; then :
8625 ac_cv_sys_large_files
=1; break
8627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8628 ac_cv_sys_large_files
=unknown
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8633 $as_echo "$ac_cv_sys_large_files" >&6; }
8634 case $ac_cv_sys_large_files in #(
8637 cat >>confdefs.h
<<_ACEOF
8638 #define _LARGE_FILES $ac_cv_sys_large_files
8657 START_FILES
='pre-crt0.o'
8660 ## Adding -lm confuses the dynamic linker, so omit it.
8662 START_FILES
='pre-crt0.o'
8665 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8666 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8668 gnu-linux | gnu-kfreebsd
)
8669 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8670 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8672 hpux10-20 | hpux11
)
8674 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8677 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8678 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8687 for file in x
$LIB_STANDARD $START_FILES; do
8689 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8693 if test "x$crt_files" != x
; then
8695 ## If user specified a crt-dir, use that unconditionally.
8698 if test "X$CRT_DIR" = "X"; then
8700 CRT_DIR
=/usr
/lib
# default
8702 case "$canonical" in
8703 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8704 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8705 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8706 ## For anything else (eg /usr/lib32), it is up the user to specify
8707 ## the location (bug#5655).
8708 ## Test for crtn.o, not just the directory, because sometimes the
8709 ## directory exists but does not have the relevant files (bug#1287).
8710 ## FIXME better to test for binary compatibility somehow.
8711 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8714 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8718 hpux10-20
) CRT_DIR
=/lib
;;
8721 test "x${GCC}" = xyes
&& crt_gcc
=yes
8727 for file in $crt_files; do
8729 ## If we're using gcc, try to determine it automatically by asking
8730 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8731 ## system-dependent default from above.]
8732 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8734 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8737 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8738 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8739 X"$crt_file" : 'X\(//\)[^/]' \| \
8740 X"$crt_file" : 'X\(//\)$' \| \
8741 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8742 $as_echo X"$crt_file" |
8743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8766 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8769 test "x$crt_missing" = x || \
8770 as_fn_error
"Required file(s) not found:$crt_missing
8771 Try using the --with-crt-dir option." "$LINENO" 5
8773 fi # crt_files != ""
8779 if test -f $CRT_DIR/crti.o
; then
8781 test -f $CRT_DIR/crtn.o || \
8782 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8784 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8785 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8794 if test "${with_sound}" != "no"; then
8795 # Sound support for GNU/Linux and the free BSDs.
8796 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8798 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8799 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8800 eval as_val
=\$
$as_ac_Header
8801 if test "x$as_val" = x
""yes; then :
8802 cat >>confdefs.h
<<_ACEOF
8803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8805 have_sound_header
=yes
8810 # Emulation library used on NetBSD.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8812 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8813 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8816 ac_check_lib_save_LIBS
=$LIBS
8817 LIBS
="-lossaudio $LIBS"
8818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8821 /* Override any GCC internal prototype to avoid an error.
8822 Use char because int might match the return type of a GCC
8823 builtin and then its argument prototype would still apply. */
8831 return _oss_ioctl ();
8836 if ac_fn_c_try_link
"$LINENO"; then :
8837 ac_cv_lib_ossaudio__oss_ioctl
=yes
8839 ac_cv_lib_ossaudio__oss_ioctl
=no
8841 rm -f core conftest.err conftest.
$ac_objext \
8842 conftest
$ac_exeext conftest.
$ac_ext
8843 LIBS
=$ac_check_lib_save_LIBS
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8846 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8847 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8856 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8860 # Extract the first word of "pkg-config", so it can be a program name with args.
8861 set dummy pkg-config
; ac_word
=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8869 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8876 test -z "$as_dir" && as_dir
=.
8877 for ac_exec_ext
in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8891 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8892 if test -n "$PKG_CONFIG"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8894 $as_echo "$PKG_CONFIG" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8902 if test "$PKG_CONFIG" = "no" ; then
8905 PKG_CONFIG_MIN_VERSION
=0.9.0
8906 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8908 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8910 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8911 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8912 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8919 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8920 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8922 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8929 ## If we have a custom action on failure, don't print errors, but
8930 ## do set a variable so people can do so.
8931 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8938 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8939 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8943 if test $succeeded = yes; then
8949 if test $HAVE_ALSA = yes; then
8950 SAVE_CFLAGS
="$CFLAGS"
8952 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8953 LIBS
="$ALSA_LIBS $LIBS"
8954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 #include <asoundlib.h>
8960 snd_lib_error_set_handler (0);
8965 if ac_fn_c_try_compile
"$LINENO"; then :
8966 emacs_alsa_normal
=yes
8968 emacs_alsa_normal
=no
8970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8971 if test "$emacs_alsa_normal" != yes; then
8972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 #include <alsa/asoundlib.h>
8978 snd_lib_error_set_handler (0);
8983 if ac_fn_c_try_compile
"$LINENO"; then :
8984 emacs_alsa_subdir
=yes
8986 emacs_alsa_subdir
=no
8988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8989 if test "$emacs_alsa_subdir" != yes; then
8990 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8992 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8995 CFLAGS
="$SAVE_CFLAGS"
8997 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8998 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
9000 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9004 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
9006 gnu-linux|freebsd|netbsd
)
9008 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9017 for ac_header
in sys
/select.h sys
/time.h unistd.h utime.h \
9018 linux
/version.h sys
/systeminfo.h \
9019 stdio_ext.h fcntl.h coff.h pty.h sys
/mman.h \
9020 sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
9021 sys
/utsname.h
pwd.h utmp.h dirent.h util.h
9023 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9024 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9025 eval as_val
=\$
$as_ac_Header
9026 if test "x$as_val" = x
""yes; then :
9027 cat >>confdefs.h
<<_ACEOF
9028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9037 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 #include <sys/personality.h>
9044 personality (PER_LINUX32)
9049 if ac_fn_c_try_compile
"$LINENO"; then :
9050 emacs_cv_personality_linux32
=yes
9052 emacs_cv_personality_linux32
=no
9054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9056 $as_echo "$emacs_cv_personality_linux32" >&6; }
9058 if test $emacs_cv_personality_linux32 = yes; then
9060 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9064 for ac_header
in term.h
9066 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
9067 if test "x$ac_cv_header_term_h" = x
""yes; then :
9068 cat >>confdefs.h
<<_ACEOF
9069 #define HAVE_TERM_H 1
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9077 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9078 if test "${ac_cv_header_time+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 #include <sys/types.h>
9084 #include <sys/time.h>
9090 if ((struct tm *) 0)
9096 if ac_fn_c_try_compile
"$LINENO"; then :
9097 ac_cv_header_time
=yes
9099 ac_cv_header_time
=no
9101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9104 $as_echo "$ac_cv_header_time" >&6; }
9105 if test $ac_cv_header_time = yes; then
9107 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9111 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
9112 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
9118 cat >>confdefs.h
<<_ACEOF
9119 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9122 if test $ac_cv_have_decl_sys_siglist != yes; then
9123 # For Tru64, at least:
9124 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
9125 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
9131 cat >>confdefs.h
<<_ACEOF
9132 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9135 if test $ac_cv_have_decl___sys_siglist = yes; then
9137 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9142 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9143 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 #include <sys/types.h>
9149 #include <sys/wait.h>
9151 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9154 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9162 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9167 if ac_fn_c_try_compile
"$LINENO"; then :
9168 ac_cv_header_sys_wait_h
=yes
9170 ac_cv_header_sys_wait_h
=no
9172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9175 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9176 if test $ac_cv_header_sys_wait_h = yes; then
9178 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
9184 $as_echo_n "checking for struct utimbuf... " >&6; }
9185 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 #ifdef TIME_WITH_SYS_TIME
9191 #include <sys/time.h>
9194 #ifdef HAVE_SYS_TIME_H
9195 #include <sys/time.h>
9206 static struct utimbuf x; x.actime = x.modtime;
9211 if ac_fn_c_try_compile
"$LINENO"; then :
9212 emacs_cv_struct_utimbuf
=yes
9214 emacs_cv_struct_utimbuf
=no
9216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
9219 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
9220 if test $emacs_cv_struct_utimbuf = yes; then
9222 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9227 $as_echo_n "checking for speed_t... " >&6; }
9228 if test "${emacs_cv_speed_t+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <termios.h>
9242 if ac_fn_c_try_compile
"$LINENO"; then :
9243 emacs_cv_speed_t
=yes
9247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9250 $as_echo "$emacs_cv_speed_t" >&6; }
9251 if test $emacs_cv_speed_t = yes; then
9253 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9258 $as_echo_n "checking for struct timeval... " >&6; }
9259 if test "${emacs_cv_struct_timeval+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 #ifdef TIME_WITH_SYS_TIME
9265 #include <sys/time.h>
9268 #ifdef HAVE_SYS_TIME_H
9269 #include <sys/time.h>
9277 static struct timeval x; x.tv_sec = x.tv_usec;
9282 if ac_fn_c_try_compile
"$LINENO"; then :
9283 emacs_cv_struct_timeval
=yes
9285 emacs_cv_struct_timeval
=no
9287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
9290 $as_echo "$emacs_cv_struct_timeval" >&6; }
9291 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
9292 if test $emacs_cv_struct_timeval = yes; then
9294 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
9299 $as_echo_n "checking for struct exception... " >&6; }
9300 if test "${emacs_cv_struct_exception+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9309 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
9314 if ac_fn_c_try_compile
"$LINENO"; then :
9315 emacs_cv_struct_exception
=yes
9317 emacs_cv_struct_exception
=no
9319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
9322 $as_echo "$emacs_cv_struct_exception" >&6; }
9323 HAVE_EXCEPTION
=$emacs_cv_struct_exception
9324 if test $emacs_cv_struct_exception != yes; then
9326 $as_echo "#define NO_MATHERR 1" >>confdefs.h
9330 for ac_header
in sys
/socket.h
9332 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
9333 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
9334 cat >>confdefs.h
<<_ACEOF
9335 #define HAVE_SYS_SOCKET_H 1
9342 for ac_header
in net
/if.h
9344 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9345 #if HAVE_SYS_SOCKET_H
9346 #include <sys/socket.h>
9349 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
9350 cat >>confdefs.h
<<_ACEOF
9351 #define HAVE_NET_IF_H 1
9358 for ac_header
in ifaddrs.h
9360 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9361 #if HAVE_SYS_SOCKET_H
9362 #include <sys/socket.h>
9365 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
9366 cat >>confdefs.h
<<_ACEOF
9367 #define HAVE_IFADDRS_H 1
9374 for ac_header
in net
/if_dl.h
9376 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9377 #if HAVE_SYS_SOCKET_H
9378 #include <sys/socket.h>
9381 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
9382 cat >>confdefs.h
<<_ACEOF
9383 #define HAVE_NET_IF_DL_H 1
9390 for ac_func
in getifaddrs freeifaddrs
9392 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9393 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9394 eval as_val
=\$
$as_ac_var
9395 if test "x$as_val" = x
""yes; then :
9396 cat >>confdefs.h
<<_ACEOF
9397 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9404 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9405 #if HAVE_SYS_SOCKET_H
9406 #include <sys/socket.h>
9412 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
9414 cat >>confdefs.h
<<_ACEOF
9415 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9420 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9421 #if HAVE_SYS_SOCKET_H
9422 #include <sys/socket.h>
9428 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
9430 cat >>confdefs.h
<<_ACEOF
9431 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9436 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9437 #if HAVE_SYS_SOCKET_H
9438 #include <sys/socket.h>
9444 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
9446 cat >>confdefs.h
<<_ACEOF
9447 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9452 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9453 #if HAVE_SYS_SOCKET_H
9454 #include <sys/socket.h>
9460 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
9462 cat >>confdefs.h
<<_ACEOF
9463 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9468 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9469 #if HAVE_SYS_SOCKET_H
9470 #include <sys/socket.h>
9476 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9478 cat >>confdefs.h
<<_ACEOF
9479 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9484 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9485 #if HAVE_SYS_SOCKET_H
9486 #include <sys/socket.h>
9492 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9494 cat >>confdefs.h
<<_ACEOF
9495 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9504 $as_echo_n "checking for function prototypes... " >&6; }
9505 if test "$ac_cv_prog_cc_c89" != no
; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9507 $as_echo "yes" >&6; }
9509 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9512 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9520 $as_echo_n "checking for working volatile... " >&6; }
9521 if test "${ac_cv_c_volatile+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9532 int * volatile y = (int *) 0;
9538 if ac_fn_c_try_compile
"$LINENO"; then :
9539 ac_cv_c_volatile
=yes
9543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9546 $as_echo "$ac_cv_c_volatile" >&6; }
9547 if test $ac_cv_c_volatile = no
; then
9549 $as_echo "#define volatile /**/" >>confdefs.h
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9554 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9555 if test "${ac_cv_c_const+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9564 /* FIXME: Include the comments suggested by Paul. */
9566 /* Ultrix mips cc rejects this. */
9567 typedef int charset[2];
9569 /* SunOS 4.1.1 cc rejects this. */
9570 char const *const *pcpcc;
9572 /* NEC SVR4.0.2 mips cc rejects this. */
9573 struct point {int x, y;};
9574 static struct point const zero = {0,0};
9575 /* AIX XL C 1.02.0.0 rejects this.
9576 It does not let you subtract one const X* pointer from another in
9577 an arm of an if-expression whose if-part is not a constant
9579 const char *g = "string";
9580 pcpcc = &g + (g ? g-g : 0);
9581 /* HPUX 7.0 cc rejects these. */
9583 ppc = (char**) pcpcc;
9584 pcpcc = (char const *const *) ppc;
9585 { /* SCO 3.2v4 cc rejects this. */
9587 char const *s = 0 ? (char *) 0 : (char const *) 0;
9592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9594 const int *foo = &x[0];
9597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9598 typedef const int *iptr;
9602 { /* AIX XL C 1.02.0.0 rejects this saying
9603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9604 struct s { int j; const int *ap[3]; };
9605 struct s *b; b->j = 5;
9607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9611 return !cs[0] && !zero.x;
9618 if ac_fn_c_try_compile
"$LINENO"; then :
9623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9626 $as_echo "$ac_cv_c_const" >&6; }
9627 if test $ac_cv_c_const = no
; then
9629 $as_echo "#define const /**/" >>confdefs.h
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9634 $as_echo_n "checking for void * support... " >&6; }
9635 if test "${emacs_cv_void_star+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9649 if ac_fn_c_try_compile
"$LINENO"; then :
9650 emacs_cv_void_star
=yes
9652 emacs_cv_void_star
=no
9654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9657 $as_echo "$emacs_cv_void_star" >&6; }
9658 if test $emacs_cv_void_star = yes; then
9659 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9662 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9667 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9668 if test "${ac_cv_c_bigendian+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9671 ac_cv_c_bigendian
=unknown
9672 # See if we're dealing with a universal compiler.
9673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 #ifndef __APPLE_CC__
9676 not a universal capable compiler
9681 if ac_fn_c_try_compile
"$LINENO"; then :
9683 # Check for potential -arch flags. It is not universal unless
9684 # there are at least two -arch flags with different values.
9687 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9688 if test -n "$ac_prev"; then
9690 i?
86 | x86_64 | ppc | ppc64
)
9691 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9694 ac_cv_c_bigendian
=universal
9700 elif test "x$ac_word" = "x-arch"; then
9705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9706 if test $ac_cv_c_bigendian = unknown
; then
9707 # See if sys/param.h defines the BYTE_ORDER macro.
9708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 #include <sys/types.h>
9711 #include <sys/param.h>
9716 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9717 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9726 if ac_fn_c_try_compile
"$LINENO"; then :
9727 # It does; now see whether it defined to BIG_ENDIAN or not.
9728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 #include <sys/types.h>
9731 #include <sys/param.h>
9736 #if BYTE_ORDER != BIG_ENDIAN
9744 if ac_fn_c_try_compile
"$LINENO"; then :
9745 ac_cv_c_bigendian
=yes
9747 ac_cv_c_bigendian
=no
9749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9753 if test $ac_cv_c_bigendian = unknown
; then
9754 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9762 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9770 if ac_fn_c_try_compile
"$LINENO"; then :
9771 # It does; now see whether it defined to _BIG_ENDIAN or not.
9772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9787 if ac_fn_c_try_compile
"$LINENO"; then :
9788 ac_cv_c_bigendian
=yes
9790 ac_cv_c_bigendian
=no
9792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9796 if test $ac_cv_c_bigendian = unknown
; then
9797 # Compile a test program.
9798 if test "$cross_compiling" = yes; then :
9799 # Try to guess by grepping values from an object file.
9800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 short int ascii_mm[] =
9803 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9804 short int ascii_ii[] =
9805 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9806 int use_ascii (int i) {
9807 return ascii_mm[i] + ascii_ii[i];
9809 short int ebcdic_ii[] =
9810 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9811 short int ebcdic_mm[] =
9812 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9813 int use_ebcdic (int i) {
9814 return ebcdic_mm[i] + ebcdic_ii[i];
9821 return use_ascii (foo) == use_ebcdic (foo);
9826 if ac_fn_c_try_compile
"$LINENO"; then :
9827 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9828 ac_cv_c_bigendian
=yes
9830 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9831 if test "$ac_cv_c_bigendian" = unknown
; then
9832 ac_cv_c_bigendian
=no
9834 # finding both strings is unlikely to happen, but who knows?
9835 ac_cv_c_bigendian
=unknown
9839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 $ac_includes_default
9848 /* Are we little or big endian? From Harbison&Steele. */
9852 char c[sizeof (long int)];
9855 return u.c[sizeof (long int) - 1] == 1;
9861 if ac_fn_c_try_run
"$LINENO"; then :
9862 ac_cv_c_bigendian
=no
9864 ac_cv_c_bigendian
=yes
9866 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9867 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9873 $as_echo "$ac_cv_c_bigendian" >&6; }
9874 case $ac_cv_c_bigendian in #(
9876 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9882 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9886 as_fn_error
"unknown endianness
9887 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9892 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9893 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 char __attribute__ ((__aligned__ (1 << 3))) c;
9907 if ac_fn_c_try_compile
"$LINENO"; then :
9908 emacs_cv_attribute_aligned
=yes
9910 emacs_cv_attribute_aligned
=no
9912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9915 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9916 if test $emacs_cv_attribute_aligned = yes; then
9918 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9923 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9925 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9926 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9927 $as_echo_n "(cached) " >&6
9929 cat >conftest.
make <<\_ACEOF
9932 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9934 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9935 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9937 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9939 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9943 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9945 $as_echo "yes" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9950 SET_MAKE
="MAKE=${MAKE-make}"
9957 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9959 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9961 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9962 if test "x$testval" != x
; then
9965 ac_enable_autodepend
=no
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9968 $as_echo "$HAVE_GNU_MAKE" >&6; }
9969 if test $HAVE_GNU_MAKE = yes; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9971 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9972 SAVE_CFLAGS
="$CFLAGS"
9973 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9985 if ac_fn_c_try_compile
"$LINENO"; then :
9988 ac_enable_autodepend
=no
9990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9991 CFLAGS
="$SAVE_CFLAGS"
9992 test -f deps.d || ac_enable_autodepend
=no
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9995 $as_echo "$ac_enable_autodepend" >&6; }
9997 if test $ac_enable_autodepend = yes; then
9998 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9999 ## In parallel builds, another make might create depdir between
10000 ## the first test and mkdir, so stick another test on the end.
10001 ## Or use install-sh -d? mkdir -p is not portable.
10002 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
10003 deps_frag
=autodeps.mk
10006 deps_frag
=$srcdir/src
/$deps_frag
10012 lisp_frag
=$srcdir/src
/lisp.mk
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
10017 $as_echo_n "checking for long file names... " >&6; }
10018 if test "${ac_cv_sys_long_file_names+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10021 ac_cv_sys_long_file_names
=yes
10022 # Test for long file names in all the places we know might matter:
10023 # . the current directory, where building will happen
10024 # $prefix/lib where we will be installing things
10025 # $exec_prefix/lib likewise
10026 # $TMPDIR if set, where it might want to write temporary files
10027 # /tmp where it might want to write temporary files
10028 # /var/tmp likewise
10029 # /usr/tmp likewise
10030 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
10031 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10032 # in the usual case where exec_prefix is '${prefix}'.
10034 . |
/* | ?
:[\\/]*) ;; #(
10037 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
10038 ac_xdir
=$ac_dir/cf$$
10039 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
10040 ac_tf1
=$ac_xdir/conftest9012345
10041 ac_tf2
=$ac_xdir/conftest9012346
10042 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10043 ac_cv_sys_long_file_names
=no
10044 rm -f -r "$ac_xdir" 2>/dev
/null
10045 test $ac_cv_sys_long_file_names = no
&& break
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
10049 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10050 if test $ac_cv_sys_long_file_names = yes; then
10052 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
10057 #### Choose a window system.
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10060 $as_echo_n "checking for X... " >&6; }
10063 # Check whether --with-x was given.
10064 if test "${with_x+set}" = set; then :
10068 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10069 if test "x$with_x" = xno
; then
10070 # The user explicitly disabled X.
10073 case $x_includes,$x_libraries in #(
10074 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
10075 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
10078 # One or both of the vars are not set, and there is no cached value.
10079 ac_x_includes
=no ac_x_libraries
=no
10080 rm -f -r conftest.dir
10081 if mkdir conftest.dir
; then
10083 cat >Imakefile
<<'_ACEOF'
10085 @echo incroot='${INCROOT}'
10087 @echo usrlibdir='${USRLIBDIR}'
10089 @echo libdir='${LIBDIR}'
10091 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10093 for ac_var
in incroot usrlibdir libdir
; do
10094 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10097 for ac_extension
in a so sl dylib la dll
; do
10098 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10099 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10100 ac_im_usrlibdir
=$ac_im_libdir; break
10103 # Screen out bogus values from the imake configuration. They are
10104 # bogus both because they are the default anyway, and because
10105 # using them would break gcc on systems where it needs fixed includes.
10106 case $ac_im_incroot in
10107 /usr
/include
) ac_x_includes
= ;;
10108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
10110 case $ac_im_usrlibdir in
10111 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
10112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
10116 rm -f -r conftest.dir
10119 # Standard set of common directories for X headers.
10120 # Check X11 before X11Rn because it is often a symlink to the current release.
10134 /usr/local/X11/include
10135 /usr/local/X11R7/include
10136 /usr/local/X11R6/include
10137 /usr/local/X11R5/include
10138 /usr/local/X11R4/include
10140 /usr/local/include/X11
10141 /usr/local/include/X11R7
10142 /usr/local/include/X11R6
10143 /usr/local/include/X11R5
10144 /usr/local/include/X11R4
10148 /usr/XFree86/include/X11
10152 /usr/unsupported/include
10153 /usr/athena/include
10154 /usr/local/x11r5/include
10155 /usr/lpp/Xamples/include
10157 /usr/openwin/include
10158 /usr/openwin/share/include'
10160 if test "$ac_x_includes" = no
; then
10161 # Guess where to find include files, by looking for Xlib.h.
10162 # First, try using that file with no special directory specified.
10163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165 #include <X11/Xlib.h>
10167 if ac_fn_c_try_cpp
"$LINENO"; then :
10168 # We can compile using X headers with no special include directory.
10171 for ac_dir
in $ac_x_header_dirs; do
10172 if test -r "$ac_dir/X11/Xlib.h"; then
10173 ac_x_includes
=$ac_dir
10178 rm -f conftest.err conftest.
$ac_ext
10179 fi # $ac_x_includes = no
10181 if test "$ac_x_libraries" = no
; then
10182 # Check for the libraries.
10183 # See if we find them without any special options.
10184 # Don't add to $LIBS permanently.
10187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <X11/Xlib.h>
10198 if ac_fn_c_try_link
"$LINENO"; then :
10200 # We can link X programs with no special library path.
10204 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10206 # Don't even attempt the hair of trying to link an X program!
10207 for ac_extension
in a so sl dylib la dll
; do
10208 if test -r "$ac_dir/libX11.$ac_extension"; then
10209 ac_x_libraries
=$ac_dir
10215 rm -f core conftest.err conftest.
$ac_objext \
10216 conftest
$ac_exeext conftest.
$ac_ext
10217 fi # $ac_x_libraries = no
10219 case $ac_x_includes,$ac_x_libraries in #(
10220 no
,* |
*,no |
*\'*)
10221 # Didn't find X, or a directory has "'" in its name.
10222 ac_cv_have_x
="have_x=no";; #(
10224 # Record where we found X for the cache.
10225 ac_cv_have_x
="have_x=yes\
10226 ac_x_includes='$ac_x_includes'\
10227 ac_x_libraries='$ac_x_libraries'"
10233 eval "$ac_cv_have_x"
10236 if test "$have_x" != yes; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10238 $as_echo "$have_x" >&6; }
10241 # If each of the values was on the command line, it overrides each guess.
10242 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10243 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10244 # Update the cache value to reflect the command line values.
10245 ac_cv_have_x
="have_x=yes\
10246 ac_x_includes='$x_includes'\
10247 ac_x_libraries='$x_libraries'"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10249 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10252 if test "$no_x" = yes; then
10258 LD_SWITCH_X_SITE_RPATH
=
10259 if test "${x_libraries}" != NONE
; then
10260 if test -n "${x_libraries}"; then
10261 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
10262 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
10264 x_default_search_path
=""
10265 x_search_path
=${x_libraries}
10266 if test -z "${x_search_path}"; then
10267 x_search_path
=/usr
/lib
10269 for x_library
in `echo ${x_search_path}: | \
10270 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10272 ${x_library}/X11/%L/%T/%N%C%S:\
10273 ${x_library}/X11/%l/%T/%N%C%S:\
10274 ${x_library}/X11/%T/%N%C%S:\
10275 ${x_library}/X11/%L/%T/%N%S:\
10276 ${x_library}/X11/%l/%T/%N%S:\
10277 ${x_library}/X11/%T/%N%S"
10278 if test x
"${x_default_search_path}" = x
; then
10279 x_default_search_path
=${x_search_path}
10281 x_default_search_path
="${x_search_path}:${x_default_search_path}"
10287 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
10288 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10291 if test x
"${x_includes}" = x
; then
10292 bitmapdir
=/usr
/include
/X11
/bitmaps
10294 # accumulate include directories that have X11 bitmap subdirectories
10296 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10297 if test -d "${bmd}/X11/bitmaps"; then
10298 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
10300 if test -d "${bmd}/bitmaps"; then
10301 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
10304 if test ${bmd_acc} != "dummyval"; then
10305 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10312 tmp_CPPFLAGS
="$CPPFLAGS"
10313 tmp_CFLAGS
="$CFLAGS"
10314 CPPFLAGS
="$CPPFLAGS -x objective-c"
10315 CFLAGS
="$CFLAGS -x objective-c"
10316 TEMACS_LDFLAGS2
="\${LDFLAGS}"
10318 if test "${with_ns}" != no
; then
10319 if test "${opsys}" = darwin
; then
10321 ns_appdir
=`pwd`/nextstep
/Emacs.app
10322 ns_appbindir
=${ns_appdir}/Contents
/MacOS
/
10323 ns_appresdir
=${ns_appdir}/Contents
/Resources
10324 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
10325 elif test -f $GNUSTEP_CONFIG_FILE; then
10326 NS_IMPL_GNUSTEP
=yes
10327 ns_appdir
=`pwd`/nextstep
/Emacs.app
10328 ns_appbindir
=${ns_appdir}/
10329 ns_appresdir
=${ns_appdir}/Resources
10330 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
10331 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10332 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10333 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10334 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10335 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10336 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
10337 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10338 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
10339 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10340 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10341 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10346 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10347 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 #include <GNUstepBase/GSConfig.h>
10356 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10365 if ac_fn_c_try_compile
"$LINENO"; then :
10366 emacs_cv_objc_exceptions
=yes
10368 emacs_cv_objc_exceptions
=no
10370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10373 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10374 if test $emacs_cv_objc_exceptions = yes; then
10376 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10378 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
10382 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
10384 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10385 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
10388 as_fn_error
"\`--with-ns' was specified, but the include
10389 files are missing or cannot be compiled." "$LINENO" 5
10393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 #include <Foundation/NSObjCRuntime.h>
10404 if ac_fn_c_try_compile
"$LINENO"; then :
10405 ns_have_nsinteger
=yes
10407 ns_have_nsinteger
=no
10409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10410 if test $ns_have_nsinteger = yes; then
10412 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10421 if test "${HAVE_NS}" = yes; then
10422 if test "$with_toolkit_scroll_bars" = "no"; then
10423 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10426 window_system
=nextstep
10428 # set up packaging dirs
10429 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10430 prefix
=${ns_appresdir}
10431 exec_prefix
=${ns_appbindir}
10432 libexecdir
=${ns_appbindir}/libexec
10434 ns_frag
=$srcdir/src
/ns.mk
10435 NS_OBJ
="fontset.o fringe.o image.o"
10436 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10438 CFLAGS
="$tmp_CFLAGS"
10439 CPPFLAGS
="$tmp_CPPFLAGS"
10445 case "${window_system}" in
10449 case "${with_x_toolkit}" in
10450 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
10451 motif
) USE_X_TOOLKIT
=MOTIF
;;
10453 USE_X_TOOLKIT
=none
;;
10454 gtk3
) with_gtk3
=yes
10455 USE_X_TOOLKIT
=none
;;
10456 no
) USE_X_TOOLKIT
=none
;;
10457 * ) USE_X_TOOLKIT
=maybe
;;
10467 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
10468 # Extract the first word of "X", so it can be a program name with args.
10469 set dummy X
; ac_word
=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10475 if test -n "$HAVE_XSERVER"; then
10476 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
10478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10479 for as_dir
in $PATH
10482 test -z "$as_dir" && as_dir
=.
10483 for ac_exec_ext
in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_prog_HAVE_XSERVER
="true"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
10496 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
10497 if test -n "$HAVE_XSERVER"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10499 $as_echo "$HAVE_XSERVER" >&6; }
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; }
10506 if test "$HAVE_XSERVER" = true ||
10507 test -n "$DISPLAY" ||
10508 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10509 as_fn_error
"You seem to be running X, but no X development libraries
10510 were found. You should install the relevant development files for X
10511 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10512 sure you have development files for image handling, i.e.
10513 tiff, gif, jpeg, png and xpm.
10514 If you are sure you want Emacs compiled without X window support, pass
10516 to configure." "$LINENO" 5
10520 ### If we're using X11, we should use the X menu package.
10522 case ${HAVE_X11} in
10523 yes ) HAVE_MENUS
=yes ;;
10526 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10527 # Assume not, until told otherwise.
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10531 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10532 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10537 #include <malloc.h>
10538 static void hook (void) {}
10542 malloc_set_state (malloc_get_state ());
10543 __after_morecore_hook = hook;
10544 __malloc_initialize_hook = hook;
10549 if ac_fn_c_try_link
"$LINENO"; then :
10550 emacs_cv_var_doug_lea_malloc
=yes
10552 emacs_cv_var_doug_lea_malloc
=no
10554 rm -f core conftest.err conftest.
$ac_objext \
10555 conftest
$ac_exeext conftest.
$ac_ext
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10558 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10559 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
10564 ## darwin ld insists on the use of malloc routines in the System framework.
10565 darwin|sol2-10
) system_malloc
=yes ;;
10568 if test "${system_malloc}" = "yes"; then
10570 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10573 GNU_MALLOC_reason
="
10574 (The GNU allocators don't work with this system configuration.)"
10578 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10579 VMLIMIT_OBJ
=vm-limit.o
10584 if test "$doug_lea_malloc" = "yes" ; then
10585 if test "$GNU_MALLOC" = yes ; then
10586 GNU_MALLOC_reason
="
10587 (Using Doug Lea's new malloc from the GNU C Library.)"
10590 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10593 ## Use mmap directly for allocating larger buffers.
10594 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10595 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10596 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10598 gnu
*) REL_ALLOC
=no
;;
10602 if test x
"${REL_ALLOC}" = x
; then
10603 REL_ALLOC
=${GNU_MALLOC}
10606 use_mmap_for_buffers
=no
10608 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
10614 for ac_header
in $ac_header_list
10616 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10619 eval as_val
=\$
$as_ac_Header
10620 if test "x$as_val" = x
""yes; then :
10621 cat >>confdefs.h
<<_ACEOF
10622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10636 for ac_func
in getpagesize
10638 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10639 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10640 cat >>confdefs.h
<<_ACEOF
10641 #define HAVE_GETPAGESIZE 1
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10648 $as_echo_n "checking for working mmap... " >&6; }
10649 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10652 if test "$cross_compiling" = yes; then :
10653 ac_cv_func_mmap_fixed_mapped
=no
10655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 $ac_includes_default
10658 /* malloc might have been renamed as rpl_malloc. */
10661 /* Thanks to Mike Haertel and Jim Avera for this test.
10662 Here is a matrix of mmap possibilities:
10663 mmap private not fixed
10664 mmap private fixed at somewhere currently unmapped
10665 mmap private fixed at somewhere already mapped
10666 mmap shared not fixed
10667 mmap shared fixed at somewhere currently unmapped
10668 mmap shared fixed at somewhere already mapped
10669 For private mappings, we should verify that changes cannot be read()
10670 back from the file, nor mmap's back from the file at a different
10671 address. (There have been systems where private was not correctly
10672 implemented like the infamous i386 svr4.0, and systems where the
10673 VM page cache was not coherent with the file system buffer cache
10674 like early versions of FreeBSD and possibly contemporary NetBSD.)
10675 For shared mappings, we should conversely verify that changes get
10676 propagated back to all the places they're supposed to be.
10678 Grep wants private fixed already mapped.
10679 The main things grep needs to know about mmap are:
10680 * does it exist and is it safe to write into the mmap'd area
10681 * how to use it (BSD variants) */
10684 #include <sys/mman.h>
10686 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10690 /* This mess was copied from the GNU getpagesize.h. */
10691 #ifndef HAVE_GETPAGESIZE
10692 # ifdef _SC_PAGESIZE
10693 # define getpagesize() sysconf(_SC_PAGESIZE)
10694 # else /* no _SC_PAGESIZE */
10695 # ifdef HAVE_SYS_PARAM_H
10696 # include <sys/param.h>
10697 # ifdef EXEC_PAGESIZE
10698 # define getpagesize() EXEC_PAGESIZE
10699 # else /* no EXEC_PAGESIZE */
10701 # define getpagesize() NBPG * CLSIZE
10704 # endif /* no CLSIZE */
10705 # else /* no NBPG */
10707 # define getpagesize() NBPC
10708 # else /* no NBPC */
10710 # define getpagesize() PAGESIZE
10711 # endif /* PAGESIZE */
10712 # endif /* no NBPC */
10713 # endif /* no NBPG */
10714 # endif /* no EXEC_PAGESIZE */
10715 # else /* no HAVE_SYS_PARAM_H */
10716 # define getpagesize() 8192 /* punt totally */
10717 # endif /* no HAVE_SYS_PARAM_H */
10718 # endif /* no _SC_PAGESIZE */
10720 #endif /* no HAVE_GETPAGESIZE */
10725 char *data, *data2, *data3;
10726 const char *cdata2;
10730 pagesize = getpagesize ();
10732 /* First, make a file with some known garbage in it. */
10733 data = (char *) malloc (pagesize);
10736 for (i = 0; i < pagesize; ++i)
10737 *(data + i) = rand ();
10739 fd = creat ("conftest.mmap", 0600);
10742 if (write (fd, data, pagesize) != pagesize)
10746 /* Next, check that the tail of a page is zero-filled. File must have
10747 non-zero length, otherwise we risk SIGBUS for entire page. */
10748 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10752 if (write (fd2, cdata2, 1) != 1)
10754 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10755 if (data2 == MAP_FAILED)
10757 for (i = 0; i < pagesize; ++i)
10761 if (munmap (data2, pagesize))
10764 /* Next, try to mmap the file at a fixed address which already has
10765 something else allocated at it. If we can, also make sure that
10766 we see the same garbage. */
10767 fd = open ("conftest.mmap", O_RDWR);
10770 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10771 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10773 for (i = 0; i < pagesize; ++i)
10774 if (*(data + i) != *(data2 + i))
10777 /* Finally, make sure that changes to the mapped area do not
10778 percolate back to the file as seen by read(). (This is a bug on
10779 some variants of i386 svr4.0.) */
10780 for (i = 0; i < pagesize; ++i)
10781 *(data2 + i) = *(data2 + i) + 1;
10782 data3 = (char *) malloc (pagesize);
10785 if (read (fd, data3, pagesize) != pagesize)
10787 for (i = 0; i < pagesize; ++i)
10788 if (*(data + i) != *(data3 + i))
10794 if ac_fn_c_try_run
"$LINENO"; then :
10795 ac_cv_func_mmap_fixed_mapped
=yes
10797 ac_cv_func_mmap_fixed_mapped
=no
10799 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10800 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10805 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10806 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10808 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10811 rm -f conftest.mmap conftest.txt
10813 if test $use_mmap_for_buffers = yes; then
10815 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10820 LIBS
="$LIBS_SYSTEM $LIBS"
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10823 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10824 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10827 ac_check_lib_save_LIBS
=$LIBS
10828 LIBS
="-ldnet $LIBS"
10829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10832 /* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
10842 return dnet_ntoa ();
10847 if ac_fn_c_try_link
"$LINENO"; then :
10848 ac_cv_lib_dnet_dnet_ntoa
=yes
10850 ac_cv_lib_dnet_dnet_ntoa
=no
10852 rm -f core conftest.err conftest.
$ac_objext \
10853 conftest
$ac_exeext conftest.
$ac_ext
10854 LIBS
=$ac_check_lib_save_LIBS
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10857 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10858 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
10859 cat >>confdefs.h
<<_ACEOF
10860 #define HAVE_LIBDNET 1
10863 LIBS
="-ldnet $LIBS"
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10869 $as_echo_n "checking for main in -lXbsd... " >&6; }
10870 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10873 ac_check_lib_save_LIBS
=$LIBS
10874 LIBS
="-lXbsd $LIBS"
10875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10887 if ac_fn_c_try_link
"$LINENO"; then :
10888 ac_cv_lib_Xbsd_main
=yes
10890 ac_cv_lib_Xbsd_main
=no
10892 rm -f core conftest.err conftest.
$ac_objext \
10893 conftest
$ac_exeext conftest.
$ac_ext
10894 LIBS
=$ac_check_lib_save_LIBS
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10897 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10898 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
10899 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10904 for ac_header
in pthread.h
10906 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10907 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
10908 cat >>confdefs.h
<<_ACEOF
10909 #define HAVE_PTHREAD_H 1
10916 if test "$ac_cv_header_pthread_h"; then
10917 if test "$GMALLOC_OBJ" = gmalloc.o
; then
10918 emacs_pthread_function
=pthread_atfork
10920 emacs_pthread_function
=pthread_self
10922 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10924 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10925 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10926 $as_echo_n "(cached) " >&6
10928 ac_check_lib_save_LIBS
=$LIBS
10929 LIBS
="-lpthread $LIBS"
10930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10939 char $emacs_pthread_function ();
10943 return $emacs_pthread_function ();
10948 if ac_fn_c_try_link
"$LINENO"; then :
10949 eval "$as_ac_Lib=yes"
10951 eval "$as_ac_Lib=no"
10953 rm -f core conftest.err conftest.
$ac_objext \
10954 conftest
$ac_exeext conftest.
$ac_ext
10955 LIBS
=$ac_check_lib_save_LIBS
10957 eval ac_res
=\$
$as_ac_Lib
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10959 $as_echo "$ac_res" >&6; }
10960 eval as_val
=\$
$as_ac_Lib
10961 if test "x$as_val" = x
""yes; then :
10966 if test "$HAVE_PTHREAD" = yes; then
10967 case "${canonical}" in
10969 *) LIB_PTHREAD
="-lpthread"
10970 LIBS
="$LIB_PTHREAD $LIBS" ;;
10973 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10979 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10980 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
10983 ac_check_lib_save_LIBS
=$LIBS
10984 LIBS
="-lpthreads $LIBS"
10985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10988 /* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10998 return cma_open ();
11003 if ac_fn_c_try_link
"$LINENO"; then :
11004 ac_cv_lib_pthreads_cma_open
=yes
11006 ac_cv_lib_pthreads_cma_open
=no
11008 rm -f core conftest.err conftest.
$ac_objext \
11009 conftest
$ac_exeext conftest.
$ac_ext
11010 LIBS
=$ac_check_lib_save_LIBS
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11013 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11014 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
11015 cat >>confdefs.h
<<_ACEOF
11016 #define HAVE_LIBPTHREADS 1
11019 LIBS
="-lpthreads $LIBS"
11024 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11025 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11026 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11027 ## added to LIBS in configure would never contain the pthreads part,
11028 ## but the value used in Makefiles might. FIXME?
11030 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11031 ## be harmless on older versions of X where it happens to exist.
11032 test "$opsys" = "aix4-2" && \
11033 test $ac_cv_lib_pthreads_cma_open = yes && \
11034 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11040 $as_echo_n "checking for -bbigtoc option... " >&6; }
11041 if test "${gdb_cv_bigtoc+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11046 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11047 *) gdb_cv_bigtoc
=-bbigtoc ;;
11050 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11062 if ac_fn_c_try_link
"$LINENO"; then :
11067 rm -f core conftest.err conftest.
$ac_objext \
11068 conftest
$ac_exeext conftest.
$ac_ext
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11072 $as_echo "$gdb_cv_bigtoc" >&6; }
11076 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11077 # used for the tests that follow. We set them back to REAL_CFLAGS and
11078 # REAL_CPPFLAGS later on.
11080 REAL_CFLAGS
="$CFLAGS"
11081 REAL_CPPFLAGS
="$CPPFLAGS"
11083 if test "${HAVE_X11}" = "yes"; then
11084 DEFS
="$C_SWITCH_X_SITE $DEFS"
11085 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
11087 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
11088 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
11090 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11091 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11092 # but it's more convenient here to set LD_RUN_PATH since this
11093 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11094 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
11095 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11099 if test "${opsys}" = "gnu-linux"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11101 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11108 XOpenDisplay ("foo");
11113 if ac_fn_c_try_link
"$LINENO"; then :
11114 xgnu_linux_first_failure
=no
11116 xgnu_linux_first_failure
=yes
11118 rm -f core conftest.err conftest.
$ac_objext \
11119 conftest
$ac_exeext conftest.
$ac_ext
11120 if test "${xgnu_linux_first_failure}" = "yes"; then
11121 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11122 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11123 OLD_CPPFLAGS
="$CPPFLAGS"
11125 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11126 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11127 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11128 LIBS
="$LIBS -b i486-linuxaout"
11129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11135 XOpenDisplay ("foo");
11140 if ac_fn_c_try_link
"$LINENO"; then :
11141 xgnu_linux_second_failure
=no
11143 xgnu_linux_second_failure
=yes
11145 rm -f core conftest.err conftest.
$ac_objext \
11146 conftest
$ac_exeext conftest.
$ac_ext
11147 if test "${xgnu_linux_second_failure}" = "yes"; then
11148 # If we get the same failure with -b, there is no use adding -b.
11149 # So take it out. This plays safe.
11150 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
11151 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
11152 CPPFLAGS
="$OLD_CPPFLAGS"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11158 $as_echo "yes" >&6; }
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11167 # header files included from there.
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11169 $as_echo_n "checking for Xkb... " >&6; }
11170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 #include <X11/Xlib.h>
11173 #include <X11/XKBlib.h>
11177 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11182 if ac_fn_c_try_link
"$LINENO"; then :
11187 rm -f core conftest.err conftest.
$ac_objext \
11188 conftest
$ac_exeext conftest.
$ac_ext
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11190 $as_echo "$emacs_xkb" >&6; }
11191 if test $emacs_xkb = yes; then
11193 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11197 for ac_func
in XrmSetDatabase XScreenResourceString \
11198 XScreenNumberOfScreen XSetWMProtocols
11200 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11201 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11202 eval as_val
=\$
$as_ac_var
11203 if test "x$as_val" = x
""yes; then :
11204 cat >>confdefs.h
<<_ACEOF
11205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 if test "${window_system}" = "x11"; then
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11215 $as_echo_n "checking X11 version 6... " >&6; }
11216 if test "${emacs_cv_x11_version_6+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 #include <X11/Xlib.h>
11225 #if XlibSpecificationRelease < 6
11233 if ac_fn_c_try_link
"$LINENO"; then :
11234 emacs_cv_x11_version_6
=yes
11236 emacs_cv_x11_version_6
=no
11238 rm -f core conftest.err conftest.
$ac_objext \
11239 conftest
$ac_exeext conftest.
$ac_ext
11242 if test $emacs_cv_x11_version_6 = yes; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11244 $as_echo "6 or newer" >&6; }
11246 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11249 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11251 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11256 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11262 $as_echo "before 6" >&6; }
11267 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11269 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11270 if test "${with_rsvg}" != "no"; then
11271 RSVG_REQUIRED
=2.11.0
11272 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11277 # Extract the first word of "pkg-config", so it can be a program name with args.
11278 set dummy pkg-config
; ac_word
=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
11284 case $PKG_CONFIG in
11286 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11290 for as_dir
in $PATH
11293 test -z "$as_dir" && as_dir
=.
11294 for ac_exec_ext
in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11308 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11309 if test -n "$PKG_CONFIG"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11311 $as_echo "$PKG_CONFIG" >&6; }
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11319 if test "$PKG_CONFIG" = "no" ; then
11322 PKG_CONFIG_MIN_VERSION
=0.9.0
11323 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11325 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11327 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
11328 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
11329 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
11336 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11337 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11339 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11346 ## If we have a custom action on failure, don't print errors, but
11347 ## do set a variable so people can do so.
11348 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11355 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11356 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11360 if test $succeeded = yes; then
11369 if test $HAVE_RSVG = yes; then
11371 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11373 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11374 LIBS
="$RSVG_LIBS $LIBS"
11379 HAVE_IMAGEMAGICK
=no
11380 if test "${HAVE_X11}" = "yes"; then
11381 if test "${with_imagemagick}" != "no"; then
11382 ## 6.2.8 is the earliest version known to work, but earlier versions
11383 ## might work - let us know if you find one.
11384 ## 6.0.7 does not work. See bug#7955.
11385 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
11389 # Extract the first word of "pkg-config", so it can be a program name with args.
11390 set dummy pkg-config
; ac_word
=$2
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 $as_echo_n "checking for $ac_word... " >&6; }
11393 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11394 $as_echo_n "(cached) " >&6
11396 case $PKG_CONFIG in
11398 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11402 for as_dir
in $PATH
11405 test -z "$as_dir" && as_dir
=.
11406 for ac_exec_ext
in '' $ac_executable_extensions; do
11407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11408 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11420 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11421 if test -n "$PKG_CONFIG"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11423 $as_echo "$PKG_CONFIG" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11426 $as_echo "no" >&6; }
11431 if test "$PKG_CONFIG" = "no" ; then
11434 PKG_CONFIG_MIN_VERSION
=0.9.0
11435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11437 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11439 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11440 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11441 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11448 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11449 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11451 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11456 IMAGEMAGICK_CFLAGS
=""
11457 IMAGEMAGICK_LIBS
=""
11458 ## If we have a custom action on failure, don't print errors, but
11459 ## do set a variable so people can do so.
11460 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11467 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11468 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11472 if test $succeeded = yes; then
11473 HAVE_IMAGEMAGICK
=yes
11481 if test $HAVE_IMAGEMAGICK = yes; then
11483 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11485 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11486 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11487 for ac_func
in MagickExportImagePixels
11489 ac_fn_c_check_func
"$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
11490 if test "x$ac_cv_func_MagickExportImagePixels" = x
""yes; then :
11491 cat >>confdefs.h
<<_ACEOF
11492 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
11505 if test "${with_gtk3}" = "yes"; then
11508 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11513 # Extract the first word of "pkg-config", so it can be a program name with args.
11514 set dummy pkg-config
; ac_word
=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
11520 case $PKG_CONFIG in
11522 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11526 for as_dir
in $PATH
11529 test -z "$as_dir" && as_dir
=.
11530 for ac_exec_ext
in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11544 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11545 if test -n "$PKG_CONFIG"; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11547 $as_echo "$PKG_CONFIG" >&6; }
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11555 if test "$PKG_CONFIG" = "no" ; then
11558 PKG_CONFIG_MIN_VERSION
=0.9.0
11559 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11561 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11563 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11564 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11565 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11572 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11573 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11575 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11582 ## If we have a custom action on failure, don't print errors, but
11583 ## do set a variable so people can do so.
11584 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11591 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11592 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11596 if test $succeeded = yes; then
11602 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11603 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11606 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11608 GTK_OBJ
=emacsgtkfixed.o
11611 if test "$pkg_check_gtk" != "yes"; then
11613 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11616 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11621 # Extract the first word of "pkg-config", so it can be a program name with args.
11622 set dummy pkg-config
; ac_word
=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11628 case $PKG_CONFIG in
11630 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11634 for as_dir
in $PATH
11637 test -z "$as_dir" && as_dir
=.
11638 for ac_exec_ext
in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11652 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11653 if test -n "$PKG_CONFIG"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11655 $as_echo "$PKG_CONFIG" >&6; }
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11663 if test "$PKG_CONFIG" = "no" ; then
11666 PKG_CONFIG_MIN_VERSION
=0.9.0
11667 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11669 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11671 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
11672 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
11673 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
11680 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11681 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11683 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11690 ## If we have a custom action on failure, don't print errors, but
11691 ## do set a variable so people can do so.
11692 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11699 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11700 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11704 if test $succeeded = yes; then
11710 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11711 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
11716 if test x
"$pkg_check_gtk" = xyes
; then
11720 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11721 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11722 LIBS
="$GTK_LIBS $LIBS"
11724 for ac_func
in gtk_main
11726 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11727 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
11728 cat >>confdefs.h
<<_ACEOF
11729 #define HAVE_GTK_MAIN 1
11735 if test "${GTK_COMPILES}" != "yes"; then
11736 if test "$USE_X_TOOLKIT" != "maybe"; then
11737 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11742 $as_echo "#define USE_GTK 1" >>confdefs.h
11744 GTK_OBJ
="gtkutil.o $GTK_OBJ"
11746 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11750 closing open displays. This is no problem if you just use
11751 one display, but if you use more than one and close one of them
11752 Emacs may crash." >&5
11753 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11754 closing open displays. This is no problem if you just use
11755 one display, but if you use more than one and close one of them
11756 Emacs may crash." >&2;}
11765 if test "${HAVE_GTK}" = "yes"; then
11767 if test "$with_toolkit_scroll_bars" != no
; then
11768 with_toolkit_scroll_bars
=yes
11771 HAVE_GTK_FILE_SELECTION
=no
11772 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11773 #include <gtk/gtk.h>
11775 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
11776 HAVE_GTK_FILE_SELECTION
=yes
11778 HAVE_GTK_FILE_SELECTION
=no
11781 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11782 for ac_func
in gtk_file_selection_new
11784 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11785 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
11786 cat >>confdefs.h
<<_ACEOF
11787 #define HAVE_GTK_FILE_SELECTION_NEW 1
11796 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
11797 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11798 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11799 gtk_orientable_set_orientation \
11800 gtk_window_set_has_resize_grip
11802 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11803 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11804 eval as_val
=\$
$as_ac_var
11805 if test "x$as_val" = x
""yes; then :
11806 cat >>confdefs.h
<<_ACEOF
11807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11817 if test "${with_dbus}" = "yes"; then
11821 # Extract the first word of "pkg-config", so it can be a program name with args.
11822 set dummy pkg-config
; ac_word
=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11828 case $PKG_CONFIG in
11830 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11834 for as_dir
in $PATH
11837 test -z "$as_dir" && as_dir
=.
11838 for ac_exec_ext
in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11852 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11853 if test -n "$PKG_CONFIG"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11855 $as_echo "$PKG_CONFIG" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11863 if test "$PKG_CONFIG" = "no" ; then
11866 PKG_CONFIG_MIN_VERSION
=0.9.0
11867 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11869 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11871 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
11872 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
11873 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
11880 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11881 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11883 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11890 ## If we have a custom action on failure, don't print errors, but
11891 ## do set a variable so people can do so.
11892 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11899 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11900 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11904 if test $succeeded = yes; then
11910 if test "$HAVE_DBUS" = yes; then
11911 LIBS
="$LIBS $DBUS_LIBS"
11913 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11915 for ac_func
in dbus_watch_get_unix_fd \
11916 dbus_validate_bus_name \
11917 dbus_validate_path \
11918 dbus_validate_interface \
11919 dbus_validate_member
11921 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11922 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11923 eval as_val
=\$
$as_ac_var
11924 if test "x$as_val" = x
""yes; then :
11925 cat >>confdefs.h
<<_ACEOF
11926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11932 DBUS_OBJ
=dbusbind.o
11938 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11942 # Extract the first word of "pkg-config", so it can be a program name with args.
11943 set dummy pkg-config
; ac_word
=$2
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945 $as_echo_n "checking for $ac_word... " >&6; }
11946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
11949 case $PKG_CONFIG in
11951 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11955 for as_dir
in $PATH
11958 test -z "$as_dir" && as_dir
=.
11959 for ac_exec_ext
in '' $ac_executable_extensions; do
11960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11973 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11974 if test -n "$PKG_CONFIG"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11976 $as_echo "$PKG_CONFIG" >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11984 if test "$PKG_CONFIG" = "no" ; then
11987 PKG_CONFIG_MIN_VERSION
=0.9.0
11988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11990 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11992 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
11993 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
11994 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
12001 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12002 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12004 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12009 GSETTINGS_CFLAGS
=""
12011 ## If we have a custom action on failure, don't print errors, but
12012 ## do set a variable so people can do so.
12013 GSETTINGS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
12020 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12021 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12025 if test $succeeded = yes; then
12031 if test "$HAVE_GSETTINGS" = "yes"; then
12033 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12035 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
12036 SETTINGS_LIBS
="$GSETTINGS_LIBS"
12041 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12045 # Extract the first word of "pkg-config", so it can be a program name with args.
12046 set dummy pkg-config
; ac_word
=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12052 case $PKG_CONFIG in
12054 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12058 for as_dir
in $PATH
12061 test -z "$as_dir" && as_dir
=.
12062 for ac_exec_ext
in '' $ac_executable_extensions; do
12063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12064 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12076 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12077 if test -n "$PKG_CONFIG"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12079 $as_echo "$PKG_CONFIG" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12087 if test "$PKG_CONFIG" = "no" ; then
12090 PKG_CONFIG_MIN_VERSION
=0.9.0
12091 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12093 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12095 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
12096 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12097 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
12104 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12105 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12107 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12114 ## If we have a custom action on failure, don't print errors, but
12115 ## do set a variable so people can do so.
12116 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12123 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12124 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12128 if test $succeeded = yes; then
12134 if test "$HAVE_GCONF" = yes; then
12136 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12138 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12139 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
12143 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
12144 SAVE_CFLAGS
="$CFLAGS"
12146 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
12147 LIBS
="$SETTINGS_LIBS $LIBS"
12148 for ac_func
in g_type_init
12150 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
12151 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
12152 cat >>confdefs.h
<<_ACEOF
12153 #define HAVE_G_TYPE_INIT 1
12159 CFLAGS
="$SAVE_CFLAGS"
12168 if test "${with_selinux}" = "yes"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12170 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12171 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12172 $as_echo_n "(cached) " >&6
12174 ac_check_lib_save_LIBS
=$LIBS
12175 LIBS
="-lselinux $LIBS"
12176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12185 char lgetfilecon ();
12189 return lgetfilecon ();
12194 if ac_fn_c_try_link
"$LINENO"; then :
12195 ac_cv_lib_selinux_lgetfilecon
=yes
12197 ac_cv_lib_selinux_lgetfilecon
=no
12199 rm -f core conftest.err conftest.
$ac_objext \
12200 conftest
$ac_exeext conftest.
$ac_ext
12201 LIBS
=$ac_check_lib_save_LIBS
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12204 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12205 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
12206 HAVE_LIBSELINUX
=yes
12211 if test "$HAVE_LIBSELINUX" = yes; then
12213 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12215 LIBSELINUX_LIBS
=-lselinux
12221 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
12222 if test "${with_gnutls}" = "yes" ; then
12226 # Extract the first word of "pkg-config", so it can be a program name with args.
12227 set dummy pkg-config
; ac_word
=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12233 case $PKG_CONFIG in
12235 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12239 for as_dir
in $PATH
12242 test -z "$as_dir" && as_dir
=.
12243 for ac_exec_ext
in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12257 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12258 if test -n "$PKG_CONFIG"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12260 $as_echo "$PKG_CONFIG" >&6; }
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12268 if test "$PKG_CONFIG" = "no" ; then
12271 PKG_CONFIG_MIN_VERSION
=0.9.0
12272 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12274 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12276 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
12277 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
12278 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
12285 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12286 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12288 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 LIBGNUTLS_CFLAGS
=""
12295 ## If we have a custom action on failure, don't print errors, but
12296 ## do set a variable so people can do so.
12297 LIBGNUTLS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
12304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12309 if test $succeeded = yes; then
12315 if test "${HAVE_GNUTLS}" = "yes"; then
12317 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12321 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
12322 LIBS
="$LIBGNUTLS_LIBS $LIBS"
12323 for ac_func
in gnutls_certificate_set_verify_function
12325 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
12326 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
12327 cat >>confdefs.h
<<_ACEOF
12328 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
12330 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
12335 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
12337 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
12347 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12348 if test "$with_xaw3d" != no
; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12350 $as_echo_n "checking for xaw3d... " >&6; }
12351 if test "${emacs_cv_xaw3d+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
12354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12357 #include <X11/Intrinsic.h>
12358 #include <X11/Xaw3d/Simple.h>
12367 if ac_fn_c_try_link
"$LINENO"; then :
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12369 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12370 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
12373 ac_check_lib_save_LIBS
=$LIBS
12374 LIBS
="-lXaw3d $LIBS"
12375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12384 char XawScrollbarSetThumb ();
12388 return XawScrollbarSetThumb ();
12393 if ac_fn_c_try_link
"$LINENO"; then :
12394 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12396 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12398 rm -f core conftest.err conftest.
$ac_objext \
12399 conftest
$ac_exeext conftest.
$ac_ext
12400 LIBS
=$ac_check_lib_save_LIBS
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12403 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12404 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
12413 rm -f core conftest.err conftest.
$ac_objext \
12414 conftest
$ac_exeext conftest.
$ac_ext
12420 if test $emacs_cv_xaw3d = yes; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12422 $as_echo "yes; using Lucid toolkit" >&6; }
12423 USE_X_TOOLKIT
=LUCID
12427 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12433 $as_echo_n "checking for libXaw... " >&6; }
12434 if test "${emacs_cv_xaw+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12440 #include <X11/Intrinsic.h>
12441 #include <X11/Xaw/Simple.h>
12450 if ac_fn_c_try_link
"$LINENO"; then :
12455 rm -f core conftest.err conftest.
$ac_objext \
12456 conftest
$ac_exeext conftest.
$ac_ext
12459 if test $emacs_cv_xaw = yes; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12461 $as_echo "yes; using Lucid toolkit" >&6; }
12462 USE_X_TOOLKIT
=LUCID
12464 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12465 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12467 as_fn_error
"No X toolkit could be found.
12468 If you are sure you want Emacs compiled without an X toolkit, pass
12469 --with-x-toolkit=no
12470 to configure. Otherwise, install the development libraries for the toolkit
12471 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12476 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12479 if test "${USE_X_TOOLKIT}" != "none"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12481 $as_echo_n "checking X11 toolkit version... " >&6; }
12482 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12483 $as_echo_n "(cached) " >&6
12485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <X11/Intrinsic.h>
12491 #if XtSpecificationRelease < 6
12499 if ac_fn_c_try_link
"$LINENO"; then :
12500 emacs_cv_x11_toolkit_version_6
=yes
12502 emacs_cv_x11_toolkit_version_6
=no
12504 rm -f core conftest.err conftest.
$ac_objext \
12505 conftest
$ac_exeext conftest.
$ac_ext
12508 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12509 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12511 $as_echo "6 or newer" >&6; }
12513 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12515 LIBXTR6
="-lSM -lICE"
12517 ## Use libw.a along with X11R6 Xt.
12518 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12522 $as_echo "before 6" >&6; }
12526 if test x
$HAVE_X11XTR6 = xyes
; then
12527 LIBS
="-lXt -lSM -lICE $LIBS"
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12532 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12533 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12536 ac_check_lib_save_LIBS
=$LIBS
12538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12547 char XmuConvertStandardSelection ();
12551 return XmuConvertStandardSelection ();
12556 if ac_fn_c_try_link
"$LINENO"; then :
12557 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12559 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12561 rm -f core conftest.err conftest.
$ac_objext \
12562 conftest
$ac_exeext conftest.
$ac_ext
12563 LIBS
=$ac_check_lib_save_LIBS
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12566 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12567 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
12568 cat >>confdefs.h
<<_ACEOF
12569 #define HAVE_LIBXMU 1
12576 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12582 ## These systems don't supply Xmu.
12584 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
12589 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12590 if test "${HAVE_X11}" = "yes"; then
12591 if test "${USE_X_TOOLKIT}" != "none"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12593 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12594 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12597 ac_check_lib_save_LIBS
=$LIBS
12598 LIBS
="-lXext $LIBS"
12599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12608 char XShapeQueryExtension ();
12612 return XShapeQueryExtension ();
12617 if ac_fn_c_try_link
"$LINENO"; then :
12618 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12620 ac_cv_lib_Xext_XShapeQueryExtension
=no
12622 rm -f core conftest.err conftest.
$ac_objext \
12623 conftest
$ac_exeext conftest.
$ac_ext
12624 LIBS
=$ac_check_lib_save_LIBS
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12627 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12628 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
12629 cat >>confdefs.h
<<_ACEOF
12630 #define HAVE_LIBXEXT 1
12633 LIBS
="-lXext $LIBS"
12641 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12643 $as_echo_n "checking for Motif version 2.1... " >&6; }
12644 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12653 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12656 Motif version prior to 2.1.
12662 if ac_fn_c_try_compile
"$LINENO"; then :
12663 emacs_cv_motif_version_2_1
=yes
12665 emacs_cv_motif_version_2_1
=no
12667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12670 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12671 if test $emacs_cv_motif_version_2_1 = yes; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12673 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12674 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12677 ac_check_lib_save_LIBS
=$LIBS
12679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12688 char XpCreateContext ();
12692 return XpCreateContext ();
12697 if ac_fn_c_try_link
"$LINENO"; then :
12698 ac_cv_lib_Xp_XpCreateContext
=yes
12700 ac_cv_lib_Xp_XpCreateContext
=no
12702 rm -f core conftest.err conftest.
$ac_objext \
12703 conftest
$ac_exeext conftest.
$ac_ext
12704 LIBS
=$ac_check_lib_save_LIBS
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12707 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12708 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12714 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12715 if test "${emacs_cv_lesstif+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12718 # We put this in CFLAGS temporarily to precede other -I options
12719 # that might be in CFLAGS temporarily.
12720 # We put this in CPPFLAGS where it precedes the other -I options.
12721 OLD_CPPFLAGS
=$CPPFLAGS
12723 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12724 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12727 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12736 if ac_fn_c_try_compile
"$LINENO"; then :
12737 emacs_cv_lesstif
=yes
12739 emacs_cv_lesstif
=no
12741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12744 $as_echo "$emacs_cv_lesstif" >&6; }
12745 if test $emacs_cv_lesstif = yes; then
12746 # Make sure this -I option remains in CPPFLAGS after it is set
12747 # back to REAL_CPPFLAGS.
12748 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12749 # have those other -I options anyway. Ultimately, having this
12750 # directory ultimately in CPPFLAGS will be enough.
12751 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12752 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12755 CPPFLAGS
=$OLD_CPPFLAGS
12758 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12759 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
12762 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
12769 USE_TOOLKIT_SCROLL_BARS
=no
12770 if test "${with_toolkit_scroll_bars}" != "no"; then
12771 if test "${USE_X_TOOLKIT}" != "none"; then
12772 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12773 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12776 USE_TOOLKIT_SCROLL_BARS
=yes
12777 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
12778 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12780 USE_TOOLKIT_SCROLL_BARS
=yes
12782 elif test "${HAVE_GTK}" = "yes"; then
12783 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12785 USE_TOOLKIT_SCROLL_BARS
=yes
12786 elif test "${HAVE_NS}" = "yes"; then
12787 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12789 USE_TOOLKIT_SCROLL_BARS
=yes
12793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12796 #include <X11/Xlib.h>
12797 #include <X11/Xresource.h>
12806 if ac_fn_c_try_compile
"$LINENO"; then :
12809 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12817 if test "${with_xim}" != "no"; then
12819 $as_echo "#define USE_XIM 1" >>confdefs.h
12824 if test "${HAVE_XIM}" != "no"; then
12825 late_CFLAGS
=$CFLAGS
12826 if test "$GCC" = yes; then
12827 CFLAGS
="$CFLAGS --pedantic-errors"
12829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12832 #include <X11/Xlib.h>
12833 #include <X11/Xresource.h>
12842 XPointer *client_data;
12844 /* If we're not using GCC, it's probably not XFree86, and this is
12845 probably right, but we can't use something like --pedantic-errors. */
12846 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12847 char*, XIMProc, XPointer*);
12849 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12855 if ac_fn_c_try_compile
"$LINENO"; then :
12856 emacs_cv_arg6_star
=yes
12858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12859 if test "$emacs_cv_arg6_star" = yes; then
12860 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12863 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12866 CFLAGS
=$late_CFLAGS
12869 ### Start of font-backend (under any platform) section.
12870 # (nothing here yet -- this is a placeholder)
12871 ### End of font-backend (under any platform) section.
12873 ### Start of font-backend (under X11) section.
12874 if test "${HAVE_X11}" = "yes"; then
12878 # Extract the first word of "pkg-config", so it can be a program name with args.
12879 set dummy pkg-config
; ac_word
=$2
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881 $as_echo_n "checking for $ac_word... " >&6; }
12882 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12885 case $PKG_CONFIG in
12887 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12891 for as_dir
in $PATH
12894 test -z "$as_dir" && as_dir
=.
12895 for ac_exec_ext
in '' $ac_executable_extensions; do
12896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12897 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12909 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12910 if test -n "$PKG_CONFIG"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12912 $as_echo "$PKG_CONFIG" >&6; }
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12920 if test "$PKG_CONFIG" = "no" ; then
12923 PKG_CONFIG_MIN_VERSION
=0.9.0
12924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12926 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12928 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
12929 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
12930 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
12937 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12938 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12940 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 $as_echo "no" >&6; }
12945 FONTCONFIG_CFLAGS
=""
12947 ## If we have a custom action on failure, don't print errors, but
12948 ## do set a variable so people can do so.
12949 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12956 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12957 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12961 if test $succeeded = yes; then
12968 ## Use -lXft if available, unless `--with-xft=no'.
12970 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
12973 if test "x${with_xft}" != "xno"; then
12978 # Extract the first word of "pkg-config", so it can be a program name with args.
12979 set dummy pkg-config
; ac_word
=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12983 $as_echo_n "(cached) " >&6
12985 case $PKG_CONFIG in
12987 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12991 for as_dir
in $PATH
12994 test -z "$as_dir" && as_dir
=.
12995 for ac_exec_ext
in '' $ac_executable_extensions; do
12996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12997 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13005 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13009 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13010 if test -n "$PKG_CONFIG"; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13012 $as_echo "$PKG_CONFIG" >&6; }
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13020 if test "$PKG_CONFIG" = "no" ; then
13023 PKG_CONFIG_MIN_VERSION
=0.9.0
13024 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13026 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13028 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
13029 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
13030 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
13037 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13038 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13040 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13047 ## If we have a custom action on failure, don't print errors, but
13048 ## do set a variable so people can do so.
13049 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13056 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13057 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13061 if test $succeeded = yes; then
13067 ## Because xftfont.c uses XRenderQueryExtension, we also
13068 ## need to link to -lXrender.
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13071 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13072 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
13075 ac_check_lib_save_LIBS
=$LIBS
13076 LIBS
="-lXrender $LIBS"
13077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13086 char XRenderQueryExtension ();
13090 return XRenderQueryExtension ();
13095 if ac_fn_c_try_link
"$LINENO"; then :
13096 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
13098 ac_cv_lib_Xrender_XRenderQueryExtension
=no
13100 rm -f core conftest.err conftest.
$ac_objext \
13101 conftest
$ac_exeext conftest.
$ac_ext
13102 LIBS
=$ac_check_lib_save_LIBS
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13105 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13106 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
13110 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
13111 OLD_CPPFLAGS
="$CPPFLAGS"
13112 OLD_CFLAGS
="$CFLAGS"
13114 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13115 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13116 XFT_LIBS
="-lXrender $XFT_LIBS"
13117 LIBS
="$XFT_LIBS $LIBS"
13118 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13119 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13121 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13122 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13125 ac_check_lib_save_LIBS
=$LIBS
13126 LIBS
="-lXft $XFT_LIBS $LIBS"
13127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13136 char XftFontOpen ();
13140 return XftFontOpen ();
13145 if ac_fn_c_try_link
"$LINENO"; then :
13146 ac_cv_lib_Xft_XftFontOpen
=yes
13148 ac_cv_lib_Xft_XftFontOpen
=no
13150 rm -f core conftest.err conftest.
$ac_objext \
13151 conftest
$ac_exeext conftest.
$ac_ext
13152 LIBS
=$ac_check_lib_save_LIBS
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13155 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13156 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
13164 if test "${HAVE_XFT}" = "yes"; then
13166 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13169 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
13171 CPPFLAGS
="$OLD_CPPFLAGS"
13172 CFLAGS
="$OLD_CFLAGS"
13174 fi # "${HAVE_XFT}" = "yes"
13175 fi # "$HAVE_XFT" != no
13176 fi # "x${with_xft}" != "xno"
13178 ## We used to allow building with FreeType and without Xft.
13179 ## However, the ftx font backend driver is not in good shape.
13180 if test "$HAVE_XFT" != "yes"; then
13187 # Extract the first word of "pkg-config", so it can be a program name with args.
13188 set dummy pkg-config
; ac_word
=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190 $as_echo_n "checking for $ac_word... " >&6; }
13191 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13192 $as_echo_n "(cached) " >&6
13194 case $PKG_CONFIG in
13196 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13200 for as_dir
in $PATH
13203 test -z "$as_dir" && as_dir
=.
13204 for ac_exec_ext
in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13218 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13219 if test -n "$PKG_CONFIG"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13221 $as_echo "$PKG_CONFIG" >&6; }
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13229 if test "$PKG_CONFIG" = "no" ; then
13232 PKG_CONFIG_MIN_VERSION
=0.9.0
13233 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13235 $as_echo_n "checking for freetype2... " >&6; }
13237 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
13238 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
13239 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
13246 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13247 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13249 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13256 ## If we have a custom action on failure, don't print errors, but
13257 ## do set a variable so people can do so.
13258 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13265 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13266 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13270 if test $succeeded = yes; then
13277 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
13281 if test "${HAVE_FREETYPE}" = "yes"; then
13283 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13285 if test "${with_libotf}" != "no"; then
13289 # Extract the first word of "pkg-config", so it can be a program name with args.
13290 set dummy pkg-config
; ac_word
=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13296 case $PKG_CONFIG in
13298 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13302 for as_dir
in $PATH
13305 test -z "$as_dir" && as_dir
=.
13306 for ac_exec_ext
in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13320 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13321 if test -n "$PKG_CONFIG"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13323 $as_echo "$PKG_CONFIG" >&6; }
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13331 if test "$PKG_CONFIG" = "no" ; then
13334 PKG_CONFIG_MIN_VERSION
=0.9.0
13335 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13337 $as_echo_n "checking for libotf... " >&6; }
13339 if $PKG_CONFIG --exists "libotf" 2>&5 &&
13340 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
13341 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
13348 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13349 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13351 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13358 ## If we have a custom action on failure, don't print errors, but
13359 ## do set a variable so people can do so.
13360 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13367 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13368 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13372 if test $succeeded = yes; then
13378 if test "$HAVE_LIBOTF" = "yes"; then
13380 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13383 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13384 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13387 ac_check_lib_save_LIBS
=$LIBS
13389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13398 char OTF_get_variation_glyphs ();
13402 return OTF_get_variation_glyphs ();
13407 if ac_fn_c_try_link
"$LINENO"; then :
13408 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13410 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13412 rm -f core conftest.err conftest.
$ac_objext \
13413 conftest
$ac_exeext conftest.
$ac_ext
13414 LIBS
=$ac_check_lib_save_LIBS
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13417 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13418 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
13419 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13421 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13424 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13426 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13434 if test "${HAVE_LIBOTF}" = yes; then
13435 if test "${with_m17n_flt}" != "no"; then
13439 # Extract the first word of "pkg-config", so it can be a program name with args.
13440 set dummy pkg-config
; ac_word
=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 $as_echo_n "checking for $ac_word... " >&6; }
13443 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13444 $as_echo_n "(cached) " >&6
13446 case $PKG_CONFIG in
13448 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13452 for as_dir
in $PATH
13455 test -z "$as_dir" && as_dir
=.
13456 for ac_exec_ext
in '' $ac_executable_extensions; do
13457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13458 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13470 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13471 if test -n "$PKG_CONFIG"; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13473 $as_echo "$PKG_CONFIG" >&6; }
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476 $as_echo "no" >&6; }
13481 if test "$PKG_CONFIG" = "no" ; then
13484 PKG_CONFIG_MIN_VERSION
=0.9.0
13485 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13487 $as_echo_n "checking for m17n-flt... " >&6; }
13489 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
13490 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
13491 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
13498 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13499 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13501 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13508 ## If we have a custom action on failure, don't print errors, but
13509 ## do set a variable so people can do so.
13510 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13517 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13518 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13522 if test $succeeded = yes; then
13528 if test "$HAVE_M17N_FLT" = "yes"; then
13530 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13542 ### End of font-backend (under X11) section.
13553 ### Use -lXpm if available, unless `--with-xpm=no'.
13556 if test "${HAVE_X11}" = "yes"; then
13557 if test "${with_xpm}" != "no"; then
13558 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13559 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13561 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13562 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13563 $as_echo_n "(cached) " >&6
13565 ac_check_lib_save_LIBS
=$LIBS
13566 LIBS
="-lXpm -lX11 $LIBS"
13567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13576 char XpmReadFileToPixmap ();
13580 return XpmReadFileToPixmap ();
13585 if ac_fn_c_try_link
"$LINENO"; then :
13586 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
13588 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
13590 rm -f core conftest.err conftest.
$ac_objext \
13591 conftest
$ac_exeext conftest.
$ac_ext
13592 LIBS
=$ac_check_lib_save_LIBS
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13595 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13596 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
13603 if test "${HAVE_XPM}" = "yes"; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13605 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 #include "X11/xpm.h"
13609 #ifndef XpmReturnAllocPixels
13610 no_return_alloc_pixels
13614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13615 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
13623 if test "${HAVE_XPM}" = "yes"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13625 $as_echo "yes" >&6; }
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13633 if test "${HAVE_XPM}" = "yes"; then
13635 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13642 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13645 if test "${HAVE_X11}" = "yes"; then
13646 if test "${with_jpeg}" != "no"; then
13647 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13648 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13650 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13651 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13654 ac_check_lib_save_LIBS
=$LIBS
13655 LIBS
="-ljpeg $LIBS"
13656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13659 /* Override any GCC internal prototype to avoid an error.
13660 Use char because int might match the return type of a GCC
13661 builtin and then its argument prototype would still apply. */
13665 char jpeg_destroy_compress ();
13669 return jpeg_destroy_compress ();
13674 if ac_fn_c_try_link
"$LINENO"; then :
13675 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
13677 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
13679 rm -f core conftest.err conftest.
$ac_objext \
13680 conftest
$ac_exeext conftest.
$ac_ext
13681 LIBS
=$ac_check_lib_save_LIBS
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13684 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13685 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
13694 if test "${HAVE_JPEG}" = "yes"; then
13695 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13699 #include <jpeglib.h>
13700 version=JPEG_LIB_VERSION
13703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13704 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
13705 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13709 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13715 if test "${HAVE_JPEG}" = "yes"; then
13721 ### Use -lpng if available, unless `--with-png=no'.
13724 if test "${HAVE_X11}" = "yes"; then
13725 if test "${with_png}" != "no"; then
13726 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13727 # in /usr/include/libpng.
13728 for ac_header
in png.h libpng
/png.h
13730 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13731 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13732 eval as_val
=\$
$as_ac_Header
13733 if test "x$as_val" = x
""yes; then :
13734 cat >>confdefs.h
<<_ACEOF
13735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13742 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13744 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13745 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13748 ac_check_lib_save_LIBS
=$LIBS
13749 LIBS
="-lpng -lz -lm $LIBS"
13750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13753 /* Override any GCC internal prototype to avoid an error.
13754 Use char because int might match the return type of a GCC
13755 builtin and then its argument prototype would still apply. */
13759 char png_get_channels ();
13763 return png_get_channels ();
13768 if ac_fn_c_try_link
"$LINENO"; then :
13769 ac_cv_lib_png_png_get_channels
=yes
13771 ac_cv_lib_png_png_get_channels
=no
13773 rm -f core conftest.err conftest.
$ac_objext \
13774 conftest
$ac_exeext conftest.
$ac_ext
13775 LIBS
=$ac_check_lib_save_LIBS
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13778 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13779 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
13786 if test "${HAVE_PNG}" = "yes"; then
13788 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13790 LIBPNG
="-lpng -lz -lm"
13795 ### Use -ltiff if available, unless `--with-tiff=no'.
13798 if test "${HAVE_X11}" = "yes"; then
13799 if test "${with_tiff}" != "no"; then
13800 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13801 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
13803 # At least one tiff package requires the jpeg library.
13804 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13806 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13807 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13808 $as_echo_n "(cached) " >&6
13810 ac_check_lib_save_LIBS
=$LIBS
13811 LIBS
="-ltiff $tifflibs $LIBS"
13812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13821 char TIFFGetVersion ();
13825 return TIFFGetVersion ();
13830 if ac_fn_c_try_link
"$LINENO"; then :
13831 ac_cv_lib_tiff_TIFFGetVersion
=yes
13833 ac_cv_lib_tiff_TIFFGetVersion
=no
13835 rm -f core conftest.err conftest.
$ac_objext \
13836 conftest
$ac_exeext conftest.
$ac_ext
13837 LIBS
=$ac_check_lib_save_LIBS
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13840 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13841 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
13850 if test "${HAVE_TIFF}" = "yes"; then
13852 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13859 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13862 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13863 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13864 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
13865 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13866 # Earlier versions can crash Emacs.
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13868 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13869 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13872 ac_check_lib_save_LIBS
=$LIBS
13874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13877 /* Override any GCC internal prototype to avoid an error.
13878 Use char because int might match the return type of a GCC
13879 builtin and then its argument prototype would still apply. */
13883 char EGifPutExtensionLast ();
13887 return EGifPutExtensionLast ();
13892 if ac_fn_c_try_link
"$LINENO"; then :
13893 ac_cv_lib_gif_EGifPutExtensionLast
=yes
13895 ac_cv_lib_gif_EGifPutExtensionLast
=no
13897 rm -f core conftest.err conftest.
$ac_objext \
13898 conftest
$ac_exeext conftest.
$ac_ext
13899 LIBS
=$ac_check_lib_save_LIBS
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13902 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13903 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
13913 if test "$HAVE_GIF" = yes; then
13915 elif test "$HAVE_GIF" = maybe
; then
13916 # If gif_lib.h but no libgif, try libungif.
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13918 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13919 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13920 $as_echo_n "(cached) " >&6
13922 ac_check_lib_save_LIBS
=$LIBS
13923 LIBS
="-lungif $LIBS"
13924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13925 /* end confdefs.h. */
13927 /* Override any GCC internal prototype to avoid an error.
13928 Use char because int might match the return type of a GCC
13929 builtin and then its argument prototype would still apply. */
13933 char EGifPutExtensionLast ();
13937 return EGifPutExtensionLast ();
13942 if ac_fn_c_try_link
"$LINENO"; then :
13943 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13945 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13947 rm -f core conftest.err conftest.
$ac_objext \
13948 conftest
$ac_exeext conftest.
$ac_ext
13949 LIBS
=$ac_check_lib_save_LIBS
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13952 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13953 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
13959 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
13962 if test "${HAVE_GIF}" = "yes"; then
13964 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13970 if test "${HAVE_X11}" = "yes"; then
13973 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13974 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13975 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13976 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13977 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13978 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13979 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13980 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13981 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13982 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13984 if test "X${MISSING}" != X
; then
13985 as_fn_error
"The following required libraries were not found:
13987 Maybe some development libraries/packages are missing?
13988 If you don't want to link with them give
13990 as options to configure" "$LINENO" 5
13994 ### Use -lgpm if available, unless `--with-gpm=no'.
13997 if test "${with_gpm}" != "no"; then
13998 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13999 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14001 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14002 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14005 ac_check_lib_save_LIBS
=$LIBS
14007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14020 return Gpm_Open ();
14025 if ac_fn_c_try_link
"$LINENO"; then :
14026 ac_cv_lib_gpm_Gpm_Open
=yes
14028 ac_cv_lib_gpm_Gpm_Open
=no
14030 rm -f core conftest.err conftest.
$ac_objext \
14031 conftest
$ac_exeext conftest.
$ac_ext
14032 LIBS
=$ac_check_lib_save_LIBS
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14035 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14036 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
14044 if test "${HAVE_GPM}" = "yes"; then
14046 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14053 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
14054 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
14056 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
14063 ### Use NeXTstep API to implement GUI.
14064 if test "${HAVE_NS}" = "yes"; then
14066 $as_echo "#define HAVE_NS 1" >>confdefs.h
14068 if test "${NS_IMPL_COCOA}" = "yes"; then
14070 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14073 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14075 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14077 # See also .m.o rule in Makefile.in */
14078 # FIXME: are all these flags really needed? Document here why. */
14079 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14080 ## Extra CFLAGS applied to src/*.m files.
14081 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"
14083 # We also have mouse menus.
14089 ### Use session management (-lSM -lICE) if available
14092 if test "${HAVE_X11}" = "yes"; then
14093 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14094 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14096 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14097 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14100 ac_check_lib_save_LIBS
=$LIBS
14101 LIBS
="-lSM -lICE $LIBS"
14102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14105 /* Override any GCC internal prototype to avoid an error.
14106 Use char because int might match the return type of a GCC
14107 builtin and then its argument prototype would still apply. */
14111 char SmcOpenConnection ();
14115 return SmcOpenConnection ();
14120 if ac_fn_c_try_link
"$LINENO"; then :
14121 ac_cv_lib_SM_SmcOpenConnection
=yes
14123 ac_cv_lib_SM_SmcOpenConnection
=no
14125 rm -f core conftest.err conftest.
$ac_objext \
14126 conftest
$ac_exeext conftest.
$ac_ext
14127 LIBS
=$ac_check_lib_save_LIBS
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14130 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14131 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
14139 if test "${HAVE_X_SM}" = "yes"; then
14141 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14143 LIBXSM
="-lSM -lICE"
14146 *) LIBS
="$LIBXSM $LIBS" ;;
14152 ### Use libxml (-lxml2) if available
14154 if test "${with_xml2}" != "no"; then
14155 ### I'm not sure what the version number should be, so I just guessed.
14159 # Extract the first word of "pkg-config", so it can be a program name with args.
14160 set dummy pkg-config
; ac_word
=$2
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14162 $as_echo_n "checking for $ac_word... " >&6; }
14163 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14164 $as_echo_n "(cached) " >&6
14166 case $PKG_CONFIG in
14168 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14172 for as_dir
in $PATH
14175 test -z "$as_dir" && as_dir
=.
14176 for ac_exec_ext
in '' $ac_executable_extensions; do
14177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14178 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14190 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14191 if test -n "$PKG_CONFIG"; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14193 $as_echo "$PKG_CONFIG" >&6; }
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 $as_echo "no" >&6; }
14201 if test "$PKG_CONFIG" = "no" ; then
14204 PKG_CONFIG_MIN_VERSION
=0.9.0
14205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14207 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14209 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14210 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14211 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14218 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14219 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14221 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14228 ## If we have a custom action on failure, don't print errors, but
14229 ## do set a variable so people can do so.
14230 LIBXML2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
14237 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14238 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14242 if test $succeeded = yes; then
14248 if test "${HAVE_LIBXML2}" = "yes"; then
14249 LIBS
="$LIBXML2_LIBS $LIBS"
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14251 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14252 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14255 ac_check_lib_save_LIBS
=$LIBS
14256 LIBS
="-lxml2 $LIBS"
14257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14266 char htmlReadMemory ();
14270 return htmlReadMemory ();
14275 if ac_fn_c_try_link
"$LINENO"; then :
14276 ac_cv_lib_xml2_htmlReadMemory
=yes
14278 ac_cv_lib_xml2_htmlReadMemory
=no
14280 rm -f core conftest.err conftest.
$ac_objext \
14281 conftest
$ac_exeext conftest.
$ac_ext
14282 LIBS
=$ac_check_lib_save_LIBS
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14285 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14286 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
14292 if test "${HAVE_LIBXML2}" = "yes"; then
14294 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14305 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14307 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14308 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14309 $as_echo_n "(cached) " >&6
14311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14322 if ac_fn_c_try_link
"$LINENO"; then :
14323 emacs_cv_netdb_declares_h_errno
=yes
14325 emacs_cv_netdb_declares_h_errno
=no
14327 rm -f core conftest.err conftest.
$ac_objext \
14328 conftest
$ac_exeext conftest.
$ac_ext
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14331 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14332 if test $emacs_cv_netdb_declares_h_errno = yes; then
14334 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14338 # fmod, logb, and frexp are found in -lm on most systems.
14339 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14341 $as_echo_n "checking for sqrt in -lm... " >&6; }
14342 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14345 ac_check_lib_save_LIBS
=$LIBS
14347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14365 if ac_fn_c_try_link
"$LINENO"; then :
14366 ac_cv_lib_m_sqrt
=yes
14368 ac_cv_lib_m_sqrt
=no
14370 rm -f core conftest.err conftest.
$ac_objext \
14371 conftest
$ac_exeext conftest.
$ac_ext
14372 LIBS
=$ac_check_lib_save_LIBS
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14375 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14376 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
14377 cat >>confdefs.h
<<_ACEOF
14378 #define HAVE_LIBM 1
14386 # Check for mail-locking functions in a "mail" library. Probably this should
14387 # have the same check as for liblockfile below.
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14389 $as_echo_n "checking for maillock in -lmail... " >&6; }
14390 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14393 ac_check_lib_save_LIBS
=$LIBS
14394 LIBS
="-lmail $LIBS"
14395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14398 /* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14408 return maillock ();
14413 if ac_fn_c_try_link
"$LINENO"; then :
14414 ac_cv_lib_mail_maillock
=yes
14416 ac_cv_lib_mail_maillock
=no
14418 rm -f core conftest.err conftest.
$ac_objext \
14419 conftest
$ac_exeext conftest.
$ac_ext
14420 LIBS
=$ac_check_lib_save_LIBS
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14423 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14424 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
14430 if test $have_mail = yes; then
14432 LIBS
="$LIBS_MAIL $LIBS"
14434 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14440 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14441 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14444 ac_check_lib_save_LIBS
=$LIBS
14445 LIBS
="-llockfile $LIBS"
14446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14449 /* Override any GCC internal prototype to avoid an error.
14450 Use char because int might match the return type of a GCC
14451 builtin and then its argument prototype would still apply. */
14459 return maillock ();
14464 if ac_fn_c_try_link
"$LINENO"; then :
14465 ac_cv_lib_lockfile_maillock
=yes
14467 ac_cv_lib_lockfile_maillock
=no
14469 rm -f core conftest.err conftest.
$ac_objext \
14470 conftest
$ac_exeext conftest.
$ac_ext
14471 LIBS
=$ac_check_lib_save_LIBS
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14474 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14475 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
14481 if test $have_lockfile = yes; then
14482 LIBS_MAIL
=-llockfile
14483 LIBS
="$LIBS_MAIL $LIBS"
14485 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14488 # If we have the shared liblockfile, assume we must use it for mail
14489 # locking (e.g. Debian). If we couldn't link against liblockfile
14490 # (no liblockfile.a installed), ensure that we don't need to.
14491 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14492 set dummy liblockfile.so
; ac_word
=$2
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14494 $as_echo_n "checking for $ac_word... " >&6; }
14495 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14496 $as_echo_n "(cached) " >&6
14498 if test -n "$liblockfile"; then
14499 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14502 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14503 for as_dir
in $as_dummy
14506 test -z "$as_dir" && as_dir
=.
14507 for ac_exec_ext
in '' $ac_executable_extensions; do
14508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14509 ac_cv_prog_liblockfile
="yes"
14510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14517 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14520 liblockfile
=$ac_cv_prog_liblockfile
14521 if test -n "$liblockfile"; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14523 $as_echo "$liblockfile" >&6; }
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14530 if test $ac_cv_prog_liblockfile = yes; then
14531 as_fn_error
"Shared liblockfile found but can't link against it.
14532 This probably means that movemail could lose mail.
14533 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14536 for ac_func
in touchlock
14538 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
14539 if test "x$ac_cv_func_touchlock" = x
""yes; then :
14540 cat >>confdefs.h
<<_ACEOF
14541 #define HAVE_TOUCHLOCK 1
14547 for ac_header
in maillock.h
14549 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14550 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
14551 cat >>confdefs.h
<<_ACEOF
14552 #define HAVE_MAILLOCK_H 1
14561 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14562 ## interlock access to the mail spool. The alternative is a lock file named
14563 ## /usr/spool/mail/$USER.lock.
14566 aix4-2
) mail_lock
="lockf" ;;
14568 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
14570 ## On GNU/Linux systems, both methods are used by various mail programs.
14571 ## I assume most people are using newer mailers that have heard of flock.
14572 ## Change this if you need to.
14573 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14574 ## configure gets the right answers, and that means *NOT* using flock.
14575 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14576 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14577 ## Debian maintainer hasn't provided a clean fix for Emacs.
14578 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14579 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14580 ## correct logic. -- fx
14581 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14582 ## liblockfile is a Free Software replacement for libmail, used on
14583 ## Debian systems and elsewhere. -rfr.
14586 if test $have_mail = yes ||
test $have_lockfile = yes; then
14587 test $ac_cv_header_maillock_h = yes && mail_lock
=no
14593 case "$mail_lock" in
14595 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14599 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14602 *) BLESSMAIL_TARGET
="need-blessmail" ;;
14607 for ac_func
in gethostname getdomainname \
14608 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
14609 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14610 strerror fpathconf
select euidaccess getpagesize tzset setlocale \
14611 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14612 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14613 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14614 gai_strerror mkstemp getline getdelim mremap fsync sync \
14615 difftime mempcpy mblen mbrlen posix_memalign \
14616 getpwent endpwent getgrent endgrent \
14617 cfmakeraw cfsetspeed copysign __executable_start
14619 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14620 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14621 eval as_val
=\$
$as_ac_var
14622 if test "x$as_val" = x
""yes; then :
14623 cat >>confdefs.h
<<_ACEOF
14624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14632 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14633 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
14636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14642 __builtin_unwind_init ();
14647 if ac_fn_c_try_link
"$LINENO"; then :
14648 emacs_cv_func___builtin_unwind_init
=yes
14650 emacs_cv_func___builtin_unwind_init
=no
14652 rm -f core conftest.err conftest.
$ac_objext \
14653 conftest
$ac_exeext conftest.
$ac_ext
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14656 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14657 if test $emacs_cv_func___builtin_unwind_init = yes; then
14659 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14663 for ac_header
in sys
/un.h
14665 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14666 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
14667 cat >>confdefs.h
<<_ACEOF
14668 #define HAVE_SYS_UN_H 1
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14677 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14678 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14679 $as_echo_n "(cached) " >&6
14682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 #include <sys/types.h> /* for off_t */
14689 int (*fp) (FILE *, off_t, int) = fseeko;
14690 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14695 if ac_fn_c_try_link
"$LINENO"; then :
14696 ac_cv_sys_largefile_source
=no
; break
14698 rm -f core conftest.err conftest.
$ac_objext \
14699 conftest
$ac_exeext conftest.
$ac_ext
14700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702 #define _LARGEFILE_SOURCE 1
14703 #include <sys/types.h> /* for off_t */
14708 int (*fp) (FILE *, off_t, int) = fseeko;
14709 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14714 if ac_fn_c_try_link
"$LINENO"; then :
14715 ac_cv_sys_largefile_source
=1; break
14717 rm -f core conftest.err conftest.
$ac_objext \
14718 conftest
$ac_exeext conftest.
$ac_ext
14719 ac_cv_sys_largefile_source
=unknown
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14724 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14725 case $ac_cv_sys_largefile_source in #(
14728 cat >>confdefs.h
<<_ACEOF
14729 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14735 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14736 # in glibc 2.1.3, but that breaks too many other things.
14737 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14738 if test $ac_cv_sys_largefile_source != unknown
; then
14740 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14746 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14747 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14748 $as_echo_n "(cached) " >&6
14750 # Use it with a single arg.
14751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 $ac_includes_default
14762 if ac_fn_c_try_compile
"$LINENO"; then :
14763 ac_cv_func_getpgrp_void
=no
14765 ac_cv_func_getpgrp_void
=yes
14767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14771 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14772 if test $ac_cv_func_getpgrp_void = yes; then
14774 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14780 for ac_func
in grantpt
14782 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
14783 if test "x$ac_cv_func_grantpt" = x
""yes; then :
14784 cat >>confdefs.h
<<_ACEOF
14785 #define HAVE_GRANTPT 1
14792 # PTY-related GNU extensions.
14793 for ac_func
in getpt
14795 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
14796 if test "x$ac_cv_func_getpt" = x
""yes; then :
14797 cat >>confdefs.h
<<_ACEOF
14798 #define HAVE_GETPT 1
14805 # Check this now, so that we will NOT find the above functions in ncurses.
14806 # That is because we have not set up to link ncurses in lib-src.
14807 # It's better to believe a function is not available
14808 # than to expect to find it in ncurses.
14809 # Also we need tputs and friends to be able to build at all.
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14811 $as_echo_n "checking for library containing tputs... " >&6; }
14812 # Run a test program that contains a call to tputs, a call that is
14813 # never executed. This tests whether a pre-'main' dynamic linker
14814 # works with the library. It's too much trouble to actually call
14815 # tputs in the test program, due to portability hassles. When
14816 # cross-compiling, assume the test program will run if it links.
14818 # Maybe curses should be tried earlier?
14819 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14820 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
14822 if test -z "$tputs_library"; then
14824 msg
='none required'
14826 LIBS_TERMCAP
=-l$tputs_library
14828 LIBS
="$LIBS_TERMCAP $LIBS"
14830 if test "$cross_compiling" = yes; then :
14831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14834 extern void tputs (const char *, int, int (*)(int));
14835 int main (int argc, char **argv)
14838 tputs (argv[0], 0, 0);
14843 if ac_fn_c_try_link
"$LINENO"; then :
14848 rm -f core conftest.err conftest.
$ac_objext \
14849 conftest
$ac_exeext conftest.
$ac_ext
14851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14854 extern void tputs (const char *, int, int (*)(int));
14855 int main (int argc, char **argv)
14858 tputs (argv[0], 0, 0);
14863 if ac_fn_c_try_run
"$LINENO"; then :
14868 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14869 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14873 if test "X$msg" != Xno
; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14878 $as_echo "$msg" >&6; }
14879 if test "X$msg" = Xno
; then
14880 as_fn_error
"The required function \`tputs' was not found in any library.
14881 The following libraries were tried (in order):
14882 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14883 Please try installing whichever of these libraries is most appropriate
14884 for your system, together with its header files.
14885 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14888 ## Use termcap instead of terminfo?
14889 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14891 ## FIXME? In the cases below where we unconditionally set
14892 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14893 ## if that was found above to have tputs.
14894 ## Should we use the gnu* logic everywhere?
14896 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14897 ## The ncurses library has been moved out of the System framework in
14898 ## Mac OS X 10.2. So if configure detects it, set the command-line
14899 ## option to use it.
14900 darwin
) LIBS_TERMCAP
="-lncurses" ;;
14902 gnu
*) "x$LIBS_TERMCAP" = x
&& LIBS_TERMCAP
="-lncurses" ;;
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14906 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14907 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14908 $as_echo_n "(cached) " >&6
14910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 #include <osreldate.h>
14916 #if __FreeBSD_version < 400000
14924 if ac_fn_c_try_link
"$LINENO"; then :
14925 emacs_cv_freebsd_terminfo
=yes
14927 emacs_cv_freebsd_terminfo
=no
14929 rm -f core conftest.err conftest.
$ac_objext \
14930 conftest
$ac_exeext conftest.
$ac_ext
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14935 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14937 if test $emacs_cv_freebsd_terminfo = yes; then
14938 LIBS_TERMCAP
="-lncurses"
14941 LIBS_TERMCAP
="-ltermcap"
14946 if "x$LIBS_TERMCAP" != "x-lterminfo" ; then
14948 LIBS_TERMCAP
="-ltermcap"
14952 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
14954 ## hpux: Make sure we get select from libc rather than from libcurses
14955 ## because libcurses on HPUX 10.10 has a broken version of select.
14956 ## We used to use -lc -lcurses, but this may be cleaner.
14957 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14958 # set that way, now it uses the default). Isn't this a contradiction?
14959 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
14963 TERMCAP_OBJ
=tparam.o
14964 if test $TERMINFO = yes; then
14966 $as_echo "#define TERMINFO 1" >>confdefs.h
14968 TERMCAP_OBJ
=terminfo.o
14974 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 #include <netinet/in.h>
14979 #include <arpa/nameser.h>
14980 #include <resolv.h>
14989 if ac_fn_c_try_link
"$LINENO"; then :
14994 rm -f core conftest.err conftest.
$ac_objext \
14995 conftest
$ac_exeext conftest.
$ac_ext
14996 if test "$have_res_init" = no
; then
14998 LIBS
="$LIBS -lresolv"
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15000 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15003 #include <netinet/in.h>
15004 #include <arpa/nameser.h>
15005 #include <resolv.h>
15014 if ac_fn_c_try_link
"$LINENO"; then :
15019 rm -f core conftest.err conftest.
$ac_objext \
15020 conftest
$ac_exeext conftest.
$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15022 $as_echo "$have_res_init" >&6; }
15023 if test "$have_res_init" = yes ; then
15029 if test "$have_res_init" = yes; then
15031 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15035 # Do we need the Hesiod library to provide the support routines?
15037 if test "$with_hesiod" != no
; then
15038 # Don't set $LIBS here -- see comments above. FIXME which comments?
15039 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
15040 if test "x$ac_cv_func_res_send" = x
""yes; then :
15043 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
15044 if test "x$ac_cv_func___res_send" = x
""yes; then :
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15048 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15049 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15052 ac_check_lib_save_LIBS
=$LIBS
15053 LIBS
="-lresolv $LIBS"
15054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15067 return res_send ();
15072 if ac_fn_c_try_link
"$LINENO"; then :
15073 ac_cv_lib_resolv_res_send
=yes
15075 ac_cv_lib_resolv_res_send
=no
15077 rm -f core conftest.err conftest.
$ac_objext \
15078 conftest
$ac_exeext conftest.
$ac_ext
15079 LIBS
=$ac_check_lib_save_LIBS
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15082 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15083 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15087 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15088 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15089 $as_echo_n "(cached) " >&6
15091 ac_check_lib_save_LIBS
=$LIBS
15092 LIBS
="-lresolv $LIBS"
15093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15096 /* Override any GCC internal prototype to avoid an error.
15097 Use char because int might match the return type of a GCC
15098 builtin and then its argument prototype would still apply. */
15102 char __res_send ();
15106 return __res_send ();
15111 if ac_fn_c_try_link
"$LINENO"; then :
15112 ac_cv_lib_resolv___res_send
=yes
15114 ac_cv_lib_resolv___res_send
=no
15116 rm -f core conftest.err conftest.
$ac_objext \
15117 conftest
$ac_exeext conftest.
$ac_ext
15118 LIBS
=$ac_check_lib_save_LIBS
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15121 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15122 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
15132 if test "$resolv" = yes ; then
15137 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15138 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15142 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15143 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15144 $as_echo_n "(cached) " >&6
15146 ac_check_lib_save_LIBS
=$LIBS
15147 LIBS
="-lhesiod $RESOLVLIB $LIBS"
15148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h. */
15151 /* Override any GCC internal prototype to avoid an error.
15152 Use char because int might match the return type of a GCC
15153 builtin and then its argument prototype would still apply. */
15157 char hes_getmailhost ();
15161 return hes_getmailhost ();
15166 if ac_fn_c_try_link
"$LINENO"; then :
15167 ac_cv_lib_hesiod_hes_getmailhost
=yes
15169 ac_cv_lib_hesiod_hes_getmailhost
=no
15171 rm -f core conftest.err conftest.
$ac_objext \
15172 conftest
$ac_exeext conftest.
$ac_ext
15173 LIBS
=$ac_check_lib_save_LIBS
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15176 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15177 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
15186 if test x
"$hesiod" = xyes
; then
15188 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15195 # Do we need libresolv (due to res_init or Hesiod)?
15196 if test "$resolv" = yes ; then
15198 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15206 # These tell us which Kerberos-related libraries to use.
15213 if test "${with_kerberos}" != no
; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15215 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15216 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15217 $as_echo_n "(cached) " >&6
15219 ac_check_lib_save_LIBS
=$LIBS
15220 LIBS
="-lcom_err $LIBS"
15221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15224 /* Override any GCC internal prototype to avoid an error.
15225 Use char because int might match the return type of a GCC
15226 builtin and then its argument prototype would still apply. */
15239 if ac_fn_c_try_link
"$LINENO"; then :
15240 ac_cv_lib_com_err_com_err
=yes
15242 ac_cv_lib_com_err_com_err
=no
15244 rm -f core conftest.err conftest.
$ac_objext \
15245 conftest
$ac_exeext conftest.
$ac_ext
15246 LIBS
=$ac_check_lib_save_LIBS
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15249 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15250 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
15256 if test $have_com_err = yes; then
15257 COM_ERRLIB
=-lcom_err
15258 LIBS
="$COM_ERRLIB $LIBS"
15260 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15264 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15265 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15266 $as_echo_n "(cached) " >&6
15268 ac_check_lib_save_LIBS
=$LIBS
15269 LIBS
="-lcrypto $LIBS"
15270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15273 /* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply. */
15279 char mit_des_cbc_encrypt ();
15283 return mit_des_cbc_encrypt ();
15288 if ac_fn_c_try_link
"$LINENO"; then :
15289 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
15291 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
15293 rm -f core conftest.err conftest.
$ac_objext \
15294 conftest
$ac_exeext conftest.
$ac_ext
15295 LIBS
=$ac_check_lib_save_LIBS
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15298 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15299 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
15305 if test $have_crypto = yes; then
15307 LIBS
="$CRYPTOLIB $LIBS"
15309 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15313 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15314 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15315 $as_echo_n "(cached) " >&6
15317 ac_check_lib_save_LIBS
=$LIBS
15318 LIBS
="-lk5crypto $LIBS"
15319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15328 char mit_des_cbc_encrypt ();
15332 return mit_des_cbc_encrypt ();
15337 if ac_fn_c_try_link
"$LINENO"; then :
15338 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
15340 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
15342 rm -f core conftest.err conftest.
$ac_objext \
15343 conftest
$ac_exeext conftest.
$ac_ext
15344 LIBS
=$ac_check_lib_save_LIBS
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15347 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15348 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
15354 if test $have_k5crypto = yes; then
15355 CRYPTOLIB
=-lk5crypto
15356 LIBS
="$CRYPTOLIB $LIBS"
15358 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15362 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15363 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15364 $as_echo_n "(cached) " >&6
15366 ac_check_lib_save_LIBS
=$LIBS
15367 LIBS
="-lkrb5 $LIBS"
15368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15371 /* Override any GCC internal prototype to avoid an error.
15372 Use char because int might match the return type of a GCC
15373 builtin and then its argument prototype would still apply. */
15377 char krb5_init_context ();
15381 return krb5_init_context ();
15386 if ac_fn_c_try_link
"$LINENO"; then :
15387 ac_cv_lib_krb5_krb5_init_context
=yes
15389 ac_cv_lib_krb5_krb5_init_context
=no
15391 rm -f core conftest.err conftest.
$ac_objext \
15392 conftest
$ac_exeext conftest.
$ac_ext
15393 LIBS
=$ac_check_lib_save_LIBS
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15396 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15397 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
15403 if test $have_krb5=yes; then
15405 LIBS
="$KRB5LIB $LIBS"
15407 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15410 if test "${with_kerberos5}" = no
; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15412 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15413 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15414 $as_echo_n "(cached) " >&6
15416 ac_check_lib_save_LIBS
=$LIBS
15417 LIBS
="-ldes425 $LIBS"
15418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15421 /* Override any GCC internal prototype to avoid an error.
15422 Use char because int might match the return type of a GCC
15423 builtin and then its argument prototype would still apply. */
15427 char des_cbc_encrypt ();
15431 return des_cbc_encrypt ();
15436 if ac_fn_c_try_link
"$LINENO"; then :
15437 ac_cv_lib_des425_des_cbc_encrypt
=yes
15439 ac_cv_lib_des425_des_cbc_encrypt
=no
15441 rm -f core conftest.err conftest.
$ac_objext \
15442 conftest
$ac_exeext conftest.
$ac_ext
15443 LIBS
=$ac_check_lib_save_LIBS
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15446 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15447 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
15453 if test $have_des425 = yes; then
15455 LIBS
="$DESLIB $LIBS"
15457 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15461 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15462 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15463 $as_echo_n "(cached) " >&6
15465 ac_check_lib_save_LIBS
=$LIBS
15467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15470 /* Override any GCC internal prototype to avoid an error.
15471 Use char because int might match the return type of a GCC
15472 builtin and then its argument prototype would still apply. */
15476 char des_cbc_encrypt ();
15480 return des_cbc_encrypt ();
15485 if ac_fn_c_try_link
"$LINENO"; then :
15486 ac_cv_lib_des_des_cbc_encrypt
=yes
15488 ac_cv_lib_des_des_cbc_encrypt
=no
15490 rm -f core conftest.err conftest.
$ac_objext \
15491 conftest
$ac_exeext conftest.
$ac_ext
15492 LIBS
=$ac_check_lib_save_LIBS
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15495 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15496 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
15502 if test $have_des = yes; then
15504 LIBS
="$DESLIB $LIBS"
15506 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15511 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15512 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15513 $as_echo_n "(cached) " >&6
15515 ac_check_lib_save_LIBS
=$LIBS
15516 LIBS
="-lkrb4 $LIBS"
15517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15526 char krb_get_cred ();
15530 return krb_get_cred ();
15535 if ac_fn_c_try_link
"$LINENO"; then :
15536 ac_cv_lib_krb4_krb_get_cred
=yes
15538 ac_cv_lib_krb4_krb_get_cred
=no
15540 rm -f core conftest.err conftest.
$ac_objext \
15541 conftest
$ac_exeext conftest.
$ac_ext
15542 LIBS
=$ac_check_lib_save_LIBS
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15545 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15546 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
15552 if test $have_krb4 = yes; then
15554 LIBS
="$KRB4LIB $LIBS"
15556 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15560 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15561 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15564 ac_check_lib_save_LIBS
=$LIBS
15566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15569 /* Override any GCC internal prototype to avoid an error.
15570 Use char because int might match the return type of a GCC
15571 builtin and then its argument prototype would still apply. */
15575 char krb_get_cred ();
15579 return krb_get_cred ();
15584 if ac_fn_c_try_link
"$LINENO"; then :
15585 ac_cv_lib_krb_krb_get_cred
=yes
15587 ac_cv_lib_krb_krb_get_cred
=no
15589 rm -f core conftest.err conftest.
$ac_objext \
15590 conftest
$ac_exeext conftest.
$ac_ext
15591 LIBS
=$ac_check_lib_save_LIBS
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15594 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15595 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
15601 if test $have_krb = yes; then
15603 LIBS
="$KRB4LIB $LIBS"
15605 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15611 if test "${with_kerberos5}" != no
; then
15612 for ac_header
in krb5.h
15614 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15615 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
15616 cat >>confdefs.h
<<_ACEOF
15617 #define HAVE_KRB5_H 1
15619 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15621 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
15623 cat >>confdefs.h
<<_ACEOF
15624 #define HAVE_KRB5_ERROR_TEXT 1
15629 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15631 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
15633 cat >>confdefs.h
<<_ACEOF
15634 #define HAVE_KRB5_ERROR_E_TEXT 1
15645 for ac_header
in des.h
15647 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15648 if test "x$ac_cv_header_des_h" = x
""yes; then :
15649 cat >>confdefs.h
<<_ACEOF
15650 #define HAVE_DES_H 1
15654 for ac_header
in kerberosIV
/des.h
15656 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15657 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
15658 cat >>confdefs.h
<<_ACEOF
15659 #define HAVE_KERBEROSIV_DES_H 1
15663 for ac_header
in kerberos
/des.h
15665 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15666 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
15667 cat >>confdefs.h
<<_ACEOF
15668 #define HAVE_KERBEROS_DES_H 1
15683 for ac_header
in krb.h
15685 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15686 if test "x$ac_cv_header_krb_h" = x
""yes; then :
15687 cat >>confdefs.h
<<_ACEOF
15688 #define HAVE_KRB_H 1
15692 for ac_header
in kerberosIV
/krb.h
15694 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15695 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
15696 cat >>confdefs.h
<<_ACEOF
15697 #define HAVE_KERBEROSIV_KRB_H 1
15701 for ac_header
in kerberos
/krb.h
15703 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15704 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
15705 cat >>confdefs.h
<<_ACEOF
15706 #define HAVE_KERBEROS_KRB_H 1
15722 for ac_header
in com_err.h
15724 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15725 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
15726 cat >>confdefs.h
<<_ACEOF
15727 #define HAVE_COM_ERR_H 1
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15743 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15744 if test "${emacs_cv_localtime_cache+set}" = set; then :
15745 $as_echo_n "(cached) " >&6
15747 if test x
$ac_cv_func_tzset = xyes
; then
15748 if test "$cross_compiling" = yes; then :
15749 # If we have tzset, assume the worst when cross-compiling.
15750 emacs_cv_localtime_cache
=yes
15752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15755 char TZ_GMT0[] = "TZ=GMT0";
15756 char TZ_PST8[] = "TZ=PST8";
15759 time_t now = time ((time_t *) 0);
15760 int hour_GMT0, hour_unset;
15761 if (putenv (TZ_GMT0) != 0)
15763 hour_GMT0 = localtime (&now)->tm_hour;
15765 hour_unset = localtime (&now)->tm_hour;
15766 if (putenv (TZ_PST8) != 0)
15768 if (localtime (&now)->tm_hour == hour_GMT0)
15771 if (localtime (&now)->tm_hour != hour_unset)
15776 if ac_fn_c_try_run
"$LINENO"; then :
15777 emacs_cv_localtime_cache
=no
15779 emacs_cv_localtime_cache
=yes
15781 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15782 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15786 # If we lack tzset, report that localtime does not cache TZ,
15787 # since we can't invalidate the cache if we don't have tzset.
15788 emacs_cv_localtime_cache
=no
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15792 $as_echo "$emacs_cv_localtime_cache" >&6; }
15793 if test $emacs_cv_localtime_cache = yes; then
15795 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15799 if test "x$HAVE_TIMEVAL" = xyes
; then
15800 for ac_func
in gettimeofday
15802 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15803 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
15804 cat >>confdefs.h
<<_ACEOF
15805 #define HAVE_GETTIMEOFDAY 1
15811 if test $ac_cv_func_gettimeofday = yes; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15813 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15814 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15815 $as_echo_n "(cached) " >&6
15817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h. */
15820 #ifdef TIME_WITH_SYS_TIME
15821 #include <sys/time.h>
15824 #ifdef HAVE_SYS_TIME_H
15825 #include <sys/time.h>
15833 struct timeval time;
15834 gettimeofday (&time, 0);
15839 if ac_fn_c_try_compile
"$LINENO"; then :
15840 emacs_cv_gettimeofday_two_arguments
=yes
15842 emacs_cv_gettimeofday_two_arguments
=no
15844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15847 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15848 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15850 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15857 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
15858 if test "x$ac_cv_func_socket" = x
""yes; then :
15864 if test $ok_so_far = yes; then
15865 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15866 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
15874 if test $ok_so_far = yes; then
15875 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15876 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
15884 if test $ok_so_far = yes; then
15886 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15890 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15892 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15897 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15898 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15900 $as_echo "yes" >&6; }
15902 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906 $as_echo "no" >&6; }
15909 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15910 if test "x$ac_cv_type_pid_t" = x
""yes; then :
15914 cat >>confdefs.h
<<_ACEOF
15920 for ac_header
in vfork.h
15922 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15923 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
15924 cat >>confdefs.h
<<_ACEOF
15925 #define HAVE_VFORK_H 1
15932 for ac_func
in fork vfork
15934 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15935 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15936 eval as_val
=\$
$as_ac_var
15937 if test "x$as_val" = x
""yes; then :
15938 cat >>confdefs.h
<<_ACEOF
15939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15945 if test "x$ac_cv_func_fork" = xyes
; then
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15947 $as_echo_n "checking for working fork... " >&6; }
15948 if test "${ac_cv_func_fork_works+set}" = set; then :
15949 $as_echo_n "(cached) " >&6
15951 if test "$cross_compiling" = yes; then :
15952 ac_cv_func_fork_works
=cross
15954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 $ac_includes_default
15961 /* By Ruediger Kuhlmann. */
15962 return fork () < 0;
15968 if ac_fn_c_try_run
"$LINENO"; then :
15969 ac_cv_func_fork_works
=yes
15971 ac_cv_func_fork_works
=no
15973 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15974 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15979 $as_echo "$ac_cv_func_fork_works" >&6; }
15982 ac_cv_func_fork_works
=$ac_cv_func_fork
15984 if test "x$ac_cv_func_fork_works" = xcross
; then
15986 *-*-amigaos* |
*-*-msdosdjgpp*)
15987 # Override, as these systems have only a dummy fork() stub
15988 ac_cv_func_fork_works
=no
15991 ac_cv_func_fork_works
=yes
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15995 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15997 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15998 if test "x$ac_cv_func_vfork" = xyes
; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16000 $as_echo_n "checking for working vfork... " >&6; }
16001 if test "${ac_cv_func_vfork_works+set}" = set; then :
16002 $as_echo_n "(cached) " >&6
16004 if test "$cross_compiling" = yes; then :
16005 ac_cv_func_vfork_works
=cross
16007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16009 /* Thanks to Paul Eggert for this test. */
16010 $ac_includes_default
16011 #include <sys/wait.h>
16012 #ifdef HAVE_VFORK_H
16013 # include <vfork.h>
16015 /* On some sparc systems, changes by the child to local and incoming
16016 argument registers are propagated back to the parent. The compiler
16017 is told about this with #include <vfork.h>, but some compilers
16018 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16019 static variable whose address is put into a register that is
16020 clobbered by the vfork. */
16023 sparc_address_test (int arg)
16025 sparc_address_test (arg) int arg;
16028 static pid_t child;
16046 pid_t parent = getpid ();
16049 sparc_address_test (0);
16054 /* Here is another test for sparc vfork register problems. This
16055 test uses lots of local variables, at least as many local
16056 variables as main has allocated so far including compiler
16057 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16058 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16059 reuse the register of parent for one of the local variables,
16060 since it will think that parent can't possibly be used any more
16061 in this routine. Assigning to the local variable will thus
16062 munge parent in the parent process. */
16064 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16065 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16066 /* Convince the compiler that p..p7 are live; otherwise, it might
16067 use the same hardware register for all 8 local variables. */
16068 if (p != p1 || p != p2 || p != p3 || p != p4
16069 || p != p5 || p != p6 || p != p7)
16072 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16073 from child file descriptors. If the child closes a descriptor
16074 before it execs or exits, this munges the parent's descriptor
16075 as well. Test for this by closing stdout in the child. */
16076 _exit(close(fileno(stdout)) != 0);
16081 while (wait(&status) != child)
16084 /* Was there some problem with vforking? */
16087 /* Did the child fail? (This shouldn't happen.) */
16090 /* Did the vfork/compiler bug occur? */
16091 || parent != getpid()
16093 /* Did the file descriptor bug occur? */
16094 || fstat(fileno(stdout), &st) != 0
16099 if ac_fn_c_try_run
"$LINENO"; then :
16100 ac_cv_func_vfork_works
=yes
16102 ac_cv_func_vfork_works
=no
16104 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16105 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16110 $as_echo "$ac_cv_func_vfork_works" >&6; }
16113 if test "x$ac_cv_func_fork_works" = xcross
; then
16114 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16116 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16119 if test "x$ac_cv_func_vfork_works" = xyes
; then
16121 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16125 $as_echo "#define vfork fork" >>confdefs.h
16128 if test "x$ac_cv_func_fork_works" = xyes
; then
16130 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16135 for ac_func
in snprintf
16137 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
16138 if test "x$ac_cv_func_snprintf" = x
""yes; then :
16139 cat >>confdefs.h
<<_ACEOF
16140 #define HAVE_SNPRINTF 1
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16148 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16149 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16150 $as_echo_n "(cached) " >&6
16152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 #include <langinfo.h>
16158 char* cs = nl_langinfo(CODESET);
16163 if ac_fn_c_try_link
"$LINENO"; then :
16164 emacs_cv_langinfo_codeset
=yes
16166 emacs_cv_langinfo_codeset
=no
16168 rm -f core conftest.err conftest.
$ac_objext \
16169 conftest
$ac_exeext conftest.
$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16173 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16174 if test $emacs_cv_langinfo_codeset = yes; then
16176 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16181 $as_echo_n "checking for mbstate_t... " >&6; }
16182 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16183 $as_echo_n "(cached) " >&6
16185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187 $ac_includes_default
16188 # include <wchar.h>
16192 mbstate_t x; return sizeof x;
16197 if ac_fn_c_try_compile
"$LINENO"; then :
16198 ac_cv_type_mbstate_t
=yes
16200 ac_cv_type_mbstate_t
=no
16202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16205 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16206 if test $ac_cv_type_mbstate_t = yes; then
16208 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16212 $as_echo "#define mbstate_t int" >>confdefs.h
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16217 $as_echo_n "checking for C restricted array declarations... " >&6; }
16218 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16219 $as_echo_n "(cached) " >&6
16221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16223 void fred (int x[__restrict]);
16232 if ac_fn_c_try_compile
"$LINENO"; then :
16233 emacs_cv_c_restrict_arr
=yes
16235 emacs_cv_c_restrict_arr
=no
16237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16240 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16241 if test "$emacs_cv_c_restrict_arr" = yes; then
16243 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16248 # Set up the CFLAGS for real compilation, so we can substitute it.
16249 CFLAGS
="$REAL_CFLAGS"
16250 CPPFLAGS
="$REAL_CPPFLAGS"
16252 ## Hack to detect a buggy GCC version.
16253 if test "x$GCC" = xyes \
16254 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16255 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
16256 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
16257 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16260 version
=$PACKAGE_VERSION
16262 ### Specify what sort of things we'll be editing into Makefile and config.h.
16263 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16287 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16288 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16289 ## end of LIBX_BASE, but nothing ever set it.
16294 ## Used in lwlib/Makefile.in.
16296 if test -n "${machfile}"; then
16297 M_FILE
="\$(srcdir)/${machfile}"
16301 S_FILE
="\$(srcdir)/${opsysfile}"
16312 cat >>confdefs.h
<<_ACEOF
16313 #define EMACS_CONFIGURATION "${canonical}"
16317 cat >>confdefs.h
<<_ACEOF
16318 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16321 if test -n "$machfile"; then
16323 cat >>confdefs.h
<<_ACEOF
16324 #define config_machfile "${machfile}"
16329 cat >>confdefs.h
<<_ACEOF
16330 #define config_opsysfile "${opsysfile}"
16337 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16339 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16342 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16344 if test "$HAVE_XFT" = "yes"; then
16345 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16346 elif test "$HAVE_FREETYPE" = "yes"; then
16347 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
16357 if test "${USE_X_TOOLKIT}" != "none" ; then
16358 WIDGET_OBJ
=widget.o
16360 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16362 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16364 $as_echo "#define USE_LUCID 1" >>confdefs.h
16366 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16368 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16373 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16374 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
16378 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16379 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16380 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
16384 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16385 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
16388 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
16394 case "$USE_X_TOOLKIT" in
16395 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
16396 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
16397 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
16401 if test "$USE_X_TOOLKIT" = "none"; then
16402 LIBXT_OTHER
="\$(LIBXSM)"
16403 OLDXMENU_TARGET
="really-oldXMenu"
16405 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16406 OLDXMENU_TARGET
="really-lwlib"
16410 ## The X Menu stuff is present in the X10 distribution, but missing
16411 ## from X11. If we have X10, just use the installed library;
16412 ## otherwise, use our own copy.
16413 if test "${HAVE_X11}" = "yes" ; then
16415 $as_echo "#define HAVE_X11 1" >>confdefs.h
16418 if test "$USE_X_TOOLKIT" = "none"; then
16419 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
16421 OLDXMENU
="\${lwlibdir}/liblw.a"
16423 LIBXMENU
="\$(OLDXMENU)"
16424 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
16425 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
16427 ## For a syntactically valid Makefile; not actually used for anything.
16428 ## See comments in src/Makefile.in.
16430 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16431 if test "${HAVE_X_WINDOWS}" = "yes"; then
16440 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
16453 if test "${HAVE_MENUS}" = "yes" ; then
16455 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16459 if test "${GNU_MALLOC}" = "yes" ; then
16461 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16466 if test "${REL_ALLOC}" = "yes" ; then
16468 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16471 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16475 if test "$opsys" = "cygwin"; then
16476 CYGWIN_OBJ
="sheap.o"
16477 ## Cygwin differs because of its unexec().
16479 POST_ALLOC_OBJ
=lastfile.o
16482 PRE_ALLOC_OBJ
=lastfile.o
16489 # Configure gnulib here, now that we know LIBS.
16501 LIBC_FATAL_STDERR_
=1
16502 export LIBC_FATAL_STDERR_
16504 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16505 # for constant arguments. Useless!
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16507 $as_echo_n "checking for working alloca.h... " >&6; }
16508 if test "${ac_cv_working_alloca_h+set}" = set; then :
16509 $as_echo_n "(cached) " >&6
16511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <alloca.h>
16517 char *p = (char *) alloca (2 * sizeof (int));
16523 if ac_fn_c_try_link
"$LINENO"; then :
16524 ac_cv_working_alloca_h
=yes
16526 ac_cv_working_alloca_h
=no
16528 rm -f core conftest.err conftest.
$ac_objext \
16529 conftest
$ac_exeext conftest.
$ac_ext
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16532 $as_echo "$ac_cv_working_alloca_h" >&6; }
16533 if test $ac_cv_working_alloca_h = yes; then
16535 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16540 $as_echo_n "checking for alloca... " >&6; }
16541 if test "${ac_cv_func_alloca_works+set}" = set; then :
16542 $as_echo_n "(cached) " >&6
16544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16547 # define alloca __builtin_alloca
16550 # include <malloc.h>
16551 # define alloca _alloca
16553 # ifdef HAVE_ALLOCA_H
16554 # include <alloca.h>
16559 # ifndef alloca /* predefined by HP cc +Olibcalls */
16570 char *p = (char *) alloca (1);
16576 if ac_fn_c_try_link
"$LINENO"; then :
16577 ac_cv_func_alloca_works
=yes
16579 ac_cv_func_alloca_works
=no
16581 rm -f core conftest.err conftest.
$ac_objext \
16582 conftest
$ac_exeext conftest.
$ac_ext
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16585 $as_echo "$ac_cv_func_alloca_works" >&6; }
16587 if test $ac_cv_func_alloca_works = yes; then
16589 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16592 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16593 # that cause trouble. Some versions do not even contain alloca or
16594 # contain a buggy version. If you still want to use their alloca,
16595 # use ar to extract alloca.o from them instead of compiling alloca.c.
16601 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16603 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16607 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16608 if test "${ac_cv_os_cray+set}" = set; then :
16609 $as_echo_n "(cached) " >&6
16611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16613 #if defined CRAY && ! defined CRAY2
16620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16621 $EGREP "webecray" >/dev
/null
2>&1; then :
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16630 $as_echo "$ac_cv_os_cray" >&6; }
16631 if test $ac_cv_os_cray = yes; then
16632 for ac_func
in _getb67 GETB67 getb67
; do
16633 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16634 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16635 eval as_val
=\$
$as_ac_var
16636 if test "x$as_val" = x
""yes; then :
16638 cat >>confdefs.h
<<_ACEOF
16639 #define CRAY_STACKSEG_END $ac_func
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16649 $as_echo_n "checking stack direction for C alloca... " >&6; }
16650 if test "${ac_cv_c_stack_direction+set}" = set; then :
16651 $as_echo_n "(cached) " >&6
16653 if test "$cross_compiling" = yes; then :
16654 ac_cv_c_stack_direction
=0
16656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16658 $ac_includes_default
16660 find_stack_direction (int *addr, int depth)
16662 int dir, dummy = 0;
16665 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16666 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16667 return dir + dummy;
16671 main (int argc, char **argv)
16673 return find_stack_direction (0, argc + !argv + 20) < 0;
16676 if ac_fn_c_try_run
"$LINENO"; then :
16677 ac_cv_c_stack_direction
=1
16679 ac_cv_c_stack_direction
=-1
16681 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16682 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16687 $as_echo "$ac_cv_c_stack_direction" >&6; }
16688 cat >>confdefs.h
<<_ACEOF
16689 #define STACK_DIRECTION $ac_cv_c_stack_direction
16698 for ac_func
in $ac_func_list
16700 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16701 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16702 eval as_val
=\$
$as_ac_var
16703 if test "x$as_val" = x
""yes; then :
16704 cat >>confdefs.h
<<_ACEOF
16705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16715 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16716 if test "${ac_cv_c_bigendian+set}" = set; then :
16717 $as_echo_n "(cached) " >&6
16719 ac_cv_c_bigendian
=unknown
16720 # See if we're dealing with a universal compiler.
16721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 #ifndef __APPLE_CC__
16724 not a universal capable compiler
16729 if ac_fn_c_try_compile
"$LINENO"; then :
16731 # Check for potential -arch flags. It is not universal unless
16732 # there are at least two -arch flags with different values.
16735 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16736 if test -n "$ac_prev"; then
16738 i?
86 | x86_64 | ppc | ppc64
)
16739 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16742 ac_cv_c_bigendian
=universal
16748 elif test "x$ac_word" = "x-arch"; then
16753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16754 if test $ac_cv_c_bigendian = unknown
; then
16755 # See if sys/param.h defines the BYTE_ORDER macro.
16756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758 #include <sys/types.h>
16759 #include <sys/param.h>
16764 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16765 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16767 bogus endian macros
16774 if ac_fn_c_try_compile
"$LINENO"; then :
16775 # It does; now see whether it defined to BIG_ENDIAN or not.
16776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16778 #include <sys/types.h>
16779 #include <sys/param.h>
16784 #if BYTE_ORDER != BIG_ENDIAN
16792 if ac_fn_c_try_compile
"$LINENO"; then :
16793 ac_cv_c_bigendian
=yes
16795 ac_cv_c_bigendian
=no
16797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16801 if test $ac_cv_c_bigendian = unknown
; then
16802 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h. */
16805 #include <limits.h>
16810 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16811 bogus endian macros
16818 if ac_fn_c_try_compile
"$LINENO"; then :
16819 # It does; now see whether it defined to _BIG_ENDIAN or not.
16820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 #include <limits.h>
16827 #ifndef _BIG_ENDIAN
16835 if ac_fn_c_try_compile
"$LINENO"; then :
16836 ac_cv_c_bigendian
=yes
16838 ac_cv_c_bigendian
=no
16840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16844 if test $ac_cv_c_bigendian = unknown
; then
16845 # Compile a test program.
16846 if test "$cross_compiling" = yes; then :
16847 # Try to guess by grepping values from an object file.
16848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16850 short int ascii_mm[] =
16851 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16852 short int ascii_ii[] =
16853 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16854 int use_ascii (int i) {
16855 return ascii_mm[i] + ascii_ii[i];
16857 short int ebcdic_ii[] =
16858 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16859 short int ebcdic_mm[] =
16860 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16861 int use_ebcdic (int i) {
16862 return ebcdic_mm[i] + ebcdic_ii[i];
16869 return use_ascii (foo) == use_ebcdic (foo);
16874 if ac_fn_c_try_compile
"$LINENO"; then :
16875 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16876 ac_cv_c_bigendian
=yes
16878 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16879 if test "$ac_cv_c_bigendian" = unknown
; then
16880 ac_cv_c_bigendian
=no
16882 # finding both strings is unlikely to happen, but who knows?
16883 ac_cv_c_bigendian
=unknown
16887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16891 $ac_includes_default
16896 /* Are we little or big endian? From Harbison&Steele. */
16900 char c[sizeof (long int)];
16903 return u.c[sizeof (long int) - 1] == 1;
16909 if ac_fn_c_try_run
"$LINENO"; then :
16910 ac_cv_c_bigendian
=no
16912 ac_cv_c_bigendian
=yes
16914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16921 $as_echo "$ac_cv_c_bigendian" >&6; }
16922 case $ac_cv_c_bigendian in #(
16924 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16930 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16934 as_fn_error
"unknown endianness
16935 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16940 $as_echo_n "checking for inline... " >&6; }
16941 if test "${ac_cv_c_inline+set}" = set; then :
16942 $as_echo_n "(cached) " >&6
16945 for ac_kw
in inline __inline__ __inline
; do
16946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 #ifndef __cplusplus
16950 static $ac_kw foo_t static_foo () {return 0; }
16951 $ac_kw foo_t foo () {return 0; }
16955 if ac_fn_c_try_compile
"$LINENO"; then :
16956 ac_cv_c_inline
=$ac_kw
16958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16959 test "$ac_cv_c_inline" != no
&& break
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16964 $as_echo "$ac_cv_c_inline" >&6; }
16966 case $ac_cv_c_inline in
16969 case $ac_cv_c_inline in
16971 *) ac_val
=$ac_cv_c_inline;;
16973 cat >>confdefs.h
<<_ACEOF
16974 #ifndef __cplusplus
16975 #define inline $ac_val
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16983 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16984 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
16987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16989 /* On HP-UX before 11.23, strtold returns a struct instead of
16990 long double. Reject implementations like that, by requiring
16991 compatibility with the C99 prototype. */
16992 #include <stdlib.h>
16993 static long double (*p) (char const *, char **) = strtold;
16995 test (char const *nptr, char **endptr)
16998 r = strtold (nptr, endptr);
17004 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17009 if ac_fn_c_try_link
"$LINENO"; then :
17010 gl_cv_func_c99_strtold
=yes
17012 gl_cv_func_c99_strtold
=no
17014 rm -f core conftest.err conftest.
$ac_objext \
17015 conftest
$ac_exeext conftest.
$ac_ext
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17018 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17019 if test $gl_cv_func_c99_strtold = yes; then
17021 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17033 GNULIB_EUIDACCESS
=0;
17034 GNULIB_FACCESSAT
=0;
17037 GNULIB_FDATASYNC
=0;
17039 GNULIB_FTRUNCATE
=0;
17041 GNULIB_GETDOMAINNAME
=0;
17042 GNULIB_GETDTABLESIZE
=0;
17043 GNULIB_GETGROUPS
=0;
17044 GNULIB_GETHOSTNAME
=0;
17046 GNULIB_GETLOGIN_R
=0;
17047 GNULIB_GETPAGESIZE
=0;
17048 GNULIB_GETUSERSHELL
=0;
17049 GNULIB_GROUP_MEMBER
=0;
17060 GNULIB_READLINKAT
=0;
17064 GNULIB_SYMLINKAT
=0;
17065 GNULIB_TTYNAME_R
=0;
17066 GNULIB_UNISTD_H_GETOPT
=0;
17067 GNULIB_UNISTD_H_NONBLOCKING
=0;
17068 GNULIB_UNISTD_H_SIGPIPE
=0;
17083 HAVE_GETDTABLESIZE
=1;
17085 HAVE_GETHOSTNAME
=1;
17087 HAVE_GETPAGESIZE
=1;
17088 HAVE_GROUP_MEMBER
=1;
17103 HAVE_DECL_ENVIRON
=1;
17104 HAVE_DECL_FCHDIR
=1;
17105 HAVE_DECL_FDATASYNC
=1;
17106 HAVE_DECL_GETDOMAINNAME
=1;
17107 HAVE_DECL_GETLOGIN_R
=1;
17108 HAVE_DECL_GETPAGESIZE
=1;
17109 HAVE_DECL_GETUSERSHELL
=1;
17110 HAVE_DECL_TTYNAME_R
=1;
17112 HAVE_SYS_PARAM_H
=0;
17117 REPLACE_FCHOWNAT
=0;
17119 REPLACE_GETDOMAINNAME
=0;
17120 REPLACE_GETLOGIN_R
=0;
17121 REPLACE_GETGROUPS
=0;
17122 REPLACE_GETPAGESIZE
=0;
17130 REPLACE_READLINK
=0;
17134 REPLACE_TTYNAME_R
=0;
17136 REPLACE_UNLINKAT
=0;
17139 UNISTD_H_HAVE_WINSOCK2_H
=0;
17140 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17144 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17145 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17146 $as_echo_n "(cached) " >&6
17148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17151 #include <sys/types.h>
17152 #include <sys/stat.h>
17156 struct stat s; s.st_dm_mode;
17161 if ac_fn_c_try_compile
"$LINENO"; then :
17162 ac_cv_struct_st_dm_mode
=yes
17164 ac_cv_struct_st_dm_mode
=no
17166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17169 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17171 if test $ac_cv_struct_st_dm_mode = yes; then
17173 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17178 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17179 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
17185 cat >>confdefs.h
<<_ACEOF
17186 #define HAVE_DECL_STRMODE $ac_have_decl
17192 GNULIB_CALLOC_POSIX
=0;
17193 GNULIB_CANONICALIZE_FILE_NAME
=0;
17194 GNULIB_GETLOADAVG
=0;
17195 GNULIB_GETSUBOPT
=0;
17197 GNULIB_MALLOC_POSIX
=0;
17201 GNULIB_MKOSTEMPS
=0;
17207 GNULIB_REALLOC_POSIX
=0;
17214 GNULIB_SYSTEM_POSIX
=0;
17220 HAVE_CANONICALIZE_FILE_NAME
=1;
17221 HAVE_DECL_GETLOADAVG
=1;
17235 HAVE_DECL_SETENV
=1;
17239 HAVE_STRUCT_RANDOM_DATA
=1;
17240 HAVE_SYS_LOADAVG_H
=0;
17242 HAVE_DECL_UNSETENV
=1;
17244 REPLACE_CANONICALIZE_FILE_NAME
=0;
17250 REPLACE_REALPATH
=0;
17253 REPLACE_UNSETENV
=0;
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17259 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17260 if test "${gl_cv_have_include_next+set}" = set; then :
17261 $as_echo_n "(cached) " >&6
17263 rm -rf conftestd1a conftestd1b conftestd2
17264 mkdir conftestd1a conftestd1b conftestd2
17265 cat <<EOF > conftestd1a/conftest.h
17266 #define DEFINED_IN_CONFTESTD1
17267 #include_next <conftest.h>
17268 #ifdef DEFINED_IN_CONFTESTD2
17271 #error "include_next doesn't work"
17274 cat <<EOF > conftestd1b/conftest.h
17275 #define DEFINED_IN_CONFTESTD1
17277 #include_next <conftest.h>
17278 #ifdef DEFINED_IN_CONFTESTD2
17281 #error "include_next doesn't work"
17284 cat <<EOF > conftestd2/conftest.h
17285 #ifndef DEFINED_IN_CONFTESTD1
17286 #error "include_next test doesn't work"
17288 #define DEFINED_IN_CONFTESTD2
17290 gl_save_CPPFLAGS
="$CPPFLAGS"
17291 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 #include <conftest.h>
17296 if ac_fn_c_try_compile
"$LINENO"; then :
17297 gl_cv_have_include_next
=yes
17299 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17301 /* end confdefs.h. */
17302 #include <conftest.h>
17304 if ac_fn_c_try_compile
"$LINENO"; then :
17305 gl_cv_have_include_next
=buggy
17307 gl_cv_have_include_next
=no
17309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17313 CPPFLAGS
="$gl_save_CPPFLAGS"
17314 rm -rf conftestd1a conftestd1b conftestd2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17318 $as_echo "$gl_cv_have_include_next" >&6; }
17319 PRAGMA_SYSTEM_HEADER
=
17320 if test $gl_cv_have_include_next = yes; then
17321 INCLUDE_NEXT
=include_next
17322 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17323 if test -n "$GCC"; then
17324 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
17327 if test $gl_cv_have_include_next = buggy
; then
17328 INCLUDE_NEXT
=include
17329 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
17331 INCLUDE_NEXT
=include
17332 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17339 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17340 if test "${gl_cv_pragma_columns+set}" = set; then :
17341 $as_echo_n "(cached) " >&6
17343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17352 $EGREP "choke me" >/dev
/null
2>&1; then :
17353 gl_cv_pragma_columns
=yes
17355 gl_cv_pragma_columns
=no
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17362 $as_echo "$gl_cv_pragma_columns" >&6; }
17363 if test $gl_cv_pragma_columns = yes; then
17364 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
17385 if test $gl_cv_have_include_next = yes; then
17386 gl_cv_next_getopt_h
='<'getopt.h
'>'
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17389 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17390 if test "${gl_cv_next_getopt_h+set}" = set; then :
17391 $as_echo_n "(cached) " >&6
17394 if test $ac_cv_header_getopt_h = yes; then
17397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399 #include <getopt.h>
17403 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17404 *) gl_absname_cpp
="$ac_cpp" ;;
17409 gl_dirsep_regex
='[/\\]'
17412 gl_dirsep_regex
='/'
17416 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'getopt.h|{
17417 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
17422 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17423 sed -n "$gl_absolute_header_sed"`'"'
17425 gl_cv_next_getopt_h
='<'getopt.h
'>'
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17431 $as_echo "$gl_cv_next_getopt_h" >&6; }
17433 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17435 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17437 gl_next_as_first_directive
='<'getopt.h
'>'
17439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17440 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17442 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17447 if test $ac_cv_header_getopt_h = yes; then
17456 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17457 for ac_header
in getopt.h
17459 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17460 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17461 cat >>confdefs.h
<<_ACEOF
17462 #define HAVE_GETOPT_H 1
17466 gl_replace_getopt
=yes
17473 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17474 for ac_func
in getopt_long_only
17476 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17477 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17478 cat >>confdefs.h
<<_ACEOF
17479 #define HAVE_GETOPT_LONG_ONLY 1
17483 gl_replace_getopt
=yes
17489 if test -z "$gl_replace_getopt"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17491 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17492 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17493 $as_echo_n "(cached) " >&6
17496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17498 #include <unistd.h>
17502 int *p = &optreset; return optreset;
17507 if ac_fn_c_try_link
"$LINENO"; then :
17510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17512 #include <getopt.h>
17516 return !getopt_clip;
17521 if ac_fn_c_try_compile
"$LINENO"; then :
17526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17528 rm -f core conftest.err conftest.
$ac_objext \
17529 conftest
$ac_exeext conftest.
$ac_ext
17531 gl_save_CPPFLAGS
=$CPPFLAGS
17532 CPPFLAGS
="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17533 if test "$cross_compiling" = yes; then :
17535 mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17536 darwin
* | aix
*) gl_cv_func_getopt_posix
="guessing no";;
17537 *) gl_cv_func_getopt_posix
="guessing yes";;
17541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17544 #include <unistd.h>
17545 #include <stdlib.h>
17546 #include <string.h>
17552 static char program[] = "program";
17553 static char a[] = "-a";
17554 static char foo[] = "foo";
17555 static char bar[] = "bar";
17556 char *argv[] = { program, a, foo, bar, NULL };
17559 optind = OPTIND_MIN;
17562 c = getopt (4, argv, "ab");
17565 c = getopt (4, argv, "ab");
17568 if (!(optind == 2))
17571 /* Some internal state exists at this point. */
17573 static char program[] = "program";
17574 static char donald[] = "donald";
17575 static char p[] = "-p";
17576 static char billy[] = "billy";
17577 static char duck[] = "duck";
17578 static char a[] = "-a";
17579 static char bar[] = "bar";
17580 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17583 optind = OPTIND_MIN;
17586 c = getopt (7, argv, "+abp:q:");
17589 if (!(strcmp (argv[0], "program") == 0))
17591 if (!(strcmp (argv[1], "donald") == 0))
17593 if (!(strcmp (argv[2], "-p") == 0))
17595 if (!(strcmp (argv[3], "billy") == 0))
17597 if (!(strcmp (argv[4], "duck") == 0))
17599 if (!(strcmp (argv[5], "-a") == 0))
17601 if (!(strcmp (argv[6], "bar") == 0))
17603 if (!(optind == 1))
17606 /* Detect MacOS 10.5, AIX 7.1 bug. */
17608 static char program[] = "program";
17609 static char ab[] = "-ab";
17610 char *argv[3] = { program, ab, NULL };
17611 optind = OPTIND_MIN;
17613 if (getopt (2, argv, "ab:") != 'a')
17615 if (getopt (2, argv, "ab:") != '?')
17627 if ac_fn_c_try_run
"$LINENO"; then :
17628 gl_cv_func_getopt_posix
=yes
17630 gl_cv_func_getopt_posix
=no
17632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17636 CPPFLAGS
=$gl_save_CPPFLAGS
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17640 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17641 case "$gl_cv_func_getopt_posix" in
17642 *no
) gl_replace_getopt
=yes ;;
17646 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17648 $as_echo_n "checking for working GNU getopt function... " >&6; }
17649 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17650 $as_echo_n "(cached) " >&6
17652 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17653 # optstring is necessary for programs like m4 that have POSIX-mandated
17654 # semantics for supporting options interspersed with files.
17655 # Also, since getopt_long is a GNU extension, we require optind=0.
17656 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17657 # so take care to revert to the correct (non-)export state.
17658 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17659 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17660 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17661 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17662 *) gl_had_POSIXLY_CORRECT
= ;;
17665 export POSIXLY_CORRECT
17666 if test "$cross_compiling" = yes; then :
17667 case $host_os:$ac_cv_have_decl_optreset in
17668 *-gnu*:* | mingw
*:*) gl_cv_func_getopt_gnu
=no
;;
17669 *:yes) gl_cv_func_getopt_gnu
=no
;;
17670 *) gl_cv_func_getopt_gnu
=yes;;
17674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17676 #include <getopt.h>
17677 #include <stddef.h>
17678 #include <string.h>
17680 #include <stdlib.h>
17681 #if defined __MACH__ && defined __APPLE__
17682 /* Avoid a crash on MacOS X. */
17683 #include <mach/mach.h>
17684 #include <mach/mach_error.h>
17685 #include <mach/thread_status.h>
17686 #include <mach/exception.h>
17687 #include <mach/task.h>
17688 #include <pthread.h>
17689 /* The exception port on which our thread listens. */
17690 static mach_port_t our_exception_port;
17691 /* The main function of the thread listening for exceptions of type
17694 mach_exception_thread (void *arg)
17696 /* Buffer for a message to be received. */
17698 mach_msg_header_t head;
17699 mach_msg_body_t msgh_body;
17702 mach_msg_return_t retval;
17703 /* Wait for a message on the exception port. */
17704 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17705 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17706 if (retval != MACH_MSG_SUCCESS)
17711 nocrash_init (void)
17713 mach_port_t self = mach_task_self ();
17714 /* Allocate a port on which the thread shall listen for exceptions. */
17715 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17717 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17718 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17719 MACH_MSG_TYPE_MAKE_SEND)
17721 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17723 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17724 /* Create the thread listening on the exception port. */
17725 pthread_attr_t attr;
17727 if (pthread_attr_init (&attr) == 0
17728 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17729 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17730 pthread_attr_destroy (&attr);
17731 /* Replace the exception port info for these exceptions with our own.
17732 Note that we replace the exception port for the entire task, not only
17733 for a particular thread. This has the effect that when our exception
17734 port gets the message, the thread specific exception port has already
17735 been asked, and we don't need to bother about it.
17736 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17737 task_set_exception_ports (self, mask, our_exception_port,
17738 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17743 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17744 /* Avoid a crash on native Windows. */
17745 #define WIN32_LEAN_AND_MEAN
17746 #include <windows.h>
17747 #include <winerror.h>
17749 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17751 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17753 case EXCEPTION_ACCESS_VIOLATION:
17754 case EXCEPTION_IN_PAGE_ERROR:
17755 case EXCEPTION_STACK_OVERFLOW:
17756 case EXCEPTION_GUARD_PAGE:
17757 case EXCEPTION_PRIV_INSTRUCTION:
17758 case EXCEPTION_ILLEGAL_INSTRUCTION:
17759 case EXCEPTION_DATATYPE_MISALIGNMENT:
17760 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17761 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17764 return EXCEPTION_CONTINUE_SEARCH;
17767 nocrash_init (void)
17769 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17772 /* Avoid a crash on POSIX systems. */
17773 #include <signal.h>
17774 /* A POSIX signal handler. */
17776 exception_handler (int sig)
17781 nocrash_init (void)
17784 signal (SIGSEGV, exception_handler);
17787 signal (SIGBUS, exception_handler);
17801 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17802 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17803 OSF/1 5.1, Solaris 10. */
17805 static char conftest[] = "conftest";
17806 static char plus[] = "-+";
17807 char *argv[3] = { conftest, plus, NULL };
17809 if (getopt (2, argv, "+a") != '?')
17812 /* This code succeeds on glibc 2.8, mingw,
17813 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17814 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17816 static char program[] = "program";
17817 static char p[] = "-p";
17818 static char foo[] = "foo";
17819 static char bar[] = "bar";
17820 char *argv[] = { program, p, foo, bar, NULL };
17823 if (getopt (4, argv, "p::") != 'p')
17825 else if (optarg != NULL)
17827 else if (getopt (4, argv, "p::") != -1)
17829 else if (optind != 2)
17832 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17834 static char program[] = "program";
17835 static char foo[] = "foo";
17836 static char p[] = "-p";
17837 char *argv[] = { program, foo, p, NULL };
17839 if (getopt (3, argv, "-p") != 1)
17841 else if (getopt (3, argv, "-p") != 'p')
17844 /* This code fails on glibc 2.11. */
17846 static char program[] = "program";
17847 static char b[] = "-b";
17848 static char a[] = "-a";
17849 char *argv[] = { program, b, a, NULL };
17850 optind = opterr = 0;
17851 if (getopt (3, argv, "+:a:b") != 'b')
17853 else if (getopt (3, argv, "+:a:b") != ':')
17856 /* This code dumps core on glibc 2.14. */
17858 static char program[] = "program";
17859 static char w[] = "-W";
17860 static char dummy[] = "dummy";
17861 char *argv[] = { program, w, dummy, NULL };
17862 optind = opterr = 1;
17863 if (getopt (3, argv, "W;") != 'W')
17872 if ac_fn_c_try_run
"$LINENO"; then :
17873 gl_cv_func_getopt_gnu
=yes
17875 gl_cv_func_getopt_gnu
=no
17877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17878 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17881 case $gl_had_POSIXLY_CORRECT in
17883 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17884 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17889 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17890 if test "$gl_cv_func_getopt_gnu" = "no"; then
17891 gl_replace_getopt
=yes
17902 if test -n "$gl_replace_getopt"; then :
17909 if test $REPLACE_GETOPT = 1; then
17913 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17917 GNULIB_UNISTD_H_GETOPT
=1
17920 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17921 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17927 cat >>confdefs.h
<<_ACEOF
17928 #define HAVE_DECL_GETENV $ac_have_decl
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17933 $as_echo_n "checking for unsigned long long int... " >&6; }
17934 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17935 $as_echo_n "(cached) " >&6
17937 ac_cv_type_unsigned_long_long_int
=yes
17938 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17942 /* For now, do not test the preprocessor; as of 2007 there are too many
17943 implementations with broken preprocessors. Perhaps this can
17944 be revisited in 2012. In the meantime, code should not expect
17945 #if to work with literals wider than 32 bits. */
17946 /* Test literals. */
17947 long long int ll = 9223372036854775807ll;
17948 long long int nll = -9223372036854775807LL;
17949 unsigned long long int ull = 18446744073709551615ULL;
17950 /* Test constant expressions. */
17951 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17953 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17959 /* Test availability of runtime routines for shift and division. */
17960 long long int llmax = 9223372036854775807ll;
17961 unsigned long long int ullmax = 18446744073709551615ull;
17962 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17963 | (llmax / ll) | (llmax % ll)
17964 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17965 | (ullmax / ull) | (ullmax % ull));
17971 if ac_fn_c_try_link
"$LINENO"; then :
17974 ac_cv_type_unsigned_long_long_int
=no
17976 rm -f core conftest.err conftest.
$ac_objext \
17977 conftest
$ac_exeext conftest.
$ac_ext
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17981 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17982 if test $ac_cv_type_unsigned_long_long_int = yes; then
17984 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17991 $as_echo_n "checking for long long int... " >&6; }
17992 if test "${ac_cv_type_long_long_int+set}" = set; then :
17993 $as_echo_n "(cached) " >&6
17995 ac_cv_type_long_long_int
=yes
17996 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17997 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17998 if test $ac_cv_type_long_long_int = yes; then
17999 if test "$cross_compiling" = yes; then :
18002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18003 /* end confdefs.h. */
18004 #include <limits.h>
18007 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18008 # define LLONG_MAX (HALF - 1 + HALF)
18013 long long int n = 1;
18017 long long int m = n << i;
18020 if (LLONG_MAX / 2 < m)
18028 if ac_fn_c_try_run
"$LINENO"; then :
18031 ac_cv_type_long_long_int
=no
18033 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18034 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18041 $as_echo "$ac_cv_type_long_long_int" >&6; }
18042 if test $ac_cv_type_long_long_int = yes; then
18044 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18053 gl_cv_c_multiarch
=no
18054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18056 #ifndef __APPLE_CC__
18057 not a universal capable compiler
18062 if ac_fn_c_try_compile
"$LINENO"; then :
18066 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18067 if test -n "$prev"; then
18069 i?
86 | x86_64 | ppc | ppc64
)
18070 if test -z "$arch" ||
test "$arch" = "$word"; then
18073 gl_cv_c_multiarch
=yes
18079 if test "x$word" = "x-arch"; then
18086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18087 if test $gl_cv_c_multiarch = yes; then
18088 APPLE_UNIVERSAL_BUILD
=1
18090 APPLE_UNIVERSAL_BUILD
=0
18097 if test $ac_cv_type_long_long_int = yes; then
18098 HAVE_LONG_LONG_INT
=1
18100 HAVE_LONG_LONG_INT
=0
18104 if test $ac_cv_type_unsigned_long_long_int = yes; then
18105 HAVE_UNSIGNED_LONG_LONG_INT
=1
18107 HAVE_UNSIGNED_LONG_LONG_INT
=0
18112 if test $ac_cv_header_wchar_h = yes; then
18119 if test $ac_cv_header_inttypes_h = yes; then
18126 if test $ac_cv_header_sys_types_h = yes; then
18142 if test $gl_cv_have_include_next = yes; then
18143 gl_cv_next_stdint_h
='<'stdint.h
'>'
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18146 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18147 if test "${gl_cv_next_stdint_h+set}" = set; then :
18148 $as_echo_n "(cached) " >&6
18151 if test $ac_cv_header_stdint_h = yes; then
18154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18156 #include <stdint.h>
18160 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18161 *) gl_absname_cpp
="$ac_cpp" ;;
18166 gl_dirsep_regex
='[/\\]'
18169 gl_dirsep_regex
='/'
18173 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdint.h|{
18174 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
18179 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18180 sed -n "$gl_absolute_header_sed"`'"'
18182 gl_cv_next_stdint_h
='<'stdint.h
'>'
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18188 $as_echo "$gl_cv_next_stdint_h" >&6; }
18190 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18192 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18194 gl_next_as_first_directive
='<'stdint.h
'>'
18196 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18197 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18199 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18204 if test $ac_cv_header_stdint_h = yes; then
18211 if test $ac_cv_header_stdint_h = yes; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18213 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18214 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18215 $as_echo_n "(cached) " >&6
18217 gl_cv_header_working_stdint_h
=no
18218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18222 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18223 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18224 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18225 #include <stdint.h>
18226 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18227 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18228 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18232 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18233 included before <wchar.h>. */
18234 #include <stddef.h>
18235 #include <signal.h>
18237 # include <stdio.h>
18239 # include <wchar.h>
18244 int8_t a1 = INT8_MAX;
18245 int8_t a1min = INT8_MIN;
18248 int16_t a2 = INT16_MAX;
18249 int16_t a2min = INT16_MIN;
18252 int32_t a3 = INT32_MAX;
18253 int32_t a3min = INT32_MIN;
18256 int64_t a4 = INT64_MAX;
18257 int64_t a4min = INT64_MIN;
18260 uint8_t b1 = UINT8_MAX;
18262 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18265 uint16_t b2 = UINT16_MAX;
18268 uint32_t b3 = UINT32_MAX;
18271 uint64_t b4 = UINT64_MAX;
18273 int_least8_t c1 = INT8_C (0x7f);
18274 int_least8_t c1max = INT_LEAST8_MAX;
18275 int_least8_t c1min = INT_LEAST8_MIN;
18276 int_least16_t c2 = INT16_C (0x7fff);
18277 int_least16_t c2max = INT_LEAST16_MAX;
18278 int_least16_t c2min = INT_LEAST16_MIN;
18279 int_least32_t c3 = INT32_C (0x7fffffff);
18280 int_least32_t c3max = INT_LEAST32_MAX;
18281 int_least32_t c3min = INT_LEAST32_MIN;
18282 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18283 int_least64_t c4max = INT_LEAST64_MAX;
18284 int_least64_t c4min = INT_LEAST64_MIN;
18285 uint_least8_t d1 = UINT8_C (0xff);
18286 uint_least8_t d1max = UINT_LEAST8_MAX;
18287 uint_least16_t d2 = UINT16_C (0xffff);
18288 uint_least16_t d2max = UINT_LEAST16_MAX;
18289 uint_least32_t d3 = UINT32_C (0xffffffff);
18290 uint_least32_t d3max = UINT_LEAST32_MAX;
18291 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18292 uint_least64_t d4max = UINT_LEAST64_MAX;
18293 int_fast8_t e1 = INT_FAST8_MAX;
18294 int_fast8_t e1min = INT_FAST8_MIN;
18295 int_fast16_t e2 = INT_FAST16_MAX;
18296 int_fast16_t e2min = INT_FAST16_MIN;
18297 int_fast32_t e3 = INT_FAST32_MAX;
18298 int_fast32_t e3min = INT_FAST32_MIN;
18299 int_fast64_t e4 = INT_FAST64_MAX;
18300 int_fast64_t e4min = INT_FAST64_MIN;
18301 uint_fast8_t f1 = UINT_FAST8_MAX;
18302 uint_fast16_t f2 = UINT_FAST16_MAX;
18303 uint_fast32_t f3 = UINT_FAST32_MAX;
18304 uint_fast64_t f4 = UINT_FAST64_MAX;
18306 intptr_t g = INTPTR_MAX;
18307 intptr_t gmin = INTPTR_MIN;
18310 uintptr_t h = UINTPTR_MAX;
18312 intmax_t i = INTMAX_MAX;
18313 uintmax_t j = UINTMAX_MAX;
18315 #include <limits.h> /* for CHAR_BIT */
18316 #define TYPE_MINIMUM(t) \
18317 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18318 #define TYPE_MAXIMUM(t) \
18319 ((t) ((t) 0 < (t) -1 \
18321 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18324 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18325 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18327 /* Detect bug in FreeBSD 6.0 / ia64. */
18328 int check_SIG_ATOMIC:
18329 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18330 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18332 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18334 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18335 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18337 /* Detect bug in mingw. */
18339 WINT_MIN == TYPE_MINIMUM (wint_t)
18340 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18343 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18345 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18346 int check_UINT16_C:
18347 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18349 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18351 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18354 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18357 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18360 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18362 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18363 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18364 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18365 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18366 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18367 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18368 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18369 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18370 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18371 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18372 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18383 if ac_fn_c_try_compile
"$LINENO"; then :
18384 if test "$cross_compiling" = yes; then :
18385 gl_cv_header_working_stdint_h
=yes
18388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18392 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
18393 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
18394 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18395 #include <stdint.h>
18398 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18399 included before <wchar.h>. */
18400 #include <stddef.h>
18401 #include <signal.h>
18403 # include <stdio.h>
18405 # include <wchar.h>
18410 #include <string.h>
18411 #define MVAL(macro) MVAL1(macro)
18412 #define MVAL1(expression) #expression
18413 static const char *macro_values[] =
18447 for (mv = macro_values; *mv != NULL; mv++)
18449 const char *value = *mv;
18450 /* Test whether it looks like a cast expression. */
18451 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18452 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18453 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18454 || strncmp (value, "((int)"/*)*/, 6) == 0
18455 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18456 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18457 return mv - macro_values + 1;
18465 if ac_fn_c_try_run
"$LINENO"; then :
18466 gl_cv_header_working_stdint_h
=yes
18468 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18469 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18478 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18480 if test "$gl_cv_header_working_stdint_h" = yes; then
18483 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18485 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18486 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18487 eval as_val
=\$
$as_ac_Header
18488 if test "x$as_val" = x
""yes; then :
18489 cat >>confdefs.h
<<_ACEOF
18490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18497 if test $ac_cv_header_sys_inttypes_h = yes; then
18498 HAVE_SYS_INTTYPES_H
=1
18500 HAVE_SYS_INTTYPES_H
=0
18503 if test $ac_cv_header_sys_bitypes_h = yes; then
18504 HAVE_SYS_BITYPES_H
=1
18506 HAVE_SYS_BITYPES_H
=0
18512 if test $APPLE_UNIVERSAL_BUILD = 0; then
18515 for gltype
in ptrdiff_t size_t
; do
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18517 $as_echo_n "checking for bit size of $gltype... " >&6; }
18518 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18519 $as_echo_n "(cached) " >&6
18521 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18522 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18523 included before <wchar.h>. */
18524 #include <stddef.h>
18525 #include <signal.h>
18527 # include <stdio.h>
18529 # include <wchar.h>
18532 #include <limits.h>"; then :
18538 eval gl_cv_bitsizeof_
${gltype}=\
$result
18541 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18543 $as_echo "$ac_res" >&6; }
18544 eval result
=\
$gl_cv_bitsizeof_${gltype}
18545 if test $result = unknown
; then
18548 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18549 cat >>confdefs.h
<<_ACEOF
18550 #define BITSIZEOF_${GLTYPE} $result
18553 eval BITSIZEOF_
${GLTYPE}=\
$result
18560 for gltype
in sig_atomic_t wchar_t wint_t
; do
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18562 $as_echo_n "checking for bit size of $gltype... " >&6; }
18563 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18564 $as_echo_n "(cached) " >&6
18566 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18567 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18568 included before <wchar.h>. */
18569 #include <stddef.h>
18570 #include <signal.h>
18572 # include <stdio.h>
18574 # include <wchar.h>
18577 #include <limits.h>"; then :
18583 eval gl_cv_bitsizeof_
${gltype}=\
$result
18586 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18588 $as_echo "$ac_res" >&6; }
18589 eval result
=\
$gl_cv_bitsizeof_${gltype}
18590 if test $result = unknown
; then
18593 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18594 cat >>confdefs.h
<<_ACEOF
18595 #define BITSIZEOF_${GLTYPE} $result
18598 eval BITSIZEOF_
${GLTYPE}=\
$result
18604 for gltype
in sig_atomic_t wchar_t wint_t
; do
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18606 $as_echo_n "checking whether $gltype is signed... " >&6; }
18607 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18608 $as_echo_n "(cached) " >&6
18610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18614 included before <wchar.h>. */
18615 #include <stddef.h>
18616 #include <signal.h>
18618 # include <stdio.h>
18620 # include <wchar.h>
18623 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18632 if ac_fn_c_try_compile
"$LINENO"; then :
18637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18638 eval gl_cv_type_
${gltype}_signed
=\
$result
18641 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18643 $as_echo "$ac_res" >&6; }
18644 eval result
=\
$gl_cv_type_${gltype}_signed
18645 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18646 if test "$result" = yes; then
18647 cat >>confdefs.h
<<_ACEOF
18648 #define HAVE_SIGNED_${GLTYPE} 1
18651 eval HAVE_SIGNED_
${GLTYPE}=1
18653 eval HAVE_SIGNED_
${GLTYPE}=0
18658 gl_cv_type_ptrdiff_t_signed
=yes
18659 gl_cv_type_size_t_signed
=no
18660 if test $APPLE_UNIVERSAL_BUILD = 0; then
18663 for gltype
in ptrdiff_t size_t
; do
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18665 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18666 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18667 $as_echo_n "(cached) " >&6
18669 eval gl_cv_type_
${gltype}_suffix
=no
18670 eval result
=\
$gl_cv_type_${gltype}_signed
18671 if test "$result" = yes; then
18676 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18678 '') gltype1
='int';;
18679 l
) gltype1
='long int';;
18680 ll
) gltype1
='long long int';;
18681 i64
) gltype1
='__int64';;
18682 u
) gltype1
='unsigned int';;
18683 ul
) gltype1
='unsigned long int';;
18684 ull
) gltype1
='unsigned long long int';;
18685 ui64
)gltype1
='unsigned __int64';;
18687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h. */
18690 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18691 included before <wchar.h>. */
18692 #include <stddef.h>
18693 #include <signal.h>
18695 # include <stdio.h>
18697 # include <wchar.h>
18700 extern $gltype foo;
18701 extern $gltype1 foo;
18710 if ac_fn_c_try_compile
"$LINENO"; then :
18711 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18714 eval result
=\
$gl_cv_type_${gltype}_suffix
18715 test "$result" != no
&& break
18718 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18720 $as_echo "$ac_res" >&6; }
18721 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18722 eval result
=\
$gl_cv_type_${gltype}_suffix
18723 test "$result" = no
&& result
=
18724 eval ${GLTYPE}_SUFFIX
=\
$result
18725 cat >>confdefs.h
<<_ACEOF
18726 #define ${GLTYPE}_SUFFIX $result
18735 for gltype
in sig_atomic_t wchar_t wint_t
; do
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18737 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18738 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18739 $as_echo_n "(cached) " >&6
18741 eval gl_cv_type_
${gltype}_suffix
=no
18742 eval result
=\
$gl_cv_type_${gltype}_signed
18743 if test "$result" = yes; then
18748 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18750 '') gltype1
='int';;
18751 l
) gltype1
='long int';;
18752 ll
) gltype1
='long long int';;
18753 i64
) gltype1
='__int64';;
18754 u
) gltype1
='unsigned int';;
18755 ul
) gltype1
='unsigned long int';;
18756 ull
) gltype1
='unsigned long long int';;
18757 ui64
)gltype1
='unsigned __int64';;
18759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18762 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18763 included before <wchar.h>. */
18764 #include <stddef.h>
18765 #include <signal.h>
18767 # include <stdio.h>
18769 # include <wchar.h>
18772 extern $gltype foo;
18773 extern $gltype1 foo;
18782 if ac_fn_c_try_compile
"$LINENO"; then :
18783 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18786 eval result
=\
$gl_cv_type_${gltype}_suffix
18787 test "$result" != no
&& break
18790 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18792 $as_echo "$ac_res" >&6; }
18793 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18794 eval result
=\
$gl_cv_type_${gltype}_suffix
18795 test "$result" = no
&& result
=
18796 eval ${GLTYPE}_SUFFIX
=\
$result
18797 cat >>confdefs.h
<<_ACEOF
18798 #define ${GLTYPE}_SUFFIX $result
18805 if test $BITSIZEOF_WINT_T -lt 32; then
18806 BITSIZEOF_WINT_T
=32
18812 if test -n "$STDINT_H"; then
18813 GL_GENERATE_STDINT_H_TRUE
=
18814 GL_GENERATE_STDINT_H_FALSE
='#'
18816 GL_GENERATE_STDINT_H_TRUE
='#'
18817 GL_GENERATE_STDINT_H_FALSE
=
18826 GNULIB_STRTOIMAX
=0;
18827 GNULIB_STRTOUMAX
=0;
18828 HAVE_DECL_IMAXABS
=1;
18829 HAVE_DECL_IMAXDIV
=1;
18830 HAVE_DECL_STRTOIMAX
=1;
18831 HAVE_DECL_STRTOUMAX
=1;
18832 INT32_MAX_LT_INTMAX_MAX
=1;
18833 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18834 PRI_MACROS_BROKEN
=0;
18835 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18836 UINT32_MAX_LT_UINTMAX_MAX
=1;
18837 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18853 if test $gl_cv_have_include_next = yes; then
18854 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18857 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18858 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18859 $as_echo_n "(cached) " >&6
18862 if test $ac_cv_header_inttypes_h = yes; then
18865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18867 #include <inttypes.h>
18871 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18872 *) gl_absname_cpp
="$ac_cpp" ;;
18877 gl_dirsep_regex
='[/\\]'
18880 gl_dirsep_regex
='/'
18884 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'inttypes.h|{
18885 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18890 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18891 sed -n "$gl_absolute_header_sed"`'"'
18893 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18899 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18901 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18903 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18905 gl_next_as_first_directive
='<'inttypes.h
'>'
18907 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18908 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18910 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18919 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18938 GNULIB_UTIMENSAT
=0;
18952 REPLACE_FUTIMENS
=0;
18958 REPLACE_UTIMENSAT
=0;
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18964 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18965 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18966 $as_echo_n "(cached) " >&6
18968 rm -f conftest.sym conftest.
file
18969 echo >conftest.
file
18970 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18971 if test "$cross_compiling" = yes; then :
18972 # When cross-compiling, be pessimistic so we will end up using the
18973 # replacement version of lstat that checks for trailing slashes and
18974 # calls lstat a second time when necessary.
18975 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18979 /* end confdefs.h. */
18980 $ac_includes_default
18985 /* Linux will dereference the symlink and fail, as required by
18986 POSIX. That is better in the sense that it means we will not
18987 have to compile and use the lstat wrapper. */
18988 return lstat ("conftest.sym/", &sbuf) == 0;
18994 if ac_fn_c_try_run
"$LINENO"; then :
18995 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18997 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18999 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19000 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19004 # If the 'ln -s' command failed, then we probably don't even
19005 # have an lstat function.
19006 gl_cv_func_lstat_dereferences_slashed_symlink
=no
19008 rm -f conftest.sym conftest.
file
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19012 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19013 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
19015 cat >>confdefs.h
<<_ACEOF
19016 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19022 GNULIB_NANOSLEEP
=0;
19026 HAVE_DECL_LOCALTIME_R
=1;
19030 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
19031 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
19032 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
19033 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19040 GNULIB_PTHREAD_SIGMASK
=0;
19042 GNULIB_SIGNAL_H_SIGPIPE
=0;
19043 GNULIB_SIGPROCMASK
=0;
19044 GNULIB_SIGACTION
=0;
19045 HAVE_POSIX_SIGNALBLOCKING
=1;
19046 HAVE_PTHREAD_SIGMASK
=1;
19051 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19053 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19055 HAVE_SIGHANDLER_T
=1;
19056 REPLACE_PTHREAD_SIGMASK
=0;
19062 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19063 #include <signal.h>
19064 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19065 #include <sys/types.h>
19068 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19070 cat >>confdefs.h
<<_ACEOF
19071 #define HAVE_SIGSET_T 1
19074 gl_cv_type_sigset_t
=yes
19076 gl_cv_type_sigset_t
=no
19079 if test $gl_cv_type_sigset_t != yes; then
19087 if test $ac_cv_header_sys_socket_h = no
; then
19088 for ac_header
in ws2tcpip.h
19090 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19091 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19092 cat >>confdefs.h
<<_ACEOF
19093 #define HAVE_WS2TCPIP_H 1
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19103 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19104 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19105 $as_echo_n "(cached) " >&6
19107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19110 #include <stdbool.h>
19112 "error: bool is not defined"
19115 "error: false is not defined"
19118 "error: false is not 0"
19121 "error: true is not defined"
19124 "error: true is not 1"
19126 #ifndef __bool_true_false_are_defined
19127 "error: __bool_true_false_are_defined is not defined"
19130 struct s { _Bool s: 1; _Bool t; } s;
19132 char a[true == 1 ? 1 : -1];
19133 char b[false == 0 ? 1 : -1];
19134 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19135 char d[(bool) 0.5 == true ? 1 : -1];
19136 /* See body of main program for 'e'. */
19137 char f[(_Bool) 0.0 == false ? 1 : -1];
19139 char h[sizeof (_Bool)];
19140 char i[sizeof s.t];
19141 enum { j = false, k = true, l = false * true, m = true * 256 };
19142 /* The following fails for
19143 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19145 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19146 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19147 /* Catch a bug in an HP-UX C compiler. See
19148 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19149 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19161 /* Refer to every declared value, to avoid compiler optimizations. */
19162 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19163 + !m + !n + !o + !p + !q + !pq);
19169 if ac_fn_c_try_compile
"$LINENO"; then :
19170 ac_cv_header_stdbool_h
=yes
19172 ac_cv_header_stdbool_h
=no
19174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19177 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19178 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19179 if test "x$ac_cv_type__Bool" = x
""yes; then :
19181 cat >>confdefs.h
<<_ACEOF
19182 #define HAVE__BOOL 1
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19195 $as_echo_n "checking for wchar_t... " >&6; }
19196 if test "${gt_cv_c_wchar_t+set}" = set; then :
19197 $as_echo_n "(cached) " >&6
19199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19201 #include <stddef.h>
19202 wchar_t foo = (wchar_t)'\0';
19211 if ac_fn_c_try_compile
"$LINENO"; then :
19212 gt_cv_c_wchar_t
=yes
19216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19219 $as_echo "$gt_cv_c_wchar_t" >&6; }
19220 if test $gt_cv_c_wchar_t = yes; then
19222 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19235 GNULIB_FPRINTF_POSIX
=0;
19252 GNULIB_OBSTACK_PRINTF
=0;
19253 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19258 GNULIB_PRINTF_POSIX
=0;
19267 GNULIB_SPRINTF_POSIX
=0;
19268 GNULIB_STDIO_H_NONBLOCKING
=0;
19269 GNULIB_STDIO_H_SIGPIPE
=0;
19271 GNULIB_VASPRINTF
=0;
19276 GNULIB_VFPRINTF_POSIX
=0;
19278 GNULIB_VPRINTF_POSIX
=0;
19279 GNULIB_VSNPRINTF
=0;
19280 GNULIB_VSPRINTF_POSIX
=0;
19281 HAVE_DECL_FPURGE
=1;
19282 HAVE_DECL_FSEEKO
=1;
19283 HAVE_DECL_FTELLO
=1;
19284 HAVE_DECL_GETDELIM
=1;
19285 HAVE_DECL_GETLINE
=1;
19286 HAVE_DECL_OBSTACK_PRINTF
=1;
19287 HAVE_DECL_SNPRINTF
=1;
19288 HAVE_DECL_VSNPRINTF
=1;
19309 REPLACE_GETDELIM
=0;
19311 REPLACE_OBSTACK_PRINTF
=0;
19317 REPLACE_RENAMEAT
=0;
19318 REPLACE_SNPRINTF
=0;
19320 REPLACE_STDIO_READ_FUNCS
=0;
19321 REPLACE_STDIO_WRITE_FUNCS
=0;
19323 REPLACE_VASPRINTF
=0;
19324 REPLACE_VDPRINTF
=0;
19325 REPLACE_VFPRINTF
=0;
19327 REPLACE_VSNPRINTF
=0;
19328 REPLACE_VSPRINTF
=0;
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19331 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19332 if test "${ac_cv_struct_tm+set}" = set; then :
19333 $as_echo_n "(cached) " >&6
19335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h. */
19337 #include <sys/types.h>
19344 int *p = &tm.tm_sec;
19350 if ac_fn_c_try_compile
"$LINENO"; then :
19351 ac_cv_struct_tm
=time.h
19353 ac_cv_struct_tm
=sys
/time.h
19355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19358 $as_echo "$ac_cv_struct_tm" >&6; }
19359 if test $ac_cv_struct_tm = sys
/time.h
; then
19361 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19365 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19366 #include <$ac_cv_struct_tm>
19369 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19371 cat >>confdefs.h
<<_ACEOF
19372 #define HAVE_STRUCT_TM_TM_ZONE 1
19378 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19380 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19383 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19385 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19391 cat >>confdefs.h
<<_ACEOF
19392 #define HAVE_DECL_TZNAME $ac_have_decl
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19396 $as_echo_n "checking for tzname... " >&6; }
19397 if test "${ac_cv_var_tzname+set}" = set; then :
19398 $as_echo_n "(cached) " >&6
19400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19403 #if !HAVE_DECL_TZNAME
19404 extern char *tzname[];
19410 return tzname[0][0];
19415 if ac_fn_c_try_link
"$LINENO"; then :
19416 ac_cv_var_tzname
=yes
19418 ac_cv_var_tzname
=no
19420 rm -f core conftest.err conftest.
$ac_objext \
19421 conftest
$ac_exeext conftest.
$ac_ext
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19424 $as_echo "$ac_cv_var_tzname" >&6; }
19425 if test $ac_cv_var_tzname = yes; then
19427 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19433 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19435 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19437 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19446 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19447 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19453 cat >>confdefs.h
<<_ACEOF
19454 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19459 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19460 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19466 cat >>confdefs.h
<<_ACEOF
19467 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19473 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19474 if test "${ac_cv_header_stat_broken+set}" = set; then :
19475 $as_echo_n "(cached) " >&6
19477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 #include <sys/types.h>
19480 #include <sys/stat.h>
19482 #if defined S_ISBLK && defined S_IFDIR
19483 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19486 #if defined S_ISBLK && defined S_IFCHR
19487 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19490 #if defined S_ISLNK && defined S_IFREG
19491 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19494 #if defined S_ISSOCK && defined S_IFREG
19495 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19499 if ac_fn_c_try_compile
"$LINENO"; then :
19500 ac_cv_header_stat_broken
=no
19502 ac_cv_header_stat_broken
=yes
19504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19507 $as_echo "$ac_cv_header_stat_broken" >&6; }
19508 if test $ac_cv_header_stat_broken = yes; then
19510 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19516 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19517 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19521 cat >>confdefs.h
<<_ACEOF
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19528 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19529 if test "${ac_cv_c_restrict+set}" = set; then :
19530 $as_echo_n "(cached) " >&6
19532 ac_cv_c_restrict
=no
19533 # The order here caters to the fact that C++ does not require restrict.
19534 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
19535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19537 typedef int * int_ptr;
19538 int foo (int_ptr $ac_kw ip) {
19545 int * $ac_kw t = s;
19552 if ac_fn_c_try_compile
"$LINENO"; then :
19553 ac_cv_c_restrict
=$ac_kw
19555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19556 test "$ac_cv_c_restrict" != no
&& break
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19561 $as_echo "$ac_cv_c_restrict" >&6; }
19563 case $ac_cv_c_restrict in
19565 no
) $as_echo "#define restrict /**/" >>confdefs.h
19567 *) cat >>confdefs.h
<<_ACEOF
19568 #define restrict $ac_cv_c_restrict
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19578 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19579 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19580 $as_echo_n "(cached) " >&6
19582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h. */
19589 static struct timespec x; x.tv_sec = x.tv_nsec;
19594 if ac_fn_c_try_compile
"$LINENO"; then :
19595 gl_cv_sys_struct_timespec_in_time_h
=yes
19597 gl_cv_sys_struct_timespec_in_time_h
=no
19599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19602 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19604 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19605 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19606 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19607 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19608 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19611 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19612 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h. */
19617 #include <sys/time.h>
19622 static struct timespec x; x.tv_sec = x.tv_nsec;
19627 if ac_fn_c_try_compile
"$LINENO"; then :
19628 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19630 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19635 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19636 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19637 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19640 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19641 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19642 $as_echo_n "(cached) " >&6
19644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h. */
19646 #include <pthread.h>
19651 static struct timespec x; x.tv_sec = x.tv_nsec;
19656 if ac_fn_c_try_compile
"$LINENO"; then :
19657 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19659 gl_cv_sys_struct_timespec_in_pthread_h
=no
19661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19664 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19665 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19666 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19685 if test $gl_cv_have_include_next = yes; then
19686 gl_cv_next_time_h
='<'time.h
'>'
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19689 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19690 if test "${gl_cv_next_time_h+set}" = set; then :
19691 $as_echo_n "(cached) " >&6
19694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h. */
19700 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19701 *) gl_absname_cpp
="$ac_cpp" ;;
19706 gl_dirsep_regex
='[/\\]'
19709 gl_dirsep_regex
='/'
19713 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'time.h|{
19714 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19719 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19720 sed -n "$gl_absolute_header_sed"`'"'
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19725 $as_echo "$gl_cv_next_time_h" >&6; }
19727 NEXT_TIME_H
=$gl_cv_next_time_h
19729 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19731 gl_next_as_first_directive
='<'time.h
'>'
19733 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19734 gl_next_as_first_directive
=$gl_cv_next_time_h
19736 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19743 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19744 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
19750 cat >>confdefs.h
<<_ACEOF
19751 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19758 GL_COND_LIBTOOL_TRUE
=
19759 GL_COND_LIBTOOL_FALSE
='#'
19761 GL_COND_LIBTOOL_TRUE
='#'
19762 GL_COND_LIBTOOL_FALSE
=
19765 gl_cond_libtool
=false
19778 gl_source_base
='lib'
19781 if test $ac_cv_func_alloca_works = no
; then
19785 # Define an additional variable used in the Makefile substitution.
19786 if test $ac_cv_working_alloca_h = yes; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19788 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19789 if test "${gl_cv_rpl_alloca+set}" = set; then :
19790 $as_echo_n "(cached) " >&6
19793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19794 /* end confdefs.h. */
19796 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19802 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
19803 gl_cv_rpl_alloca
=yes
19805 gl_cv_rpl_alloca
=no
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19812 $as_echo "$gl_cv_rpl_alloca" >&6; }
19813 if test $gl_cv_rpl_alloca = yes; then
19815 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19825 if test -n "$ALLOCA_H"; then
19826 GL_GENERATE_ALLOCA_H_TRUE
=
19827 GL_GENERATE_ALLOCA_H_FALSE
='#'
19829 GL_GENERATE_ALLOCA_H_TRUE
='#'
19830 GL_GENERATE_ALLOCA_H_FALSE
=
19859 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19862 if test $HAVE_DUP2 = 1; then
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19864 $as_echo_n "checking whether dup2 works... " >&6; }
19865 if test "${gl_cv_func_dup2_works+set}" = set; then :
19866 $as_echo_n "(cached) " >&6
19868 if test "$cross_compiling" = yes; then :
19870 mingw
*) # on this platform, dup2 always returns 0 for success
19871 gl_cv_func_dup2_works
=no
;;
19872 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19873 gl_cv_func_dup2_works
=no
;;
19874 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19875 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19876 gl_cv_func_dup2_works
=no
;;
19877 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19878 gl_cv_func_dup2_works
=no
;;
19879 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19880 gl_cv_func_dup2_works
=no
;;
19881 *) gl_cv_func_dup2_works
=yes;;
19884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h. */
19887 #include <unistd.h>
19895 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19898 if (dup2 (1, 1) == 0)
19901 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19905 if (dup2 (0, 0) != -1)
19907 /* Many gnulib modules require POSIX conformance of EBADF. */
19908 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19917 if ac_fn_c_try_run
"$LINENO"; then :
19918 gl_cv_func_dup2_works
=yes
19920 gl_cv_func_dup2_works
=no
19922 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19923 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19929 $as_echo "$gl_cv_func_dup2_works" >&6; }
19930 if test "$gl_cv_func_dup2_works" = no
; then
19936 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
19945 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19966 # Persuade glibc <stdlib.h> to declare getloadavg().
19971 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19972 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19974 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19975 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
19978 gl_func_getloadavg_done
=no
19980 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19981 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19982 # to get the right answer into the cache.
19983 # For kstat on solaris, we need to test for libelf and libkvm to force the
19984 # definition of SVR4 below.
19985 if test $gl_func_getloadavg_done = no
; then
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19987 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19988 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19989 $as_echo_n "(cached) " >&6
19991 ac_check_lib_save_LIBS
=$LIBS
19993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19996 /* Override any GCC internal prototype to avoid an error.
19997 Use char because int might match the return type of a GCC
19998 builtin and then its argument prototype would still apply. */
20006 return elf_begin ();
20011 if ac_fn_c_try_link
"$LINENO"; then :
20012 ac_cv_lib_elf_elf_begin
=yes
20014 ac_cv_lib_elf_elf_begin
=no
20016 rm -f core conftest.err conftest.
$ac_objext \
20017 conftest
$ac_exeext conftest.
$ac_ext
20018 LIBS
=$ac_check_lib_save_LIBS
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20021 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20022 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20027 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20028 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20029 $as_echo_n "(cached) " >&6
20031 ac_check_lib_save_LIBS
=$LIBS
20033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20034 /* end confdefs.h. */
20036 /* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20046 return kvm_open ();
20051 if ac_fn_c_try_link
"$LINENO"; then :
20052 ac_cv_lib_kvm_kvm_open
=yes
20054 ac_cv_lib_kvm_kvm_open
=no
20056 rm -f core conftest.err conftest.
$ac_objext \
20057 conftest
$ac_exeext conftest.
$ac_ext
20058 LIBS
=$ac_check_lib_save_LIBS
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20061 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20062 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20066 # Check for the 4.4BSD definition of getloadavg.
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20068 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20069 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20070 $as_echo_n "(cached) " >&6
20072 ac_check_lib_save_LIBS
=$LIBS
20073 LIBS
="-lutil $LIBS"
20074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20083 char getloadavg ();
20087 return getloadavg ();
20092 if ac_fn_c_try_link
"$LINENO"; then :
20093 ac_cv_lib_util_getloadavg
=yes
20095 ac_cv_lib_util_getloadavg
=no
20097 rm -f core conftest.err conftest.
$ac_objext \
20098 conftest
$ac_exeext conftest.
$ac_ext
20099 LIBS
=$ac_check_lib_save_LIBS
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20102 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20103 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20104 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20109 if test $gl_func_getloadavg_done = no
; then
20110 # There is a commonly available library for RS/6000 AIX.
20111 # Since it is not a standard part of AIX, it might be installed locally.
20112 gl_getloadavg_LIBS
=$LIBS
20113 LIBS
="-L/usr/local/lib $LIBS"
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20115 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20116 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20117 $as_echo_n "(cached) " >&6
20119 ac_check_lib_save_LIBS
=$LIBS
20120 LIBS
="-lgetloadavg $LIBS"
20121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20124 /* Override any GCC internal prototype to avoid an error.
20125 Use char because int might match the return type of a GCC
20126 builtin and then its argument prototype would still apply. */
20130 char getloadavg ();
20134 return getloadavg ();
20139 if ac_fn_c_try_link
"$LINENO"; then :
20140 ac_cv_lib_getloadavg_getloadavg
=yes
20142 ac_cv_lib_getloadavg_getloadavg
=no
20144 rm -f core conftest.err conftest.
$ac_objext \
20145 conftest
$ac_exeext conftest.
$ac_ext
20146 LIBS
=$ac_check_lib_save_LIBS
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20149 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20150 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20151 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20153 LIBS
=$gl_getloadavg_LIBS
20158 # Set up the replacement function if necessary.
20159 if test $gl_func_getloadavg_done = no
; then
20162 # Solaris has libkstat which does not require root.
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20164 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20165 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20166 $as_echo_n "(cached) " >&6
20168 ac_check_lib_save_LIBS
=$LIBS
20169 LIBS
="-lkstat $LIBS"
20170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h. */
20173 /* Override any GCC internal prototype to avoid an error.
20174 Use char because int might match the return type of a GCC
20175 builtin and then its argument prototype would still apply. */
20179 char kstat_open ();
20183 return kstat_open ();
20188 if ac_fn_c_try_link
"$LINENO"; then :
20189 ac_cv_lib_kstat_kstat_open
=yes
20191 ac_cv_lib_kstat_kstat_open
=no
20193 rm -f core conftest.err conftest.
$ac_objext \
20194 conftest
$ac_exeext conftest.
$ac_ext
20195 LIBS
=$ac_check_lib_save_LIBS
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20198 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20199 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20200 cat >>confdefs.h
<<_ACEOF
20201 #define HAVE_LIBKSTAT 1
20204 LIBS
="-lkstat $LIBS"
20208 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20210 # AIX has libperfstat which does not require root
20211 if test $gl_func_getloadavg_done = no
; then
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20213 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20214 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20215 $as_echo_n "(cached) " >&6
20217 ac_check_lib_save_LIBS
=$LIBS
20218 LIBS
="-lperfstat $LIBS"
20219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20220 /* end confdefs.h. */
20222 /* Override any GCC internal prototype to avoid an error.
20223 Use char because int might match the return type of a GCC
20224 builtin and then its argument prototype would still apply. */
20228 char perfstat_cpu_total ();
20232 return perfstat_cpu_total ();
20237 if ac_fn_c_try_link
"$LINENO"; then :
20238 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20240 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20242 rm -f core conftest.err conftest.
$ac_objext \
20243 conftest
$ac_exeext conftest.
$ac_ext
20244 LIBS
=$ac_check_lib_save_LIBS
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20247 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20248 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20249 cat >>confdefs.h
<<_ACEOF
20250 #define HAVE_LIBPERFSTAT 1
20253 LIBS
="-lperfstat $LIBS"
20257 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20260 if test $gl_func_getloadavg_done = no
; then
20261 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20262 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20263 gl_func_getloadavg_done
=yes
20265 $as_echo "#define DGUX 1" >>confdefs.h
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20268 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20269 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20272 ac_check_lib_save_LIBS
=$LIBS
20274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20283 char dg_sys_info ();
20287 return dg_sys_info ();
20292 if ac_fn_c_try_link
"$LINENO"; then :
20293 ac_cv_lib_dgc_dg_sys_info
=yes
20295 ac_cv_lib_dgc_dg_sys_info
=no
20297 rm -f core conftest.err conftest.
$ac_objext \
20298 conftest
$ac_exeext conftest.
$ac_ext
20299 LIBS
=$ac_check_lib_save_LIBS
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20302 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20303 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20304 cat >>confdefs.h
<<_ACEOF
20305 #define HAVE_LIBDGC 1
20320 if test "x$gl_save_LIBS" = x
; then
20321 GETLOADAVG_LIBS
=$LIBS
20323 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20328 # Test whether the system declares getloadavg. Solaris has the function
20329 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20330 for ac_header
in sys
/loadavg.h
20332 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20333 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20334 cat >>confdefs.h
<<_ACEOF
20335 #define HAVE_SYS_LOADAVG_H 1
20342 if test $ac_cv_header_sys_loadavg_h = yes; then
20343 HAVE_SYS_LOADAVG_H
=1
20345 HAVE_SYS_LOADAVG_H
=0
20347 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20348 # include <sys/loadavg.h>
20350 #include <stdlib.h>
20352 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20355 HAVE_DECL_GETLOADAVG
=0
20359 if test $HAVE_GETLOADAVG = 0; then
20368 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20371 # Figure out what our getloadavg.c needs.
20373 # On HPUX9, an unprivileged user can get load averages this way.
20374 if test $gl_func_getloadavg_done = no
; then
20375 for ac_func
in pstat_getdynamic
20377 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20378 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20379 cat >>confdefs.h
<<_ACEOF
20380 #define HAVE_PSTAT_GETDYNAMIC 1
20382 gl_func_getloadavg_done
=yes
20388 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20389 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20390 # Irix 4.0.5F has the header but not the library.
20391 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20392 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20393 gl_func_getloadavg_done
=yes
20395 $as_echo "#define SVR4 1" >>confdefs.h
20399 if test $gl_func_getloadavg_done = no
; then
20400 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20401 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20402 gl_func_getloadavg_done
=yes
20404 $as_echo "#define UMAX 1" >>confdefs.h
20407 $as_echo "#define UMAX4_3 1" >>confdefs.h
20414 if test $gl_func_getloadavg_done = no
; then
20415 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20416 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20417 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20424 if test $gl_func_getloadavg_done = no
; then
20425 for ac_header
in mach
/mach.h
20427 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20428 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20429 cat >>confdefs.h
<<_ACEOF
20430 #define HAVE_MACH_MACH_H 1
20439 for ac_header
in nlist.h
20441 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20442 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20443 cat >>confdefs.h
<<_ACEOF
20444 #define HAVE_NLIST_H 1
20446 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20448 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20450 cat >>confdefs.h
<<_ACEOF
20451 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20464 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20465 x.n_un.n_name = "";
20473 if ac_fn_c_try_link
"$LINENO"; then :
20475 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20478 rm -f core conftest.err conftest.
$ac_objext \
20479 conftest
$ac_exeext conftest.
$ac_ext
20491 GNULIB_GETLOADAVG
=1
20502 if test $REPLACE_GETOPT = 1; then
20511 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20521 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20535 if test -n "$gl_replace_getopt"; then :
20542 if test $REPLACE_GETOPT = 1; then
20546 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20550 GNULIB_UNISTD_H_GETOPT
=1
20553 if test $REPLACE_GETOPT = 1; then
20562 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
20572 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
20583 if test $ac_cv_func_lstat = yes; then
20585 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no
; then
20592 if test $REPLACE_LSTAT = 1; then
20601 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20625 if test $APPLE_UNIVERSAL_BUILD = 1; then
20626 # A universal build on Apple MacOS X platforms.
20627 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20628 # But we need a configuration result that is valid in both modes.
20629 gl_cv_func_working_mktime
=no
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20632 $as_echo_n "checking for working mktime... " >&6; }
20633 if test "${gl_cv_func_working_mktime+set}" = set; then :
20634 $as_echo_n "(cached) " >&6
20636 if test "$cross_compiling" = yes; then :
20637 gl_cv_func_working_mktime
=no
20639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20640 /* end confdefs.h. */
20641 /* Test program from Paul Eggert and Tony Leneis. */
20642 #include <limits.h>
20643 #include <stdlib.h>
20646 #ifdef HAVE_UNISTD_H
20647 # include <unistd.h>
20651 # define alarm(X) /* empty */
20654 /* Work around redefinition to rpl_putenv by other config tests. */
20657 static time_t time_t_max;
20658 static time_t time_t_min;
20660 /* Values we'll use to set the TZ environment variable. */
20661 static char *tz_strings[] = {
20662 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20663 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20665 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20667 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20668 Based on a problem report from Andreas Jaeger. */
20670 spring_forward_gap ()
20672 /* glibc (up to about 1998-10-07) failed this test. */
20675 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20676 instead of "TZ=America/Vancouver" in order to detect the bug even
20677 on systems that don't support the Olson extension, or don't have the
20678 full zoneinfo tables installed. */
20679 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20688 return mktime (&tm) != (time_t) -1;
20692 mktime_test1 (time_t now)
20695 return ! (lt = localtime (&now)) || mktime (lt) == now;
20699 mktime_test (time_t now)
20701 return (mktime_test1 (now)
20702 && mktime_test1 ((time_t) (time_t_max - now))
20703 && mktime_test1 ((time_t) (time_t_min + now)));
20709 /* Based on code from Ariel Faigon. */
20719 return tm.tm_mon == 2 && tm.tm_mday == 31;
20723 bigtime_test (int j)
20727 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20728 now = mktime (&tm);
20729 if (now != (time_t) -1)
20731 struct tm *lt = localtime (&now);
20733 && lt->tm_year == tm.tm_year
20734 && lt->tm_mon == tm.tm_mon
20735 && lt->tm_mday == tm.tm_mday
20736 && lt->tm_hour == tm.tm_hour
20737 && lt->tm_min == tm.tm_min
20738 && lt->tm_sec == tm.tm_sec
20739 && lt->tm_yday == tm.tm_yday
20740 && lt->tm_wday == tm.tm_wday
20741 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20742 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20751 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20752 ignoring leap seconds. */
20753 unsigned long int answer = 2527315200UL;
20757 tm.tm_year = 2050 - 1900;
20760 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20763 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20764 instead of "TZ=America/Vancouver" in order to detect the bug even
20765 on systems that don't support the Olson extension, or don't have the
20766 full zoneinfo tables installed. */
20767 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20771 /* Check that the result is either a failure, or close enough
20772 to the correct answer that we can assume the discrepancy is
20773 due to leap seconds. */
20774 return (t == (time_t) -1
20775 || (0 < t && answer - 120 <= t && t <= answer + 120));
20784 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20785 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20787 /* This test makes some buggy mktime implementations loop.
20788 Give up after 60 seconds; a mktime slower than that
20789 isn't worth using anyway. */
20792 time_t_max = (! time_t_signed
20794 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20796 time_t_min = (! time_t_signed
20798 : time_t_signed_magnitude
20802 delta = time_t_max / 997; /* a suitable prime number */
20803 for (i = 0; i < N_STRINGS; i++)
20806 putenv (tz_strings[i]);
20808 for (t = 0; t <= time_t_max - delta; t += delta)
20809 if (! mktime_test (t))
20811 if (! (mktime_test ((time_t) 1)
20812 && mktime_test ((time_t) (60 * 60))
20813 && mktime_test ((time_t) (60 * 60 * 24))))
20816 for (j = 1; ; j <<= 1)
20817 if (! bigtime_test (j))
20819 else if (INT_MAX / 2 < j)
20821 if (! bigtime_test (INT_MAX))
20824 if (! irix_6_4_bug ())
20826 if (! spring_forward_gap ())
20828 if (! year_2050_test ())
20833 if ac_fn_c_try_run
"$LINENO"; then :
20834 gl_cv_func_working_mktime
=yes
20836 gl_cv_func_working_mktime
=no
20838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20839 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20845 $as_echo "$gl_cv_func_working_mktime" >&6; }
20847 if test $gl_cv_func_working_mktime = no
; then
20853 if test $REPLACE_MKTIME = 1; then
20862 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
20882 LIB_PTHREAD_SIGMASK
=
20885 if test $ac_cv_func_pthread_sigmask = yes; then
20888 HAVE_PTHREAD_SIGMASK
=0
20889 REPLACE_PTHREAD_SIGMASK
=1
20895 if test $HAVE_PTHREAD_SIGMASK = 1; then
20898 if test -z "$LIB_PTHREAD_SIGMASK"; then
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20900 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20901 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20902 $as_echo_n "(cached) " >&6
20905 if test "$cross_compiling" = yes; then :
20908 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
20909 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
20911 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
20915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20916 /* end confdefs.h. */
20918 #include <pthread.h>
20919 #include <signal.h>
20920 #include <stddef.h>
20924 sigemptyset (&set);
20925 return pthread_sigmask (1729, &set, NULL) != 0;
20928 if ac_fn_c_try_run
"$LINENO"; then :
20929 gl_cv_func_pthread_sigmask_in_libc_works
=no
20931 gl_cv_func_pthread_sigmask_in_libc_works
=yes
20933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20940 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20941 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20943 REPLACE_PTHREAD_SIGMASK
=1
20945 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20952 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20953 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20954 $as_echo_n "(cached) " >&6
20957 gl_save_LIBS
="$LIBS"
20958 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
20959 if test "$cross_compiling" = yes; then :
20962 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
20964 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
20968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h. */
20971 #include <pthread.h>
20972 #include <signal.h>
20973 #include <stddef.h>
20977 sigemptyset (&set);
20978 if (pthread_sigmask (1729, &set, NULL) == -1)
20983 if ac_fn_c_try_run
"$LINENO"; then :
20984 gl_cv_func_pthread_sigmask_return_works
=yes
20986 gl_cv_func_pthread_sigmask_return_works
=no
20988 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20989 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20992 LIBS
="$gl_save_LIBS"
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20996 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20997 case "$gl_cv_func_pthread_sigmask_return_works" in
20999 REPLACE_PTHREAD_SIGMASK
=1
21001 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21007 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21008 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21009 $as_echo_n "(cached) " >&6
21014 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21016 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21018 gl_save_LIBS
="$LIBS"
21019 LIBS
="$LIBS $LIBMULTITHREAD"
21020 if test "$cross_compiling" = yes; then :
21023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21024 /* end confdefs.h. */
21026 #include <pthread.h>
21027 #include <signal.h>
21029 #include <stdlib.h>
21030 #include <unistd.h>
21031 static volatile int sigint_occurred;
21033 sigint_handler (int sig)
21040 int pid = getpid ();
21042 signal (SIGINT, sigint_handler);
21043 sigemptyset (&set);
21044 sigaddset (&set, SIGINT);
21045 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21047 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21048 if (!(system (command) == 0))
21051 if (!(sigint_occurred == 0))
21053 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21055 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21060 if ac_fn_c_try_run
"$LINENO"; then :
21063 gl_cv_func_pthread_sigmask_unblock_works
=no
21065 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21066 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21069 LIBS
="$gl_save_LIBS"
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21073 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21074 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21076 REPLACE_PTHREAD_SIGMASK
=1
21078 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21084 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21093 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21096 if test $HAVE_PTHREAD_SIGMASK = 1; then
21098 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21108 GNULIB_PTHREAD_SIGMASK
=1
21117 if test $ac_cv_func_readlink = no
; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21121 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21122 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21123 $as_echo_n "(cached) " >&6
21125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21126 /* end confdefs.h. */
21127 #include <unistd.h>
21128 /* Cause compilation failure if original declaration has wrong type. */
21129 ssize_t readlink (const char *, char *, size_t);
21138 if ac_fn_c_try_compile
"$LINENO"; then :
21139 gl_cv_decl_readlink_works
=yes
21141 gl_cv_decl_readlink_works
=no
21143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21146 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21148 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21149 if test "${gl_cv_func_readlink_works+set}" = set; then :
21150 $as_echo_n "(cached) " >&6
21152 # We have readlink, so assume ln -s works.
21153 ln -s conftest.no-such conftest.link
21154 ln -s conftest.link conftest.lnk2
21155 if test "$cross_compiling" = yes; then :
21156 gl_cv_func_readlink_works
="guessing no"
21158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21160 #include <unistd.h>
21166 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21171 if ac_fn_c_try_run
"$LINENO"; then :
21172 gl_cv_func_readlink_works
=yes
21174 gl_cv_func_readlink_works
=no
21176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21180 rm -f conftest.link conftest.lnk2
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21183 $as_echo "$gl_cv_func_readlink_works" >&6; }
21184 if test "$gl_cv_func_readlink_works" != yes; then
21186 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21189 elif test "$gl_cv_decl_readlink_works" != yes; then
21194 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21203 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21231 if test $gl_cv_have_include_next = yes; then
21232 gl_cv_next_signal_h
='<'signal.h
'>'
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21235 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21236 if test "${gl_cv_next_signal_h+set}" = set; then :
21237 $as_echo_n "(cached) " >&6
21240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21241 /* end confdefs.h. */
21242 #include <signal.h>
21246 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21247 *) gl_absname_cpp
="$ac_cpp" ;;
21252 gl_dirsep_regex
='[/\\]'
21255 gl_dirsep_regex
='/'
21259 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'signal.h|{
21260 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
21265 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21266 sed -n "$gl_absolute_header_sed"`'"'
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
21271 $as_echo "$gl_cv_next_signal_h" >&6; }
21273 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
21275 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21277 gl_next_as_first_directive
='<'signal.h
'>'
21279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21280 gl_next_as_first_directive
=$gl_cv_next_signal_h
21282 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
21288 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
21289 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
21290 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
21291 #include <signal.h>
21294 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
21297 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
21306 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
21307 #include <signal.h>
21310 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
21313 HAVE_SIGHANDLER_T
=0
21319 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21320 /* <sys/types.h> is not needed according to POSIX, but the
21321 <sys/socket.h> in i386-unknown-freebsd4.10 and
21322 powerpc-apple-darwin5.5 required it. */
21323 #include <sys/types.h>
21324 #if HAVE_SYS_SOCKET_H
21325 # include <sys/socket.h>
21326 #elif HAVE_WS2TCPIP_H
21327 # include <ws2tcpip.h>
21331 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
21335 $as_echo_n "checking for socklen_t equivalent... " >&6; }
21336 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
21337 $as_echo_n "(cached) " >&6
21339 # Systems have either "struct sockaddr *" or
21340 # "void *" as the second argument to getpeername
21341 gl_cv_socklen_t_equiv
=
21342 for arg2
in "struct sockaddr" void
; do
21343 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
21344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h. */
21346 #include <sys/types.h>
21347 #include <sys/socket.h>
21349 int getpeername (int, $arg2 *, $t *);
21354 getpeername (0, 0, &len);
21359 if ac_fn_c_try_compile
"$LINENO"; then :
21360 gl_cv_socklen_t_equiv
="$t"
21362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21363 test "$gl_cv_socklen_t_equiv" != "" && break
21365 test "$gl_cv_socklen_t_equiv" != "" && break
21370 if test "$gl_cv_socklen_t_equiv" = ""; then
21371 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
21374 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
21376 cat >>confdefs.h
<<_ACEOF
21377 #define socklen_t $gl_cv_socklen_t_equiv
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21384 $as_echo_n "checking for ssize_t... " >&6; }
21385 if test "${gt_cv_ssize_t+set}" = set; then :
21386 $as_echo_n "(cached) " >&6
21388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21389 /* end confdefs.h. */
21390 #include <sys/types.h>
21394 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21400 if ac_fn_c_try_compile
"$LINENO"; then :
21405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21408 $as_echo "$gt_cv_ssize_t" >&6; }
21409 if test $gt_cv_ssize_t = no
; then
21411 $as_echo "#define ssize_t int" >>confdefs.h
21417 NEXT_STDARG_H
='<stdarg.h>'
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21419 $as_echo_n "checking for va_copy... " >&6; }
21420 if test "${gl_cv_func_va_copy+set}" = set; then :
21421 $as_echo_n "(cached) " >&6
21424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h. */
21426 #include <stdarg.h>
21432 void (*func) (va_list, va_list) = va_copy;
21439 if ac_fn_c_try_compile
"$LINENO"; then :
21440 gl_cv_func_va_copy
=yes
21442 gl_cv_func_va_copy
=no
21444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21448 $as_echo "$gl_cv_func_va_copy" >&6; }
21449 if test $gl_cv_func_va_copy = no
; then
21450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h. */
21452 #if defined _AIX && !defined __GNUC__
21457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21458 $EGREP "vaccine" >/dev
/null
2>&1; then :
21465 if test $gl_aixcc = yes; then
21475 if test $gl_cv_have_include_next = yes; then
21476 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21479 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
21480 if test "${gl_cv_next_stdarg_h+set}" = set; then :
21481 $as_echo_n "(cached) " >&6
21484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21486 #include <stdarg.h>
21490 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21491 *) gl_absname_cpp
="$ac_cpp" ;;
21496 gl_dirsep_regex
='[/\\]'
21499 gl_dirsep_regex
='/'
21503 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdarg.h|{
21504 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
21509 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21510 sed -n "$gl_absolute_header_sed"`'"'
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21515 $as_echo "$gl_cv_next_stdarg_h" >&6; }
21517 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
21519 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21520 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21521 gl_next_as_first_directive
='<'stdarg.h
'>'
21523 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21524 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
21526 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
21531 if test "$gl_cv_next_stdarg_h" = '""'; then
21532 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
21533 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
21537 saved_as_echo_n
="$as_echo_n"
21539 if test "${gl_cv_func___va_copy+set}" = set; then :
21540 $as_echo_n "(cached) " >&6
21543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h. */
21545 #include <stdarg.h>
21558 if ac_fn_c_try_compile
"$LINENO"; then :
21559 gl_cv_func___va_copy
=yes
21561 gl_cv_func___va_copy
=no
21563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21566 as_echo_n
="$saved_as_echo_n"
21568 if test $gl_cv_func___va_copy = yes; then
21570 $as_echo "#define va_copy __va_copy" >>confdefs.h
21575 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21581 if test -n "$STDARG_H"; then
21582 GL_GENERATE_STDARG_H_TRUE
=
21583 GL_GENERATE_STDARG_H_FALSE
='#'
21585 GL_GENERATE_STDARG_H_TRUE
='#'
21586 GL_GENERATE_STDARG_H_FALSE
=
21594 # Define two additional variables used in the Makefile substitution.
21596 if test "$ac_cv_header_stdbool_h" = yes; then
21599 STDBOOL_H
='stdbool.h'
21602 if test -n "$STDBOOL_H"; then
21603 GL_GENERATE_STDBOOL_H_TRUE
=
21604 GL_GENERATE_STDBOOL_H_FALSE
='#'
21606 GL_GENERATE_STDBOOL_H_TRUE
='#'
21607 GL_GENERATE_STDBOOL_H_FALSE
=
21611 if test "$ac_cv_type__Bool" = yes; then
21622 if test $gt_cv_c_wchar_t = no
; then
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21627 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21628 if test "${gl_cv_decl_null_works+set}" = set; then :
21629 $as_echo_n "(cached) " >&6
21631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21632 /* end confdefs.h. */
21633 #include <stddef.h>
21634 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21644 if ac_fn_c_try_compile
"$LINENO"; then :
21645 gl_cv_decl_null_works
=yes
21647 gl_cv_decl_null_works
=no
21649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21652 $as_echo "$gl_cv_decl_null_works" >&6; }
21653 if test $gl_cv_decl_null_works = no
; then
21658 if test -n "$STDDEF_H"; then
21659 GL_GENERATE_STDDEF_H_TRUE
=
21660 GL_GENERATE_STDDEF_H_FALSE
='#'
21662 GL_GENERATE_STDDEF_H_TRUE
='#'
21663 GL_GENERATE_STDDEF_H_FALSE
=
21666 if test -n "$STDDEF_H"; then
21675 if test $gl_cv_have_include_next = yes; then
21676 gl_cv_next_stddef_h
='<'stddef.h
'>'
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21679 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21680 if test "${gl_cv_next_stddef_h+set}" = set; then :
21681 $as_echo_n "(cached) " >&6
21684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21685 /* end confdefs.h. */
21686 #include <stddef.h>
21690 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21691 *) gl_absname_cpp
="$ac_cpp" ;;
21696 gl_dirsep_regex
='[/\\]'
21699 gl_dirsep_regex
='/'
21703 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stddef.h|{
21704 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21709 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21710 sed -n "$gl_absolute_header_sed"`'"'
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21715 $as_echo "$gl_cv_next_stddef_h" >&6; }
21717 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
21719 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21721 gl_next_as_first_directive
='<'stddef.h
'>'
21723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21724 gl_next_as_first_directive
=$gl_cv_next_stddef_h
21726 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
21745 if test $gl_cv_have_include_next = yes; then
21746 gl_cv_next_stdio_h
='<'stdio.h
'>'
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21749 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21750 if test "${gl_cv_next_stdio_h+set}" = set; then :
21751 $as_echo_n "(cached) " >&6
21754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21760 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21761 *) gl_absname_cpp
="$ac_cpp" ;;
21766 gl_dirsep_regex
='[/\\]'
21769 gl_dirsep_regex
='/'
21773 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdio.h|{
21774 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21779 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21780 sed -n "$gl_absolute_header_sed"`'"'
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21785 $as_echo "$gl_cv_next_stdio_h" >&6; }
21787 NEXT_STDIO_H
=$gl_cv_next_stdio_h
21789 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21790 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21791 gl_next_as_first_directive
='<'stdio.h
'>'
21793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21794 gl_next_as_first_directive
=$gl_cv_next_stdio_h
21796 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
21837 if test $gl_cv_have_include_next = yes; then
21838 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21841 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21842 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h. */
21848 #include <stdlib.h>
21852 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21853 *) gl_absname_cpp
="$ac_cpp" ;;
21858 gl_dirsep_regex
='[/\\]'
21861 gl_dirsep_regex
='/'
21865 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'stdlib.h|{
21866 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21871 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21872 sed -n "$gl_absolute_header_sed"`'"'
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21877 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21879 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
21881 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21882 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21883 gl_next_as_first_directive
='<'stdlib.h
'>'
21885 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21886 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
21888 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
21898 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21906 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21915 if test "$ac_cv_have_decl_strtoimax" != yes; then
21916 HAVE_DECL_STRTOIMAX
=0
21919 if test $ac_cv_func_strtoimax = no
; then
21928 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
21931 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21932 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
21938 cat >>confdefs.h
<<_ACEOF
21939 #define HAVE_DECL_STRTOLL $ac_have_decl
21960 if test "$ac_cv_have_decl_strtoumax" != yes; then
21961 HAVE_DECL_STRTOUMAX
=0
21964 if test $ac_cv_func_strtoumax = no
; then
21973 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
21976 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21977 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
21983 cat >>confdefs.h
<<_ACEOF
21984 #define HAVE_DECL_STRTOULL $ac_have_decl
22003 if test $ac_cv_func_symlink = no
; then
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
22007 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
22008 if test "${gl_cv_func_symlink_works+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22011 if test "$cross_compiling" = yes; then :
22012 gl_cv_func_symlink_works
="guessing no"
22014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22016 #include <unistd.h>
22022 if (!symlink ("a", "conftest.link/"))
22024 if (symlink ("conftest.f", "conftest.lnk2"))
22026 else if (!symlink ("a", "conftest.lnk2/"))
22034 if ac_fn_c_try_run
"$LINENO"; then :
22035 gl_cv_func_symlink_works
=yes
22037 gl_cv_func_symlink_works
=no
22039 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22040 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22043 rm -f conftest.f conftest.link conftest.lnk2
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
22046 $as_echo "$gl_cv_func_symlink_works" >&6; }
22047 if test "$gl_cv_func_symlink_works" != yes; then
22052 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
22061 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
22091 if test $gl_cv_have_include_next = yes; then
22092 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
22095 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
22096 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
22097 $as_echo_n "(cached) " >&6
22100 if test $ac_cv_header_sys_stat_h = yes; then
22103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22104 /* end confdefs.h. */
22105 #include <sys/stat.h>
22109 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22110 *) gl_absname_cpp
="$ac_cpp" ;;
22115 gl_dirsep_regex
='[/\\]'
22118 gl_dirsep_regex
='/'
22122 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'sys/stat.h|{
22123 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
22128 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22129 sed -n "$gl_absolute_header_sed"`'"'
22131 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
22137 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
22139 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
22141 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22142 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22143 gl_next_as_first_directive
='<'sys
/stat.h
'>'
22145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22146 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
22148 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
22156 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
22157 #include <sys/stat.h>
22159 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
22163 $as_echo "#define nlink_t int" >>confdefs.h
22181 if test $ac_cv_have_decl_localtime_r = no
; then
22182 HAVE_DECL_LOCALTIME_R
=0
22186 if test $ac_cv_func_localtime_r = yes; then
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
22189 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
22190 if test "${gl_cv_time_r_posix+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22194 /* end confdefs.h. */
22199 /* We don't need to append 'restrict's to the argument types,
22200 even though the POSIX signature has the 'restrict's,
22201 since C99 says they can't affect type compatibility. */
22202 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
22204 /* Check the return type is a pointer.
22205 On HP-UX 10 it is 'int'. */
22206 *localtime_r (0, 0);
22212 if ac_fn_c_try_compile
"$LINENO"; then :
22213 gl_cv_time_r_posix
=yes
22215 gl_cv_time_r_posix
=no
22217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
22221 $as_echo "$gl_cv_time_r_posix" >&6; }
22222 if test $gl_cv_time_r_posix = yes; then
22223 REPLACE_LOCALTIME_R
=0
22225 REPLACE_LOCALTIME_R
=1
22231 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
22240 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
22271 if test $gl_cv_have_include_next = yes; then
22272 gl_cv_next_unistd_h
='<'unistd.h
'>'
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
22275 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
22276 if test "${gl_cv_next_unistd_h+set}" = set; then :
22277 $as_echo_n "(cached) " >&6
22280 if test $ac_cv_header_unistd_h = yes; then
22283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h. */
22285 #include <unistd.h>
22289 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22290 *) gl_absname_cpp
="$ac_cpp" ;;
22295 gl_dirsep_regex
='[/\\]'
22298 gl_dirsep_regex
='/'
22302 gl_absolute_header_sed
='\|'"${gl_dirsep_regex}"'unistd.h|{
22303 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
22308 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22309 sed -n "$gl_absolute_header_sed"`'"'
22311 gl_cv_next_unistd_h
='<'unistd.h
'>'
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
22317 $as_echo "$gl_cv_next_unistd_h" >&6; }
22319 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
22321 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22323 gl_next_as_first_directive
='<'unistd.h
'>'
22325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22326 gl_next_as_first_directive
=$gl_cv_next_unistd_h
22328 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
22333 if test $ac_cv_header_unistd_h = yes; then
22345 gl_gnulib_enabled_dosname
=false
22346 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
22347 gl_gnulib_enabled_pathmax
=false
22348 gl_gnulib_enabled_sigprocmask
=false
22349 gl_gnulib_enabled_stat
=false
22350 gl_gnulib_enabled_strtoll
=false
22351 gl_gnulib_enabled_strtoull
=false
22352 gl_gnulib_enabled_verify
=false
22353 func_gl_gnulib_m4code_dosname
()
22355 if ! $gl_gnulib_enabled_dosname; then
22356 gl_gnulib_enabled_dosname
=true
22359 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
22361 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22364 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
22367 func_gl_gnulib_m4code_pathmax
()
22369 if ! $gl_gnulib_enabled_pathmax; then
22373 gl_gnulib_enabled_pathmax
=true
22376 func_gl_gnulib_m4code_sigprocmask
()
22378 if ! $gl_gnulib_enabled_sigprocmask; then
22382 if test $gl_cv_type_sigset_t = yes; then
22383 ac_fn_c_check_func
"$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22384 if test "x$ac_cv_func_sigprocmask" = x
""yes; then :
22385 gl_cv_func_sigprocmask
=1
22389 if test -z "$gl_cv_func_sigprocmask"; then
22390 HAVE_POSIX_SIGNALBLOCKING
=0
22393 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22402 gl_LIBOBJS
="$gl_LIBOBJS sigprocmask.$ac_objext"
22413 GNULIB_SIGPROCMASK
=1
22419 gl_gnulib_enabled_sigprocmask
=true
22422 func_gl_gnulib_m4code_stat
()
22424 if ! $gl_gnulib_enabled_stat; then
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22429 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22430 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
22431 $as_echo_n "(cached) " >&6
22433 if test "$cross_compiling" = yes; then :
22435 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
22436 *) gl_cv_func_stat_dir_slash
="guessing yes";;
22439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22440 /* end confdefs.h. */
22441 #include <sys/stat.h>
22446 struct stat st; return stat (".", &st) != stat ("./", &st);
22451 if ac_fn_c_try_run
"$LINENO"; then :
22452 gl_cv_func_stat_dir_slash
=yes
22454 gl_cv_func_stat_dir_slash
=no
22456 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22457 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22462 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22464 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22465 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
22466 $as_echo_n "(cached) " >&6
22469 # Assume that if we have lstat, we can also check symlinks.
22470 if test $ac_cv_func_lstat = yes; then
22471 ln -s conftest.tmp conftest.lnk
22473 if test "$cross_compiling" = yes; then :
22474 gl_cv_func_stat_file_slash
="guessing no"
22476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22477 /* end confdefs.h. */
22478 #include <sys/stat.h>
22485 if (!stat ("conftest.tmp/", &st))
22488 if (!stat ("conftest.lnk/", &st))
22497 if ac_fn_c_try_run
"$LINENO"; then :
22498 gl_cv_func_stat_file_slash
=yes
22500 gl_cv_func_stat_file_slash
=no
22502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22506 rm -f conftest.tmp conftest.lnk
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22509 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22510 case $gl_cv_func_stat_dir_slash in
22511 *no
) REPLACE_STAT
=1
22513 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22516 case $gl_cv_func_stat_file_slash in
22517 *no
) REPLACE_STAT
=1
22519 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22523 if test $REPLACE_STAT = 1; then
22532 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
22550 gl_gnulib_enabled_stat
=true
22551 if test $REPLACE_STAT = 1; then
22552 func_gl_gnulib_m4code_dosname
22554 if test $REPLACE_STAT = 1; then
22555 func_gl_gnulib_m4code_pathmax
22557 if test $REPLACE_STAT = 1; then
22558 func_gl_gnulib_m4code_verify
22562 func_gl_gnulib_m4code_strtoll
()
22564 if ! $gl_gnulib_enabled_strtoll; then
22568 if test "$ac_cv_type_long_long_int" = yes; then
22569 for ac_func
in strtoll
22571 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
22572 if test "x$ac_cv_func_strtoll" = x
""yes; then :
22573 cat >>confdefs.h
<<_ACEOF
22574 #define HAVE_STRTOLL 1
22580 if test $ac_cv_func_strtoll = no
; then
22585 if test $HAVE_STRTOLL = 0; then
22594 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
22611 gl_gnulib_enabled_strtoll
=true
22614 func_gl_gnulib_m4code_strtoull
()
22616 if ! $gl_gnulib_enabled_strtoull; then
22620 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22621 for ac_func
in strtoull
22623 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
22624 if test "x$ac_cv_func_strtoull" = x
""yes; then :
22625 cat >>confdefs.h
<<_ACEOF
22626 #define HAVE_STRTOULL 1
22632 if test $ac_cv_func_strtoull = no
; then
22637 if test $HAVE_STRTOULL = 0; then
22646 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
22663 gl_gnulib_enabled_strtoull
=true
22666 func_gl_gnulib_m4code_verify
()
22668 if ! $gl_gnulib_enabled_verify; then
22669 gl_gnulib_enabled_verify
=true
22672 if test $REPLACE_GETOPT = 1; then
22673 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22675 if test $REPLACE_LSTAT = 1; then
22676 func_gl_gnulib_m4code_dosname
22678 if test $REPLACE_LSTAT = 1; then
22679 func_gl_gnulib_m4code_stat
22681 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
22682 func_gl_gnulib_m4code_sigprocmask
22684 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22685 func_gl_gnulib_m4code_stat
22687 if test $ac_cv_func_strtoimax = no
; then
22688 func_gl_gnulib_m4code_verify
22690 if test $ac_cv_func_strtoimax = no
&& test $ac_cv_type_long_long_int = yes; then
22691 func_gl_gnulib_m4code_strtoll
22693 if test $ac_cv_func_strtoumax = no
; then
22694 func_gl_gnulib_m4code_verify
22696 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
22697 func_gl_gnulib_m4code_strtoull
22700 if $gl_gnulib_enabled_dosname; then
22701 gl_GNULIB_ENABLED_dosname_TRUE
=
22702 gl_GNULIB_ENABLED_dosname_FALSE
='#'
22704 gl_GNULIB_ENABLED_dosname_TRUE
='#'
22705 gl_GNULIB_ENABLED_dosname_FALSE
=
22708 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22709 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
22710 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
22712 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
22713 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
22716 if $gl_gnulib_enabled_pathmax; then
22717 gl_GNULIB_ENABLED_pathmax_TRUE
=
22718 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
22720 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
22721 gl_GNULIB_ENABLED_pathmax_FALSE
=
22724 if $gl_gnulib_enabled_sigprocmask; then
22725 gl_GNULIB_ENABLED_sigprocmask_TRUE
=
22726 gl_GNULIB_ENABLED_sigprocmask_FALSE
='#'
22728 gl_GNULIB_ENABLED_sigprocmask_TRUE
='#'
22729 gl_GNULIB_ENABLED_sigprocmask_FALSE
=
22732 if $gl_gnulib_enabled_stat; then
22733 gl_GNULIB_ENABLED_stat_TRUE
=
22734 gl_GNULIB_ENABLED_stat_FALSE
='#'
22736 gl_GNULIB_ENABLED_stat_TRUE
='#'
22737 gl_GNULIB_ENABLED_stat_FALSE
=
22740 if $gl_gnulib_enabled_strtoll; then
22741 gl_GNULIB_ENABLED_strtoll_TRUE
=
22742 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
22744 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
22745 gl_GNULIB_ENABLED_strtoll_FALSE
=
22748 if $gl_gnulib_enabled_strtoull; then
22749 gl_GNULIB_ENABLED_strtoull_TRUE
=
22750 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
22752 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
22753 gl_GNULIB_ENABLED_strtoull_FALSE
=
22756 if $gl_gnulib_enabled_verify; then
22757 gl_GNULIB_ENABLED_verify_TRUE
=
22758 gl_GNULIB_ENABLED_verify_FALSE
='#'
22760 gl_GNULIB_ENABLED_verify_TRUE
='#'
22761 gl_GNULIB_ENABLED_verify_FALSE
=
22764 # End of code from modules
22785 gl_source_base
='tests'
22786 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
22788 gl_module_indicator_condition
=$gltests_WITNESS
22799 LIBGNU_LIBDEPS
="$gl_libdeps"
22801 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
22806 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
22809 ## The -headerpad option tells ld (see man page) to leave room at the
22810 ## end of the header for adding load commands. Needed for dumping.
22811 ## 0x690 is the total size of 30 segment load commands (at 56
22812 ## each); under Cocoa 31 commands are required.
22813 if test "$HAVE_NS" = "yes"; then
22814 libs_nsgui
="-framework AppKit"
22815 headerpad_extra
=6C8
22818 headerpad_extra
=690
22820 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22822 ## This is here because src/Makefile.in did some extra fiddling around
22823 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22824 ## #ifndef LD_SWITCH_SYSTEM
22825 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22826 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22827 ## not using gcc, darwin system not on an alpha (ie darwin, since
22828 ## darwin + alpha does not occur).
22829 ## Because this was done in src/Makefile.in, the resulting part of
22830 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22831 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22832 ## rather than LD_SWITCH_SYSTEM.
22833 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22834 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
22837 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22838 ## find X at run-time.
22839 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22840 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22841 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22842 ## had different values in configure (in ac_link) and src/Makefile.in.
22843 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22844 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22846 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
22849 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22850 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22859 ## gnu: GNU needs its own crt0.
22860 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
22862 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22863 ## library search parth, i.e. it won't search /usr/lib for libc and
22864 ## friends. Using -nostartfiles instead avoids this problem, and
22865 ## will also work on earlier NetBSD releases.
22866 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
22868 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22869 ## MkLinux/LinuxPPC needs this.
22870 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22873 macppc|ibms390x
) LD_FIRSTFLAG
="-nostdlib" ;;
22879 if test "x$ORDINARY_LINK" = "xyes"; then
22883 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22886 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22887 ## freebsd, gnu-* not on macppc|ibms390x.
22888 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22890 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22891 ## places that are difficult to figure out at make time. Fortunately,
22892 ## these same versions allow you to pass arbitrary flags on to the
22893 ## linker, so there is no reason not to use it as a linker.
22895 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22896 ## searching for libraries in its internal directories, so we have to
22897 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22898 LD_FIRSTFLAG
="-nostdlib"
22901 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22902 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
22907 ## FIXME? The logic here is not precisely the same as that above.
22908 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22909 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22911 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22914 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
22917 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22918 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22924 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22925 ## immediately undefine it again and redefine it to empty.
22926 ## Was the C_SWITCH_X_SITE part really necessary?
22927 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22933 ## Ask GCC where to find libgcc.a.
22934 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22939 ## If we're using X11/GNUstep, define some consequences.
22940 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
22942 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22945 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22952 #### Report on what we decided to do.
22953 #### Report GTK as a toolkit, even if it doesn't use Xt.
22954 #### It makes printing result more understandable as using GTK sets
22955 #### toolkit_scroll_bars to yes by default.
22956 if test "${HAVE_GTK}" = "yes"; then
22961 if test -n "$machfile"; then
22962 and_machfile
=" and \`${machfile}'"
22966 Configured for \`${canonical}'.
22968 Where should the build process find the source code? ${srcdir}
22969 What operating system and machine description files should Emacs use?
22970 \`${opsysfile}'${and_machfile}
22971 What compiler should emacs be built with? ${CC} ${CFLAGS}
22972 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22973 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22974 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22975 What window system should Emacs use? ${window_system}
22976 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22978 if test -n "${x_includes}"; then
22979 echo " Where do we find X Windows header files? ${x_includes}"
22981 echo " Where do we find X Windows header files? Standard dirs"
22983 if test -n "${x_libraries}"; then
22984 echo " Where do we find X Windows libraries? ${x_libraries}"
22986 echo " Where do we find X Windows libraries? Standard dirs"
22989 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22990 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22991 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22992 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22993 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22994 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22995 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22996 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22998 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22999 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23000 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
23001 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
23002 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
23003 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
23004 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
23006 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23007 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23008 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23009 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23011 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23014 if test -n "${EMACSDATA}"; then
23015 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23017 if test -n "${EMACSDOC}"; then
23018 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23021 if test $USE_XASSERTS = yes; then
23022 echo " Compiling with asserts turned on."
23023 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23028 if test "$HAVE_NS" = "yes"; then
23030 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23031 The installed application will go to nextstep/Emacs.app and can be
23032 run or moved from there."
23033 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23034 echo "The application will be fully self-contained."
23036 echo "The lisp resources for the application will be installed under ${prefix}.
23037 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23038 to run if these resources are not installed."
23043 if test "${opsys}" = "cygwin"; then
23045 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23046 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23052 # Remove any trailing slashes in these variables.
23053 test "${prefix}" != NONE
&&
23054 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23055 test "${exec_prefix}" != NONE
&&
23056 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23058 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"
23060 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"
23063 opt_makefile
=test
/automated
/Makefile
23065 if test -f $srcdir/${opt_makefile}.
in; then
23066 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23067 ac_config_files
="$ac_config_files test/automated/Makefile"
23072 opt_makefile
=admin
/unidata
/Makefile
23074 if test -f $srcdir/${opt_makefile}.
in; then
23075 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
23076 ac_config_files
="$ac_config_files admin/unidata/Makefile"
23081 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23085 ac_config_commands
="$ac_config_commands mkdirs"
23088 ac_config_commands
="$ac_config_commands epaths"
23091 ac_config_commands
="$ac_config_commands gdbinit"
23094 cat >confcache
<<\_ACEOF
23095 # This file is a shell script that caches the results of configure
23096 # tests run on this system so they can be shared between configure
23097 # scripts and configure runs, see configure's option --config-cache.
23098 # It is not useful on other systems. If it contains results you don't
23099 # want to keep, you may remove or edit it.
23101 # config.status only pays attention to the cache file if you give it
23102 # the --recheck option to rerun configure.
23104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23106 # following values.
23110 # The following way of writing the cache mishandles newlines in values,
23111 # but we know of no workaround that is simple, portable, and efficient.
23112 # So, we kill variables containing newlines.
23113 # Ultrix sh set writes to stderr and can't be redirected directly,
23114 # and sets the high bit in the cache file unless we assign to the vars.
23116 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23117 eval ac_val
=\$
$ac_var
23121 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23125 _ | IFS | as_nl
) ;; #(
23126 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
23127 *) { eval $ac_var=; unset $ac_var;} ;;
23133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23134 *${as_nl}ac_space
=\
*)
23135 # `set' does not quote correctly, so add quotes: double-quote
23136 # substitution turns \\\\ into \\, and sed turns \\ into \.
23139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23142 # `set' quotes correctly as required by POSIX, so do not add quotes.
23143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23156 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
23157 if test -w "$cache_file"; then
23158 test "x$cache_file" != "x/dev/null" &&
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23160 $as_echo "$as_me: updating cache $cache_file" >&6;}
23161 cat confcache
>$cache_file
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23164 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23169 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23170 # Let make expand exec_prefix.
23171 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23173 DEFS
=-DHAVE_CONFIG_H
23177 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23178 # 1. Remove the extension, and $U if already installed.
23179 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
23180 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
23181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23182 # will be set to the directory where LIBOBJS objects are built.
23183 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23184 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
23186 LIBOBJS
=$ac_libobjs
23188 LTLIBOBJS
=$ac_ltlibobjs
23191 if test -n "$EXEEXT"; then
23193 am__EXEEXT_FALSE
='#'
23195 am__EXEEXT_TRUE
='#'
23199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23200 as_fn_error
"conditional \"AMDEP\" was never defined.
23201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23204 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
23205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23208 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23209 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
23210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23212 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23213 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23217 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23218 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
23219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23221 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23222 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
23223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23225 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23226 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23229 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23230 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23233 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23234 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23237 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23238 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23241 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23242 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23245 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
23246 as_fn_error
"conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
23247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23249 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23250 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23253 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23254 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23257 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23258 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23261 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23262 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23268 if test -n "$gl_LIBOBJS"; then
23269 # Remove the extension.
23270 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23271 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23272 gl_libobjs
="$gl_libobjs $i.$ac_objext"
23273 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
23276 gl_LIBOBJS
=$gl_libobjs
23278 gl_LTLIBOBJS
=$gl_ltlibobjs
23284 if test -n "$gltests_LIBOBJS"; then
23285 # Remove the extension.
23286 sed_drop_objext
='s/\.o$//;s/\.obj$//'
23287 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23288 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
23289 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
23292 gltests_LIBOBJS
=$gltests_libobjs
23294 gltests_LTLIBOBJS
=$gltests_ltlibobjs
23298 : ${CONFIG_STATUS=./config.status}
23300 ac_clean_files_save
=$ac_clean_files
23301 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23303 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23305 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23307 # Generated by $as_me.
23308 # Run this file to recreate the current configuration.
23309 # Compiler output produced by configure, useful for debugging
23310 # configure, is in config.log if it exists.
23313 ac_cs_recheck=false
23316 SHELL=\${CONFIG_SHELL-$SHELL}
23319 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
23320 ## -------------------- ##
23321 ## M4sh Initialization. ##
23322 ## -------------------- ##
23324 # Be more Bourne compatible
23325 DUALCASE
=1; export DUALCASE
# for MKS sh
23326 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
23329 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23330 # is contrary to our usage. Disable this feature.
23331 alias -g '${1+"$@"}'='"$@"'
23332 setopt NO_GLOB_SUBST
23334 case `(set -o) 2>/dev/null` in #(
23346 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23347 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23350 # Prefer a ksh shell builtin over an external printf program on Solaris,
23351 # but without wasting forks for bash or zsh.
23352 if test -z "$BASH_VERSION$ZSH_VERSION" \
23353 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23354 as_echo='print
-r --'
23355 as_echo_n='print
-rn --'
23356 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23357 as_echo='printf %s
\n'
23358 as_echo_n='printf %s
'
23360 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23361 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
23362 as_echo_n='/usr
/ucb
/echo -n'
23364 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23365 as_echo_n_body='eval
23369 expr "X$arg" : "X\\(.*\\)$as_nl";
23370 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23372 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
23374 export as_echo_n_body
23375 as_echo_n='sh
-c $as_echo_n_body as_echo
'
23377 export as_echo_body
23378 as_echo='sh
-c $as_echo_body as_echo
'
23381 # The user is always right.
23382 if test "${PATH_SEPARATOR+set}" != set; then
23384 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23385 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23392 # We need space, tab and new line, in precisely that order. Quoting is
23393 # there to prevent editors from complaining about space-tab.
23394 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23395 # splitting by setting IFS to empty value.)
23398 # Find who we are. Look in the path if we contain no directory separator.
23400 *[\\/]* ) as_myself=$0 ;;
23401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23402 for as_dir in $PATH
23405 test -z "$as_dir" && as_dir=.
23406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23412 # We did not find ourselves, most probably we were run as `sh COMMAND'
23413 # in which case we are not to be found in the path.
23414 if test "x$as_myself" = x
; then
23417 if test ! -f "$as_myself"; then
23418 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23422 # Unset variables that we do not need and which cause bugs (e.g. in
23423 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23424 # suppresses any "Segmentation fault" message there. '((' could
23425 # trigger a bug in pdksh 5.2.14.
23426 for as_var
in BASH_ENV ENV MAIL MAILPATH
23427 do eval test x\
${$as_var+set} = xset \
23428 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
23441 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
23444 # as_fn_error ERROR [LINENO LOG_FD]
23445 # ---------------------------------
23446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23448 # script with status $?, using 1 if that was 0.
23451 as_status
=$?
; test $as_status -eq 0 && as_status
=1
23453 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
23454 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23456 $as_echo "$as_me: error: $1" >&2
23457 as_fn_exit
$as_status
23461 # as_fn_set_status STATUS
23462 # -----------------------
23463 # Set $? to STATUS, without forking.
23464 as_fn_set_status
()
23467 } # as_fn_set_status
23469 # as_fn_exit STATUS
23470 # -----------------
23471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23475 as_fn_set_status
$1
23481 # Portably unset VAR.
23484 { eval $1=; unset $1;}
23486 as_unset
=as_fn_unset
23487 # as_fn_append VAR VALUE
23488 # ----------------------
23489 # Append the text in VALUE to the end of the definition contained in VAR. Take
23490 # advantage of any shell optimizations that allow amortized linear growth over
23491 # repeated appends, instead of the typical quadratic growth present in naive
23493 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
23494 eval 'as_fn_append ()
23505 # as_fn_arith ARG...
23506 # ------------------
23507 # Perform arithmetic evaluation on the ARGs, and store the result in the
23508 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23509 # must be portable across $(()) and expr.
23510 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
23511 eval 'as_fn_arith ()
23518 as_val
=`expr "$@" || test $? -eq 1`
23523 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23524 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23530 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23531 as_basename
=basename
23536 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23542 as_me
=`$as_basename -- "$0" ||
23543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23544 X"$0" : 'X\(//\)$' \| \
23545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23547 sed '/^.*\/\([^/][^/]*\)\/*$/{
23561 # Avoid depending upon Character Ranges.
23562 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23563 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23564 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23565 as_cr_digits
='0123456789'
23566 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23568 ECHO_C
= ECHO_N
= ECHO_T
=
23569 case `echo -n x` in #(((((
23571 case `echo 'xy\c'` in
23572 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23574 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
23581 rm -f conf$$ conf$$.exe conf$$.
file
23582 if test -d conf$$.dir
; then
23583 rm -f conf$$.dir
/conf$$.
file
23586 mkdir conf$$.dir
2>/dev
/null
23588 if (echo >conf$$.
file) 2>/dev
/null
; then
23589 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23591 # ... but there are two gotchas:
23592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23594 # In both cases, we have to default to `cp -p'.
23595 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23597 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23605 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23606 rmdir conf$$.dir
2>/dev
/null
23611 # Create "$as_dir" as a directory, including parents if necessary.
23616 -*) as_dir
=.
/$as_dir;;
23618 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
23622 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23623 *) as_qdir
=$as_dir;;
23625 as_dirs
="'$as_qdir' $as_dirs"
23626 as_dir
=`$as_dirname -- "$as_dir" ||
23627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23628 X"$as_dir" : 'X\(//\)[^/]' \| \
23629 X"$as_dir" : 'X\(//\)$' \| \
23630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23631 $as_echo X"$as_dir" |
23632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23636 /^X\(\/\/\)[^/].*/{
23649 test -d "$as_dir" && break
23651 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23652 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
23656 if mkdir
-p .
2>/dev
/null
; then
23657 as_mkdir_p
='mkdir -p "$as_dir"'
23659 test -d .
/-p && rmdir .
/-p
23663 if test -x / >/dev
/null
2>&1; then
23664 as_test_x
='test -x'
23666 if ls -dL / >/dev
/null
2>&1; then
23673 if test -d "$1"; then
23679 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23680 ???[sx]*):;;*)false;;esac;fi
23684 as_executable_p
=$as_test_x
23686 # Sed expression to map a string onto a valid CPP name.
23687 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23689 # Sed expression to map a string onto a valid variable name.
23690 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23694 ## ----------------------------------- ##
23695 ## Main body of $CONFIG_STATUS script. ##
23696 ## ----------------------------------- ##
23698 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
23700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23701 # Save the log message, to keep $0 and so on meaningful, and to
23702 # report actual input values of CONFIG_FILES etc. instead of their
23703 # values after options handling.
23705 This file was extended by emacs $as_me 24.1.50, which was
23706 generated by GNU Autoconf 2.65. Invocation command line was
23708 CONFIG_FILES = $CONFIG_FILES
23709 CONFIG_HEADERS = $CONFIG_HEADERS
23710 CONFIG_LINKS = $CONFIG_LINKS
23711 CONFIG_COMMANDS = $CONFIG_COMMANDS
23714 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23719 case $ac_config_files in *"
23720 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
23723 case $ac_config_headers in *"
23724 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
23728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23729 # Files that config.status was made for.
23730 config_files="$ac_config_files"
23731 config_headers="$ac_config_headers"
23732 config_commands="$ac_config_commands"
23736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23738 \`$as_me' instantiates files and other configuration actions
23739 from templates according to the current configuration. Unless the files
23740 and actions are specified as TAGs, all are instantiated by default.
23742 Usage: $0 [OPTION]... [TAG]...
23744 -h, --help print this help, then exit
23745 -V, --version print version number and configuration settings, then exit
23746 --config print configuration, then exit
23747 -q, --quiet, --silent
23748 do not print progress messages
23749 -d, --debug don't remove temporary files
23750 --recheck update $as_me by reconfiguring in the same conditions
23751 --file=FILE[:TEMPLATE]
23752 instantiate the configuration file FILE
23753 --header=FILE[:TEMPLATE]
23754 instantiate the configuration header FILE
23756 Configuration files:
23759 Configuration headers:
23762 Configuration commands:
23765 Report bugs to the package provider."
23768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23769 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23771 emacs config.status 24.1.50
23772 configured by $0, generated by GNU Autoconf 2.65,
23773 with options \\"\$ac_cs_config\\"
23775 Copyright (C) 2009 Free Software Foundation, Inc.
23776 This config.status script is free software; the Free Software Foundation
23777 gives unlimited permission to copy, distribute and modify it."
23784 test -n "\$AWK" || AWK=awk
23787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23788 # The default lists apply if the user does not specify any file.
23794 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23795 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23806 # Handling of the options.
23807 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23809 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23810 $as_echo "$ac_cs_version"; exit ;;
23811 --config |
--confi |
--conf |
--con |
--co |
--c )
23812 $as_echo "$ac_cs_config"; exit ;;
23813 --debug |
--debu |
--deb |
--de |
--d |
-d )
23815 --file |
--fil |
--fi |
--f )
23818 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23820 as_fn_append CONFIG_FILES
" '$ac_optarg'"
23821 ac_need_defaults
=false
;;
23822 --header |
--heade |
--head |
--hea )
23825 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23827 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
23828 ac_need_defaults
=false
;;
23830 # Conflict between --help and --header
23831 as_fn_error
"ambiguous option: \`$1'
23832 Try \`$0 --help' for more information.";;
23833 --help |
--hel |
-h )
23834 $as_echo "$ac_cs_usage"; exit ;;
23835 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23836 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23839 # This is an error.
23840 -*) as_fn_error
"unrecognized option: \`$1'
23841 Try \`$0 --help' for more information." ;;
23843 *) as_fn_append ac_config_targets
" $1"
23844 ac_need_defaults
=false
;;
23850 ac_configure_extra_args
=
23852 if $ac_cs_silent; then
23854 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23859 if \$ac_cs_recheck; then
23860 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23862 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23863 CONFIG_SHELL='$SHELL'
23864 export CONFIG_SHELL
23869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23874 ## Running $as_me. ##
23880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23884 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23885 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
23891 # Handling of arguments.
23892 for ac_config_target
in $ac_config_targets
23894 case $ac_config_target in
23895 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23896 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
23897 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23898 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
23899 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
23900 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23901 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
23902 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
23903 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
23904 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
23905 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
23906 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23907 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23908 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23909 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
23910 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
23911 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
23912 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
23913 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
23915 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23920 # If the user did not use the arguments to specify the items to instantiate,
23921 # then the envvar interface is used. Set only those that are not.
23922 # We use the long form for the default assignment because of an extremely
23923 # bizarre bug on SunOS 4.1.3.
23924 if $ac_need_defaults; then
23925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23930 # Have a temporary directory for convenience. Make it in the build tree
23931 # simply because there is no reason against having it here, and in addition,
23932 # creating and moving files from /tmp can sometimes cause problems.
23933 # Hook for its removal unless debugging.
23934 # Note that there is a small window in which the directory will not be cleaned:
23935 # after its creation but before its name has been assigned to `$tmp'.
23939 trap 'exit_status=$?
23940 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23942 trap 'as_fn_exit 1' 1 2 13 15
23944 # Create a (secure) tmp directory for tmp files.
23947 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23948 test -n "$tmp" && test -d "$tmp"
23951 tmp
=.
/conf$$
-$RANDOM
23952 (umask 077 && mkdir
"$tmp")
23953 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
23955 # Set up the scripts for CONFIG_FILES section.
23956 # No need to generate them if there are no CONFIG_FILES.
23957 # This happens for instance with `./config.status config.h'.
23958 if test -n "$CONFIG_FILES"; then
23960 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
23961 ac_cs_awk_getline
=:
23962 ac_cs_awk_pipe_init
=
23963 ac_cs_awk_read_file
='
23964 while ((getline aline < (F[key])) > 0)
23967 ac_cs_awk_pipe_fini
=
23969 ac_cs_awk_getline
=false
23970 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
23971 ac_cs_awk_read_file
='
23973 print "cat " F[key] " &&"
23974 '$ac_cs_awk_pipe_init
23975 # The final `:' finishes the AND list.
23976 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
23978 ac_cr
=`echo X | tr X '\015'`
23979 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23980 # But we know of no other shell where ac_cr would be empty at this
23981 # point, so we can use a bashism as a fallback.
23982 if test "x$ac_cr" = x
; then
23983 eval ac_cr
=\$
\'\\r
\'
23985 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23986 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23989 ac_cs_awk_cr
=$ac_cr
23992 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23995 # Create commands to substitute file output variables.
23997 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23998 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23999 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
24002 } >conf$
$files.sh
&&
24003 . .
/conf$
$files.sh ||
24004 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
24005 rm -f conf$
$files.sh
24008 echo "cat >conf$$subs.awk <<_ACEOF" &&
24009 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24011 } >conf$$subs.sh ||
24012 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24013 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24015 for ac_last_try in false false false false false :; do
24016 . ./conf$$subs.sh ||
24017 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24019 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
24020 if test $ac_delim_n = $ac_delim_num; then
24022 elif $ac_last_try; then
24023 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
24025 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24028 rm -f conf$$subs.sh
24030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24031 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
24035 s/^/S["/; s
/!.
*/"]=/
24045 s/\(.\{148\}\)..*/\1/
24047 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
24052 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24059 s/\(.\{148\}\)..*/\1/
24061 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
24065 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
24070 ' <conf$$subs.awk | sed '
24075 ' >>$CONFIG_STATUS || ac_write_fail=1
24076 rm -f conf$$subs.awk
24077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24079 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
24080 for (key in S) S_is_set[key] = 1
24082 \$ac_cs_awk_pipe_init
24086 nfields = split(line, field, "@
")
24088 len = length(field[1])
24089 for (i = 2; i < nfields; i++) {
24091 keylen = length(key)
24092 if (S_is_set[key]) {
24094 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24095 len += length(value) + length(field[++i])
24100 if (nfields == 3 && !substed) {
24102 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24103 \$ac_cs_awk_read_file
24109 \$ac_cs_awk_pipe_fini
24112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24113 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24114 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
24117 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
24118 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
24121 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24122 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
24123 # trailing colons and then remove the whole line if VPATH becomes empty
24124 # (actually we leave an empty line to preserve line numbers).
24125 if test "x
$srcdir" = x.; then
24126 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24127 s/:*\$(srcdir):*/:/
24128 s/:*\${srcdir}:*/:/
24130 s/^\([^=]*=[ ]*\):*/\1/
24136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24137 fi # test -n "$CONFIG_FILES"
24139 # Set up the scripts for CONFIG_HEADERS section.
24140 # No need to generate them if there are no CONFIG_HEADERS.
24141 # This happens for instance with `./config.status Makefile'.
24142 if test -n "$CONFIG_HEADERS"; then
24143 cat >"$tmp/defines.
awk" <<\_ACAWK ||
24147 # Transform confdefs.h into an awk script `defines.awk', embedded as
24148 # here-document in config.status, that substitutes the proper values into
24149 # config.h.in to produce config.h.
24151 # Create a delimiter string that does not exist in confdefs.h, to ease
24152 # handling of long lines.
24154 for ac_last_try in false false :; do
24155 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
24156 if test -z "$ac_t"; then
24158 elif $ac_last_try; then
24159 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
24161 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
24165 # For the awk script, D is an array of macro values keyed by name,
24166 # likewise P contains macro parameters if any. Preserve backslash
24167 # newline sequences.
24169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24171 s/.\{148\}/&'"$ac_delim"'/g
24174 s/^[ ]*#[ ]*define[ ][ ]*/ /
24181 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
24183 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
24187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
24188 D["\
1"]=" \
3\\\\\\n
"\\/p
24190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
24195 s/.\{148\}/&'"$ac_delim"'/g
24200 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
24203 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
24205 ' <confdefs.h | sed '
24206 s/'"$ac_delim"'/"\\\
24207 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24210 for (key in D) D_is_set[key] = 1
24213 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24215 split(line, arg, " ")
24216 if (arg[1] == "#") {
24220 defundef
= substr
(arg
[1], 2)
24223 split(mac1
, mac2
, "(") #)
24225 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
24226 if (D_is_set
[macro
]) {
24227 # Preserve the white space surrounding the "#".
24228 print prefix
"define", macro P
[macro
] D
[macro
]
24231 # Replace #undef with comments. This is necessary, for example,
24232 # in the case of _POSIX_SOURCE, which is predefined and required
24233 # on some systems where configure will not decide to define it.
24234 if (defundef
== "undef") {
24235 print
"/*", prefix defundef
, macro
, "*/"
24243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24244 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
24245 fi # test -n "$CONFIG_HEADERS"
24248 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24253 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24255 case $ac_mode$ac_tag in
24257 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
24258 :[FH
]-) ac_tag
=-:-;;
24259 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24276 -) ac_f
="$tmp/stdin";;
24277 *) # Look for the file first in the build tree, then in the source tree
24278 # (if the path is not absolute). The absolute path cannot be DOS-style,
24279 # because $ac_f cannot contain `:'.
24283 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24285 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
24287 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24288 as_fn_append ac_file_inputs
" '$ac_f'"
24291 # Let's still pretend it is `configure' which instantiates (i.e., don't
24292 # use $as_me), people would be surprised to read:
24293 # /* config.h. Generated by config.status. */
24294 configure_input
='Generated from '`
24295 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24297 if test x
"$ac_file" != x-
; then
24298 configure_input
="$ac_file. $configure_input"
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24300 $as_echo "$as_me: creating $ac_file" >&6;}
24302 # Neutralize special characters interpreted by sed in replacement strings.
24303 case $configure_input in #(
24304 *\
&* |
*\|
* |
*\\* )
24305 ac_sed_conf_input
=`$as_echo "$configure_input" |
24306 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24307 *) ac_sed_conf_input
=$configure_input;;
24311 *:-:* |
*:-) cat >"$tmp/stdin" \
24312 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
24317 ac_dir
=`$as_dirname -- "$ac_file" ||
24318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24319 X"$ac_file" : 'X\(//\)[^/]' \| \
24320 X"$ac_file" : 'X\(//\)$' \| \
24321 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24322 $as_echo X"$ac_file" |
24323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24327 /^X\(\/\/\)[^/].*/{
24340 as_dir
="$ac_dir"; as_fn_mkdir_p
24344 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24346 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24347 # A ".." for each directory in $ac_dir_suffix.
24348 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24349 case $ac_top_builddir_sub in
24350 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24351 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24354 ac_abs_top_builddir
=$ac_pwd
24355 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24356 # for backward compatibility:
24357 ac_top_builddir
=$ac_top_build_prefix
24360 .
) # We are building in place.
24362 ac_top_srcdir
=$ac_top_builddir_sub
24363 ac_abs_top_srcdir
=$ac_pwd ;;
24364 [\\/]* | ?
:[\\/]* ) # Absolute name.
24365 ac_srcdir
=$srcdir$ac_dir_suffix;
24366 ac_top_srcdir
=$srcdir
24367 ac_abs_top_srcdir
=$srcdir ;;
24368 *) # Relative name.
24369 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24370 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24371 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24373 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24383 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24384 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24386 ac_MKDIR_P
=$MKDIR_P
24388 [\\/$
]* | ?
:[\\/]* ) ;;
24389 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
24393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24394 # If the template does not know about datarootdir, expand it.
24395 # FIXME: This hack should be removed a few years after 2.60.
24396 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24407 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24408 *datarootdir
*) ac_datarootdir_seen
=yes;;
24409 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24411 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24414 ac_datarootdir_hack='
24415 s&@datadir@&$datadir&g
24416 s&@docdir@&$docdir&g
24417 s&@infodir@&$infodir&g
24418 s&@localedir@&$localedir&g
24419 s&@mandir@&$mandir&g
24420 s&\\\${datarootdir}&$datarootdir&g' ;;
24424 # Neutralize VPATH when `$srcdir' = `.'.
24425 # Shell code in configure.ac might set extrasub.
24426 # FIXME: do we really want to maintain this feature?
24427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24428 ac_sed_extra="$ac_vpsub
24431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
24433 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24434 s|@configure_input@|
$ac_sed_conf_input|
;t t
24435 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24436 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
24437 s
&@srcdir@
&$ac_srcdir&;t t
24438 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24439 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24440 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24441 s
&@builddir@
&$ac_builddir&;t t
24442 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24443 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24444 s
&@INSTALL@
&$ac_INSTALL&;t t
24445 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
24446 $ac_datarootdir_hack
24448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24449 if $ac_cs_awk_getline; then
24450 $AWK -f "$tmp/subs.
awk"
24452 $AWK -f "$tmp/subs.
awk" | $SHELL
24454 || as_fn_error "could not create
$ac_file" "$LINENO" 5
24456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24457 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24458 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24460 which seems to be undefined. Please make sure it is defined." >&5
24461 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24462 which seems to be undefined. Please make sure it is defined." >&2;}
24466 -) cat "$tmp/out" && rm -f "$tmp/out";;
24467 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24469 || as_fn_error "could not create $ac_file" "$LINENO" 5
24475 if test x"$ac_file" != x-; then
24477 $as_echo "/* $configure_input */" \
24478 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24479 } >"$tmp/config.h" \
24480 || as_fn_error "could not create $ac_file" "$LINENO" 5
24481 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24483 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24486 mv "$tmp/config.h" "$ac_file" \
24487 || as_fn_error "could not create $ac_file" "$LINENO" 5
24490 $as_echo "/* $configure_input */" \
24491 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24492 || as_fn_error "could not create -" "$LINENO" 5
24494 # Compute "$ac_file"'s index
in $config_headers.
24497 for _am_header
in $config_headers :; do
24498 case $_am_header in
24499 $_am_arg |
$_am_arg:* )
24502 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
24505 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24506 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24507 X"$_am_arg" : 'X\(//\)[^/]' \| \
24508 X"$_am_arg" : 'X\(//\)$' \| \
24509 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24510 $as_echo X"$_am_arg" |
24511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24515 /^X\(\/\/\)[^/].*/{
24527 s/.*/./; q'`/stamp-h
$_am_stamp_count
24530 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24531 $as_echo "$as_me: executing $ac_file commands" >&6;}
24536 case $ac_file$ac_mode in
24537 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
24538 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24539 # are listed without --file. Let's play safe and only enable the eval
24540 # if we detect the quoting.
24541 case $CONFIG_FILES in
24542 *\'*) eval set x
"$CONFIG_FILES" ;;
24543 *) set x
$CONFIG_FILES ;;
24548 # Strip MF so we end up with the name of the file.
24549 mf
=`echo "$mf" | sed -e 's/:.*$//'`
24550 # Check whether this is an Automake generated Makefile or not.
24551 # We used to match only the files named `Makefile.in', but
24552 # some people rename them; so instead we look at the file content.
24553 # Grep'ing the first line is not enough: some people post-process
24554 # each Makefile.in and add a new line on top of each file to say so.
24555 # Grep'ing the whole file is not good either: AIX grep has a line
24556 # limit of 2048, but all sed's we know have understand at least 4000.
24557 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
24558 dirpart
=`$as_dirname -- "$mf" ||
24559 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24560 X"$mf" : 'X\(//\)[^/]' \| \
24561 X"$mf" : 'X\(//\)$' \| \
24562 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24568 /^X\(\/\/\)[^/].*/{
24584 # Extract the definition of DEPDIR, am__include, and am__quote
24585 # from the Makefile without running `make'.
24586 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
24587 test -z "$DEPDIR" && continue
24588 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
24589 test -z "am__include" && continue
24590 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
24591 # When using ansi2knr, U may be empty or an underscore; expand it
24592 U
=`sed -n 's/^U = //p' < "$mf"`
24593 # Find all dependency output files, they are included files with
24594 # $(DEPDIR) in their names. We invoke sed twice because it is the
24595 # simplest approach to changing $(DEPDIR) to its actual value in the
24597 for file in `sed -n "
24598 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24599 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24600 # Make sure the directory exists.
24601 test -f "$dirpart/$file" && continue
24602 fdir
=`$as_dirname -- "$file" ||
24603 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24604 X"$file" : 'X\(//\)[^/]' \| \
24605 X"$file" : 'X\(//\)$' \| \
24606 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24607 $as_echo X"$file" |
24608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24612 /^X\(\/\/\)[^/].*/{
24625 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
24626 # echo "creating $dirpart/$file"
24627 echo '# dummy' > "$dirpart/$file"
24633 for dir
in etc lisp
; do
24634 test -d ${dir} || mkdir
${dir}
24638 echo creating src
/epaths.h
24639 ${MAKE-make} epaths-force
24642 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24643 echo creating src
/.gdbinit
24644 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24654 ac_clean_files
=$ac_clean_files_save
24656 test $ac_write_fail = 0 ||
24657 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
24660 # configure is writing to config.log, and then calls config.status.
24661 # config.status does its own redirection, appending to config.log.
24662 # Unfortunately, on DOS this fails, as config.log is still kept open
24663 # by configure, so config.status won't be able to write to it; its
24664 # output is simply discarded. So we exec the FD to /dev/null,
24665 # effectively closing config.log, so it can be properly (re)opened and
24666 # appended to by config.status. When coming back to configure, we
24667 # need to make the FD available again.
24668 if test "$no_create" != yes; then
24670 ac_config_status_args
=
24671 test "$silent" = yes &&
24672 ac_config_status_args
="$ac_config_status_args --quiet"
24674 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24676 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24677 # would make configure fail if this is the last instruction.
24678 $ac_cs_success || as_fn_exit $?
24680 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24682 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}