2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.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.2.50'
553 PACKAGE_STRING
='emacs 24.2.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
610 LD_SWITCH_SYSTEM_TEMACS
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_pathmax_FALSE
623 gl_GNULIB_ENABLED_pathmax_TRUE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
626 gl_GNULIB_ENABLED_dosname_FALSE
627 gl_GNULIB_ENABLED_dosname_TRUE
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
634 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
635 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
636 TIME_H_DEFINES_STRUCT_TIMESPEC
637 NEXT_AS_FIRST_DIRECTIVE_TIME_H
639 WINDOWS_64_BIT_ST_SIZE
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
747 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
749 GL_GENERATE_STDDEF_H_FALSE
750 GL_GENERATE_STDDEF_H_TRUE
755 GL_GENERATE_STDBOOL_H_FALSE
756 GL_GENERATE_STDBOOL_H_TRUE
758 GL_GENERATE_STDARG_H_FALSE
759 GL_GENERATE_STDARG_H_TRUE
761 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
763 GL_GENERATE_STDALIGN_H_FALSE
764 GL_GENERATE_STDALIGN_H_TRUE
766 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
770 REPLACE_PTHREAD_SIGMASK
772 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
773 HAVE_STRUCT_SIGACTION_SA_SIGACTION
779 HAVE_POSIX_SIGNALBLOCKING
782 GNULIB_SIGNAL_H_SIGPIPE
784 GNULIB_PTHREAD_SIGMASK
786 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
800 HAVE_DECL_LOCALTIME_R
839 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
841 UINT64_MAX_EQ_ULONG_MAX
842 UINT32_MAX_LT_UINTMAX_MAX
845 INT64_MAX_EQ_LONG_MAX
846 INT32_MAX_LT_INTMAX_MAX
856 GL_GENERATE_STDINT_H_FALSE
857 GL_GENERATE_STDINT_H_TRUE
866 HAVE_SIGNED_SIG_ATOMIC_T
869 BITSIZEOF_SIG_ATOMIC_T
872 APPLE_UNIVERSAL_BUILD
876 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
881 HAVE_UNSIGNED_LONG_LONG_INT
884 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
886 REPLACE_STRUCT_TIMEVAL
892 GNULIB_GL_UNISTD_H_GETOPT
895 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
899 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
914 REPLACE_CANONICALIZE_FILE_NAME
919 HAVE_STRUCT_RANDOM_DATA
941 HAVE_CANONICALIZE_FILE_NAME
971 GNULIB_CANONICALIZE_FILE_NAME
975 GL_GENERATE_EXECINFO_H_FALSE
976 GL_GENERATE_EXECINFO_H_TRUE
979 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
980 UNISTD_H_HAVE_WINSOCK2_H
1001 REPLACE_GETDOMAINNAME
1012 HAVE_DECL_SETHOSTNAME
1013 HAVE_DECL_GETUSERSHELL
1014 HAVE_DECL_GETPAGESIZE
1015 HAVE_DECL_GETLOGIN_R
1016 HAVE_DECL_GETDOMAINNAME
1055 GNULIB_UNISTD_H_SIGPIPE
1056 GNULIB_UNISTD_H_NONBLOCKING
1082 GNULIB_GETDTABLESIZE
1083 GNULIB_GETDOMAINNAME
1100 GL_GENERATE_ALLOCA_H_FALSE
1101 GL_GENERATE_ALLOCA_H_TRUE
1104 GL_COND_LIBTOOL_FALSE
1105 GL_COND_LIBTOOL_TRUE
1136 x_default_search_path
1209 INSTALL_ARCH_INDEP_EXTRA
1211 LD_SWITCH_X_SITE_RPATH
1280 INSTALL_STRIP_PROGRAM
1322 program_transform_name
1333 ac_subst_files
='deps_frag
1336 enable_option_checking
1359 with_toolkit_scroll_bars
1371 with_pkg_config_prog
1375 enable_ns_self_contained
1376 enable_locallisppath
1378 enable_check_lisp_object_type
1381 enable_dependency_tracking
1384 enable_link_time_optimization
1387 ac_precious_vars
='build_alias
1399 # Initialize some variables set by options.
1401 ac_init_version
=false
1402 ac_unrecognized_opts
=
1403 ac_unrecognized_sep
=
1404 # The variables have the same names as the options, with
1405 # dashes changed to underlines.
1406 cache_file
=/dev
/null
1413 program_transform_name
=s
,x
,x
,
1421 # Installation directory options.
1422 # These are left unexpanded so users can "make install exec_prefix=/foo"
1423 # and all the variables that are supposed to be based on exec_prefix
1424 # by default will actually change.
1425 # Use braces instead of parens because sh, perl, etc. also accept them.
1426 # (The list follows the same order as the GNU Coding Standards.)
1427 bindir
='${exec_prefix}/bin'
1428 sbindir
='${exec_prefix}/sbin'
1429 libexecdir
='${exec_prefix}/libexec'
1430 datarootdir
='${prefix}/share'
1431 datadir
='${datarootdir}'
1432 sysconfdir
='${prefix}/etc'
1433 sharedstatedir
='${prefix}/com'
1434 localstatedir
='${prefix}/var'
1435 includedir
='${prefix}/include'
1436 oldincludedir
='/usr/include'
1437 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1438 infodir
='${datarootdir}/info'
1443 libdir
='${exec_prefix}/lib'
1444 localedir
='${datarootdir}/locale'
1445 mandir
='${datarootdir}/man'
1451 # If the previous option needs an argument, assign it.
1452 if test -n "$ac_prev"; then
1453 eval $ac_prev=\
$ac_option
1459 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1463 # Accept the important Cygnus configure options, so we can diagnose typos.
1465 case $ac_dashdash$ac_option in
1469 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1471 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1472 bindir
=$ac_optarg ;;
1474 -build |
--build |
--buil |
--bui |
--bu)
1475 ac_prev
=build_alias
;;
1476 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1477 build_alias
=$ac_optarg ;;
1479 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1480 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1481 ac_prev
=cache_file
;;
1482 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1483 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1484 cache_file
=$ac_optarg ;;
1486 --config-cache |
-C)
1487 cache_file
=config.cache
;;
1489 -datadir |
--datadir |
--datadi |
--datad)
1491 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1492 datadir
=$ac_optarg ;;
1494 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1495 |
--dataroo |
--dataro |
--datar)
1496 ac_prev
=datarootdir
;;
1497 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1498 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1499 datarootdir
=$ac_optarg ;;
1501 -disable-* |
--disable-*)
1502 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1503 # Reject names that are not valid shell variable names.
1504 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1505 as_fn_error
"invalid feature name: $ac_useropt"
1506 ac_useropt_orig
=$ac_useropt
1507 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508 case $ac_user_opts in
1510 "enable_
$ac_useropt"
1512 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1513 ac_unrecognized_sep
=', ';;
1515 eval enable_
$ac_useropt=no
;;
1517 -docdir |
--docdir |
--docdi |
--doc |
--do)
1519 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1520 docdir
=$ac_optarg ;;
1522 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1524 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1525 dvidir
=$ac_optarg ;;
1527 -enable-* |
--enable-*)
1528 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1531 as_fn_error
"invalid feature name: $ac_useropt"
1532 ac_useropt_orig
=$ac_useropt
1533 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534 case $ac_user_opts in
1536 "enable_
$ac_useropt"
1538 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1539 ac_unrecognized_sep
=', ';;
1541 eval enable_
$ac_useropt=\
$ac_optarg ;;
1543 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1544 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1545 |
--exec |
--exe |
--ex)
1546 ac_prev
=exec_prefix
;;
1547 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1548 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1549 |
--exec=* |
--exe=* |
--ex=*)
1550 exec_prefix
=$ac_optarg ;;
1552 -gas |
--gas |
--ga |
--g)
1553 # Obsolete; use --with-gas.
1556 -help |
--help |
--hel |
--he |
-h)
1557 ac_init_help
=long
;;
1558 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1559 ac_init_help
=recursive
;;
1560 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1561 ac_init_help
=short
;;
1563 -host |
--host |
--hos |
--ho)
1564 ac_prev
=host_alias
;;
1565 -host=* |
--host=* |
--hos=* |
--ho=*)
1566 host_alias
=$ac_optarg ;;
1568 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1570 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1572 htmldir
=$ac_optarg ;;
1574 -includedir |
--includedir |
--includedi |
--included |
--include \
1575 |
--includ |
--inclu |
--incl |
--inc)
1576 ac_prev
=includedir
;;
1577 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1578 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1579 includedir
=$ac_optarg ;;
1581 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1583 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1584 infodir
=$ac_optarg ;;
1586 -libdir |
--libdir |
--libdi |
--libd)
1588 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1589 libdir
=$ac_optarg ;;
1591 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1592 |
--libexe |
--libex |
--libe)
1593 ac_prev
=libexecdir
;;
1594 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1595 |
--libexe=* |
--libex=* |
--libe=*)
1596 libexecdir
=$ac_optarg ;;
1598 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1599 ac_prev
=localedir
;;
1600 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1601 localedir
=$ac_optarg ;;
1603 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1604 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1605 ac_prev
=localstatedir
;;
1606 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1607 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1608 localstatedir
=$ac_optarg ;;
1610 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1612 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1613 mandir
=$ac_optarg ;;
1615 -nfp |
--nfp |
--nf)
1616 # Obsolete; use --without-fp.
1619 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1620 |
--no-cr |
--no-c |
-n)
1623 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1624 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1627 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1628 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1629 |
--oldin |
--oldi |
--old |
--ol |
--o)
1630 ac_prev
=oldincludedir
;;
1631 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1632 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1633 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1634 oldincludedir
=$ac_optarg ;;
1636 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1638 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1639 prefix
=$ac_optarg ;;
1641 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1642 |
--program-pre |
--program-pr |
--program-p)
1643 ac_prev
=program_prefix
;;
1644 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1645 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1646 program_prefix
=$ac_optarg ;;
1648 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1649 |
--program-suf |
--program-su |
--program-s)
1650 ac_prev
=program_suffix
;;
1651 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1652 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1653 program_suffix
=$ac_optarg ;;
1655 -program-transform-name |
--program-transform-name \
1656 |
--program-transform-nam |
--program-transform-na \
1657 |
--program-transform-n |
--program-transform- \
1658 |
--program-transform |
--program-transfor \
1659 |
--program-transfo |
--program-transf \
1660 |
--program-trans |
--program-tran \
1661 |
--progr-tra |
--program-tr |
--program-t)
1662 ac_prev
=program_transform_name
;;
1663 -program-transform-name=* |
--program-transform-name=* \
1664 |
--program-transform-nam=* |
--program-transform-na=* \
1665 |
--program-transform-n=* |
--program-transform-=* \
1666 |
--program-transform=* |
--program-transfor=* \
1667 |
--program-transfo=* |
--program-transf=* \
1668 |
--program-trans=* |
--program-tran=* \
1669 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1670 program_transform_name
=$ac_optarg ;;
1672 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1674 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1675 pdfdir
=$ac_optarg ;;
1677 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1679 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1682 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1683 |
-silent |
--silent |
--silen |
--sile |
--sil)
1686 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1688 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1690 sbindir
=$ac_optarg ;;
1692 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1693 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1694 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1696 ac_prev
=sharedstatedir
;;
1697 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1698 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1699 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1701 sharedstatedir
=$ac_optarg ;;
1703 -site |
--site |
--sit)
1705 -site=* |
--site=* |
--sit=*)
1708 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1710 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1711 srcdir
=$ac_optarg ;;
1713 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1714 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1715 ac_prev
=sysconfdir
;;
1716 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1717 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1718 sysconfdir
=$ac_optarg ;;
1720 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1721 ac_prev
=target_alias
;;
1722 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1723 target_alias
=$ac_optarg ;;
1725 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1728 -version |
--version |
--versio |
--versi |
--vers |
-V)
1729 ac_init_version
=: ;;
1732 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1733 # Reject names that are not valid shell variable names.
1734 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1735 as_fn_error
"invalid package name: $ac_useropt"
1736 ac_useropt_orig
=$ac_useropt
1737 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1738 case $ac_user_opts in
1742 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1743 ac_unrecognized_sep
=', ';;
1745 eval with_
$ac_useropt=\
$ac_optarg ;;
1747 -without-* |
--without-*)
1748 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1749 # Reject names that are not valid shell variable names.
1750 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1751 as_fn_error
"invalid package name: $ac_useropt"
1752 ac_useropt_orig
=$ac_useropt
1753 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1754 case $ac_user_opts in
1758 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1759 ac_unrecognized_sep
=', ';;
1761 eval with_
$ac_useropt=no
;;
1764 # Obsolete; use --with-x.
1767 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1768 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1769 ac_prev
=x_includes
;;
1770 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1771 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1772 x_includes
=$ac_optarg ;;
1774 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1775 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1776 ac_prev
=x_libraries
;;
1777 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1778 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1779 x_libraries
=$ac_optarg ;;
1781 -*) as_fn_error
"unrecognized option: \`$ac_option'
1782 Try \`$0 --help' for more information."
1786 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1787 # Reject names that are not valid shell variable names.
1788 case $ac_envvar in #(
1789 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1790 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1792 eval $ac_envvar=\
$ac_optarg
1793 export $ac_envvar ;;
1796 # FIXME: should be removed in autoconf 3.0.
1797 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1799 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1806 if test -n "$ac_prev"; then
1807 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1808 as_fn_error
"missing argument to $ac_option"
1811 if test -n "$ac_unrecognized_opts"; then
1812 case $enable_option_checking in
1814 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1815 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1819 # Check all directory arguments for consistency.
1820 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1821 datadir sysconfdir sharedstatedir localstatedir includedir \
1822 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1823 libdir localedir mandir
1825 eval ac_val
=\$
$ac_var
1826 # Remove trailing slashes.
1829 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1830 eval $ac_var=\
$ac_val;;
1832 # Be sure to have absolute directory names.
1834 [\\/$
]* | ?
:[\\/]* ) continue;;
1835 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1837 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1840 # There might be people who depend on the old broken behavior: `$host'
1841 # used to hold the argument of --host etc.
1842 # FIXME: To remove some day.
1845 target
=$target_alias
1847 # FIXME: To remove some day.
1848 if test "x$host_alias" != x
; then
1849 if test "x$build_alias" = x
; then
1850 cross_compiling
=maybe
1851 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1852 If a cross compiler is detected then cross compile mode will be used." >&2
1853 elif test "x$build_alias" != "x$host_alias"; then
1859 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1861 test "$silent" = yes && exec 6>/dev
/null
1864 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1865 ac_ls_di
=`ls -di .` &&
1866 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1867 as_fn_error
"working directory cannot be determined"
1868 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1869 as_fn_error
"pwd does not report name of working directory"
1872 # Find the source files, if location was not specified.
1873 if test -z "$srcdir"; then
1874 ac_srcdir_defaulted
=yes
1875 # Try the directory containing this script, then the parent directory.
1876 ac_confdir
=`$as_dirname -- "$as_myself" ||
1877 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1878 X"$as_myself" : 'X\(//\)[^/]' \| \
1879 X"$as_myself" : 'X\(//\)$' \| \
1880 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1881 $as_echo X"$as_myself" |
1882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1900 if test ! -r "$srcdir/$ac_unique_file"; then
1904 ac_srcdir_defaulted
=no
1906 if test ! -r "$srcdir/$ac_unique_file"; then
1907 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1908 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1910 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1912 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1914 # When building in place, set srcdir=.
1915 if test "$ac_abs_confdir" = "$ac_pwd"; then
1918 # Remove unnecessary trailing slashes from srcdir.
1919 # Double slashes in file names in object file debugging info
1920 # mess up M-x gdb in Emacs.
1922 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1924 for ac_var
in $ac_precious_vars; do
1925 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1926 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1927 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1928 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1932 # Report the --help message.
1934 if test "$ac_init_help" = "long"; then
1935 # Omit some internal or obsolete options to make the list less imposing.
1936 # This message is too long to be a string in the A/UX 3.1 sh.
1938 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1940 Usage: $0 [OPTION]... [VAR=VALUE]...
1942 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1943 VAR=VALUE. See below for descriptions of some of the useful variables.
1945 Defaults for the options are specified in brackets.
1948 -h, --help display this help and exit
1949 --help=short display options specific to this package
1950 --help=recursive display the short help of all the included packages
1951 -V, --version display version information and exit
1952 -q, --quiet, --silent do not print \`checking...' messages
1953 --cache-file=FILE cache test results in FILE [disabled]
1954 -C, --config-cache alias for \`--cache-file=config.cache'
1955 -n, --no-create do not create output files
1956 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1958 Installation directories:
1959 --prefix=PREFIX install architecture-independent files in PREFIX
1960 [$ac_default_prefix]
1961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1964 By default, \`make install' will install all the files in
1965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1967 for instance \`--prefix=\$HOME'.
1969 For better control, use the options below.
1971 Fine tuning of the installation directories:
1972 --bindir=DIR user executables [EPREFIX/bin]
1973 --sbindir=DIR system admin executables [EPREFIX/sbin]
1974 --libexecdir=DIR program executables [EPREFIX/libexec]
1975 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1976 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1977 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1978 --libdir=DIR object code libraries [EPREFIX/lib]
1979 --includedir=DIR C header files [PREFIX/include]
1980 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1981 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1982 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1983 --infodir=DIR info documentation [DATAROOTDIR/info]
1984 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1985 --mandir=DIR man documentation [DATAROOTDIR/man]
1986 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1987 --htmldir=DIR html documentation [DOCDIR]
1988 --dvidir=DIR dvi documentation [DOCDIR]
1989 --pdfdir=DIR pdf documentation [DOCDIR]
1990 --psdir=DIR ps documentation [DOCDIR]
1996 --program-prefix=PREFIX prepend PREFIX to installed program names
1997 --program-suffix=SUFFIX append SUFFIX to installed program names
1998 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2001 --x-includes=DIR X include files are
in DIR
2002 --x-libraries=DIR X library files are
in DIR
2005 --build=BUILD configure
for building on BUILD
[guessed
]
2006 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2010 if test -n "$ac_init_help"; then
2011 case $ac_init_help in
2012 short | recursive
) echo "Configuration of emacs 24.2.50:";;
2017 --disable-option-checking ignore unrecognized
--enable/--with options
2018 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2019 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2020 --disable-ns-self-contained
2021 disable self contained build under NeXTstep
2022 --enable-locallisppath=PATH
2023 directories Emacs should search
for lisp files
2024 specific to this site
2025 --enable-checking[=LIST
]
2026 enable expensive run-time checks. With LIST
, enable
2027 only specific categories of checks. Categories are
:
2028 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
2029 stringfreelist
, xmallocoverrun
, conslist
, glyphs
2030 --enable-check-lisp-object-type
2031 enable compile
time checks
for the Lisp_Object data
2032 type. This is useful
for development
for catching
2033 certain types of bugs.
2034 --enable-profiling build emacs with profiling support. This might not
2035 work on all platforms
2036 --enable-autodepend automatically generate dependencies to .h-files.
2037 Requires GNU Make and Gcc. Enabled
if GNU Make and
2039 --disable-dependency-tracking speeds up one-time build
2040 --enable-dependency-tracking do not reject slow dependency extractors
2041 --disable-largefile omit support
for large files
2042 --enable-gcc-warnings turn on lots of GCC warnings. This is intended
for
2043 developers
, and may generate false alarms when used
2044 with older or non-GNU development tools.
2045 --enable-link-time-optimization
2046 build emacs with link-time optimization. This is
2047 supported only
for GCC since
4.5.0.
2050 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2051 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2052 --without-all omit almost all features and build small executable
2053 with minimal dependencies
2054 --without-pop don
't support POP mail retrieval with movemail
2055 --with-kerberos support Kerberos-authenticated POP
2056 --with-kerberos5 support Kerberos version 5 authenticated POP
2057 --with-hesiod support Hesiod to get the POP server host
2058 --with-mmdf support MMDF mailboxes
2059 --with-mail-unlink unlink, rather than empty, mail spool after reading
2060 --with-mailhost=HOSTNAME
2061 string giving default POP mail host
2062 --without-sound don't compile with sound support
2063 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk2
,
2064 gtk3
, lucid or athena
, motif
, no
)
2065 --with-wide-int prefer wide Emacs integers
(typically
62-bit)
2066 --without-xpm don
't compile with XPM image support
2067 --without-jpeg don't compile with JPEG image support
2068 --without-tiff don
't compile with TIFF image support
2069 --without-gif don't compile with GIF image support
2070 --without-png don
't compile with PNG image support
2071 --without-rsvg don't compile with SVG image support
2072 --without-xml2 don
't compile with XML parsing support
2073 --without-imagemagick don't compile with ImageMagick image support
2074 --without-xft don
't use XFT for anti aliased fonts
2075 --without-libotf don't use libotf
for OpenType font support
2076 --without-m17n-flt don
't use m17n-flt for text shaping
2077 --without-toolkit-scroll-bars
2078 don't use Motif or Xaw3d scroll bars
2079 --without-xaw3d don
't use Xaw3d
2080 --without-xim don't use X11 XIM
2081 --with-ns use NeXTstep
(Cocoa or GNUstep
) windowing system
2082 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
2084 --without-dbus don't compile with D-Bus support
2085 --without-gconf don
't compile with GConf support
2086 --without-gsettings don't compile with GSettings support
2087 --without-selinux don
't compile with SELinux support
2088 --without-gnutls don't use
-lgnutls for SSL
/TLS support
2089 --without-makeinfo don
't require makeinfo for building manuals
2090 --without-compress-info don't
compress the installed Info pages
2091 --with-pkg-config-prog=PATH
2092 path to pkg-config
for finding GTK and librsvg
2093 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2094 /usr
/lib
, or
/usr
/lib64 on some platforms.
2095 --with-gameuser=USER user
for shared game score files
2096 --with-gnustep-conf=PATH
2097 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
2098 or
/etc
/GNUstep
/GNUstep.conf
2099 --with-x use the X Window System
2101 Some influential environment variables
:
2102 CC C compiler
command
2103 CFLAGS C compiler flags
2104 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2105 nonstandard directory
<lib dir
>
2106 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2107 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2108 you have headers
in a nonstandard directory
<include dir
>
2110 XMKMF Path to xmkmf
, Makefile generator
for X Window System
2112 Use these variables to override the choices made by
`configure' or to help
2113 it to find libraries and programs with nonstandard names/locations.
2115 Report bugs to the package provider.
2120 if test "$ac_init_help" = "recursive"; then
2121 # If there are subdirs, report their specific --help.
2122 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2123 test -d "$ac_dir" ||
2124 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2129 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2131 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2132 # A ".." for each directory in $ac_dir_suffix.
2133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2134 case $ac_top_builddir_sub in
2135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2139 ac_abs_top_builddir=$ac_pwd
2140 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2141 # for backward compatibility:
2142 ac_top_builddir=$ac_top_build_prefix
2145 .) # We are building in place.
2147 ac_top_srcdir=$ac_top_builddir_sub
2148 ac_abs_top_srcdir=$ac_pwd ;;
2149 [\\/]* | ?:[\\/]* ) # Absolute name.
2150 ac_srcdir=$srcdir$ac_dir_suffix;
2151 ac_top_srcdir=$srcdir
2152 ac_abs_top_srcdir=$srcdir ;;
2154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2155 ac_top_srcdir=$ac_top_build_prefix$srcdir
2156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2158 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2160 cd "$ac_dir" || { ac_status=$?; continue; }
2161 # Check for guested configure.
2162 if test -f "$ac_srcdir/configure.gnu"; then
2164 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2165 elif test -f "$ac_srcdir/configure"; then
2167 $SHELL "$ac_srcdir/configure" --help=recursive
2169 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2171 cd "$ac_pwd" || { ac_status=$?; break; }
2175 test -n "$ac_init_help" && exit $ac_status
2176 if $ac_init_version; then
2178 emacs configure 24.2.50
2179 generated by GNU Autoconf 2.65
2181 Copyright (C) 2009 Free Software Foundation, Inc.
2182 This configure script is free software; the Free Software Foundation
2183 gives unlimited permission to copy, distribute and modify it.
2188 ## ------------------------ ##
2189 ## Autoconf initialization. ##
2190 ## ------------------------ ##
2192 # ac_fn_c_try_compile LINENO
2193 # --------------------------
2194 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2195 ac_fn_c_try_compile ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 rm -f conftest.$ac_objext
2199 if { { ac_try="$ac_compile"
2201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2202 *) ac_try_echo
=$ac_try;;
2204 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2205 $as_echo "$ac_try_echo"; } >&5
2206 (eval "$ac_compile") 2>conftest.err
2208 if test -s conftest.err
; then
2209 grep -v '^ *+' conftest.err
>conftest.er1
2210 cat conftest.er1
>&5
2211 mv -f conftest.er1 conftest.err
2213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2214 test $ac_status = 0; } && {
2215 test -z "$ac_c_werror_flag" ||
2216 test ! -s conftest.err
2217 } && test -s conftest.
$ac_objext; then :
2220 $as_echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.
$ac_ext >&5
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2226 as_fn_set_status
$ac_retval
2228 } # ac_fn_c_try_compile
2230 # ac_fn_c_try_cpp LINENO
2231 # ----------------------
2232 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2235 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2236 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242 $as_echo "$ac_try_echo"; } >&5
2243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2245 if test -s conftest.err; then
2246 grep -v '^ *+' conftest.err >conftest.er1
2247 cat conftest.er1 >&5
2248 mv -f conftest.er1 conftest.err
2250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251 test $ac_status = 0; } >/dev/null && {
2252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2253 test ! -s conftest.err
2257 $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 as_fn_set_status $ac_retval
2267 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2268 # -------------------------------------------------------
2269 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2270 # the include files in INCLUDES and setting the cache variable VAR
2272 ac_fn_c_check_header_mongrel ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2285 # Is the header compilable?
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2287 $as_echo_n "checking $2 usability... " >&6; }
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_header_compiler=yes
2296 ac_header_compiler=no
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2300 $as_echo "$ac_header_compiler" >&6; }
2302 # Is the header present?
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2304 $as_echo_n "checking $2 presence... " >&6; }
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2309 if ac_fn_c_try_cpp "$LINENO"; then :
2310 ac_header_preproc=yes
2312 ac_header_preproc=no
2314 rm -f conftest.err conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2316 $as_echo "$ac_header_preproc" >&6; }
2318 # So? What about this header?
2319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2322 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2324 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2328 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2330 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2332 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2334 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2336 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2344 eval "$3=\$ac_header_compiler"
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 } # ac_fn_c_check_header_mongrel
2354 # ac_fn_c_try_run LINENO
2355 # ----------------------
2356 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2357 # that executables *can* be run.
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 if { { ac_try="$ac_link"
2363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2364 *) ac_try_echo
=$ac_try;;
2366 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_link") 2>&5
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2372 { { case "(($ac_try" in
2373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2377 $as_echo "$ac_try_echo"; } >&5
2378 (eval "$ac_try") 2>&5
2380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381 test $ac_status = 0; }; }; then :
2384 $as_echo "$as_me: program exited with status $ac_status" >&5
2385 $as_echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 ac_retval=$ac_status
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 as_fn_set_status $ac_retval
2396 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2397 # -------------------------------------------------------
2398 # Tests whether HEADER exists and can be compiled using the include files in
2399 # INCLUDES, setting the cache variable VAR accordingly.
2400 ac_fn_c_check_header_compile ()
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2404 $as_echo_n "checking for $2... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2413 if ac_fn_c_try_compile "$LINENO"; then :
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425 } # ac_fn_c_check_header_compile
2427 # ac_fn_c_try_link LINENO
2428 # -----------------------
2429 # Try to link conftest.$ac_ext, and return whether this succeeded.
2432 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2433 rm -f conftest.$ac_objext conftest$ac_exeext
2434 if { { ac_try="$ac_link"
2436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2437 *) ac_try_echo
=$ac_try;;
2439 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2440 $as_echo "$ac_try_echo"; } >&5
2441 (eval "$ac_link") 2>conftest.err
2443 if test -s conftest.err
; then
2444 grep -v '^ *+' conftest.err
>conftest.er1
2445 cat conftest.er1
>&5
2446 mv -f conftest.er1 conftest.err
2448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2449 test $ac_status = 0; } && {
2450 test -z "$ac_c_werror_flag" ||
2451 test ! -s conftest.err
2452 } && test -s conftest
$ac_exeext && {
2453 test "$cross_compiling" = yes ||
2454 $as_test_x conftest
$ac_exeext
2458 $as_echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.
$ac_ext >&5
2463 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2464 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2465 # interfere with the next link command; also delete a directory that is
2466 # left behind by Apple's compiler. We do this before executing the actions.
2467 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2469 as_fn_set_status
$ac_retval
2471 } # ac_fn_c_try_link
2473 # ac_fn_c_check_decl LINENO SYMBOL VAR
2474 # ------------------------------------
2475 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2476 ac_fn_c_check_decl
()
2478 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2480 $as_echo_n "checking whether $2 is declared... " >&6; }
2481 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2498 if ac_fn_c_try_compile
"$LINENO"; then :
2503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2507 $as_echo "$ac_res" >&6; }
2508 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2510 } # ac_fn_c_check_decl
2512 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2513 # ----------------------------------------------
2514 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2515 ac_fn_c_check_header_preproc
()
2517 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2521 $as_echo_n "(cached) " >&6
2523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2527 if ac_fn_c_try_cpp
"$LINENO"; then :
2532 rm -f conftest.err conftest.
$ac_ext
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2539 } # ac_fn_c_check_header_preproc
2541 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2542 # ----------------------------------------------------
2543 # Tries to find if the field MEMBER exists in type AGGR, after including
2544 # INCLUDES, setting cache variable VAR accordingly.
2545 ac_fn_c_check_member
()
2547 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2549 $as_echo_n "checking for $2.$3... " >&6; }
2550 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2566 if ac_fn_c_try_compile
"$LINENO"; then :
2569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2576 if (sizeof ac_aggr.$3)
2582 if ac_fn_c_try_compile
"$LINENO"; then :
2587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593 $as_echo "$ac_res" >&6; }
2594 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2596 } # ac_fn_c_check_member
2598 # ac_fn_c_check_func LINENO FUNC VAR
2599 # ----------------------------------
2600 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2601 ac_fn_c_check_func
()
2603 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2605 $as_echo_n "checking for $2... " >&6; }
2606 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2607 $as_echo_n "(cached) " >&6
2609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2611 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2613 #define $2 innocuous_$2
2615 /* System header to define __stub macros and hopefully few prototypes,
2616 which can conflict with char $2 (); below.
2617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2618 <limits.h> exists even on freestanding compilers. */
2621 # include <limits.h>
2623 # include <assert.h>
2628 /* Override any GCC internal prototype to avoid an error.
2629 Use char because int might match the return type of a GCC
2630 builtin and then its argument prototype would still apply. */
2635 /* The GNU C library defines this for functions which it implements
2636 to always fail with ENOSYS. Some functions are actually named
2637 something starting with __ and the normal name is an alias. */
2638 #if defined __stub_$2 || defined __stub___$2
2650 if ac_fn_c_try_link
"$LINENO"; then :
2655 rm -f core conftest.err conftest.
$ac_objext \
2656 conftest
$ac_exeext conftest.
$ac_ext
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2663 } # ac_fn_c_check_func
2665 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2666 # -------------------------------------------
2667 # Tests whether TYPE exists after having included INCLUDES, setting cache
2668 # variable VAR accordingly.
2669 ac_fn_c_check_type
()
2671 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2673 $as_echo_n "checking for $2... " >&6; }
2674 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2675 $as_echo_n "(cached) " >&6
2678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2690 if ac_fn_c_try_compile
"$LINENO"; then :
2691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2703 if ac_fn_c_try_compile
"$LINENO"; then :
2708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2714 $as_echo "$ac_res" >&6; }
2715 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2717 } # ac_fn_c_check_type
2719 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2720 # --------------------------------------------
2721 # Tries to find the compile-time value of EXPR in a program that includes
2722 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2724 ac_fn_c_compute_int
()
2726 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2727 if test "$cross_compiling" = yes; then
2728 # Depending upon the size, compute the lo and hi bounds.
2729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h. */
2735 static int test_array [1 - 2 * !(($2) >= 0)];
2742 if ac_fn_c_try_compile
"$LINENO"; then :
2745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2751 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2758 if ac_fn_c_try_compile
"$LINENO"; then :
2759 ac_hi
=$ac_mid; break
2761 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2762 if test $ac_lo -le $ac_mid; then
2766 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2772 /* end confdefs.h. */
2777 static int test_array [1 - 2 * !(($2) < 0)];
2784 if ac_fn_c_try_compile
"$LINENO"; then :
2787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h. */
2793 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2800 if ac_fn_c_try_compile
"$LINENO"; then :
2801 ac_lo
=$ac_mid; break
2803 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2804 if test $ac_mid -le $ac_hi; then
2808 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2818 # Binary search between lo and hi bounds.
2819 while test "x$ac_lo" != "x$ac_hi"; do
2820 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2827 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2834 if ac_fn_c_try_compile
"$LINENO"; then :
2837 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2842 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2849 static long int longval () { return $2; }
2850 static unsigned long int ulongval () { return $2; }
2857 FILE *f = fopen ("conftest.val", "w");
2862 long int i = longval ();
2865 fprintf (f, "%ld", i);
2869 unsigned long int i = ulongval ();
2872 fprintf (f, "%lu", i);
2874 /* Do not output a trailing newline, as this causes \r\n confusion
2875 on some platforms. */
2876 return ferror (f) || fclose (f) != 0;
2882 if ac_fn_c_try_run
"$LINENO"; then :
2883 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2887 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2888 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2892 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2893 as_fn_set_status
$ac_retval
2895 } # ac_fn_c_compute_int
2896 cat >config.log
<<_ACEOF
2897 This file contains any messages produced by compilers while
2898 running configure, to aid debugging if configure makes a mistake.
2900 It was created by emacs $as_me 24.2.50, which was
2901 generated by GNU Autoconf 2.65. Invocation command line was
2913 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2914 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2915 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2916 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2917 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2919 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2920 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2922 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2923 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2924 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2925 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2926 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2927 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2928 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir
=.
2937 $as_echo "PATH: $as_dir"
2953 # Keep a trace of the command line.
2954 # Strip out --no-create and --no-recursion so they do not pile up.
2955 # Strip out --silent because we don't want to record it for future runs.
2956 # Also quote any args containing shell meta-characters.
2957 # Make two passes to allow for proper duplicate-argument suppression.
2961 ac_must_keep_next
=false
2967 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2968 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2969 |
-silent |
--silent |
--silen |
--sile |
--sil)
2972 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2975 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2977 as_fn_append ac_configure_args1
" '$ac_arg'"
2978 if test $ac_must_keep_next = true
; then
2979 ac_must_keep_next
=false
# Got value, back to normal.
2982 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2983 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2984 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2985 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2986 case "$ac_configure_args0 " in
2987 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2990 -* ) ac_must_keep_next
=true
;;
2993 as_fn_append ac_configure_args
" '$ac_arg'"
2998 { ac_configure_args0
=; unset ac_configure_args0
;}
2999 { ac_configure_args1
=; unset ac_configure_args1
;}
3001 # When interrupted or exit'd, cleanup temporary files, and complete
3002 # config.log. We remove comments because anyway the quotes in there
3003 # would cause problems or look ugly.
3004 # WARNING: Use '\'' to represent an apostrophe within the trap.
3005 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3006 trap 'exit_status=$?
3007 # Save into config.log some information that might help in debugging.
3012 ## ---------------- ##
3013 ## Cache variables. ##
3014 ## ---------------- ##
3017 # The following way of writing the cache mishandles newlines in values,
3019 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3020 eval ac_val=\$$ac_var
3024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3028 _ | IFS | as_nl) ;; #(
3029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3030 *) { eval $ac_var=; unset $ac_var;} ;;
3035 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3036 *${as_nl}ac_space=\ *)
3038 "s/'\''/'\''\\\\'\'''\''/g;
3039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3050 ## ----------------- ##
3051 ## Output variables. ##
3052 ## ----------------- ##
3055 for ac_var in $ac_subst_vars
3057 eval ac_val=\$$ac_var
3059 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3061 $as_echo "$ac_var='\''$ac_val'\''"
3065 if test -n "$ac_subst_files"; then
3067 ## ------------------- ##
3068 ## File substitutions. ##
3069 ## ------------------- ##
3072 for ac_var
in $ac_subst_files
3074 eval ac_val
=\$
$ac_var
3076 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3078 $as_echo "$ac_var='\''$ac_val'\''"
3083 if test -s confdefs.h; then
3093 test "$ac_signal" != 0 &&
3094 $as_echo "$as_me: caught signal $ac_signal"
3095 $as_echo "$as_me: exit $exit_status"
3097 rm -f core *.core core.conftest.* &&
3098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3101 for ac_signal
in 1 2 13 15; do
3102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3107 rm -f -r conftest
* confdefs.h
3109 $as_echo "/* confdefs.h */" > confdefs.h
3111 # Predefined preprocessor variables.
3113 cat >>confdefs.h
<<_ACEOF
3114 #define PACKAGE_NAME "$PACKAGE_NAME"
3117 cat >>confdefs.h
<<_ACEOF
3118 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3121 cat >>confdefs.h
<<_ACEOF
3122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3125 cat >>confdefs.h
<<_ACEOF
3126 #define PACKAGE_STRING "$PACKAGE_STRING"
3129 cat >>confdefs.h
<<_ACEOF
3130 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3133 cat >>confdefs.h
<<_ACEOF
3134 #define PACKAGE_URL "$PACKAGE_URL"
3138 # Let the site file select an alternate cache file if it wants to.
3139 # Prefer an explicitly selected file to automatically selected ones.
3142 if test -n "$CONFIG_SITE"; then
3143 ac_site_file1
=$CONFIG_SITE
3144 elif test "x$prefix" != xNONE
; then
3145 ac_site_file1
=$prefix/share
/config.site
3146 ac_site_file2
=$prefix/etc
/config.site
3148 ac_site_file1
=$ac_default_prefix/share
/config.site
3149 ac_site_file2
=$ac_default_prefix/etc
/config.site
3151 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3153 test "x$ac_site_file" = xNONE
&& continue
3154 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3156 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3157 sed 's/^/| /' "$ac_site_file" >&5
3162 if test -r "$cache_file"; then
3163 # Some versions of bash will fail to source /dev/null (special files
3164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3165 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3167 $as_echo "$as_me: loading cache $cache_file" >&6;}
3169 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3170 *) .
"./$cache_file";;
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3175 $as_echo "$as_me: creating cache $cache_file" >&6;}
3179 as_fn_append ac_header_list
" linux/version.h"
3180 as_fn_append ac_header_list
" sys/systeminfo.h"
3181 as_fn_append ac_header_list
" stdio_ext.h"
3182 as_fn_append ac_header_list
" fcntl.h"
3183 as_fn_append ac_header_list
" coff.h"
3184 as_fn_append ac_header_list
" pty.h"
3185 as_fn_append ac_header_list
" sys/vlimit.h"
3186 as_fn_append ac_header_list
" sys/resource.h"
3187 as_fn_append ac_header_list
" sys/utsname.h"
3188 as_fn_append ac_header_list
" pwd.h"
3189 as_fn_append ac_header_list
" utmp.h"
3190 as_fn_append ac_header_list
" dirent.h"
3191 as_fn_append ac_header_list
" util.h"
3192 as_fn_append ac_header_list
" sys/socket.h"
3193 as_fn_append ac_header_list
" stdlib.h"
3194 as_fn_append ac_header_list
" unistd.h"
3195 as_fn_append ac_header_list
" sys/param.h"
3196 as_fn_append ac_header_list
" pthread.h"
3197 as_fn_append ac_header_list
" malloc/malloc.h"
3198 as_fn_append ac_header_list
" maillock.h"
3199 as_fn_append ac_header_list
" sys/un.h"
3200 as_fn_append ac_func_list
" tzset"
3201 as_fn_append ac_func_list
" readlinkat"
3202 as_fn_append ac_header_list
" execinfo.h"
3203 gl_getopt_required
=GNU
3204 as_fn_append ac_header_list
" getopt.h"
3205 as_fn_append ac_func_list
" gettimeofday"
3206 as_fn_append ac_func_list
" nanotime"
3207 as_fn_append ac_header_list
" sys/time.h"
3208 as_fn_append ac_header_list
" wchar.h"
3209 as_fn_append ac_header_list
" stdint.h"
3210 as_fn_append ac_header_list
" inttypes.h"
3211 as_fn_append ac_func_list
" lstat"
3212 as_fn_append ac_func_list
" alarm"
3213 as_fn_append ac_header_list
" sys/select.h"
3214 as_fn_append ac_func_list
" pselect"
3215 as_fn_append ac_func_list
" pthread_sigmask"
3216 as_fn_append ac_func_list
" readlink"
3217 as_fn_append ac_func_list
" strtoimax"
3218 as_fn_append ac_func_list
" strtoumax"
3219 as_fn_append ac_func_list
" symlink"
3220 as_fn_append ac_header_list
" sys/stat.h"
3221 as_fn_append ac_func_list
" localtime_r"
3222 as_fn_append ac_header_list
" utime.h"
3223 as_fn_append ac_func_list
" futimes"
3224 as_fn_append ac_func_list
" futimesat"
3225 as_fn_append ac_func_list
" futimens"
3226 as_fn_append ac_func_list
" utimensat"
3227 as_fn_append ac_func_list
" lutimes"
3228 # Check that the precious variables saved in the cache have kept the same
3230 ac_cache_corrupted
=false
3231 for ac_var
in $ac_precious_vars; do
3232 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3233 eval ac_new_set
=\
$ac_env_${ac_var}_set
3234 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3235 eval ac_new_val
=\
$ac_env_${ac_var}_value
3236 case $ac_old_set,$ac_new_set in
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3240 ac_cache_corrupted
=: ;;
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3244 ac_cache_corrupted
=: ;;
3247 if test "x$ac_old_val" != "x$ac_new_val"; then
3248 # differences in whitespace do not lead to failure.
3249 ac_old_val_w
=`echo x $ac_old_val`
3250 ac_new_val_w
=`echo x $ac_new_val`
3251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3254 ac_cache_corrupted
=:
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3258 eval $ac_var=\
$ac_old_val
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3261 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3263 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3266 # Pass precious variables to config.status.
3267 if test "$ac_new_set" = set; then
3269 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3270 *) ac_arg
=$ac_var=$ac_new_val ;;
3272 case " $ac_configure_args " in
3273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3274 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3278 if $ac_cache_corrupted; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3283 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3285 ## -------------------- ##
3286 ## Main body of script. ##
3287 ## -------------------- ##
3290 ac_cpp
='$CPP $CPPFLAGS'
3291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3296 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
3300 for ac_dir
in build-aux
"$srcdir"/build-aux
; do
3301 for ac_t
in install-sh
install.sh shtool
; do
3302 if test -f "$ac_dir/$ac_t"; then
3304 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3309 if test -z "$ac_aux_dir"; then
3310 as_fn_error
"cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3313 # These three variables are undocumented and unsupported,
3314 # and are intended to be withdrawn in a future Autoconf release.
3315 # They can cause serious problems if a builder's source tree is in a directory
3316 # whose full name contains unusual characters.
3317 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3318 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3319 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3322 am__api_version
='1.11'
3324 # Find a good install program. We prefer a C program (faster),
3325 # so one script is as good as another. But avoid the broken or
3326 # incompatible versions:
3327 # SysV /etc/install, /usr/sbin/install
3328 # SunOS /usr/etc/install
3329 # IRIX /sbin/install
3331 # AmigaOS /C/install, which installs bootblocks on floppy discs
3332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3335 # OS/2's system install, which has a completely different semantic
3336 # ./install, which can be erroneously created by make from ./install.sh.
3337 # Reject install programs that cannot install multiple files.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3340 if test -z "$INSTALL"; then
3341 if test "${ac_cv_path_install+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir
=.
3349 # Account for people who put trailing slashes in PATH elements.
3350 case $as_dir/ in #((
3351 .
/ | .
// |
/[cC
]/* | \
3352 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3353 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3356 # OSF1 and SCO ODT 3.0 have their own names for install.
3357 # Don't use installbsd from OSF since it installs stuff as root
3359 for ac_prog
in ginstall scoinst
install; do
3360 for ac_exec_ext
in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3362 if test $ac_prog = install &&
3363 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3364 # AIX install. It has an incompatible calling convention.
3366 elif test $ac_prog = install &&
3367 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3368 # program-specific install script used by HP pwplus--don't use.
3371 rm -rf conftest.one conftest.two conftest.dir
3372 echo one
> conftest.one
3373 echo two
> conftest.two
3375 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3376 test -s conftest.one
&& test -s conftest.two
&&
3377 test -s conftest.dir
/conftest.one
&&
3378 test -s conftest.dir
/conftest.two
3380 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3393 rm -rf conftest.one conftest.two conftest.dir
3396 if test "${ac_cv_path_install+set}" = set; then
3397 INSTALL
=$ac_cv_path_install
3399 # As a last resort, use the slow shell script. Don't cache a
3400 # value for INSTALL within a source directory, because that will
3401 # break other packages using the cache if that directory is
3402 # removed, or if the value is a relative name.
3403 INSTALL
=$ac_install_sh
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3407 $as_echo "$INSTALL" >&6; }
3409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3410 # It thinks the first close brace ends the variable substitution.
3411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3415 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3418 $as_echo_n "checking whether build environment is sane... " >&6; }
3421 echo timestamp
> conftest.
file
3422 # Reject unsafe characters in $srcdir or the absolute working directory
3423 # name. Accept space and tab only in the latter.
3427 *[\\\"\
#\$\&\'\`$am_lf]*)
3428 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3431 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3432 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3435 # Do `set' in a subshell so we don't clobber the current shell's
3436 # arguments. Must try -L first in case configure is actually a
3437 # symlink; some systems play weird games with the mod time of symlinks
3438 # (eg FreeBSD returns the mod time of the symlink's containing
3441 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3442 if test "$*" = "X"; then
3444 set X
`ls -t "$srcdir/configure" conftest.file`
3447 if test "$*" != "X $srcdir/configure conftest.file" \
3448 && test "$*" != "X conftest.file $srcdir/configure"; then
3450 # If neither matched, then we have a broken ls. This can happen
3451 # if, for instance, CONFIG_SHELL is bash and it inherits a
3452 # broken ls alias from the environment. This has actually
3453 # happened. Such a system could not be considered "sane".
3454 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3455 alias in your environment" "$LINENO" 5
3458 test "$2" = conftest.
file
3464 as_fn_error
"newly created file is older than distributed files!
3465 Check your system clock" "$LINENO" 5
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3468 $as_echo "yes" >&6; }
3469 test "$program_prefix" != NONE
&&
3470 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3471 # Use a double $ so make ignores it.
3472 test "$program_suffix" != NONE
&&
3473 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3474 # Double any \ or $.
3475 # By default was `s,x,x', remove it if useless.
3476 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3477 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3479 # expand $ac_aux_dir to an absolute path
3480 am_aux_dir
=`cd $ac_aux_dir && pwd`
3482 if test x
"${MISSING+set}" != xset
; then
3485 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3487 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3490 # Use eval to expand $SHELL
3491 if eval "$MISSING --run true"; then
3492 am_missing_run
="$MISSING --run "
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3496 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3499 if test x
"${install_sh}" != xset
; then
3502 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3504 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3508 # Installed binaries are usually stripped using `strip' when the user
3509 # run `make install-strip'. However `strip' might not be the right
3510 # tool to use in cross-compilation environments, therefore Automake
3511 # will honor the `STRIP' environment variable to overrule this program.
3512 if test "$cross_compiling" != no
; then
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3515 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_STRIP+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$STRIP"; then
3522 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir
=.
3529 for ac_exec_ext
in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 STRIP
=$ac_cv_prog_STRIP
3542 if test -n "$STRIP"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3544 $as_echo "$STRIP" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3552 if test -z "$ac_cv_prog_STRIP"; then
3554 # Extract the first word of "strip", so it can be a program name with args.
3555 set dummy strip
; ac_word
=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$ac_ct_STRIP"; then
3562 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3568 test -z "$as_dir" && as_dir
=.
3569 for ac_exec_ext
in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_ac_ct_STRIP
="strip"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3582 if test -n "$ac_ct_STRIP"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3584 $as_echo "$ac_ct_STRIP" >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3590 if test "x$ac_ct_STRIP" = x
; then
3593 case $cross_compiling:$ac_tool_warned in
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned
=yes ;;
3602 STRIP
="$ac_cv_prog_STRIP"
3606 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3609 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3610 if test -z "$MKDIR_P"; then
3611 if test "${ac_cv_path_mkdir+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3615 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3618 test -z "$as_dir" && as_dir
=.
3619 for ac_prog
in mkdir gmkdir
; do
3620 for ac_exec_ext
in '' $ac_executable_extensions; do
3621 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3622 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3623 'mkdir (GNU coreutils) '* | \
3624 'mkdir (coreutils) '* | \
3625 'mkdir (fileutils) '4.1*)
3626 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3636 test -d .
/--version && rmdir .
/--version
3637 if test "${ac_cv_path_mkdir+set}" = set; then
3638 MKDIR_P
="$ac_cv_path_mkdir -p"
3640 # As a last resort, use the slow shell script. Don't cache a
3641 # value for MKDIR_P within a source directory, because that will
3642 # break other packages using the cache if that directory is
3643 # removed, or if the value is a relative name.
3644 MKDIR_P
="$ac_install_sh -d"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3648 $as_echo "$MKDIR_P" >&6; }
3653 [\\/$
]* | ?
:[\\/]*) ;;
3654 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3657 for ac_prog
in gawk mawk nawk
awk
3659 # Extract the first word of "$ac_prog", so it can be a program name with args.
3660 set dummy
$ac_prog; ac_word
=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if test "${ac_cv_prog_AWK+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3666 if test -n "$AWK"; then
3667 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3673 test -z "$as_dir" && as_dir
=.
3674 for ac_exec_ext
in '' $ac_executable_extensions; do
3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676 ac_cv_prog_AWK
="$ac_prog"
3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 if test -n "$AWK"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3689 $as_echo "$AWK" >&6; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3696 test -n "$AWK" && break
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3702 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3703 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3704 $as_echo_n "(cached) " >&6
3706 cat >conftest.
make <<\_ACEOF
3709 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3711 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3714 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3716 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3720 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 SET_MAKE
="MAKE=${MAKE-make}"
3730 rm -rf .tst
2>/dev
/null
3731 mkdir .tst
2>/dev
/null
3732 if test -d .tst
; then
3737 rmdir .tst
2>/dev
/null
3739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3741 # is not polluted with repeated "-I."
3742 am__isrc
=' -I$(srcdir)'
3743 # test to see if srcdir already configured
3744 if test -f $srcdir/config.status
; then
3745 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3749 # test whether we have cygpath
3750 if test -z "$CYGPATH_W"; then
3751 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3752 CYGPATH_W
='cygpath -w'
3759 # Define the identity of the package.
3764 cat >>confdefs.h
<<_ACEOF
3765 #define PACKAGE "$PACKAGE"
3769 cat >>confdefs.h
<<_ACEOF
3770 #define VERSION "$VERSION"
3773 # Some tools Automake needs.
3775 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3778 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3781 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3784 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3787 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3789 # We need awk for the "check" target. The system "awk" is bad on
3791 # Always define AMTAR for backward compatibility.
3793 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3795 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3804 lispdir
='${datadir}/emacs/${version}/lisp'
3805 leimdir
='${datadir}/emacs/${version}/leim'
3806 standardlisppath
='${lispdir}:${leimdir}'
3807 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
3808 '${datadir}/emacs/site-lisp'
3809 lisppath
='${locallisppath}:${standardlisppath}'
3810 etcdir
='${datadir}/emacs/${version}/etc'
3811 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
3812 docdir
='${datadir}/emacs/${version}/etc'
3813 gamedir
='${localstatedir}/games/emacs'
3816 # Check whether --with-all was given.
3817 if test "${with_all+set}" = set; then :
3818 withval
=$with_all; with_features
=$withval
3827 # Check whether --with-pop was given.
3828 if test "${with_pop+set}" = set; then :
3831 with_pop
=$with_features
3834 if test "$with_pop" = yes; then
3835 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3840 # Check whether --with-kerberos was given.
3841 if test "${with_kerberos+set}" = set; then :
3842 withval
=$with_kerberos;
3847 if test "$with_kerberos" != no
; then
3848 $as_echo "#define KERBEROS 1" >>confdefs.h
3853 # Check whether --with-kerberos5 was given.
3854 if test "${with_kerberos5+set}" = set; then :
3855 withval
=$with_kerberos5;
3860 if test "${with_kerberos5}" != no
; then
3861 if test "${with_kerberos}" = no
; then
3863 $as_echo "#define KERBEROS 1" >>confdefs.h
3867 $as_echo "#define KERBEROS5 1" >>confdefs.h
3872 # Check whether --with-hesiod was given.
3873 if test "${with_hesiod+set}" = set; then :
3874 withval
=$with_hesiod;
3879 if test "$with_hesiod" != no
; then
3881 $as_echo "#define HESIOD 1" >>confdefs.h
3886 # Check whether --with-mmdf was given.
3887 if test "${with_mmdf+set}" = set; then :
3893 if test "$with_mmdf" != no
; then
3895 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3900 # Check whether --with-mail-unlink was given.
3901 if test "${with_mail_unlink+set}" = set; then :
3902 withval
=$with_mail_unlink;
3907 if test "$with_mail_unlink" != no
; then
3909 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3914 # Check whether --with-mailhost was given.
3915 if test "${with_mailhost+set}" = set; then :
3916 withval
=$with_mailhost;
3917 cat >>confdefs.h
<<_ACEOF
3918 #define MAILHOST "$withval"
3925 # Check whether --with-sound was given.
3926 if test "${with_sound+set}" = set; then :
3927 withval
=$with_sound;
3929 with_sound
=$with_features
3934 # Check whether --with-x-toolkit was given.
3935 if test "${with_x_toolkit+set}" = set; then :
3936 withval
=$with_x_toolkit; case "${withval}" in
3937 y | ye |
yes ) val
=gtk
;;
3939 l | lu | luc | luci | lucid
) val
=lucid
;;
3940 a |
at | ath | athe | athen | athena
) val
=athena
;;
3941 m | mo | mot | moti | motif
) val
=motif
;;
3942 g | gt | gtk
) val
=gtk
;;
3946 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
3947 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3948 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3949 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3958 # Check whether --with-wide-int was given.
3959 if test "${with_wide_int+set}" = set; then :
3960 withval
=$with_wide_int;
3965 if test "$with_wide_int" = yes; then
3967 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3972 # Check whether --with-xpm was given.
3973 if test "${with_xpm+set}" = set; then :
3976 with_xpm
=$with_features
3980 # Check whether --with-jpeg was given.
3981 if test "${with_jpeg+set}" = set; then :
3984 with_jpeg
=$with_features
3988 # Check whether --with-tiff was given.
3989 if test "${with_tiff+set}" = set; then :
3992 with_tiff
=$with_features
3996 # Check whether --with-gif was given.
3997 if test "${with_gif+set}" = set; then :
4000 with_gif
=$with_features
4004 # Check whether --with-png was given.
4005 if test "${with_png+set}" = set; then :
4008 with_png
=$with_features
4012 # Check whether --with-rsvg was given.
4013 if test "${with_rsvg+set}" = set; then :
4016 with_rsvg
=$with_features
4020 # Check whether --with-xml2 was given.
4021 if test "${with_xml2+set}" = set; then :
4024 with_xml2
=$with_features
4028 # Check whether --with-imagemagick was given.
4029 if test "${with_imagemagick+set}" = set; then :
4030 withval
=$with_imagemagick;
4032 with_imagemagick
=$with_features
4037 # Check whether --with-xft was given.
4038 if test "${with_xft+set}" = set; then :
4041 with_xft
=$with_features
4045 # Check whether --with-libotf was given.
4046 if test "${with_libotf+set}" = set; then :
4047 withval
=$with_libotf;
4049 with_libotf
=$with_features
4053 # Check whether --with-m17n-flt was given.
4054 if test "${with_m17n_flt+set}" = set; then :
4055 withval
=$with_m17n_flt;
4057 with_m17n_flt
=$with_features
4062 # Check whether --with-toolkit-scroll-bars was given.
4063 if test "${with_toolkit_scroll_bars+set}" = set; then :
4064 withval
=$with_toolkit_scroll_bars;
4066 with_toolkit_scroll_bars
=$with_features
4070 # Check whether --with-xaw3d was given.
4071 if test "${with_xaw3d+set}" = set; then :
4072 withval
=$with_xaw3d;
4074 with_xaw3d
=$with_features
4078 # Check whether --with-xim was given.
4079 if test "${with_xim+set}" = set; then :
4082 with_xim
=$with_features
4086 # Check whether --with-ns was given.
4087 if test "${with_ns+set}" = set; then :
4095 # Check whether --with-gpm was given.
4096 if test "${with_gpm+set}" = set; then :
4099 with_gpm
=$with_features
4103 # Check whether --with-dbus was given.
4104 if test "${with_dbus+set}" = set; then :
4107 with_dbus
=$with_features
4111 # Check whether --with-gconf was given.
4112 if test "${with_gconf+set}" = set; then :
4113 withval
=$with_gconf;
4115 with_gconf
=$with_features
4119 # Check whether --with-gsettings was given.
4120 if test "${with_gsettings+set}" = set; then :
4121 withval
=$with_gsettings;
4123 with_gsettings
=$with_features
4127 # Check whether --with-selinux was given.
4128 if test "${with_selinux+set}" = set; then :
4129 withval
=$with_selinux;
4131 with_selinux
=$with_features
4135 # Check whether --with-gnutls was given.
4136 if test "${with_gnutls+set}" = set; then :
4137 withval
=$with_gnutls;
4139 with_gnutls
=$with_features
4143 ## For the times when you want to build Emacs but don't have
4144 ## a suitable makeinfo, and can live without the manuals.
4146 # Check whether --with-makeinfo was given.
4147 if test "${with_makeinfo+set}" = set; then :
4148 withval
=$with_makeinfo;
4150 with_makeinfo
=$with_features
4154 ## Makefile.in needs the cache file name.
4157 ## This is an option because I do not know if all info/man support
4158 ## compressed files, nor how to test if they do so.
4160 # Check whether --with-compress-info was given.
4161 if test "${with_compress_info+set}" = set; then :
4162 withval
=$with_compress_info;
4164 with_compress_info
=$with_features
4167 if test $with_compress_info = yes; then
4175 # Check whether --with-pkg-config-prog was given.
4176 if test "${with_pkg_config_prog+set}" = set; then :
4177 withval
=$with_pkg_config_prog;
4180 if test "X${with_pkg_config_prog}" != X
; then
4181 if test "${with_pkg_config_prog}" != yes; then
4182 PKG_CONFIG
="${with_pkg_config_prog}"
4188 # Check whether --with-crt-dir was given.
4189 if test "${with_crt_dir+set}" = set; then :
4190 withval
=$with_crt_dir;
4193 CRT_DIR
="${with_crt_dir}"
4196 # Check whether --with-gameuser was given.
4197 if test "${with_gameuser+set}" = set; then :
4198 withval
=$with_gameuser;
4201 test "X${with_gameuser}" != X
&& test "${with_gameuser}" != yes \
4202 && gameuser
="${with_gameuser}"
4203 test "X$gameuser" = X
&& gameuser
=games
4206 # Check whether --with-gnustep-conf was given.
4207 if test "${with_gnustep_conf+set}" = set; then :
4208 withval
=$with_gnustep_conf;
4211 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
4212 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
4213 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4214 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
4216 # Check whether --enable-ns-self-contained was given.
4217 if test "${enable_ns_self_contained+set}" = set; then :
4218 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
4220 EN_NS_SELF_CONTAINED
=yes
4224 # Check whether --enable-locallisppath was given.
4225 if test "${enable_locallisppath+set}" = set; then :
4226 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
4228 elif test "${enableval}" != "yes"; then
4229 locallisppath
=${enableval}
4234 # Check whether --enable-checking was given.
4235 if test "${enable_checking+set}" = set; then :
4236 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
4239 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
4240 for check
in $ac_checking_flags
4243 # these set all the flags to specific states
4244 yes) ac_enable_checking
=1 ;;
4245 no
) ac_enable_checking
= ;
4246 ac_gc_check_stringbytes
= ;
4247 ac_gc_check_string_overrun
= ;
4248 ac_gc_check_string_free_list
= ;
4249 ac_xmalloc_overrun
= ;
4250 ac_gc_check_cons_list
= ;
4252 all
) ac_enable_checking
=1 ;
4253 ac_gc_check_stringbytes
=1 ;
4254 ac_gc_check_string_overrun
=1 ;
4255 ac_gc_check_string_free_list
=1 ;
4256 ac_xmalloc_overrun
=1 ;
4257 ac_gc_check_cons_list
=1 ;
4258 ac_glyphs_debug
=1 ;;
4259 # these enable particular checks
4260 stringbytes
) ac_gc_check_stringbytes
=1 ;;
4261 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
4262 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
4263 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
4264 conslist
) ac_gc_check_cons_list
=1 ;;
4265 glyphs
) ac_glyphs_debug
=1 ;;
4266 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
4271 if test x
$ac_enable_checking != x
; then
4273 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4276 if test x
$ac_gc_check_stringbytes != x
; then
4278 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4281 if test x
$ac_gc_check_string_overrun != x
; then
4283 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4286 if test x
$ac_gc_check_string_free_list != x
; then
4288 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4291 if test x
$ac_xmalloc_overrun != x
; then
4293 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4296 if test x
$ac_gc_check_cons_list != x
; then
4298 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4301 if test x
$ac_glyphs_debug != x
; then
4303 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4307 # Check whether --enable-check-lisp-object-type was given.
4308 if test "${enable_check_lisp_object_type+set}" = set; then :
4309 enableval
=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4311 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4318 # Check whether --enable-profiling was given.
4319 if test "${enable_profiling+set}" = set; then :
4320 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
4323 if test x
$ac_enable_profiling != x
; then
4324 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
4330 # Check whether --enable-autodepend was given.
4331 if test "${enable_autodepend+set}" = set; then :
4332 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
4334 ac_enable_autodepend
=yes
4338 #### Make srcdir absolute, if it isn't already. It's important to
4339 #### avoid running the path through pwd unnecessarily, since pwd can
4340 #### give you automounter prefixes, which can go away. We do all this
4341 #### so Emacs can find its files when run uninstalled.
4342 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4347 ## We may be able to use the $PWD environment variable to make this
4348 ## absolute. But sometimes PWD is inaccurate.
4349 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4350 ## but that tested only for a well-formed and valid PWD,
4351 ## it did not object when PWD was well-formed and valid but just wrong.
4352 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4356 srcdir
="`(cd ${srcdir}; pwd)`"
4359 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
4362 ### Canonicalize the configuration name.
4364 # Make sure we can run config.sub.
4365 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4366 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4369 $as_echo_n "checking build system type... " >&6; }
4370 if test "${ac_cv_build+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4373 ac_build_alias
=$build_alias
4374 test "x$ac_build_alias" = x
&&
4375 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4376 test "x$ac_build_alias" = x
&&
4377 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4378 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4379 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4383 $as_echo "$ac_cv_build" >&6; }
4384 case $ac_cv_build in
4386 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4389 ac_save_IFS
=$IFS; IFS
='-'
4395 # Remember, the first character of IFS is used to create $*,
4396 # except with old shells:
4399 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4403 $as_echo_n "checking host system type... " >&6; }
4404 if test "${ac_cv_host+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4407 if test "x$host_alias" = x
; then
4408 ac_cv_host
=$ac_cv_build
4410 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4411 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4416 $as_echo "$ac_cv_host" >&6; }
4419 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4422 ac_save_IFS
=$IFS; IFS
='-'
4428 # Remember, the first character of IFS is used to create $*,
4429 # except with old shells:
4432 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4436 configuration
=${host_alias-${build_alias-$host}}
4440 ### If you add support for a new configuration, add code to this
4441 ### switch statement to recognize your configuration name and select
4442 ### the appropriate operating system file.
4444 ### You would hope that you could choose an s/*.h
4445 ### file based on the operating system portion. However, it turns out
4446 ### that each s/*.h file is pretty manufacturer-specific.
4447 ### So we basically have to have a special case for each
4448 ### configuration name.
4450 ### As far as handling version numbers on operating systems is
4451 ### concerned, make sure things will fail in a fixable way. If
4452 ### /etc/MACHINES doesn't say anything about version numbers, be
4453 ### prepared to handle anything reasonably. If version numbers
4454 ### matter, be sure /etc/MACHINES says something about it.
4456 opsys
='' unported
=no
4457 case "${canonical}" in
4459 ## GNU/Linux and similar ports
4469 ## FreeBSD kernel + glibc based userland
4484 ## Apple Darwin / Mac OS X
4486 case "${canonical}" in
4493 ## Use fink packages if available.
4494 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4495 ## if test -d /sw/include && test -d /sw/lib; then
4496 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4497 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4501 ## HP 9000 series 700 and 800, running HP/UX
4502 hppa
*-hp-hpux10.2
* )
4505 hppa
*-hp-hpux1[1-9]* )
4507 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4511 rs6000-ibm-aix4.
[23]* )
4514 powerpc-ibm-aix4.
[23]* )
4517 rs6000-ibm-aix
[56]* )
4520 powerpc-ibm-aix
[56]* )
4524 ## Silicon Graphics machines
4528 # Without defining _LANGUAGE_C, things get masked out in the headers
4529 # so that, for instance, grepping for `free' in stdlib.h fails and
4530 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4531 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
4536 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
4537 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
4538 case "${canonical}" in
4540 amd64-
*-*|x86_64-
*-*) ;;
4544 case "${canonical}" in
4545 *-sunos5.6
* |
*-solaris2.6
* )
4549 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
4551 emacs_check_sunpro_c
=yes
4553 *-sunos5* |
*-solaris* )
4555 emacs_check_sunpro_c
=yes
4558 ## Watch out for a compiler that we know will not work.
4559 case "${canonical}" in
4560 *-solaris* |
*-sunos5* )
4561 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
4562 ## /usr/ucb/cc doesn't work;
4563 ## we should find some other compiler that does work.
4571 ## Intel 386 machines where we don't care about the manufacturer.
4573 case "${canonical}" in
4574 *-cygwin ) opsys
=cygwin
;;
4575 *-darwin* ) opsys
=darwin
;;
4576 *-sysv4.2uw
* ) opsys
=unixware
;;
4577 *-sysv5uw* ) opsys
=unixware
;;
4578 *-sysv5OpenUNIX* ) opsys
=unixware
;;
4579 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4588 ### If the code above didn't choose an operating system, just choose
4589 ### an operating system based on the configuration name. You really
4590 ### only want to use this when you have no idea what the right
4591 ### operating system is; if you know what operating systems a machine
4592 ### runs, it's cleaner to make it explicit in the case statement
4594 if test x
"${opsys}" = x
; then
4595 case "${canonical}" in
4596 *-gnu* ) opsys
=gnu
;;
4605 if test $unported = yes; then
4606 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
4607 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4611 #### Choose a compiler.
4614 ac_cpp
='$CPP $CPPFLAGS'
4615 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4620 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_CC+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4626 if test -n "$CC"; then
4627 ac_cv_prog_CC
="$CC" # Let the user override the test.
4629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir
=.
4634 for ac_exec_ext
in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 if test -n "$CC"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4649 $as_echo "$CC" >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4657 if test -z "$ac_cv_prog_CC"; then
4659 # Extract the first word of "gcc", so it can be a program name with args.
4660 set dummy gcc
; ac_word
=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$ac_ct_CC"; then
4667 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir
=.
4674 for ac_exec_ext
in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_CC
="gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4687 if test -n "$ac_ct_CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4689 $as_echo "$ac_ct_CC" >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4695 if test "x$ac_ct_CC" = x
; then
4698 case $cross_compiling:$ac_tool_warned in
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned
=yes ;;
4710 if test -z "$CC"; then
4711 if test -n "$ac_tool_prefix"; then
4712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4713 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_CC+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4719 if test -n "$CC"; then
4720 ac_cv_prog_CC
="$CC" # Let the user override the test.
4722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir
=.
4727 for ac_exec_ext
in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 if test -n "$CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4742 $as_echo "$CC" >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4751 if test -z "$CC"; then
4752 # Extract the first word of "cc", so it can be a program name with args.
4753 set dummy cc
; ac_word
=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_CC+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC
="$CC" # Let the user override the test.
4763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir
=.
4768 for ac_exec_ext
in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4771 ac_prog_rejected
=yes
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 if test $ac_prog_rejected = yes; then
4783 # We found a bogon in the path, so make sure we never use it.
4784 set dummy
$ac_cv_prog_CC
4786 if test $# != 0; then
4787 # We chose a different compiler from the bogus one.
4788 # However, it has the same basename, so the bogon will be chosen
4789 # first if we set CC to just the basename; use the full file name.
4791 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4797 if test -n "$CC"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4807 if test -z "$CC"; then
4808 if test -n "$ac_tool_prefix"; then
4809 for ac_prog
in cl.exe
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_CC+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC
="$CC" # Let the user override the test.
4821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir
=.
4826 for ac_exec_ext
in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 if test -n "$CC"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4841 $as_echo "$CC" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 test -n "$CC" && break
4851 if test -z "$CC"; then
4853 for ac_prog
in cl.exe
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856 set dummy
$ac_prog; ac_word
=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4862 if test -n "$ac_ct_CC"; then
4863 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir
=.
4870 for ac_exec_ext
in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_ac_ct_CC
="$ac_prog"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4883 if test -n "$ac_ct_CC"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4885 $as_echo "$ac_ct_CC" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4892 test -n "$ac_ct_CC" && break
4895 if test "x$ac_ct_CC" = x
; then
4898 case $cross_compiling:$ac_tool_warned in
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902 ac_tool_warned
=yes ;;
4911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error
"no acceptable C compiler found in \$PATH
4914 See \`config.log' for more details." "$LINENO" 5; }
4916 # Provide some information about the compiler.
4917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4920 for ac_option
in --version -v -V -qversion; do
4921 { { ac_try
="$ac_compiler $ac_option >&5"
4923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4924 *) ac_try_echo=$ac_try;;
4926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927 $as_echo "$ac_try_echo"; } >&5
4928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4930 if test -s conftest.err; then
4932 ... rest of stderr output deleted ...
4933 10q' conftest.err >conftest.er1
4934 cat conftest.er1 >&5
4936 rm -f conftest.er1 conftest.err
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4952 ac_clean_files_save=$ac_clean_files
4953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4954 # Try to create an executable without -o first, disregard a.out.
4955 # It will help us diagnose broken compilers, and finding out an intuition
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4958 $as_echo_n "checking whether the C compiler works... " >&6; }
4959 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4961 # The possible output files:
4962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4965 for ac_file in $ac_files
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4974 if { { ac_try="$ac_link_default"
4976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4977 *) ac_try_echo
=$ac_try;;
4979 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980 $as_echo "$ac_try_echo"; } >&5
4981 (eval "$ac_link_default") 2>&5
4983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }; then :
4985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4988 # so that the user can short-circuit this test for compilers unknown to
4990 for ac_file
in $ac_files ''
4992 test -f "$ac_file" ||
continue
4994 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4997 # We found the default executable, but exeext='' is most
5001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
5003 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5005 # We set ac_cv_exeext here because the later test for it is not
5006 # safe: cross compilers may not add the suffix if given an `-o'
5007 # argument, so we may need to know it at that point already.
5008 # Even if this section looks crufty: it has the advantage of
5015 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5020 if test -z "$ac_file"; then :
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 $as_echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.
$ac_ext >&5
5026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5028 { as_fn_set_status
77
5029 as_fn_error
"C compiler cannot create executables
5030 See \`config.log' for more details." "$LINENO" 5; }; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5036 $as_echo_n "checking for C compiler default output file name... " >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5038 $as_echo "$ac_file" >&6; }
5039 ac_exeext
=$ac_cv_exeext
5041 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5042 ac_clean_files
=$ac_clean_files_save
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5044 $as_echo_n "checking for suffix of executables... " >&6; }
5045 if { { ac_try
="$ac_link"
5047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051 $as_echo "$ac_try_echo"; } >&5
5052 (eval "$ac_link") 2>&5
5054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then :
5056 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5057 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5058 # work properly (i.e., refer to `conftest.exe'), while it won't with
5060 for ac_file
in conftest.exe conftest conftest.
*; do
5061 test -f "$ac_file" ||
continue
5063 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5064 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5072 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5073 See \`config.log' for more details." "$LINENO" 5; }
5075 rm -f conftest conftest
$ac_cv_exeext
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5077 $as_echo "$ac_cv_exeext" >&6; }
5079 rm -f conftest.
$ac_ext
5080 EXEEXT
=$ac_cv_exeext
5082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5088 FILE *f = fopen ("conftest.out", "w");
5089 return ferror (f) || fclose (f) != 0;
5095 ac_clean_files
="$ac_clean_files conftest.out"
5096 # Check that the compiler produces executables we can run. If not, either
5097 # the compiler is broken, or we cross compile.
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5099 $as_echo_n "checking whether we are cross compiling... " >&6; }
5100 if test "$cross_compiling" != yes; then
5101 { { ac_try
="$ac_link"
5103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5107 $as_echo "$ac_try_echo"; } >&5
5108 (eval "$ac_link") 2>&5
5110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5111 test $ac_status = 0; }
5112 if { ac_try='./conftest$ac_cv_exeext'
5113 { { case "(($ac_try" in
5114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5115 *) ac_try_echo
=$ac_try;;
5117 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118 $as_echo "$ac_try_echo"; } >&5
5119 (eval "$ac_try") 2>&5
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }; }; then
5125 if test "$cross_compiling" = maybe
; then
5128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130 as_fn_error
"cannot run C compiled programs.
5131 If you meant to cross compile, use \`--host'.
5132 See \`config.log' for more details." "$LINENO" 5; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5137 $as_echo "$cross_compiling" >&6; }
5139 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5140 ac_clean_files
=$ac_clean_files_save
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5142 $as_echo_n "checking for suffix of object files... " >&6; }
5143 if test "${ac_cv_objext+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5157 rm -f conftest.o conftest.obj
5158 if { { ac_try
="$ac_compile"
5160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5164 $as_echo "$ac_try_echo"; } >&5
5165 (eval "$ac_compile") 2>&5
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }; then :
5169 for ac_file in conftest.o conftest.obj conftest.*; do
5170 test -f "$ac_file" || continue;
5172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5178 $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5183 as_fn_error "cannot compute suffix of object files
: cannot compile
5184 See \
`config.log' for more details." "$LINENO" 5; }
5186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5189 $as_echo "$ac_cv_objext" >&6; }
5190 OBJEXT=$ac_cv_objext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5194 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5211 if ac_fn_c_try_compile "$LINENO"; then :
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5222 if test $ac_compiler_gnu = yes; then
5227 ac_test_CFLAGS=${CFLAGS+set}
5228 ac_save_CFLAGS=$CFLAGS
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5231 if test "${ac_cv_prog_cc_g+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5234 ac_save_c_werror_flag=$ac_c_werror_flag
5235 ac_c_werror_flag=yes
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5249 if ac_fn_c_try_compile "$LINENO"; then :
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5264 if ac_fn_c_try_compile "$LINENO"; then :
5267 ac_c_werror_flag=$ac_save_c_werror_flag
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5280 if ac_fn_c_try_compile "$LINENO"; then :
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_c_werror_flag=$ac_save_c_werror_flag
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5291 $as_echo "$ac_cv_prog_cc_g" >&6; }
5292 if test "$ac_test_CFLAGS" = set; then
5293 CFLAGS=$ac_save_CFLAGS
5294 elif test $ac_cv_prog_cc_g = yes; then
5295 if test "$GCC" = yes; then
5301 if test "$GCC" = yes; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5309 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 ac_cv_prog_cc_c89=no
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5318 #include <sys/types.h>
5319 #include <sys/stat.h>
5320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5321 struct buf { int x; };
5322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5323 static char *e (p, i)
5329 static char *f (char * (*g) (char **, int), char **p, ...)
5334 s = g (p, va_arg (v,int));
5339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5340 function prototypes and stuff, but not '\xHH' hex character constants.
5341 These don't provoke an error unfortunately, instead are silently treated
5342 as 'x'. The following induces an error, until -std is added to get
5343 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5344 array size at least. It's necessary to write '\x00'==0 to get something
5345 that's true only with -std. */
5346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5348 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5349 inside strings and character constants. */
5351 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5353 int test (int i, double x);
5354 struct s1 {int (*f) (int a);};
5355 struct s2 {int (*f) (double a);};
5356 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5362 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5367 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5368 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5370 CC="$ac_save_CC $ac_arg"
5371 if ac_fn_c_try_compile "$LINENO"; then :
5372 ac_cv_prog_cc_c89=$ac_arg
5374 rm -f core conftest.err conftest.$ac_objext
5375 test "x$ac_cv_prog_cc_c89" != "xno" && break
5377 rm -f conftest.$ac_ext
5382 case "x$ac_cv_prog_cc_c89" in
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5385 $as_echo "none needed" >&6; } ;;
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5388 $as_echo "unsupported" >&6; } ;;
5390 CC="$CC $ac_cv_prog_cc_c89"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5392 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5394 if test "x$ac_cv_prog_cc_c89" != xno; then :
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403 DEPDIR="${am__leading_dot}deps"
5405 ac_config_commands="$ac_config_commands depfiles"
5408 am_make=${MAKE-make}
5409 cat > confinc << 'END'
5411 @echo this is the am__doit target
5414 # If we don't find an include directive, just comment out the code.
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5416 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5420 # First try GNU make style include.
5421 echo "include confinc" > confmf
5422 # Ignore all kinds of additional output from `make'.
5423 case `$am_make -s -f confmf 2> /dev/null` in #(
5424 *the\ am__doit\ target*)
5430 # Now try BSD make style include.
5431 if test "$am__include" = "#"; then
5432 echo '.include
"confinc"' > confmf
5433 case `$am_make -s -f confmf 2> /dev/null` in #(
5434 *the\ am__doit\ target*)
5435 am__include=.include
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5444 $as_echo "$_am_result" >&6; }
5445 rm -f confinc confmf
5447 # Check whether --enable-dependency-tracking was given.
5448 if test "${enable_dependency_tracking+set}" = set; then :
5449 enableval=$enable_dependency_tracking;
5452 if test "x$enable_dependency_tracking" != xno; then
5453 am_depcomp="$ac_aux_dir/depcomp"
5456 if test "x$enable_dependency_tracking" != xno
; then
5466 depcc
="$CC" am_compiler_list
=
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5469 $as_echo_n "checking dependency style of $depcc... " >&6; }
5470 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5474 # We make a subdir and do the tests there. Otherwise we can end up
5475 # making bogus files that we don't know about and never remove. For
5476 # instance it was reported that on HP-UX the gcc test will end up
5477 # making a dummy file named `D' -- because `-MD' means `put the output
5480 # Copy depcomp to subdir because otherwise we won't find it if we're
5481 # using a relative directory.
5482 cp "$am_depcomp" conftest.dir
5484 # We will build objects and dependencies in a subdirectory because
5485 # it helps to detect inapplicable dependency modes. For instance
5486 # both Tru64's cc and ICC support -MD to output dependencies as a
5487 # side effect of compilation, but ICC will put the dependencies in
5488 # the current directory while Tru64 will put them in the object
5492 am_cv_CC_dependencies_compiler_type
=none
5493 if test "$am_compiler_list" = ""; then
5494 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5497 case " $depcc " in #(
5498 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5501 for depmode
in $am_compiler_list; do
5502 # Setup a source with many dependencies, because some compilers
5503 # like to wrap large dependency lists on column 80 (with \), and
5504 # we should not choose a depcomp mode which is confused by this.
5506 # We need to recreate these files for each test, as the compiler may
5507 # overwrite some of them when testing with obscure command lines.
5508 # This happens at least with the AIX C compiler.
5510 for i
in 1 2 3 4 5 6; do
5511 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5512 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5513 # Solaris 8's {/usr,}/bin/sh.
5514 touch sub
/conftst
$i.h
5516 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5518 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5519 # mode. It turns out that the SunPro C++ compiler does not properly
5520 # handle `-M -o', and we need to detect this. Also, some Intel
5521 # versions had trouble with output in subdirs
5522 am__obj
=sub
/conftest.
${OBJEXT-o}
5523 am__minus_obj
="-o $am__obj"
5526 # This depmode causes a compiler race in universal mode.
5527 test "$am__universal" = false ||
continue
5530 # after this tag, mechanisms are not by side-effect, so they'll
5531 # only be used when explicitly requested
5532 if test "x$enable_dependency_tracking" = xyes
; then
5538 msvisualcpp | msvcmsys
)
5539 # This compiler won't grok `-c -o', but also, the minuso test has
5540 # not run yet. These depmodes are late enough in the game, and
5541 # so weak that their functioning should not be impacted.
5542 am__obj
=conftest.
${OBJEXT-o}
5547 if depmode
=$depmode \
5548 source=sub
/conftest.c object
=$am__obj \
5549 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5550 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5551 >/dev
/null
2>conftest.err
&&
5552 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5553 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5554 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5555 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5556 # icc doesn't choke on unknown options, it will just issue warnings
5557 # or remarks (even with -Werror). So we grep stderr for any message
5558 # that says an option was ignored or not supported.
5559 # When given -MP, icc 7.0 and 7.1 complain thusly:
5560 # icc: Command line warning: ignoring option '-M'; no argument required
5561 # The diagnosis changed in icc 8.0:
5562 # icc: Command line remark: option '-MP' not supported
5563 if (grep 'ignoring option' conftest.err ||
5564 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5565 am_cv_CC_dependencies_compiler_type
=$depmode
5574 am_cv_CC_dependencies_compiler_type
=none
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5579 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5580 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5583 test "x$enable_dependency_tracking" != xno \
5584 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5586 am__fastdepCC_FALSE
='#'
5588 am__fastdepCC_TRUE
='#'
5589 am__fastdepCC_FALSE
=
5593 if test "x$CC" != xcc
; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5595 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5598 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5600 set dummy
$CC; ac_cc
=`$as_echo "$2" |
5601 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5602 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5603 $as_echo_n "(cached) " >&6
5605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5616 # Make sure it works both with $CC and with simple cc.
5617 # We do the test twice because some compilers refuse to overwrite an
5618 # existing .o file with -o, though they will create one.
5619 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5621 if { { case "(($ac_try" in
5622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5626 $as_echo "$ac_try_echo"; } >&5
5627 (eval "$ac_try") 2>&5
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; } &&
5631 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5633 *) ac_try_echo
=$ac_try;;
5635 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5636 $as_echo "$ac_try_echo"; } >&5
5637 (eval "$ac_try") 2>&5
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; };
5642 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5643 if test "x$CC" != xcc
; then
5644 # Test first that cc exists at all.
5645 if { ac_try
='cc -c conftest.$ac_ext >&5'
5646 { { case "(($ac_try" in
5647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5651 $as_echo "$ac_try_echo"; } >&5
5652 (eval "$ac_try") 2>&5
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; }; }; then
5656 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5658 if { { case "(($ac_try" in
5659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5660 *) ac_try_echo
=$ac_try;;
5662 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5663 $as_echo "$ac_try_echo"; } >&5
5664 (eval "$ac_try") 2>&5
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; } &&
5668 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
5669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5673 $as_echo "$ac_try_echo"; } >&5
5674 (eval "$ac_try") 2>&5
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; };
5682 # cc exists but doesn't like -o.
5683 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5690 rm -f core conftest*
5693 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5700 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5704 # FIXME: we rely on the cache variable name because
5705 # there is no other way.
5707 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5708 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5709 if test "$am_t" != yes; then
5710 # Losing compiler, so override with the script.
5711 # FIXME: It is wrong to rewrite CC.
5712 # But if we don't then we get into trouble of one sort or another.
5713 # A longer-term fix would be to have automake use am__CC in this case,
5714 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5715 CC="$am_aux_dir/compile $CC"
5720 if test x$GCC = xyes; then
5721 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5723 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5726 # Initialize gnulib right after choosing the compiler.
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5734 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5735 # On Suns, sometimes $CPP names a directory.
5736 if test -n "$CPP" && test -d "$CPP"; then
5739 if test -z "$CPP"; then
5740 if test "${ac_cv_prog_CPP+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5743 # Double quotes because CPP needs to be expanded
5744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5747 for ac_c_preproc_warn_flag in '' yes
5749 # Use a header file that comes with gcc, so configuring glibc
5750 # with a fresh cross-compiler works.
5751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752 # <limits.h> exists even on freestanding compilers.
5753 # On the NeXT, cc -E runs the code through the compiler's parser,
5754 # not just through cpp. "Syntax error" is here to catch this case.
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5758 # include <limits.h>
5760 # include <assert.h>
5764 if ac_fn_c_try_cpp "$LINENO"; then :
5767 # Broken: fails on valid input.
5770 rm -f conftest.err conftest.$ac_ext
5772 # OK, works on sane cases. Now check whether nonexistent headers
5773 # can be detected and how.
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #include <ac_nonexistent.h>
5778 if ac_fn_c_try_cpp "$LINENO"; then :
5779 # Broken: success on invalid input.
5782 # Passes both tests.
5786 rm -f conftest.err conftest.$ac_ext
5789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5790 rm -f conftest.err conftest.
$ac_ext
5791 if $ac_preproc_ok; then :
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5804 $as_echo "$CPP" >&6; }
5806 for ac_c_preproc_warn_flag
in '' yes
5808 # Use a header file that comes with gcc, so configuring glibc
5809 # with a fresh cross-compiler works.
5810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5811 # <limits.h> exists even on freestanding compilers.
5812 # On the NeXT, cc -E runs the code through the compiler's parser,
5813 # not just through cpp. "Syntax error" is here to catch this case.
5814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5817 # include <limits.h>
5819 # include <assert.h>
5823 if ac_fn_c_try_cpp
"$LINENO"; then :
5826 # Broken: fails on valid input.
5829 rm -f conftest.err conftest.
$ac_ext
5831 # OK, works on sane cases. Now check whether nonexistent headers
5832 # can be detected and how.
5833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 #include <ac_nonexistent.h>
5837 if ac_fn_c_try_cpp
"$LINENO"; then :
5838 # Broken: success on invalid input.
5841 # Passes both tests.
5845 rm -f conftest.err conftest.
$ac_ext
5848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849 rm -f conftest.err conftest.
$ac_ext
5850 if $ac_preproc_ok; then :
5853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5855 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5856 See \`config.log' for more details." "$LINENO" 5; }
5860 ac_cpp
='$CPP $CPPFLAGS'
5861 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5867 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5868 if test "${ac_cv_path_GREP+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5871 if test -z "$GREP"; then
5872 ac_path_GREP_found
=false
5873 # Loop through the user's path and test for each of PROGNAME-LIST
5874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5875 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5878 test -z "$as_dir" && as_dir
=.
5879 for ac_prog
in grep ggrep
; do
5880 for ac_exec_ext
in '' $ac_executable_extensions; do
5881 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5882 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5883 # Check for GNU ac_path_GREP and select it if it is found.
5884 # Check for GNU $ac_path_GREP
5885 case `"$ac_path_GREP" --version 2>&1` in
5887 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5890 $as_echo_n 0123456789 >"conftest.in"
5893 cat "conftest.in" "conftest.in" >"conftest.tmp"
5894 mv "conftest.tmp" "conftest.in"
5895 cp "conftest.in" "conftest.nl"
5896 $as_echo 'GREP' >> "conftest.nl"
5897 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5898 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5899 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5900 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5901 # Best one so far, save it but keep looking for a better one
5902 ac_cv_path_GREP
="$ac_path_GREP"
5903 ac_path_GREP_max
=$ac_count
5905 # 10*(2^10) chars as input seems more than enough
5906 test $ac_count -gt 10 && break
5908 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5911 $ac_path_GREP_found && break 3
5916 if test -z "$ac_cv_path_GREP"; then
5917 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5920 ac_cv_path_GREP
=$GREP
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5925 $as_echo "$ac_cv_path_GREP" >&6; }
5926 GREP
="$ac_cv_path_GREP"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5930 $as_echo_n "checking for egrep... " >&6; }
5931 if test "${ac_cv_path_EGREP+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5934 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5935 then ac_cv_path_EGREP
="$GREP -E"
5937 if test -z "$EGREP"; then
5938 ac_path_EGREP_found
=false
5939 # Loop through the user's path and test for each of PROGNAME-LIST
5940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5941 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5944 test -z "$as_dir" && as_dir
=.
5945 for ac_prog
in egrep; do
5946 for ac_exec_ext
in '' $ac_executable_extensions; do
5947 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5948 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5949 # Check for GNU ac_path_EGREP and select it if it is found.
5950 # Check for GNU $ac_path_EGREP
5951 case `"$ac_path_EGREP" --version 2>&1` in
5953 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5956 $as_echo_n 0123456789 >"conftest.in"
5959 cat "conftest.in" "conftest.in" >"conftest.tmp"
5960 mv "conftest.tmp" "conftest.in"
5961 cp "conftest.in" "conftest.nl"
5962 $as_echo 'EGREP' >> "conftest.nl"
5963 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5964 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5965 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5966 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5967 # Best one so far, save it but keep looking for a better one
5968 ac_cv_path_EGREP
="$ac_path_EGREP"
5969 ac_path_EGREP_max
=$ac_count
5971 # 10*(2^10) chars as input seems more than enough
5972 test $ac_count -gt 10 && break
5974 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5977 $ac_path_EGREP_found && break 3
5982 if test -z "$ac_cv_path_EGREP"; then
5983 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5986 ac_cv_path_EGREP
=$EGREP
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5992 $as_echo "$ac_cv_path_EGREP" >&6; }
5993 EGREP
="$ac_cv_path_EGREP"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5999 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6000 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6014 gl_cv_c_amsterdam_compiler
=yes
6016 gl_cv_c_amsterdam_compiler
=no
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6023 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6024 if test -z "$AR"; then
6025 if test $gl_cv_c_amsterdam_compiler = yes; then
6027 if test -z "$ARFLAGS"; then
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6033 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if test "${ac_cv_prog_AR+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6039 if test -n "$AR"; then
6040 ac_cv_prog_AR
="$AR" # Let the user override the test.
6042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6046 test -z "$as_dir" && as_dir
=.
6047 for ac_exec_ext
in '' $ac_executable_extensions; do
6048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 if test -n "$AR"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6062 $as_echo "$AR" >&6; }
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6070 if test -z "$ac_cv_prog_AR"; then
6072 # Extract the first word of "ar", so it can be a program name with args.
6073 set dummy
ar; ac_word
=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6079 if test -n "$ac_ct_AR"; then
6080 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6082 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6086 test -z "$as_dir" && as_dir
=.
6087 for ac_exec_ext
in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_ac_ct_AR
="ar"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6100 if test -n "$ac_ct_AR"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6102 $as_echo "$ac_ct_AR" >&6; }
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6108 if test "x$ac_ct_AR" = x
; then
6111 case $cross_compiling:$ac_tool_warned in
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned
=yes ;;
6123 if test -z "$ARFLAGS"; then
6128 if test -z "$ARFLAGS"; then
6134 if test -z "$RANLIB"; then
6135 if test $gl_cv_c_amsterdam_compiler = yes; then
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6140 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6146 if test -n "$RANLIB"; then
6147 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir
=.
6154 for ac_exec_ext
in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 RANLIB
=$ac_cv_prog_RANLIB
6167 if test -n "$RANLIB"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6169 $as_echo "$RANLIB" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6177 if test -z "$ac_cv_prog_RANLIB"; then
6178 ac_ct_RANLIB
=$RANLIB
6179 # Extract the first word of "ranlib", so it can be a program name with args.
6180 set dummy ranlib
; ac_word
=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6186 if test -n "$ac_ct_RANLIB"; then
6187 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir
=.
6194 for ac_exec_ext
in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6207 if test -n "$ac_ct_RANLIB"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6209 $as_echo "$ac_ct_RANLIB" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6215 if test "x$ac_ct_RANLIB" = x
; then
6218 case $cross_compiling:$ac_tool_warned in
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned
=yes ;;
6224 RANLIB
=$ac_ct_RANLIB
6227 RANLIB
="$ac_cv_prog_RANLIB"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6235 $as_echo_n "checking for ANSI C header files... " >&6; }
6236 if test "${ac_cv_header_stdc+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6254 if ac_fn_c_try_compile
"$LINENO"; then :
6255 ac_cv_header_stdc
=yes
6257 ac_cv_header_stdc
=no
6259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 if test $ac_cv_header_stdc = yes; then
6262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269 $EGREP "memchr" >/dev
/null
2>&1; then :
6272 ac_cv_header_stdc
=no
6278 if test $ac_cv_header_stdc = yes; then
6279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286 $EGREP "free" >/dev
/null
2>&1; then :
6289 ac_cv_header_stdc
=no
6295 if test $ac_cv_header_stdc = yes; then
6296 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6297 if test "$cross_compiling" = yes; then :
6300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6304 #if ((' ' & 0x0FF) == 0x020)
6305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6308 # define ISLOWER(c) \
6309 (('a' <= (c) && (c) <= 'i') \
6310 || ('j' <= (c) && (c) <= 'r') \
6311 || ('s' <= (c) && (c) <= 'z'))
6312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6320 for (i = 0; i < 256; i++)
6321 if (XOR (islower (i), ISLOWER (i))
6322 || toupper (i) != TOUPPER (i))
6327 if ac_fn_c_try_run
"$LINENO"; then :
6330 ac_cv_header_stdc
=no
6332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6339 $as_echo "$ac_cv_header_stdc" >&6; }
6340 if test $ac_cv_header_stdc = yes; then
6342 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6347 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6348 inttypes.h stdint.h unistd.h
6350 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6353 eval as_val
=\$
$as_ac_Header
6354 if test "x$as_val" = x
""yes; then :
6355 cat >>confdefs.h
<<_ACEOF
6356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6367 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6368 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
6375 if test "$MINIX" = yes; then
6377 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6380 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6383 $as_echo "#define _MINIX 1" >>confdefs.h
6390 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6397 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6398 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6404 # define __EXTENSIONS__ 1
6405 $ac_includes_default
6414 if ac_fn_c_try_compile
"$LINENO"; then :
6415 ac_cv_safe_to_define___extensions__
=yes
6417 ac_cv_safe_to_define___extensions__
=no
6419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6422 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6423 test $ac_cv_safe_to_define___extensions__ = yes &&
6424 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6426 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6428 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6430 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6432 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6434 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6443 # Check whether --enable-largefile was given.
6444 if test "${enable_largefile+set}" = set; then :
6445 enableval
=$enable_largefile;
6448 if test "$enable_largefile" != no
; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6451 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6452 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6455 ac_cv_sys_largefile_CC
=no
6456 if test "$GCC" != yes; then
6459 # IRIX 6.2 and later do not support large files by default,
6460 # so use the C compiler's -n32 option if that helps.
6461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 #include <sys/types.h>
6464 /* Check that off_t can represent 2**63 - 1 correctly.
6465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6466 since some C++ compilers masquerading as C compilers
6467 incorrectly reject 9223372036854775807. */
6468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6470 && LARGE_OFF_T % 2147483647 == 1)
6480 if ac_fn_c_try_compile
"$LINENO"; then :
6483 rm -f core conftest.err conftest.
$ac_objext
6485 if ac_fn_c_try_compile
"$LINENO"; then :
6486 ac_cv_sys_largefile_CC
=' -n32'; break
6488 rm -f core conftest.err conftest.
$ac_objext
6492 rm -f conftest.
$ac_ext
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6496 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6497 if test "$ac_cv_sys_largefile_CC" != no
; then
6498 CC
=$CC$ac_cv_sys_largefile_CC
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6502 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6503 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 #include <sys/types.h>
6510 /* Check that off_t can represent 2**63 - 1 correctly.
6511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6512 since some C++ compilers masquerading as C compilers
6513 incorrectly reject 9223372036854775807. */
6514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6516 && LARGE_OFF_T % 2147483647 == 1)
6526 if ac_fn_c_try_compile
"$LINENO"; then :
6527 ac_cv_sys_file_offset_bits
=no
; break
6529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 #define _FILE_OFFSET_BITS 64
6533 #include <sys/types.h>
6534 /* Check that off_t can represent 2**63 - 1 correctly.
6535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6536 since some C++ compilers masquerading as C compilers
6537 incorrectly reject 9223372036854775807. */
6538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6540 && LARGE_OFF_T % 2147483647 == 1)
6550 if ac_fn_c_try_compile
"$LINENO"; then :
6551 ac_cv_sys_file_offset_bits
=64; break
6553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6554 ac_cv_sys_file_offset_bits
=unknown
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6559 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6560 case $ac_cv_sys_file_offset_bits in #(
6563 cat >>confdefs.h
<<_ACEOF
6564 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6569 if test $ac_cv_sys_file_offset_bits = unknown
; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6571 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6572 if test "${ac_cv_sys_large_files+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 #include <sys/types.h>
6579 /* Check that off_t can represent 2**63 - 1 correctly.
6580 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6581 since some C++ compilers masquerading as C compilers
6582 incorrectly reject 9223372036854775807. */
6583 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6584 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6585 && LARGE_OFF_T % 2147483647 == 1)
6595 if ac_fn_c_try_compile
"$LINENO"; then :
6596 ac_cv_sys_large_files
=no
; break
6598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 #define _LARGE_FILES 1
6602 #include <sys/types.h>
6603 /* Check that off_t can represent 2**63 - 1 correctly.
6604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6605 since some C++ compilers masquerading as C compilers
6606 incorrectly reject 9223372036854775807. */
6607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6609 && LARGE_OFF_T % 2147483647 == 1)
6619 if ac_fn_c_try_compile
"$LINENO"; then :
6620 ac_cv_sys_large_files
=1; break
6622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6623 ac_cv_sys_large_files
=unknown
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6628 $as_echo "$ac_cv_sys_large_files" >&6; }
6629 case $ac_cv_sys_large_files in #(
6632 cat >>confdefs.h
<<_ACEOF
6633 #define _LARGE_FILES $ac_cv_sys_large_files
6643 case $ac_cv_prog_cc_stdc in #(
6645 ac_cv_prog_cc_c99
=no
; ac_cv_prog_cc_c89
=no
;; #(
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6648 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6649 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6652 ac_cv_prog_cc_c99
=no
6654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6657 #include <stdbool.h>
6662 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6663 #define debug(...) fprintf (stderr, __VA_ARGS__)
6664 #define showlist(...) puts (#__VA_ARGS__)
6665 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6667 test_varargs_macros (void)
6672 debug ("X = %d\n", x);
6673 showlist (The first, second, and third items.);
6674 report (x>y, "x is %d but y is %d", x, y);
6677 // Check long long types.
6678 #define BIG64 18446744073709551615ull
6679 #define BIG32 4294967295ul
6680 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6682 your preprocessor is broken;
6686 your preprocessor is broken;
6688 static long long int bignum = -9223372036854775807LL;
6689 static unsigned long long int ubignum = BIG64;
6691 struct incomplete_array
6699 const wchar_t *name;
6703 typedef const char *ccp;
6706 test_restrict (ccp restrict text)
6708 // See if C++-style comments work.
6709 // Iterate through items via the restricted pointer.
6710 // Also check for declarations in for loops.
6711 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6716 // Check varargs and va_copy.
6718 test_varargs (const char *format, ...)
6721 va_start (args, format);
6723 va_copy (args_copy, args);
6734 str = va_arg (args_copy, const char *);
6737 number = va_arg (args_copy, int);
6740 fnumber = va_arg (args_copy, double);
6755 _Bool success = false;
6758 if (test_restrict ("String literal") == 0)
6760 char *restrict newvar = "Another string";
6763 test_varargs ("s, d' f .", "string", 65, 34.234);
6764 test_varargs_macros ();
6766 // Check flexible array members.
6767 struct incomplete_array *ia =
6768 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6770 for (int i = 0; i < ia->datasize; ++i)
6771 ia->data[i] = i * 1.234;
6773 // Check named initializers.
6774 struct named_init ni = {
6776 .name = L"Test wide string",
6777 .average = 543.34343,
6782 int dynamic_array[ni.number];
6783 dynamic_array[ni.number - 1] = 543;
6785 // work around unused variable warnings
6786 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6787 || dynamic_array[ni.number - 1] != 543);
6793 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
6795 CC
="$ac_save_CC $ac_arg"
6796 if ac_fn_c_try_compile
"$LINENO"; then :
6797 ac_cv_prog_cc_c99
=$ac_arg
6799 rm -f core conftest.err conftest.
$ac_objext
6800 test "x$ac_cv_prog_cc_c99" != "xno" && break
6802 rm -f conftest.
$ac_ext
6807 case "x$ac_cv_prog_cc_c99" in
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6810 $as_echo "none needed" >&6; } ;;
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6813 $as_echo "unsupported" >&6; } ;;
6815 CC
="$CC $ac_cv_prog_cc_c99"
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6817 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6819 if test "x$ac_cv_prog_cc_c99" != xno
; then :
6820 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6823 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6824 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6827 ac_cv_prog_cc_c89
=no
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6833 #include <sys/types.h>
6834 #include <sys/stat.h>
6835 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6836 struct buf { int x; };
6837 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6838 static char *e (p, i)
6844 static char *f (char * (*g) (char **, int), char **p, ...)
6849 s = g (p, va_arg (v,int));
6854 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6855 function prototypes and stuff, but not '\xHH' hex character constants.
6856 These don't provoke an error unfortunately, instead are silently treated
6857 as 'x'. The following induces an error, until -std is added to get
6858 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6859 array size at least. It's necessary to write '\x00'==0 to get something
6860 that's true only with -std. */
6861 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6863 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6864 inside strings and character constants. */
6866 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6868 int test (int i, double x);
6869 struct s1 {int (*f) (int a);};
6870 struct s2 {int (*f) (double a);};
6871 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6877 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6882 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
6883 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6885 CC
="$ac_save_CC $ac_arg"
6886 if ac_fn_c_try_compile
"$LINENO"; then :
6887 ac_cv_prog_cc_c89
=$ac_arg
6889 rm -f core conftest.err conftest.
$ac_objext
6890 test "x$ac_cv_prog_cc_c89" != "xno" && break
6892 rm -f conftest.
$ac_ext
6897 case "x$ac_cv_prog_cc_c89" in
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6900 $as_echo "none needed" >&6; } ;;
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6903 $as_echo "unsupported" >&6; } ;;
6905 CC
="$CC $ac_cv_prog_cc_c89"
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6907 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6909 if test "x$ac_cv_prog_cc_c89" != xno
; then :
6910 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
6912 ac_cv_prog_cc_stdc
=no
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6919 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6920 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6924 case $ac_cv_prog_cc_stdc in #(
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6927 $as_echo "unsupported" >&6; } ;; #(
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6930 $as_echo "none needed" >&6; } ;; #(
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6933 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6938 # Code from module alloca-opt:
6939 # Code from module allocator:
6940 # Code from module c-ctype:
6941 # Code from module c-strcase:
6942 # Code from module careadlinkat:
6943 # Code from module clock-time:
6944 # Code from module crypto/md5:
6945 # Code from module crypto/sha1:
6946 # Code from module crypto/sha256:
6947 # Code from module crypto/sha512:
6948 # Code from module dosname:
6949 # Code from module dtoastr:
6950 # Code from module dtotimespec:
6951 # Code from module dup2:
6952 # Code from module environ:
6953 # Code from module execinfo:
6954 # Code from module extensions:
6956 # Code from module extern-inline:
6957 # Code from module filemode:
6958 # Code from module getloadavg:
6959 # Code from module getopt-gnu:
6960 # Code from module getopt-posix:
6961 # Code from module gettext-h:
6962 # Code from module gettime:
6963 # Code from module gettimeofday:
6964 # Code from module ignore-value:
6965 # Code from module include_next:
6966 # Code from module intprops:
6967 # Code from module inttypes-incomplete:
6968 # Code from module largefile:
6970 # Code from module lstat:
6971 # Code from module manywarnings:
6972 # Code from module mktime:
6973 # Code from module multiarch:
6974 # Code from module nocrash:
6975 # Code from module pathmax:
6976 # Code from module pselect:
6977 # Code from module pthread_sigmask:
6978 # Code from module readlink:
6979 # Code from module signal-h:
6980 # Code from module snippet/_Noreturn:
6981 # Code from module snippet/arg-nonnull:
6982 # Code from module snippet/c++defs:
6983 # Code from module snippet/warn-on-use:
6984 # Code from module socklen:
6985 # Code from module ssize_t:
6986 # Code from module stat:
6987 # Code from module stat-time:
6988 # Code from module stdalign:
6989 # Code from module stdarg:
6993 # Code from module stdbool:
6994 # Code from module stddef:
6995 # Code from module stdint:
6996 # Code from module stdio:
6997 # Code from module stdlib:
6998 # Code from module strftime:
6999 # Code from module strtoimax:
7000 # Code from module strtoll:
7001 # Code from module strtoull:
7002 # Code from module strtoumax:
7003 # Code from module symlink:
7004 # Code from module sys_select:
7005 # Code from module sys_stat:
7006 # Code from module sys_time:
7007 # Code from module time:
7008 # Code from module time_r:
7009 # Code from module timespec:
7010 # Code from module timespec-add:
7011 # Code from module timespec-sub:
7012 # Code from module u64:
7013 # Code from module unistd:
7014 # Code from module utimens:
7015 # Code from module verify:
7016 # Code from module warnings:
7019 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7020 # if -g3 works and the user does not specify CFLAGS.
7021 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7022 if test "$ac_test_CFLAGS" != set; then
7025 emacs_g3_CFLAGS
='-g3';;
7027 emacs_g3_CFLAGS
='-g3 -O2';;
7029 emacs_g3_CFLAGS
='';;
7031 if test -n "$emacs_g3_CFLAGS"; then
7032 emacs_save_CFLAGS
=$CFLAGS
7033 CFLAGS
=$emacs_g3_CFLAGS
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7035 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7036 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7050 if ac_fn_c_try_link
"$LINENO"; then :
7051 emacs_cv_prog_cc_g3
=yes
7053 emacs_cv_prog_cc_g3
=no
7055 rm -f core conftest.err conftest.
$ac_objext \
7056 conftest
$ac_exeext conftest.
$ac_ext
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7059 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7060 if test $emacs_cv_prog_cc_g3 = yes; then
7061 CFLAGS
=$emacs_g3_CFLAGS
7063 CFLAGS
=$emacs_save_CFLAGS
7068 # Check whether --enable-gcc-warnings was given.
7069 if test "${enable_gcc_warnings+set}" = set; then :
7070 enableval
=$enable_gcc_warnings; case $enableval in
7072 *) as_fn_error
"bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7074 gl_gcc_warnings
=$enableval
7081 # Check whether --enable-link-time-optimization was given.
7082 if test "${enable_link_time_optimization+set}" = set; then :
7083 enableval
=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7085 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7087 if test x
$GCC = xyes
; then
7088 CPUS
=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7089 if test x
$CPUS != x
; then
7095 CFLAGS
="$CFLAGS $LTO"
7096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7107 if ac_fn_c_try_compile
"$LINENO"; then :
7108 ac_lto_supported
=yes
7112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7113 CFLAGS
="$old_CFLAGS"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7116 $as_echo "$ac_lto_supported" >&6; }
7117 if test "$ac_lto_supported" = "yes"; then
7118 CFLAGS
="$CFLAGS $LTO"
7124 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7125 # ------------------------------------------------
7126 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7127 # Otherwise, run RUN-IF-NOT-FOUND.
7130 # When compiling with GCC, prefer -isystem to -I when including system
7131 # include files, to avoid generating useless diagnostics for the files.
7132 if test "$gl_gcc_warnings" != yes; then
7137 # This, $nw, is the list of warnings we disable.
7140 case $with_x_toolkit in
7141 lucid | athena | motif
)
7142 # Old toolkits mishandle 'const'.
7143 nw
="$nw -Wwrite-strings"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7147 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7148 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7152 gl_save_compiler_FLAGS
="$CFLAGS"
7153 as_fn_append CFLAGS
" -Werror"
7154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7165 if ac_fn_c_try_compile
"$LINENO"; then :
7166 gl_cv_warn_c__Werror
=yes
7168 gl_cv_warn_c__Werror
=no
7170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7171 CFLAGS
="$gl_save_compiler_FLAGS"
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7175 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7176 if test "x$gl_cv_warn_c__Werror" = x
""yes; then :
7177 as_fn_append WERROR_CFLAGS
" -Werror"
7185 nw
="$nw -Waggregate-return" # anachronistic
7186 nw
="$nw -Wlong-long" # C90 is anachronistic
7187 nw
="$nw -Wc++-compat" # We don't care about C++ compilers
7188 nw
="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7189 nw
="$nw -Wtraditional" # Warns on #elif which we use often
7190 nw
="$nw -Wcast-qual" # Too many warnings for now
7191 nw
="$nw -Wconversion" # Too many warnings for now
7192 nw
="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7193 nw
="$nw -Wsign-conversion" # Too many warnings for now
7194 nw
="$nw -Woverlength-strings" # Not a problem these days
7195 nw
="$nw -Wtraditional-conversion" # Too many warnings for now
7196 nw
="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7197 nw
="$nw -Wpadded" # Our structs are not padded
7198 nw
="$nw -Wredundant-decls" # we regularly (re)declare functions
7199 nw
="$nw -Wlogical-op" # any use of fwrite provokes this
7200 nw
="$nw -Wformat-nonliteral" # we do this a lot
7201 nw
="$nw -Wvla" # warnings in gettext.h
7202 nw
="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7203 nw
="$nw -Wswitch-enum" # Too many warnings for now
7204 nw
="$nw -Wswitch-default" # Too many warnings for now
7205 nw
="$nw -Wfloat-equal" # warns about high-quality code
7206 nw
="$nw -Winline" # OK to ignore 'inline'
7207 nw
="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7208 nw
="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7209 nw
="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7211 # Emacs doesn't care about shadowing; see
7212 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7215 # The following lines should be removable at some point.
7216 nw
="$nw -Wstack-protector"
7217 nw
="$nw -Wstrict-overflow"
7218 nw
="$nw -Wsuggest-attribute=pure"
7222 if test -n "$GCC"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7225 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7226 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7230 gl_save_CFLAGS
="$CFLAGS"
7231 CFLAGS
="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7243 if ac_fn_c_try_compile
"$LINENO"; then :
7244 gl_cv_cc_nomfi_supported
=yes
7246 gl_cv_cc_nomfi_supported
=no
7248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7249 CFLAGS
="$gl_save_CFLAGS"
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7253 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7255 if test "$gl_cv_cc_nomfi_supported" = yes; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7257 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7258 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7262 gl_save_CFLAGS
="$CFLAGS"
7263 CFLAGS
="$CFLAGS -W -Werror"
7264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7268 typedef struct { int a; int b; } s_t;
7280 if ac_fn_c_try_compile
"$LINENO"; then :
7281 gl_cv_cc_nomfi_needed
=no
7283 gl_cv_cc_nomfi_needed
=yes
7285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7286 CFLAGS
="$gl_save_CFLAGS"
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7291 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7296 for gl_manywarn_item
in \
7303 -Wbad-function-cast \
7304 -Wbuiltin-macro-redefined \
7310 -Wcoverage-mismatch \
7313 -Wdeprecated-declarations \
7314 -Wdisabled-optimization \
7316 -Wdouble-promotion \
7321 -Wformat-contains-nul \
7322 -Wformat-extra-args \
7323 -Wformat-nonliteral \
7326 -Wformat-zero-length \
7328 -Wfree-nonheap-object \
7329 -Wignored-qualifiers \
7331 -Wimplicit-function-declaration \
7335 -Wint-to-pointer-cast \
7336 -Winvalid-memory-model \
7338 -Wjump-misses-init \
7341 -Wmaybe-uninitialized \
7343 -Wmissing-declarations \
7344 -Wmissing-field-initializers \
7345 -Wmissing-format-attribute \
7346 -Wmissing-include-dirs \
7347 -Wmissing-noreturn \
7348 -Wmissing-parameter-type \
7349 -Wmissing-prototypes \
7356 -Wold-style-declaration \
7357 -Wold-style-definition \
7359 -Woverlength-strings \
7362 -Wpacked-bitfield-compat \
7366 -Wpointer-to-int-cast \
7371 -Wsizeof-pointer-memaccess \
7375 -Wstrict-prototypes \
7376 -Wsuggest-attribute=const \
7377 -Wsuggest-attribute=format \
7378 -Wsuggest-attribute=noreturn \
7379 -Wsuggest-attribute=pure \
7389 -Wunreachable-code \
7390 -Wunsafe-loop-optimizations \
7392 -Wunused-but-set-parameter \
7393 -Wunused-but-set-variable \
7396 -Wunused-local-typedefs \
7398 -Wunused-parameter \
7404 -Wvector-operation-performance \
7406 -Wvolatile-register-var \
7410 gl_manywarn_set
="$gl_manywarn_set $gl_manywarn_item"
7413 # Disable the missing-field-initializers warning if needed
7414 if test "$gl_cv_cc_nomfi_needed" = yes; then
7415 gl_manywarn_set
="$gl_manywarn_set -Wno-missing-field-initializers"
7426 *" $gl_warn_item "*)
7429 gl_warn_set
="$gl_warn_set $gl_warn_item"
7436 as_gl_Warn
=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7438 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7439 if { as_var
=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7440 $as_echo_n "(cached) " >&6
7443 gl_save_compiler_FLAGS
="$CFLAGS"
7444 as_fn_append CFLAGS
" $w"
7445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7456 if ac_fn_c_try_compile
"$LINENO"; then :
7457 eval "$as_gl_Warn=yes"
7459 eval "$as_gl_Warn=no"
7461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7462 CFLAGS
="$gl_save_compiler_FLAGS"
7465 eval ac_res
=\$
$as_gl_Warn
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7467 $as_echo "$ac_res" >&6; }
7468 eval as_val
=\$
$as_gl_Warn
7469 if test "x$as_val" = x
""yes; then :
7470 as_fn_append WARN_CFLAGS
" $w"
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7476 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7477 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7478 $as_echo_n "(cached) " >&6
7481 gl_save_compiler_FLAGS
="$CFLAGS"
7482 as_fn_append CFLAGS
" -Wno-missing-field-initializers"
7483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7494 if ac_fn_c_try_compile
"$LINENO"; then :
7495 gl_cv_warn_c__Wno_missing_field_initializers
=yes
7497 gl_cv_warn_c__Wno_missing_field_initializers
=no
7499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7500 CFLAGS
="$gl_save_compiler_FLAGS"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7504 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7505 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x
""yes; then :
7506 as_fn_append WARN_CFLAGS
" -Wno-missing-field-initializers"
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7511 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7512 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7513 $as_echo_n "(cached) " >&6
7516 gl_save_compiler_FLAGS
="$CFLAGS"
7517 as_fn_append CFLAGS
" -Wno-sign-compare"
7518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7529 if ac_fn_c_try_compile
"$LINENO"; then :
7530 gl_cv_warn_c__Wno_sign_compare
=yes
7532 gl_cv_warn_c__Wno_sign_compare
=no
7534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7535 CFLAGS
="$gl_save_compiler_FLAGS"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7539 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7540 if test "x$gl_cv_warn_c__Wno_sign_compare" = x
""yes; then :
7541 as_fn_append WARN_CFLAGS
" -Wno-sign-compare"
7544 # Too many warnings for now
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7546 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7547 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7551 gl_save_compiler_FLAGS
="$CFLAGS"
7552 as_fn_append CFLAGS
" -Wno-type-limits"
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_type_limits
=yes
7567 gl_cv_warn_c__Wno_type_limits
=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_type_limits" >&5
7574 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7575 if test "x$gl_cv_warn_c__Wno_type_limits" = x
""yes; then :
7576 as_fn_append WARN_CFLAGS
" -Wno-type-limits"
7579 # Too many warnings for now
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7581 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7582 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7586 gl_save_compiler_FLAGS
="$CFLAGS"
7587 as_fn_append CFLAGS
" -Wno-switch"
7588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7599 if ac_fn_c_try_compile
"$LINENO"; then :
7600 gl_cv_warn_c__Wno_switch
=yes
7602 gl_cv_warn_c__Wno_switch
=no
7604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7605 CFLAGS
="$gl_save_compiler_FLAGS"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7609 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7610 if test "x$gl_cv_warn_c__Wno_switch" = x
""yes; then :
7611 as_fn_append WARN_CFLAGS
" -Wno-switch"
7614 # Too many warnings for now
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7616 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7617 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7621 gl_save_compiler_FLAGS
="$CFLAGS"
7622 as_fn_append CFLAGS
" -Wno-unused-parameter"
7623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7634 if ac_fn_c_try_compile
"$LINENO"; then :
7635 gl_cv_warn_c__Wno_unused_parameter
=yes
7637 gl_cv_warn_c__Wno_unused_parameter
=no
7639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7640 CFLAGS
="$gl_save_compiler_FLAGS"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7644 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7645 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x
""yes; then :
7646 as_fn_append WARN_CFLAGS
" -Wno-unused-parameter"
7649 # Too many warnings for now
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7651 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7652 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7656 gl_save_compiler_FLAGS
="$CFLAGS"
7657 as_fn_append CFLAGS
" -Wno-format-nonliteral"
7658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7669 if ac_fn_c_try_compile
"$LINENO"; then :
7670 gl_cv_warn_c__Wno_format_nonliteral
=yes
7672 gl_cv_warn_c__Wno_format_nonliteral
=no
7674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7675 CFLAGS
="$gl_save_compiler_FLAGS"
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7679 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7680 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x
""yes; then :
7681 as_fn_append WARN_CFLAGS
" -Wno-format-nonliteral"
7686 # In spite of excluding -Wlogical-op above, it is enabled, as of
7687 # gcc 4.5.0 20090517.
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7689 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7690 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
7694 gl_save_compiler_FLAGS
="$CFLAGS"
7695 as_fn_append CFLAGS
" -Wno-logical-op"
7696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7707 if ac_fn_c_try_compile
"$LINENO"; then :
7708 gl_cv_warn_c__Wno_logical_op
=yes
7710 gl_cv_warn_c__Wno_logical_op
=no
7712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7713 CFLAGS
="$gl_save_compiler_FLAGS"
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7717 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7718 if test "x$gl_cv_warn_c__Wno_logical_op" = x
""yes; then :
7719 as_fn_append WARN_CFLAGS
" -Wno-logical-op"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7725 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7726 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7730 gl_save_compiler_FLAGS
="$CFLAGS"
7731 as_fn_append CFLAGS
" -fdiagnostics-show-option"
7732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7743 if ac_fn_c_try_compile
"$LINENO"; then :
7744 gl_cv_warn_c__fdiagnostics_show_option
=yes
7746 gl_cv_warn_c__fdiagnostics_show_option
=no
7748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7749 CFLAGS
="$gl_save_compiler_FLAGS"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7753 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7754 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x
""yes; then :
7755 as_fn_append WARN_CFLAGS
" -fdiagnostics-show-option"
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7760 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7761 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7765 gl_save_compiler_FLAGS
="$CFLAGS"
7766 as_fn_append CFLAGS
" -funit-at-a-time"
7767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7778 if ac_fn_c_try_compile
"$LINENO"; then :
7779 gl_cv_warn_c__funit_at_a_time
=yes
7781 gl_cv_warn_c__funit_at_a_time
=no
7783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 CFLAGS
="$gl_save_compiler_FLAGS"
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7788 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7789 if test "x$gl_cv_warn_c__funit_at_a_time" = x
""yes; then :
7790 as_fn_append WARN_CFLAGS
" -funit-at-a-time"
7796 $as_echo "#define lint 1" >>confdefs.h
7800 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7803 # We use a slightly smaller set of warning options for lib/.
7804 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7806 nw
="$nw -Wunused-macros"
7810 set x
$WARN_CFLAGS; shift
7814 *" $gl_warn_item "*)
7817 gl_warn_set
="$gl_warn_set $gl_warn_item"
7821 GNULIB_WARN_CFLAGS
=$gl_warn_set
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7829 $as_echo_n "checking whether ln -s works... " >&6; }
7831 if test "$LN_S" = "ln -s"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7836 $as_echo "no, using $LN_S" >&6; }
7840 # Extract the first word of "install-info", so it can be a program name with args.
7841 set dummy install-info
; ac_word
=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7847 case $INSTALL_INFO in
7849 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
7852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7853 for as_dir
in $PATH$PATH_SEPARATOR/usr
/sbin
$PATH_SEPARATOR/sbin
7856 test -z "$as_dir" && as_dir
=.
7857 for ac_exec_ext
in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
7871 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
7872 if test -n "$INSTALL_INFO"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7874 $as_echo "$INSTALL_INFO" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7881 # Extract the first word of "gzip", so it can be a program name with args.
7882 set dummy
gzip; ac_word
=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7890 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
7893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7897 test -z "$as_dir" && as_dir
=.
7898 for ac_exec_ext
in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 GZIP_PROG
=$ac_cv_path_GZIP_PROG
7912 if test -n "$GZIP_PROG"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7914 $as_echo "$GZIP_PROG" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7922 if test $opsys = gnu-linux
; then
7923 # Extract the first word of "paxctl", so it can be a program name with args.
7924 set dummy paxctl
; ac_word
=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7932 ac_cv_path_PAXCTL
="$PAXCTL" # Let the user override the test with a path.
7935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7936 for as_dir
in $PATH$PATH_SEPARATOR/sbin
$PATH_SEPARATOR/usr
/sbin
7939 test -z "$as_dir" && as_dir
=.
7940 for ac_exec_ext
in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_path_PAXCTL
="$as_dir/$ac_word$ac_exec_ext"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 PAXCTL
=$ac_cv_path_PAXCTL
7954 if test -n "$PAXCTL"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7956 $as_echo "$PAXCTL" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7963 if test "X$PAXCTL" != X
; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7965 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7977 if ac_fn_c_try_link
"$LINENO"; then :
7978 if $PAXCTL -v conftest
$EXEEXT >/dev
/null
2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7979 $as_echo "yes" >&6; }
7980 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }; PAXCTL
=""; fi
7983 rm -f core conftest.err conftest.
$ac_objext \
7984 conftest
$ac_exeext conftest.
$ac_ext
7988 ## Need makeinfo >= 4.7 (?) to build the manuals.
7989 # Extract the first word of "makeinfo", so it can be a program name with args.
7990 set dummy makeinfo
; ac_word
=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7998 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
8001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir
=.
8006 for ac_exec_ext
in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
8020 MAKEINFO
=$ac_cv_path_MAKEINFO
8021 if test -n "$MAKEINFO"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8023 $as_echo "$MAKEINFO" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8030 if test "$MAKEINFO" != "no" && \
8031 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
8035 ## Makeinfo is unusual. For a released Emacs, the manuals are
8036 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8037 ## therefore in the category of "special tools" not normally required, which
8038 ## configure does not have to check for (eg autoconf itself).
8039 ## In a Bazaar checkout on the other hand, the manuals are not included.
8040 ## So makeinfo is a requirement to build from Bazaar, and configure
8041 ## should test for it as it does for any other build requirement.
8042 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8043 ## with pre-built manuals, from a Bazaar checkout.
8046 if test "$MAKEINFO" = "no"; then
8048 if test "x${with_makeinfo}" = "xno"; then
8050 elif test ! -e $srcdir/info
/emacs
; then
8051 as_fn_error
"You do not seem to have makeinfo >= 4.7, and your
8052 source tree does not seem to have pre-built manuals in the \`info' directory.
8053 Either install a suitable version of makeinfo, or re-run configure
8054 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8060 INFO_OPTS
=--no-split
8065 if test x
$GCC = xyes
; then
8066 test "x$GCC_LINK_TEST_OPTIONS" != x
&& \
8067 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
8069 test "x$NON_GCC_LINK_TEST_OPTIONS" != x
&& \
8070 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8074 late_LDFLAGS
=$LDFLAGS
8075 if test x
$GCC = xyes
; then
8076 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
8078 LDFLAGS
="$LDFLAGS -znocombreloc"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8082 $as_echo_n "checking for -znocombreloc... " >&6; }
8083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8094 if ac_fn_c_try_link
"$LINENO"; then :
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 $as_echo "yes" >&6; }
8098 LDFLAGS
=$late_LDFLAGS
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8102 rm -f core conftest.err conftest.
$ac_objext \
8103 conftest
$ac_exeext conftest.
$ac_ext
8106 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP
=no
8108 your-opsys-here
) CANNOT_DUMP
=yes ;;
8111 test "$CANNOT_DUMP" = "yes" && \
8113 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8119 UNEXEC_OBJ
=unexelf.o
8121 # MSDOS uses unexcoff.o
8122 # MSWindows uses unexw32.o
8124 UNEXEC_OBJ
=unexaix.o
8130 UNEXEC_OBJ
=unexmacosx.o
8133 UNEXEC_OBJ
=unexhp9k800.o
8136 # Use the Solaris dldump() function, called from unexsol.c, to dump
8137 # emacs, instead of the generic ELF dump code found in unexelf.c.
8138 # The resulting binary has a complete symbol table, and is better
8139 # for debugging and other observability tools (debuggers, pstack, etc).
8141 # If you encounter a problem using dldump(), please consider sending
8142 # a message to the OpenSolaris tools-linking mailing list:
8143 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8145 # It is likely that dldump() works with older Solaris too, but this has
8146 # not been tested, so for now this change is for Solaris 10 or newer.
8147 UNEXEC_OBJ
=unexsol.o
8154 ## Let `ld' find image libs and similar things in /usr/local/lib.
8155 ## The system compiler, GCC, has apparently been modified to not
8156 ## look there, contrary to what a stock GCC would do.
8157 ### It's not our place to do this. See bug#10313#17.
8158 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8163 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8164 case $host_cpu in mips
*) LD_SWITCH_SYSTEM
="-G 0";; esac
8168 ### It's not our place to do this. See bug#10313#17.
8169 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8174 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8175 ## otherwise Emacs dumps core on elf systems.
8176 LD_SWITCH_SYSTEM
="-Z"
8181 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
8183 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8184 ## which has not been defined yet. When this was handled with cpp,
8185 ## it was expanded to null when configure sourced the s/*.h file.
8186 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8187 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8188 ## (or somesuch), but because it is supposed to go at the _front_
8189 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8190 ## Compare with the gnu-linux case below, which added to the end
8191 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8192 ## LD_SWITCH_SYSTEM_TEMACS.
8195 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8202 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8203 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
8207 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8208 ## With ELF, make sure that all common symbols get allocated to in the
8209 ## data section. Otherwise, the dump of temacs may miss variables in
8210 ## the shared library that have been initialized. For example, with
8211 ## GNU libc, __malloc_initialized would normally be resolved to the
8212 ## shared library's .bss section, which is fatal.
8213 if test "x$GCC" = "xyes"; then
8214 C_SWITCH_MACHINE
="-fno-common"
8216 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8219 UNEXEC_OBJ
=unexalpha.o
8228 ## Some programs in src produce warnings saying certain subprograms
8229 ## are too complex and need a MAXMEM value greater than 2000 for
8230 ## additional optimization. --nils@exp-math.uni-essen.de
8231 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8232 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
8233 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8234 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8240 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8241 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
8243 freebsd
) LIBS_SYSTEM
="-lutil" ;;
8245 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
8247 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl" ;;
8249 ## Motif needs -lgen.
8250 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
8255 ### Make sure subsequent tests use flags consistent with the build flags.
8257 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
8258 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
8260 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8263 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8265 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8272 SYSTEM_TYPE
=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8277 START_FILES
='pre-crt0.o'
8280 ## Adding -lm confuses the dynamic linker, so omit it.
8282 START_FILES
='pre-crt0.o'
8285 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8286 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8287 SYSTEM_TYPE
=berkeley-unix
8289 gnu-linux | gnu-kfreebsd
)
8290 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8291 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8293 hpux10-20 | hpux11
)
8295 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
8298 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8299 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8300 SYSTEM_TYPE
=berkeley-unix
8304 SYSTEM_TYPE
=usg-unix-v
8312 cat >>confdefs.h
<<_ACEOF
8313 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8319 for file in x
$LIB_STANDARD $START_FILES; do
8321 *CRT_DIR
*) crt_files
="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8325 if test "x$crt_files" != x
; then
8327 ## If user specified a crt-dir, use that unconditionally.
8330 if test "X$CRT_DIR" = "X"; then
8332 CRT_DIR
=/usr
/lib
# default
8334 case "$canonical" in
8335 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
8336 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8337 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8338 ## For anything else (eg /usr/lib32), it is up the user to specify
8339 ## the location (bug#5655).
8340 ## Test for crtn.o, not just the directory, because sometimes the
8341 ## directory exists but does not have the relevant files (bug#1287).
8342 ## FIXME better to test for binary compatibility somehow.
8343 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
8346 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
8350 hpux10-20
) CRT_DIR
=/lib
;;
8353 test "x${GCC}" = xyes
&& crt_gcc
=yes
8359 for file in $crt_files; do
8361 ## If we're using gcc, try to determine it automatically by asking
8362 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8363 ## system-dependent default from above.]
8364 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8366 crt_file
=`$CC --print-file-name=$file 2>/dev/null`
8369 CRT_DIR
=`$as_dirname -- "$crt_file" ||
8370 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8371 X"$crt_file" : 'X\(//\)[^/]' \| \
8372 X"$crt_file" : 'X\(//\)$' \| \
8373 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8374 $as_echo X"$crt_file" |
8375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8398 test -e $CRT_DIR/$file || crt_missing
="$crt_missing $file"
8401 test "x$crt_missing" = x || \
8402 as_fn_error
"Required file(s) not found:$crt_missing
8403 Try using the --with-crt-dir option." "$LINENO" 5
8405 fi # crt_files != ""
8411 if test -f $CRT_DIR/crti.o
; then
8413 test -f $CRT_DIR/crtn.o || \
8414 as_fn_error
"Required file not found: crtn.o" "$LINENO" 5
8416 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8417 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8423 pre_PKG_CONFIG_CFLAGS
=$CFLAGS
8424 pre_PKG_CONFIG_LIBS
=$LIBS
8426 # Extract the first word of "pkg-config", so it can be a program name with args.
8427 set dummy pkg-config
; ac_word
=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8435 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8442 test -z "$as_dir" && as_dir
=.
8443 for ac_exec_ext
in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8457 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8458 if test -n "$PKG_CONFIG"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8460 $as_echo "$PKG_CONFIG" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8471 if test "${with_sound}" != "no"; then
8472 # Sound support for GNU/Linux and the free BSDs.
8473 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
8475 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8476 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8477 eval as_val
=\$
$as_ac_Header
8478 if test "x$as_val" = x
""yes; then :
8479 cat >>confdefs.h
<<_ACEOF
8480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8482 have_sound_header
=yes
8487 # Emulation library used on NetBSD.
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8489 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8490 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8493 ac_check_lib_save_LIBS
=$LIBS
8494 LIBS
="-lossaudio $LIBS"
8495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8498 /* Override any GCC internal prototype to avoid an error.
8499 Use char because int might match the return type of a GCC
8500 builtin and then its argument prototype would still apply. */
8508 return _oss_ioctl ();
8513 if ac_fn_c_try_link
"$LINENO"; then :
8514 ac_cv_lib_ossaudio__oss_ioctl
=yes
8516 ac_cv_lib_ossaudio__oss_ioctl
=no
8518 rm -f core conftest.err conftest.
$ac_objext \
8519 conftest
$ac_exeext conftest.
$ac_ext
8520 LIBS
=$ac_check_lib_save_LIBS
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8523 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8524 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
8533 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
8537 if test "$PKG_CONFIG" = "no" ; then
8540 PKG_CONFIG_MIN_VERSION
=0.9.0
8541 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8543 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8545 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8546 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8547 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8554 ALSA_CFLAGS
=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8555 ALSA_LIBS
=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8557 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8564 ## If we have a custom action on failure, don't print errors, but
8565 ## do set a variable so people can do so. Do it in a subshell
8566 ## to capture any diagnostics in invoking pkg-config.
8567 ALSA_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8574 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8575 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8579 if test $succeeded = yes; then
8585 if test $HAVE_ALSA = yes; then
8586 SAVE_CFLAGS
="$CFLAGS"
8588 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
8589 LIBS
="$ALSA_LIBS $LIBS"
8590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 #include <asoundlib.h>
8596 snd_lib_error_set_handler (0);
8601 if ac_fn_c_try_compile
"$LINENO"; then :
8602 emacs_alsa_normal
=yes
8604 emacs_alsa_normal
=no
8606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8607 if test "$emacs_alsa_normal" != yes; then
8608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <alsa/asoundlib.h>
8614 snd_lib_error_set_handler (0);
8619 if ac_fn_c_try_compile
"$LINENO"; then :
8620 emacs_alsa_subdir
=yes
8622 emacs_alsa_subdir
=no
8624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8625 if test "$emacs_alsa_subdir" != yes; then
8626 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8628 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8631 CFLAGS
="$SAVE_CFLAGS"
8633 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
8634 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
8636 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8640 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
8642 gnu-linux|freebsd|netbsd
)
8644 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8656 for ac_header
in $ac_header_list
8658 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8659 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8661 eval as_val
=\$
$as_ac_Header
8662 if test "x$as_val" = x
""yes; then :
8663 cat >>confdefs.h
<<_ACEOF
8664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8700 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/personality.h>
8707 personality (PER_LINUX32)
8712 if ac_fn_c_try_compile
"$LINENO"; then :
8713 emacs_cv_personality_linux32
=yes
8715 emacs_cv_personality_linux32
=no
8717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8719 $as_echo "$emacs_cv_personality_linux32" >&6; }
8721 if test $emacs_cv_personality_linux32 = yes; then
8723 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8727 for ac_header
in term.h
8729 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
8730 if test "x$ac_cv_header_term_h" = x
""yes; then :
8731 cat >>confdefs.h
<<_ACEOF
8732 #define HAVE_TERM_H 1
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8740 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8741 if test "${ac_cv_header_time+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
8744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 #include <sys/types.h>
8747 #include <sys/time.h>
8753 if ((struct tm *) 0)
8759 if ac_fn_c_try_compile
"$LINENO"; then :
8760 ac_cv_header_time
=yes
8762 ac_cv_header_time
=no
8764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8767 $as_echo "$ac_cv_header_time" >&6; }
8768 if test $ac_cv_header_time = yes; then
8770 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8774 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8775 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
8781 cat >>confdefs.h
<<_ACEOF
8782 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8785 if test $ac_cv_have_decl_sys_siglist != yes; then
8786 # For Tru64, at least:
8787 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8788 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
8794 cat >>confdefs.h
<<_ACEOF
8795 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8798 if test $ac_cv_have_decl___sys_siglist = yes; then
8800 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8805 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8806 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8811 #include <sys/types.h>
8812 #include <sys/wait.h>
8814 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8817 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8825 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8830 if ac_fn_c_try_compile
"$LINENO"; then :
8831 ac_cv_header_sys_wait_h
=yes
8833 ac_cv_header_sys_wait_h
=no
8835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8838 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8839 if test $ac_cv_header_sys_wait_h = yes; then
8841 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8847 $as_echo_n "checking for speed_t... " >&6; }
8848 if test "${emacs_cv_speed_t+set}" = set; then :
8849 $as_echo_n "(cached) " >&6
8851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 #include <termios.h>
8862 if ac_fn_c_try_compile
"$LINENO"; then :
8863 emacs_cv_speed_t
=yes
8867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8870 $as_echo "$emacs_cv_speed_t" >&6; }
8871 if test $emacs_cv_speed_t = yes; then
8873 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8880 for ac_header
in net
/if.h
8882 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8883 #if HAVE_SYS_SOCKET_H
8884 #include <sys/socket.h>
8887 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
8888 cat >>confdefs.h
<<_ACEOF
8889 #define HAVE_NET_IF_H 1
8896 for ac_header
in ifaddrs.h
8898 ac_fn_c_check_header_compile
"$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8899 #if HAVE_SYS_SOCKET_H
8900 #include <sys/socket.h>
8903 if test "x$ac_cv_header_ifaddrs_h" = x
""yes; then :
8904 cat >>confdefs.h
<<_ACEOF
8905 #define HAVE_IFADDRS_H 1
8912 for ac_header
in net
/if_dl.h
8914 ac_fn_c_check_header_compile
"$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8915 #if HAVE_SYS_SOCKET_H
8916 #include <sys/socket.h>
8919 if test "x$ac_cv_header_net_if_dl_h" = x
""yes; then :
8920 cat >>confdefs.h
<<_ACEOF
8921 #define HAVE_NET_IF_DL_H 1
8929 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8930 #if HAVE_SYS_SOCKET_H
8931 #include <sys/socket.h>
8937 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
8939 cat >>confdefs.h
<<_ACEOF
8940 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8945 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8946 #if HAVE_SYS_SOCKET_H
8947 #include <sys/socket.h>
8953 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
8955 cat >>confdefs.h
<<_ACEOF
8956 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8961 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8962 #if HAVE_SYS_SOCKET_H
8963 #include <sys/socket.h>
8969 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
8971 cat >>confdefs.h
<<_ACEOF
8972 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8977 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8978 #if HAVE_SYS_SOCKET_H
8979 #include <sys/socket.h>
8985 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
8987 cat >>confdefs.h
<<_ACEOF
8988 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8993 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8994 #if HAVE_SYS_SOCKET_H
8995 #include <sys/socket.h>
9001 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
9003 cat >>confdefs.h
<<_ACEOF
9004 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9009 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9010 #if HAVE_SYS_SOCKET_H
9011 #include <sys/socket.h>
9017 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x
""yes; then :
9019 cat >>confdefs.h
<<_ACEOF
9020 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9032 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9034 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9036 testval
=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9037 if test "x$testval" != x
; then
9040 ac_enable_autodepend
=no
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9043 $as_echo "$HAVE_GNU_MAKE" >&6; }
9044 if test $HAVE_GNU_MAKE = yes; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9046 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9047 SAVE_CFLAGS
="$CFLAGS"
9048 CFLAGS
="$CFLAGS -MMD -MF deps.d -MP"
9049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9060 if ac_fn_c_try_compile
"$LINENO"; then :
9063 ac_enable_autodepend
=no
9065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9066 CFLAGS
="$SAVE_CFLAGS"
9067 test -f deps.d || ac_enable_autodepend
=no
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9070 $as_echo "$ac_enable_autodepend" >&6; }
9072 if test $ac_enable_autodepend = yes; then
9073 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d -MP'
9074 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9075 MKDEPDIR
='${MKDIR_P} ${DEPDIR}'
9076 deps_frag
=autodeps.mk
9079 deps_frag
=$srcdir/src
/$deps_frag
9085 lisp_frag
=$srcdir/src
/lisp.mk
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9090 $as_echo_n "checking for long file names... " >&6; }
9091 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9094 ac_cv_sys_long_file_names
=yes
9095 # Test for long file names in all the places we know might matter:
9096 # . the current directory, where building will happen
9097 # $prefix/lib where we will be installing things
9098 # $exec_prefix/lib likewise
9099 # $TMPDIR if set, where it might want to write temporary files
9100 # /tmp where it might want to write temporary files
9103 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9104 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9105 # in the usual case where exec_prefix is '${prefix}'.
9107 . |
/* | ?
:[\\/]*) ;; #(
9110 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9111 ac_xdir
=$ac_dir/cf$$
9112 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9113 ac_tf1
=$ac_xdir/conftest9012345
9114 ac_tf2
=$ac_xdir/conftest9012346
9115 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9116 ac_cv_sys_long_file_names
=no
9117 rm -f -r "$ac_xdir" 2>/dev
/null
9118 test $ac_cv_sys_long_file_names = no
&& break
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9122 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9123 if test $ac_cv_sys_long_file_names = yes; then
9125 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9130 #### Choose a window system.
9132 ## We leave window_system equal to none if
9133 ## we end up building without one. Any new window system should
9134 ## set window_system to an appropriate value and add objects to
9135 ## window-system-specific substs.
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9139 $as_echo_n "checking for X... " >&6; }
9142 # Check whether --with-x was given.
9143 if test "${with_x+set}" = set; then :
9147 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9148 if test "x$with_x" = xno
; then
9149 # The user explicitly disabled X.
9152 case $x_includes,$x_libraries in #(
9153 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
9154 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9157 # One or both of the vars are not set, and there is no cached value.
9158 ac_x_includes
=no ac_x_libraries
=no
9159 rm -f -r conftest.dir
9160 if mkdir conftest.dir
; then
9162 cat >Imakefile
<<'_ACEOF'
9164 @echo incroot='${INCROOT}'
9166 @echo usrlibdir='${USRLIBDIR}'
9168 @echo libdir='${LIBDIR}'
9170 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9172 for ac_var
in incroot usrlibdir libdir
; do
9173 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9175 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9176 for ac_extension
in a so sl dylib la dll
; do
9177 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9178 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9179 ac_im_usrlibdir
=$ac_im_libdir; break
9182 # Screen out bogus values from the imake configuration. They are
9183 # bogus both because they are the default anyway, and because
9184 # using them would break gcc on systems where it needs fixed includes.
9185 case $ac_im_incroot in
9186 /usr
/include
) ac_x_includes
= ;;
9187 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9189 case $ac_im_usrlibdir in
9190 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9191 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9195 rm -f -r conftest.dir
9198 # Standard set of common directories for X headers.
9199 # Check X11 before X11Rn because it is often a symlink to the current release.
9213 /usr/local/X11/include
9214 /usr/local/X11R7/include
9215 /usr/local/X11R6/include
9216 /usr/local/X11R5/include
9217 /usr/local/X11R4/include
9219 /usr/local/include/X11
9220 /usr/local/include/X11R7
9221 /usr/local/include/X11R6
9222 /usr/local/include/X11R5
9223 /usr/local/include/X11R4
9227 /usr/XFree86/include/X11
9231 /usr/unsupported/include
9233 /usr/local/x11r5/include
9234 /usr/lpp/Xamples/include
9236 /usr/openwin/include
9237 /usr/openwin/share/include'
9239 if test "$ac_x_includes" = no
; then
9240 # Guess where to find include files, by looking for Xlib.h.
9241 # First, try using that file with no special directory specified.
9242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 #include <X11/Xlib.h>
9246 if ac_fn_c_try_cpp
"$LINENO"; then :
9247 # We can compile using X headers with no special include directory.
9250 for ac_dir
in $ac_x_header_dirs; do
9251 if test -r "$ac_dir/X11/Xlib.h"; then
9252 ac_x_includes
=$ac_dir
9257 rm -f conftest.err conftest.
$ac_ext
9258 fi # $ac_x_includes = no
9260 if test "$ac_x_libraries" = no
; then
9261 # Check for the libraries.
9262 # See if we find them without any special options.
9263 # Don't add to $LIBS permanently.
9266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <X11/Xlib.h>
9277 if ac_fn_c_try_link
"$LINENO"; then :
9279 # We can link X programs with no special library path.
9283 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9285 # Don't even attempt the hair of trying to link an X program!
9286 for ac_extension
in a so sl dylib la dll
; do
9287 if test -r "$ac_dir/libX11.$ac_extension"; then
9288 ac_x_libraries
=$ac_dir
9294 rm -f core conftest.err conftest.
$ac_objext \
9295 conftest
$ac_exeext conftest.
$ac_ext
9296 fi # $ac_x_libraries = no
9298 case $ac_x_includes,$ac_x_libraries in #(
9300 # Didn't find X, or a directory has "'" in its name.
9301 ac_cv_have_x
="have_x=no";; #(
9303 # Record where we found X for the cache.
9304 ac_cv_have_x
="have_x=yes\
9305 ac_x_includes='$ac_x_includes'\
9306 ac_x_libraries='$ac_x_libraries'"
9312 eval "$ac_cv_have_x"
9315 if test "$have_x" != yes; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9317 $as_echo "$have_x" >&6; }
9320 # If each of the values was on the command line, it overrides each guess.
9321 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9322 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9323 # Update the cache value to reflect the command line values.
9324 ac_cv_have_x
="have_x=yes\
9325 ac_x_includes='$x_includes'\
9326 ac_x_libraries='$x_libraries'"
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9328 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9331 if test "$no_x" != yes; then
9335 LD_SWITCH_X_SITE_RPATH
=
9336 if test "${x_libraries}" != NONE
; then
9337 if test -n "${x_libraries}"; then
9338 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9339 LD_SWITCH_X_SITE_RPATH
=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9341 x_default_search_path
=""
9342 x_search_path
=${x_libraries}
9343 if test -z "${x_search_path}"; then
9344 x_search_path
=/usr
/lib
9346 for x_library
in `echo ${x_search_path}: | \
9347 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9349 ${x_library}/X11/%L/%T/%N%C%S:\
9350 ${x_library}/X11/%l/%T/%N%C%S:\
9351 ${x_library}/X11/%T/%N%C%S:\
9352 ${x_library}/X11/%L/%T/%N%S:\
9353 ${x_library}/X11/%l/%T/%N%S:\
9354 ${x_library}/X11/%T/%N%S"
9355 if test x
"${x_default_search_path}" = x
; then
9356 x_default_search_path
=${x_search_path}
9358 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9364 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9365 C_SWITCH_X_SITE
="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9368 if test x
"${x_includes}" = x
; then
9369 bitmapdir
=/usr
/include
/X11
/bitmaps
9371 # accumulate include directories that have X11 bitmap subdirectories
9373 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9374 if test -d "${bmd}/X11/bitmaps"; then
9375 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9377 if test -d "${bmd}/bitmaps"; then
9378 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9381 if test ${bmd_acc} != "dummyval"; then
9382 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9389 tmp_CPPFLAGS
="$CPPFLAGS"
9390 tmp_CFLAGS
="$CFLAGS"
9391 CPPFLAGS
="$CPPFLAGS -x objective-c"
9392 CFLAGS
="$CFLAGS -x objective-c"
9393 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9395 if test "${with_ns}" != no
; then
9396 if test "${opsys}" = darwin
; then
9398 ns_appdir
=`pwd`/nextstep
/Emacs.app
9399 ns_appbindir
=${ns_appdir}/Contents
/MacOS
9400 ns_appresdir
=${ns_appdir}/Contents
/Resources
9401 ns_appsrc
=Cocoa
/Emacs.base
9402 elif test -f $GNUSTEP_CONFIG_FILE; then
9404 ns_appdir
=`pwd`/nextstep
/Emacs.app
9405 ns_appbindir
=${ns_appdir}
9406 ns_appresdir
=${ns_appdir}/Resources
9407 ns_appsrc
=GNUstep
/Emacs.base
9408 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9409 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9410 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9411 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9412 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9413 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
9414 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9415 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
9416 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9417 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9418 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9423 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9424 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 #include <GNUstepBase/GSConfig.h>
9433 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9442 if ac_fn_c_try_compile
"$LINENO"; then :
9443 emacs_cv_objc_exceptions
=yes
9445 emacs_cv_objc_exceptions
=no
9447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9450 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9451 if test $emacs_cv_objc_exceptions = yes; then
9453 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9455 GNU_OBJC_CFLAGS
="-fobjc-exceptions"
9459 CFLAGS
="$CFLAGS $GNU_OBJC_CFLAGS"
9461 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9462 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
9465 as_fn_error
"\`--with-ns' was specified, but the include
9466 files are missing or cannot be compiled." "$LINENO" 5
9470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 #include <Foundation/NSObjCRuntime.h>
9481 if ac_fn_c_try_compile
"$LINENO"; then :
9482 ns_have_nsinteger
=yes
9484 ns_have_nsinteger
=no
9486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9487 if test $ns_have_nsinteger = yes; then
9489 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9495 INSTALL_ARCH_INDEP_EXTRA
=install-etc
9496 ns_self_contained
=no
9499 if test "${HAVE_NS}" = yes; then
9500 if test "$with_toolkit_scroll_bars" = "no"; then
9501 as_fn_error
"Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9504 window_system
=nextstep
9505 # set up packaging dirs
9506 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9507 ns_self_contained
=yes
9508 prefix
=${ns_appresdir}
9509 exec_prefix
=${ns_appbindir}
9510 libexecdir
="\${ns_appbindir}/libexec"
9511 archlibdir
="\${ns_appbindir}/libexec"
9512 docdir
="\${ns_appresdir}/etc"
9513 etcdir
="\${ns_appresdir}/etc"
9514 infodir
="\${ns_appresdir}/info"
9515 mandir
="\${ns_appresdir}/man"
9516 lispdir
="\${ns_appresdir}/lisp"
9517 leimdir
="\${ns_appresdir}/leim"
9518 INSTALL_ARCH_INDEP_EXTRA
=
9520 NS_OBJC_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9522 CFLAGS
="$tmp_CFLAGS"
9523 CPPFLAGS
="$tmp_CPPFLAGS"
9530 ## $window_system is now set to the window system we will
9538 case "${window_system}" in
9543 case "${with_x_toolkit}" in
9544 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9545 motif
) USE_X_TOOLKIT
=MOTIF
;;
9547 term_header
=gtkutil.h
9548 USE_X_TOOLKIT
=none
;;
9549 gtk2
) with_gtk2
=yes
9550 term_header
=gtkutil.h
9551 USE_X_TOOLKIT
=none
;;
9552 gtk3
) with_gtk3
=yes
9553 term_header
=gtkutil.h
9554 USE_X_TOOLKIT
=none
;;
9555 no
) USE_X_TOOLKIT
=none
;;
9556 * ) USE_X_TOOLKIT
=maybe
;;
9560 term_header
=nsterm.h
9564 if test -n "${term_header}"; then
9566 cat >>confdefs.h
<<_ACEOF
9567 #define TERM_HEADER "${term_header}"
9572 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9573 # Extract the first word of "X", so it can be a program name with args.
9574 set dummy X
; ac_word
=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9580 if test -n "$HAVE_XSERVER"; then
9581 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9587 test -z "$as_dir" && as_dir
=.
9588 for ac_exec_ext
in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9590 ac_cv_prog_HAVE_XSERVER
="true"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9601 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9602 if test -n "$HAVE_XSERVER"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9604 $as_echo "$HAVE_XSERVER" >&6; }
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9611 if test "$HAVE_XSERVER" = true ||
9612 test -n "$DISPLAY" ||
9613 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9614 as_fn_error
"You seem to be running X, but no X development libraries
9615 were found. You should install the relevant development files for X
9616 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9617 sure you have development files for image handling, i.e.
9618 tiff, gif, jpeg, png and xpm.
9619 If you are sure you want Emacs compiled without X window support, pass
9621 to configure." "$LINENO" 5
9625 ### If we're using X11, we should use the X menu package.
9628 yes ) HAVE_MENUS
=yes ;;
9631 # Does the opsystem file prohibit the use of the GNU malloc?
9632 # Assume not, until told otherwise.
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9636 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9637 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9643 static void hook (void) {}
9647 malloc_set_state (malloc_get_state ());
9648 __after_morecore_hook = hook;
9649 __malloc_initialize_hook = hook;
9654 if ac_fn_c_try_link
"$LINENO"; then :
9655 emacs_cv_var_doug_lea_malloc
=yes
9657 emacs_cv_var_doug_lea_malloc
=no
9659 rm -f core conftest.err conftest.
$ac_objext \
9660 conftest
$ac_exeext conftest.
$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9663 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9664 doug_lea_malloc
=$emacs_cv_var_doug_lea_malloc
9669 ## darwin ld insists on the use of malloc routines in the System framework.
9670 darwin|sol2-10
) system_malloc
=yes ;;
9673 if test "${system_malloc}" = "yes"; then
9675 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9679 (The GNU allocators don't work with this system configuration.)"
9683 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
9684 VMLIMIT_OBJ
=vm-limit.o
9689 if test "$doug_lea_malloc" = "yes" ; then
9690 if test "$GNU_MALLOC" = yes ; then
9692 (Using Doug Lea's new malloc from the GNU C Library.)"
9695 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9698 ## Use mmap directly for allocating larger buffers.
9699 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9700 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9701 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9703 gnu
*) REL_ALLOC
=no
;;
9707 if test x
"${REL_ALLOC}" = x
; then
9708 REL_ALLOC
=${GNU_MALLOC}
9711 use_mmap_for_buffers
=no
9713 cygwin|freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
9723 for ac_func
in getpagesize
9725 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9726 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
9727 cat >>confdefs.h
<<_ACEOF
9728 #define HAVE_GETPAGESIZE 1
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9735 $as_echo_n "checking for working mmap... " >&6; }
9736 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9739 if test "$cross_compiling" = yes; then :
9740 ac_cv_func_mmap_fixed_mapped
=no
9742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 /* malloc might have been renamed as rpl_malloc. */
9748 /* Thanks to Mike Haertel and Jim Avera for this test.
9749 Here is a matrix of mmap possibilities:
9750 mmap private not fixed
9751 mmap private fixed at somewhere currently unmapped
9752 mmap private fixed at somewhere already mapped
9753 mmap shared not fixed
9754 mmap shared fixed at somewhere currently unmapped
9755 mmap shared fixed at somewhere already mapped
9756 For private mappings, we should verify that changes cannot be read()
9757 back from the file, nor mmap's back from the file at a different
9758 address. (There have been systems where private was not correctly
9759 implemented like the infamous i386 svr4.0, and systems where the
9760 VM page cache was not coherent with the file system buffer cache
9761 like early versions of FreeBSD and possibly contemporary NetBSD.)
9762 For shared mappings, we should conversely verify that changes get
9763 propagated back to all the places they're supposed to be.
9765 Grep wants private fixed already mapped.
9766 The main things grep needs to know about mmap are:
9767 * does it exist and is it safe to write into the mmap'd area
9768 * how to use it (BSD variants) */
9771 #include <sys/mman.h>
9773 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9777 /* This mess was copied from the GNU getpagesize.h. */
9778 #ifndef HAVE_GETPAGESIZE
9779 # ifdef _SC_PAGESIZE
9780 # define getpagesize() sysconf(_SC_PAGESIZE)
9781 # else /* no _SC_PAGESIZE */
9782 # ifdef HAVE_SYS_PARAM_H
9783 # include <sys/param.h>
9784 # ifdef EXEC_PAGESIZE
9785 # define getpagesize() EXEC_PAGESIZE
9786 # else /* no EXEC_PAGESIZE */
9788 # define getpagesize() NBPG * CLSIZE
9791 # endif /* no CLSIZE */
9792 # else /* no NBPG */
9794 # define getpagesize() NBPC
9795 # else /* no NBPC */
9797 # define getpagesize() PAGESIZE
9798 # endif /* PAGESIZE */
9799 # endif /* no NBPC */
9800 # endif /* no NBPG */
9801 # endif /* no EXEC_PAGESIZE */
9802 # else /* no HAVE_SYS_PARAM_H */
9803 # define getpagesize() 8192 /* punt totally */
9804 # endif /* no HAVE_SYS_PARAM_H */
9805 # endif /* no _SC_PAGESIZE */
9807 #endif /* no HAVE_GETPAGESIZE */
9812 char *data, *data2, *data3;
9817 pagesize = getpagesize ();
9819 /* First, make a file with some known garbage in it. */
9820 data = (char *) malloc (pagesize);
9823 for (i = 0; i < pagesize; ++i)
9824 *(data + i) = rand ();
9826 fd = creat ("conftest.mmap", 0600);
9829 if (write (fd, data, pagesize) != pagesize)
9833 /* Next, check that the tail of a page is zero-filled. File must have
9834 non-zero length, otherwise we risk SIGBUS for entire page. */
9835 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9839 if (write (fd2, cdata2, 1) != 1)
9841 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9842 if (data2 == MAP_FAILED)
9844 for (i = 0; i < pagesize; ++i)
9848 if (munmap (data2, pagesize))
9851 /* Next, try to mmap the file at a fixed address which already has
9852 something else allocated at it. If we can, also make sure that
9853 we see the same garbage. */
9854 fd = open ("conftest.mmap", O_RDWR);
9857 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9858 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9860 for (i = 0; i < pagesize; ++i)
9861 if (*(data + i) != *(data2 + i))
9864 /* Finally, make sure that changes to the mapped area do not
9865 percolate back to the file as seen by read(). (This is a bug on
9866 some variants of i386 svr4.0.) */
9867 for (i = 0; i < pagesize; ++i)
9868 *(data2 + i) = *(data2 + i) + 1;
9869 data3 = (char *) malloc (pagesize);
9872 if (read (fd, data3, pagesize) != pagesize)
9874 for (i = 0; i < pagesize; ++i)
9875 if (*(data + i) != *(data3 + i))
9881 if ac_fn_c_try_run
"$LINENO"; then :
9882 ac_cv_func_mmap_fixed_mapped
=yes
9884 ac_cv_func_mmap_fixed_mapped
=no
9886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9892 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9893 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9895 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9898 rm -f conftest.mmap conftest.txt
9900 if test $use_mmap_for_buffers = yes; then
9902 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9907 LIBS
="$LIBS_SYSTEM $LIBS"
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9910 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9911 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9914 ac_check_lib_save_LIBS
=$LIBS
9916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9929 return dnet_ntoa ();
9934 if ac_fn_c_try_link
"$LINENO"; then :
9935 ac_cv_lib_dnet_dnet_ntoa
=yes
9937 ac_cv_lib_dnet_dnet_ntoa
=no
9939 rm -f core conftest.err conftest.
$ac_objext \
9940 conftest
$ac_exeext conftest.
$ac_ext
9941 LIBS
=$ac_check_lib_save_LIBS
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9944 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9945 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
9946 cat >>confdefs.h
<<_ACEOF
9947 #define HAVE_LIBDNET 1
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9956 $as_echo_n "checking for main in -lXbsd... " >&6; }
9957 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
9960 ac_check_lib_save_LIBS
=$LIBS
9962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9974 if ac_fn_c_try_link
"$LINENO"; then :
9975 ac_cv_lib_Xbsd_main
=yes
9977 ac_cv_lib_Xbsd_main
=no
9979 rm -f core conftest.err conftest.
$ac_objext \
9980 conftest
$ac_exeext conftest.
$ac_ext
9981 LIBS
=$ac_check_lib_save_LIBS
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9984 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9985 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
9986 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9994 if test "$ac_cv_header_pthread_h"; then
9995 if test "$GMALLOC_OBJ" = gmalloc.o
; then
9996 emacs_pthread_function
=pthread_atfork
9998 emacs_pthread_function
=pthread_self
10000 as_ac_Lib
=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10002 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10003 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10004 $as_echo_n "(cached) " >&6
10006 ac_check_lib_save_LIBS
=$LIBS
10007 LIBS
="-lpthread $LIBS"
10008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10011 /* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10017 char $emacs_pthread_function ();
10021 return $emacs_pthread_function ();
10026 if ac_fn_c_try_link
"$LINENO"; then :
10027 eval "$as_ac_Lib=yes"
10029 eval "$as_ac_Lib=no"
10031 rm -f core conftest.err conftest.
$ac_objext \
10032 conftest
$ac_exeext conftest.
$ac_ext
10033 LIBS
=$ac_check_lib_save_LIBS
10035 eval ac_res
=\$
$as_ac_Lib
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10037 $as_echo "$ac_res" >&6; }
10038 eval as_val
=\$
$as_ac_Lib
10039 if test "x$as_val" = x
""yes; then :
10044 if test "$HAVE_PTHREAD" = yes; then
10045 case "${canonical}" in
10047 *) LIB_PTHREAD
="-lpthread"
10048 LIBS
="$LIB_PTHREAD $LIBS" ;;
10051 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10057 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10058 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10061 ac_check_lib_save_LIBS
=$LIBS
10062 LIBS
="-lpthreads $LIBS"
10063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10066 /* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10076 return cma_open ();
10081 if ac_fn_c_try_link
"$LINENO"; then :
10082 ac_cv_lib_pthreads_cma_open
=yes
10084 ac_cv_lib_pthreads_cma_open
=no
10086 rm -f core conftest.err conftest.
$ac_objext \
10087 conftest
$ac_exeext conftest.
$ac_ext
10088 LIBS
=$ac_check_lib_save_LIBS
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10091 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10092 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
10093 cat >>confdefs.h
<<_ACEOF
10094 #define HAVE_LIBPTHREADS 1
10097 LIBS
="-lpthreads $LIBS"
10102 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10103 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10104 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10105 ## added to LIBS in configure would never contain the pthreads part,
10106 ## but the value used in Makefiles might. FIXME?
10108 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10109 ## be harmless on older versions of X where it happens to exist.
10110 test "$opsys" = "aix4-2" && \
10111 test $ac_cv_lib_pthreads_cma_open = yes && \
10112 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10118 $as_echo_n "checking for -bbigtoc option... " >&6; }
10119 if test "${gdb_cv_bigtoc+set}" = set; then :
10120 $as_echo_n "(cached) " >&6
10124 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10125 *) gdb_cv_bigtoc
=-bbigtoc ;;
10128 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10140 if ac_fn_c_try_link
"$LINENO"; then :
10145 rm -f core conftest.err conftest.
$ac_objext \
10146 conftest
$ac_exeext conftest.
$ac_ext
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10150 $as_echo "$gdb_cv_bigtoc" >&6; }
10154 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10155 # used for the tests that follow. We set them back to REAL_CFLAGS and
10156 # REAL_CPPFLAGS later on.
10158 REAL_CFLAGS
="$CFLAGS"
10159 REAL_CPPFLAGS
="$CPPFLAGS"
10161 if test "${HAVE_X11}" = "yes"; then
10162 DEFS
="$C_SWITCH_X_SITE $DEFS"
10163 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10165 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10166 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10168 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10169 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10170 # but it's more convenient here to set LD_RUN_PATH since this
10171 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10172 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10173 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10177 if test "${opsys}" = "gnu-linux"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10179 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10186 XOpenDisplay ("foo");
10191 if ac_fn_c_try_link
"$LINENO"; then :
10192 xgnu_linux_first_failure
=no
10194 xgnu_linux_first_failure
=yes
10196 rm -f core conftest.err conftest.
$ac_objext \
10197 conftest
$ac_exeext conftest.
$ac_ext
10198 if test "${xgnu_linux_first_failure}" = "yes"; then
10199 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10200 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10201 OLD_CPPFLAGS
="$CPPFLAGS"
10203 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10204 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10205 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10206 LIBS
="$LIBS -b i486-linuxaout"
10207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10213 XOpenDisplay ("foo");
10218 if ac_fn_c_try_link
"$LINENO"; then :
10219 xgnu_linux_second_failure
=no
10221 xgnu_linux_second_failure
=yes
10223 rm -f core conftest.err conftest.
$ac_objext \
10224 conftest
$ac_exeext conftest.
$ac_ext
10225 if test "${xgnu_linux_second_failure}" = "yes"; then
10226 # If we get the same failure with -b, there is no use adding -b.
10227 # So take it out. This plays safe.
10228 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10229 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10230 CPPFLAGS
="$OLD_CPPFLAGS"
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236 $as_echo "yes" >&6; }
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10244 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10245 # header files included from there.
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10247 $as_echo_n "checking for Xkb... " >&6; }
10248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250 #include <X11/Xlib.h>
10251 #include <X11/XKBlib.h>
10255 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10260 if ac_fn_c_try_link
"$LINENO"; then :
10265 rm -f core conftest.err conftest.
$ac_objext \
10266 conftest
$ac_exeext conftest.
$ac_ext
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10268 $as_echo "$emacs_xkb" >&6; }
10269 if test $emacs_xkb = yes; then
10271 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10275 for ac_func
in XrmSetDatabase XScreenResourceString \
10276 XScreenNumberOfScreen
10278 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10280 eval as_val
=\$
$as_ac_var
10281 if test "x$as_val" = x
""yes; then :
10282 cat >>confdefs.h
<<_ACEOF
10283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10291 if test "${window_system}" = "x11"; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10293 $as_echo_n "checking X11 version 6... " >&6; }
10294 if test "${emacs_cv_x11_version_6+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #include <X11/Xlib.h>
10303 #if XlibSpecificationRelease < 6
10311 if ac_fn_c_try_link
"$LINENO"; then :
10312 emacs_cv_x11_version_6
=yes
10314 emacs_cv_x11_version_6
=no
10316 rm -f core conftest.err conftest.
$ac_objext \
10317 conftest
$ac_exeext conftest.
$ac_ext
10320 if test $emacs_cv_x11_version_6 = yes; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10322 $as_echo "6 or newer" >&6; }
10324 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10327 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10329 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10334 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10340 $as_echo "before 6" >&6; }
10345 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10347 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
10348 if test "${with_rsvg}" != "no"; then
10349 RSVG_REQUIRED
=2.11.0
10350 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10355 if test "$PKG_CONFIG" = "no" ; then
10358 PKG_CONFIG_MIN_VERSION
=0.9.0
10359 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10361 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10363 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10364 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10365 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10372 RSVG_CFLAGS
=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10373 RSVG_LIBS
=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10375 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10382 ## If we have a custom action on failure, don't print errors, but
10383 ## do set a variable so people can do so. Do it in a subshell
10384 ## to capture any diagnostics in invoking pkg-config.
10385 RSVG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10397 if test $succeeded = yes; then
10406 if test $HAVE_RSVG = yes; then
10408 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10410 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10411 LIBS
="$RSVG_LIBS $LIBS"
10416 HAVE_IMAGEMAGICK
=no
10417 if test "${HAVE_X11}" = "yes"; then
10418 if test "${with_imagemagick}" != "no"; then
10419 ## 6.2.8 is the earliest version known to work, but earlier versions
10420 ## might work - let us know if you find one.
10421 ## 6.0.7 does not work. See bug#7955.
10422 IMAGEMAGICK_MODULE
="Wand >= 6.2.8"
10426 if test "$PKG_CONFIG" = "no" ; then
10429 PKG_CONFIG_MIN_VERSION
=0.9.0
10430 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10432 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10434 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10435 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10436 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10443 IMAGEMAGICK_CFLAGS
=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10444 IMAGEMAGICK_LIBS
=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10446 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10451 IMAGEMAGICK_CFLAGS
=""
10452 IMAGEMAGICK_LIBS
=""
10453 ## If we have a custom action on failure, don't print errors, but
10454 ## do set a variable so people can do so. Do it in a subshell
10455 ## to capture any diagnostics in invoking pkg-config.
10456 IMAGEMAGICK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10463 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10464 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10468 if test $succeeded = yes; then
10469 HAVE_IMAGEMAGICK
=yes
10477 if test $HAVE_IMAGEMAGICK = yes; then
10479 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10481 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
10482 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
10483 for ac_func
in MagickExportImagePixels MagickMergeImageLayers
10485 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10486 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10487 eval as_val
=\$
$as_ac_var
10488 if test "x$as_val" = x
""yes; then :
10489 cat >>confdefs.h
<<_ACEOF
10490 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10505 if test "${with_gtk3}" = "yes" ||
test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10508 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10513 if test "$PKG_CONFIG" = "no" ; then
10516 PKG_CONFIG_MIN_VERSION
=0.9.0
10517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10519 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10521 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10522 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10523 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10530 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10531 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10533 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537 $as_echo "no" >&6; }
10540 ## If we have a custom action on failure, don't print errors, but
10541 ## do set a variable so people can do so. Do it in a subshell
10542 ## to capture any diagnostics in invoking pkg-config.
10543 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10555 if test $succeeded = yes; then
10561 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10562 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
10564 if test "$pkg_check_gtk" = "yes"; then
10566 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10568 GTK_OBJ
=emacsgtkfixed.o
10569 term_header
=gtkutil.h
10570 USE_GTK_TOOLKIT
="GTK3"
10573 gtk3_pkg_errors
="$GTK_PKG_ERRORS "
10577 if test "${with_gtk2}" = "yes" ||
test "$check_gtk2" = "yes"; then
10580 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10585 if test "$PKG_CONFIG" = "no" ; then
10588 PKG_CONFIG_MIN_VERSION
=0.9.0
10589 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10591 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10593 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10594 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10595 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10602 GTK_CFLAGS
=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10603 GTK_LIBS
=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10605 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10612 ## If we have a custom action on failure, don't print errors, but
10613 ## do set a variable so people can do so. Do it in a subshell
10614 ## to capture any diagnostics in invoking pkg-config.
10615 GTK_PKG_ERRORS
=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10622 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10623 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10627 if test $succeeded = yes; then
10633 if test "$pkg_check_gtk" = "no" &&
10634 { test "$with_gtk" = yes ||
test "$with_gtk2" = "yes"; }
10636 as_fn_error
"$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10638 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT
="GTK2"
10641 if test x
"$pkg_check_gtk" = xyes
; then
10645 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10646 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10647 LIBS
="$GTK_LIBS $LIBS"
10649 for ac_func
in gtk_main
10651 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10652 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
10653 cat >>confdefs.h
<<_ACEOF
10654 #define HAVE_GTK_MAIN 1
10660 if test "${GTK_COMPILES}" != "yes"; then
10661 if test "$USE_X_TOOLKIT" != "maybe"; then
10662 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10667 $as_echo "#define USE_GTK 1" >>confdefs.h
10669 GTK_OBJ
="gtkutil.o $GTK_OBJ"
10671 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10675 closing open displays. This is no problem if you just use
10676 one display, but if you use more than one and close one of them
10677 Emacs may crash." >&5
10678 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10679 closing open displays. This is no problem if you just use
10680 one display, but if you use more than one and close one of them
10681 Emacs may crash." >&2;}
10690 if test "${HAVE_GTK}" = "yes"; then
10692 if test "$with_toolkit_scroll_bars" != no
; then
10693 with_toolkit_scroll_bars
=yes
10696 HAVE_GTK_FILE_SELECTION
=no
10697 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10698 #include <gtk/gtk.h>
10700 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
10701 HAVE_GTK_FILE_SELECTION
=yes
10703 HAVE_GTK_FILE_SELECTION
=no
10706 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10707 for ac_func
in gtk_file_selection_new
10709 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10710 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
10711 cat >>confdefs.h
<<_ACEOF
10712 #define HAVE_GTK_FILE_SELECTION_NEW 1
10721 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
10722 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10723 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10724 gtk_orientable_set_orientation \
10725 gtk_window_set_has_resize_grip
10727 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10728 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10729 eval as_val
=\$
$as_ac_var
10730 if test "x$as_val" = x
""yes; then :
10731 cat >>confdefs.h
<<_ACEOF
10732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10739 term_header
=gtkutil.h
10744 if test "${with_dbus}" = "yes"; then
10748 if test "$PKG_CONFIG" = "no" ; then
10751 PKG_CONFIG_MIN_VERSION
=0.9.0
10752 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10754 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10756 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10757 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10758 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10765 DBUS_CFLAGS
=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10766 DBUS_LIBS
=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10768 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10775 ## If we have a custom action on failure, don't print errors, but
10776 ## do set a variable so people can do so. Do it in a subshell
10777 ## to capture any diagnostics in invoking pkg-config.
10778 DBUS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10785 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10786 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10790 if test $succeeded = yes; then
10796 if test "$HAVE_DBUS" = yes; then
10797 LIBS
="$LIBS $DBUS_LIBS"
10799 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10801 for ac_func
in dbus_watch_get_unix_fd \
10802 dbus_type_is_valid \
10803 dbus_validate_bus_name \
10804 dbus_validate_path \
10805 dbus_validate_interface \
10806 dbus_validate_member
10808 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10810 eval as_val
=\$
$as_ac_var
10811 if test "x$as_val" = x
""yes; then :
10812 cat >>confdefs.h
<<_ACEOF
10813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10819 DBUS_OBJ
=dbusbind.o
10825 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10829 if test "$PKG_CONFIG" = "no" ; then
10832 PKG_CONFIG_MIN_VERSION
=0.9.0
10833 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10835 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10837 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10838 GSETTINGS_CFLAGS
=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10839 GSETTINGS_LIBS
=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10846 GSETTINGS_CFLAGS
=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10847 GSETTINGS_LIBS
=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10849 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10854 GSETTINGS_CFLAGS
=""
10856 ## If we have a custom action on failure, don't print errors, but
10857 ## do set a variable so people can do so. Do it in a subshell
10858 ## to capture any diagnostics in invoking pkg-config.
10859 GSETTINGS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10866 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10867 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10871 if test $succeeded = yes; then
10877 if test "$HAVE_GSETTINGS" = "yes"; then
10879 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10881 SETTINGS_CFLAGS
="$GSETTINGS_CFLAGS"
10882 SETTINGS_LIBS
="$GSETTINGS_LIBS"
10887 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10891 if test "$PKG_CONFIG" = "no" ; then
10894 PKG_CONFIG_MIN_VERSION
=0.9.0
10895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10897 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10899 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10900 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10901 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10908 GCONF_CFLAGS
=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10909 GCONF_LIBS
=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10911 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so. Do it in a subshell
10920 ## to capture any diagnostics in invoking pkg-config.
10921 GCONF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
10928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10933 if test $succeeded = yes; then
10939 if test "$HAVE_GCONF" = yes; then
10941 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10943 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10944 SETTINGS_LIBS
="$SETTINGS_LIBS $GCONF_LIBS"
10948 if test "$HAVE_GSETTINGS" = "yes" ||
test "$HAVE_GCONF" = "yes"; then
10952 if test "$PKG_CONFIG" = "no" ; then
10955 PKG_CONFIG_MIN_VERSION
=0.9.0
10956 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
10958 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
10960 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
10961 GOBJECT_CFLAGS
=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
10962 GOBJECT_LIBS
=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
10969 GOBJECT_CFLAGS
=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
10970 GOBJECT_LIBS
=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
10972 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10979 ## If we have a custom action on failure, don't print errors, but
10980 ## do set a variable so people can do so. Do it in a subshell
10981 ## to capture any diagnostics in invoking pkg-config.
10982 GOBJECT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
10989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10994 if test $succeeded = yes; then
11000 if test "$HAVE_GOBJECT" = "yes"; then
11001 SETTINGS_CFLAGS
="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11002 SETTINGS_LIBS
="$SETTINGS_LIBS $GOBJECT_LIBS"
11004 SAVE_CFLAGS
="$CFLAGS"
11006 CFLAGS
="$SETTINGS_CFLAGS $CFLAGS"
11007 LIBS
="$SETTINGS_LIBS $LIBS"
11008 for ac_func
in g_type_init
11010 ac_fn_c_check_func
"$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11011 if test "x$ac_cv_func_g_type_init" = x
""yes; then :
11012 cat >>confdefs.h
<<_ACEOF
11013 #define HAVE_G_TYPE_INIT 1
11019 CFLAGS
="$SAVE_CFLAGS"
11028 if test "${with_selinux}" = "yes"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11030 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11031 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11034 ac_check_lib_save_LIBS
=$LIBS
11035 LIBS
="-lselinux $LIBS"
11036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11045 char lgetfilecon ();
11049 return lgetfilecon ();
11054 if ac_fn_c_try_link
"$LINENO"; then :
11055 ac_cv_lib_selinux_lgetfilecon
=yes
11057 ac_cv_lib_selinux_lgetfilecon
=no
11059 rm -f core conftest.err conftest.
$ac_objext \
11060 conftest
$ac_exeext conftest.
$ac_ext
11061 LIBS
=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11064 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11065 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
11066 HAVE_LIBSELINUX
=yes
11071 if test "$HAVE_LIBSELINUX" = yes; then
11073 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11075 LIBSELINUX_LIBS
=-lselinux
11081 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=no
11082 if test "${with_gnutls}" = "yes" ; then
11086 if test "$PKG_CONFIG" = "no" ; then
11089 PKG_CONFIG_MIN_VERSION
=0.9.0
11090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11092 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11094 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11095 LIBGNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11096 LIBGNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11103 LIBGNUTLS_CFLAGS
=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11104 LIBGNUTLS_LIBS
=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11106 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 $as_echo "no" >&6; }
11111 LIBGNUTLS_CFLAGS
=""
11113 ## If we have a custom action on failure, don't print errors, but
11114 ## do set a variable so people can do so. Do it in a subshell
11115 ## to capture any diagnostics in invoking pkg-config.
11116 LIBGNUTLS_PKG_ERRORS
=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11123 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11124 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11128 if test $succeeded = yes; then
11134 if test "${HAVE_GNUTLS}" = "yes"; then
11136 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11140 CFLAGS
="$CFLAGS $LIBGNUTLS_CFLAGS"
11141 LIBS
="$LIBGNUTLS_LIBS $LIBS"
11142 for ac_func
in gnutls_certificate_set_verify_function
11144 ac_fn_c_check_func
"$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11145 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x
""yes; then :
11146 cat >>confdefs.h
<<_ACEOF
11147 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11149 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
=yes
11154 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11156 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11166 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11167 if test "$with_xaw3d" != no
; then
11168 if test "${emacs_cv_xaw3d+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11174 #include <X11/Intrinsic.h>
11175 #include <X11/Xaw3d/Simple.h>
11184 if ac_fn_c_try_link
"$LINENO"; then :
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11186 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11187 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11188 $as_echo_n "(cached) " >&6
11190 ac_check_lib_save_LIBS
=$LIBS
11191 LIBS
="-lXaw3d $LIBS"
11192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11201 char XawScrollbarSetThumb ();
11205 return XawScrollbarSetThumb ();
11210 if ac_fn_c_try_link
"$LINENO"; then :
11211 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11213 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11215 rm -f core conftest.err conftest.
$ac_objext \
11216 conftest
$ac_exeext conftest.
$ac_ext
11217 LIBS
=$ac_check_lib_save_LIBS
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11220 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11221 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x
""yes; then :
11230 rm -f core conftest.err conftest.
$ac_objext \
11231 conftest
$ac_exeext conftest.
$ac_ext
11237 if test $emacs_cv_xaw3d = yes; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11239 $as_echo_n "checking for xaw3d... " >&6; }
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11241 $as_echo "yes; using Lucid toolkit" >&6; }
11242 USE_X_TOOLKIT
=LUCID
11246 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11250 $as_echo_n "checking for xaw3d... " >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11254 $as_echo_n "checking for libXaw... " >&6; }
11255 if test "${emacs_cv_xaw+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11261 #include <X11/Intrinsic.h>
11262 #include <X11/Xaw/Simple.h>
11271 if ac_fn_c_try_link
"$LINENO"; then :
11276 rm -f core conftest.err conftest.
$ac_objext \
11277 conftest
$ac_exeext conftest.
$ac_ext
11280 if test $emacs_cv_xaw = yes; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11282 $as_echo "yes; using Lucid toolkit" >&6; }
11283 USE_X_TOOLKIT
=LUCID
11285 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11286 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11288 as_fn_error
"No X toolkit could be found.
11289 If you are sure you want Emacs compiled without an X toolkit, pass
11290 --with-x-toolkit=no
11291 to configure. Otherwise, install the development libraries for the toolkit
11292 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11297 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11300 if test "${USE_X_TOOLKIT}" != "none"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11302 $as_echo_n "checking X11 toolkit version... " >&6; }
11303 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308 #include <X11/Intrinsic.h>
11312 #if XtSpecificationRelease < 6
11320 if ac_fn_c_try_link
"$LINENO"; then :
11321 emacs_cv_x11_toolkit_version_6
=yes
11323 emacs_cv_x11_toolkit_version_6
=no
11325 rm -f core conftest.err conftest.
$ac_objext \
11326 conftest
$ac_exeext conftest.
$ac_ext
11329 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11330 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11332 $as_echo "6 or newer" >&6; }
11334 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11336 LIBXTR6
="-lSM -lICE"
11338 ## Use libw.a along with X11R6 Xt.
11339 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11343 $as_echo "before 6" >&6; }
11347 if test x
$HAVE_X11XTR6 = xyes
; then
11348 LIBS
="-lXt -lSM -lICE $LIBS"
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11353 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11354 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11357 ac_check_lib_save_LIBS
=$LIBS
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 /* Override any GCC internal prototype to avoid an error.
11363 Use char because int might match the return type of a GCC
11364 builtin and then its argument prototype would still apply. */
11368 char XmuConvertStandardSelection ();
11372 return XmuConvertStandardSelection ();
11377 if ac_fn_c_try_link
"$LINENO"; then :
11378 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11380 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11382 rm -f core conftest.err conftest.
$ac_objext \
11383 conftest
$ac_exeext conftest.
$ac_ext
11384 LIBS
=$ac_check_lib_save_LIBS
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11387 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11388 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
11389 cat >>confdefs.h
<<_ACEOF
11390 #define HAVE_LIBXMU 1
11397 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11403 ## These systems don't supply Xmu.
11405 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
11410 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11411 if test "${HAVE_X11}" = "yes"; then
11412 if test "${USE_X_TOOLKIT}" != "none"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11414 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11415 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11418 ac_check_lib_save_LIBS
=$LIBS
11419 LIBS
="-lXext $LIBS"
11420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11429 char XShapeQueryExtension ();
11433 return XShapeQueryExtension ();
11438 if ac_fn_c_try_link
"$LINENO"; then :
11439 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11441 ac_cv_lib_Xext_XShapeQueryExtension
=no
11443 rm -f core conftest.err conftest.
$ac_objext \
11444 conftest
$ac_exeext conftest.
$ac_ext
11445 LIBS
=$ac_check_lib_save_LIBS
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11448 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11449 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
11450 cat >>confdefs.h
<<_ACEOF
11451 #define HAVE_LIBXEXT 1
11454 LIBS
="-lXext $LIBS"
11462 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11463 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11464 if test -d /usr
/include
/openmotif
; then
11465 CPPFLAGS
="-I/usr/include/openmotif $CPPFLAGS"
11466 emacs_cv_openmotif
=yes
11467 case "$canonical" in
11468 x86_64-
*-linux-gnu* | powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*)
11469 test -d /usr
/lib64
/openmotif
&& LDFLAGS
="-L/usr/lib64/openmotif $LDFLAGS"
11472 test -d /usr
/lib
/openmotif
&& LDFLAGS
="-L/usr/lib/openmotif $LDFLAGS"
11475 emacs_cv_openmotif
=no
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11478 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11479 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11480 $as_echo_n "(cached) " >&6
11482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11488 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11491 Motif version prior to 2.1.
11497 if ac_fn_c_try_compile
"$LINENO"; then :
11498 emacs_cv_motif_version_2_1
=yes
11500 emacs_cv_motif_version_2_1
=no
11502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11505 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11506 if test $emacs_cv_motif_version_2_1 = yes; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11508 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11509 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11512 ac_check_lib_save_LIBS
=$LIBS
11514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11517 /* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11523 char XpCreateContext ();
11527 return XpCreateContext ();
11532 if ac_fn_c_try_link
"$LINENO"; then :
11533 ac_cv_lib_Xp_XpCreateContext
=yes
11535 ac_cv_lib_Xp_XpCreateContext
=no
11537 rm -f core conftest.err conftest.
$ac_objext \
11538 conftest
$ac_exeext conftest.
$ac_ext
11539 LIBS
=$ac_check_lib_save_LIBS
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11542 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11543 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
11547 if test x
$emacs_cv_openmotif = xyes
; then
11548 REAL_CPPFLAGS
="-I/usr/include/openmotif $REAL_CPPFLAGS"
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11552 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11553 if test "${emacs_cv_lesstif+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11556 # We put this in CFLAGS temporarily to precede other -I options
11557 # that might be in CFLAGS temporarily.
11558 # We put this in CPPFLAGS where it precedes the other -I options.
11559 OLD_CPPFLAGS
=$CPPFLAGS
11561 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11562 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11565 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11574 if ac_fn_c_try_compile
"$LINENO"; then :
11575 emacs_cv_lesstif
=yes
11577 emacs_cv_lesstif
=no
11579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11582 $as_echo "$emacs_cv_lesstif" >&6; }
11583 if test $emacs_cv_lesstif = yes; then
11584 # Make sure this -I option remains in CPPFLAGS after it is set
11585 # back to REAL_CPPFLAGS.
11586 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11587 # have those other -I options anyway. Ultimately, having this
11588 # directory ultimately in CPPFLAGS will be enough.
11589 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11590 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11593 CPPFLAGS
=$OLD_CPPFLAGS
11596 ac_fn_c_check_header_mongrel
"$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11597 if test "x$ac_cv_header_Xm_BulletinB_h" = x
""yes; then :
11600 as_fn_error
"Motif toolkit requested but requirements not found." "$LINENO" 5
11607 USE_TOOLKIT_SCROLL_BARS
=no
11608 if test "${with_toolkit_scroll_bars}" != "no"; then
11609 if test "${USE_X_TOOLKIT}" != "none"; then
11610 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11611 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11614 USE_TOOLKIT_SCROLL_BARS
=yes
11615 elif test "${HAVE_XAW3D}" = "yes" ||
test "${USE_X_TOOLKIT}" = "LUCID"; then
11616 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11618 USE_TOOLKIT_SCROLL_BARS
=yes
11620 elif test "${HAVE_GTK}" = "yes"; then
11621 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11623 USE_TOOLKIT_SCROLL_BARS
=yes
11624 elif test "${HAVE_NS}" = "yes"; then
11625 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11627 USE_TOOLKIT_SCROLL_BARS
=yes
11631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11634 #include <X11/Xlib.h>
11635 #include <X11/Xresource.h>
11644 if ac_fn_c_try_compile
"$LINENO"; then :
11647 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11655 if test "${with_xim}" != "no"; then
11657 $as_echo "#define USE_XIM 1" >>confdefs.h
11662 if test "${HAVE_XIM}" != "no"; then
11663 late_CFLAGS
=$CFLAGS
11664 if test "$GCC" = yes; then
11665 CFLAGS
="$CFLAGS --pedantic-errors"
11667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11670 #include <X11/Xlib.h>
11671 #include <X11/Xresource.h>
11680 XPointer *client_data;
11682 /* If we're not using GCC, it's probably not XFree86, and this is
11683 probably right, but we can't use something like --pedantic-errors. */
11684 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11685 char*, XIMProc, XPointer*);
11687 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11693 if ac_fn_c_try_compile
"$LINENO"; then :
11694 emacs_cv_arg6_star
=yes
11696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11697 if test "$emacs_cv_arg6_star" = yes; then
11698 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11701 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11704 CFLAGS
=$late_CFLAGS
11707 ### Start of font-backend (under any platform) section.
11708 # (nothing here yet -- this is a placeholder)
11709 ### End of font-backend (under any platform) section.
11711 ### Start of font-backend (under X11) section.
11712 if test "${HAVE_X11}" = "yes"; then
11716 if test "$PKG_CONFIG" = "no" ; then
11719 PKG_CONFIG_MIN_VERSION
=0.9.0
11720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11722 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11724 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11725 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11726 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11733 FONTCONFIG_CFLAGS
=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11734 FONTCONFIG_LIBS
=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11736 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11741 FONTCONFIG_CFLAGS
=""
11743 ## If we have a custom action on failure, don't print errors, but
11744 ## do set a variable so people can do so. Do it in a subshell
11745 ## to capture any diagnostics in invoking pkg-config.
11746 FONTCONFIG_PKG_ERRORS
=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11758 if test $succeeded = yes; then
11765 ## Use -lXft if available, unless `--with-xft=no'.
11767 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
11770 if test "x${with_xft}" != "xno"; then
11775 if test "$PKG_CONFIG" = "no" ; then
11778 PKG_CONFIG_MIN_VERSION
=0.9.0
11779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11781 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11783 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11784 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11785 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11792 XFT_CFLAGS
=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11793 XFT_LIBS
=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11795 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11802 ## If we have a custom action on failure, don't print errors, but
11803 ## do set a variable so people can do so. Do it in a subshell
11804 ## to capture any diagnostics in invoking pkg-config.
11805 XFT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11812 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11813 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11817 if test $succeeded = yes; then
11823 ## Because xftfont.c uses XRenderQueryExtension, we also
11824 ## need to link to -lXrender.
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11827 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11828 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11831 ac_check_lib_save_LIBS
=$LIBS
11832 LIBS
="-lXrender $LIBS"
11833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11842 char XRenderQueryExtension ();
11846 return XRenderQueryExtension ();
11851 if ac_fn_c_try_link
"$LINENO"; then :
11852 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
11854 ac_cv_lib_Xrender_XRenderQueryExtension
=no
11856 rm -f core conftest.err conftest.
$ac_objext \
11857 conftest
$ac_exeext conftest.
$ac_ext
11858 LIBS
=$ac_check_lib_save_LIBS
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11861 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11862 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
11866 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
11867 OLD_CPPFLAGS
="$CPPFLAGS"
11868 OLD_CFLAGS
="$CFLAGS"
11870 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11871 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11872 XFT_LIBS
="-lXrender $XFT_LIBS"
11873 LIBS
="$XFT_LIBS $LIBS"
11874 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11875 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11877 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11878 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11881 ac_check_lib_save_LIBS
=$LIBS
11882 LIBS
="-lXft $XFT_LIBS $LIBS"
11883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11892 char XftFontOpen ();
11896 return XftFontOpen ();
11901 if ac_fn_c_try_link
"$LINENO"; then :
11902 ac_cv_lib_Xft_XftFontOpen
=yes
11904 ac_cv_lib_Xft_XftFontOpen
=no
11906 rm -f core conftest.err conftest.
$ac_objext \
11907 conftest
$ac_exeext conftest.
$ac_ext
11908 LIBS
=$ac_check_lib_save_LIBS
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11911 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11912 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
11920 if test "${HAVE_XFT}" = "yes"; then
11922 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11925 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11927 CPPFLAGS
="$OLD_CPPFLAGS"
11928 CFLAGS
="$OLD_CFLAGS"
11930 fi # "${HAVE_XFT}" = "yes"
11931 fi # "$HAVE_XFT" != no
11932 fi # "x${with_xft}" != "xno"
11934 ## We used to allow building with FreeType and without Xft.
11935 ## However, the ftx font backend driver is not in good shape.
11936 if test "$HAVE_XFT" != "yes"; then
11943 if test "$PKG_CONFIG" = "no" ; then
11946 PKG_CONFIG_MIN_VERSION
=0.9.0
11947 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11949 $as_echo_n "checking for freetype2... " >&6; }
11951 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11952 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11953 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11960 FREETYPE_CFLAGS
=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11961 FREETYPE_LIBS
=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11963 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11970 ## If we have a custom action on failure, don't print errors, but
11971 ## do set a variable so people can do so. Do it in a subshell
11972 ## to capture any diagnostics in invoking pkg-config.
11973 FREETYPE_PKG_ERRORS
=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
11980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11985 if test $succeeded = yes; then
11992 test "$HAVE_FREETYPE" = "no" && as_fn_error
"libxft requires libfreetype" "$LINENO" 5
11996 if test "${HAVE_FREETYPE}" = "yes"; then
11998 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12000 if test "${with_libotf}" != "no"; then
12004 if test "$PKG_CONFIG" = "no" ; then
12007 PKG_CONFIG_MIN_VERSION
=0.9.0
12008 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12010 $as_echo_n "checking for libotf... " >&6; }
12012 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12013 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12014 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12021 LIBOTF_CFLAGS
=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12022 LIBOTF_LIBS
=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12024 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12031 ## If we have a custom action on failure, don't print errors, but
12032 ## do set a variable so people can do so. Do it in a subshell
12033 ## to capture any diagnostics in invoking pkg-config.
12034 LIBOTF_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12046 if test $succeeded = yes; then
12052 if test "$HAVE_LIBOTF" = "yes"; then
12054 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12057 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12058 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12061 ac_check_lib_save_LIBS
=$LIBS
12063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12072 char OTF_get_variation_glyphs ();
12076 return OTF_get_variation_glyphs ();
12081 if ac_fn_c_try_link
"$LINENO"; then :
12082 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
12084 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
12086 rm -f core conftest.err conftest.
$ac_objext \
12087 conftest
$ac_exeext conftest.
$ac_ext
12088 LIBS
=$ac_check_lib_save_LIBS
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12091 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12092 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
12093 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
12095 HAVE_OTF_GET_VARIATION_GLYPHS
=no
12098 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12100 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12108 if test "${HAVE_LIBOTF}" = yes; then
12109 if test "${with_m17n_flt}" != "no"; then
12113 if test "$PKG_CONFIG" = "no" ; then
12116 PKG_CONFIG_MIN_VERSION
=0.9.0
12117 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12119 $as_echo_n "checking for m17n-flt... " >&6; }
12121 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12122 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12123 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12130 M17N_FLT_CFLAGS
=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12131 M17N_FLT_LIBS
=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12133 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12140 ## If we have a custom action on failure, don't print errors, but
12141 ## do set a variable so people can do so. Do it in a subshell
12142 ## to capture any diagnostics in invoking pkg-config.
12143 M17N_FLT_PKG_ERRORS
=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12150 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12151 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12155 if test $succeeded = yes; then
12161 if test "$HAVE_M17N_FLT" = "yes"; then
12163 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12175 ### End of font-backend (under X11) section.
12186 ### Use -lXpm if available, unless `--with-xpm=no'.
12189 if test "${HAVE_X11}" = "yes"; then
12190 if test "${with_xpm}" != "no"; then
12191 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12192 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12194 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12195 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12198 ac_check_lib_save_LIBS
=$LIBS
12199 LIBS
="-lXpm -lX11 $LIBS"
12200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12209 char XpmReadFileToPixmap ();
12213 return XpmReadFileToPixmap ();
12218 if ac_fn_c_try_link
"$LINENO"; then :
12219 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12221 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12223 rm -f core conftest.err conftest.
$ac_objext \
12224 conftest
$ac_exeext conftest.
$ac_ext
12225 LIBS
=$ac_check_lib_save_LIBS
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12228 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12229 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
12236 if test "${HAVE_XPM}" = "yes"; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12238 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 #include "X11/xpm.h"
12242 #ifndef XpmReturnAllocPixels
12243 no_return_alloc_pixels
12247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12248 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
12256 if test "${HAVE_XPM}" = "yes"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12258 $as_echo "yes" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12266 if test "${HAVE_XPM}" = "yes"; then
12268 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12275 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12278 if test "${HAVE_X11}" = "yes"; then
12279 if test "${with_jpeg}" != "no"; then
12280 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12281 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12283 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12284 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12285 $as_echo_n "(cached) " >&6
12287 ac_check_lib_save_LIBS
=$LIBS
12288 LIBS
="-ljpeg $LIBS"
12289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12298 char jpeg_destroy_compress ();
12302 return jpeg_destroy_compress ();
12307 if ac_fn_c_try_link
"$LINENO"; then :
12308 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12310 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12312 rm -f core conftest.err conftest.
$ac_objext \
12313 conftest
$ac_exeext conftest.
$ac_ext
12314 LIBS
=$ac_check_lib_save_LIBS
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12317 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12318 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
12327 if test "${HAVE_JPEG}" = "yes"; then
12328 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 #include <jpeglib.h>
12333 version=JPEG_LIB_VERSION
12336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12337 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
12338 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12342 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12348 if test "${HAVE_JPEG}" = "yes"; then
12354 ### Use -lpng if available, unless `--with-png=no'.
12357 if test "${HAVE_X11}" = "yes"; then
12358 if test "${with_png}" != "no"; then
12359 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12360 # in /usr/include/libpng.
12361 for ac_header
in png.h libpng
/png.h
12363 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12364 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12365 eval as_val
=\$
$as_ac_Header
12366 if test "x$as_val" = x
""yes; then :
12367 cat >>confdefs.h
<<_ACEOF
12368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12375 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12377 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12378 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12379 $as_echo_n "(cached) " >&6
12381 ac_check_lib_save_LIBS
=$LIBS
12382 LIBS
="-lpng -lz -lm $LIBS"
12383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12392 char png_get_channels ();
12396 return png_get_channels ();
12401 if ac_fn_c_try_link
"$LINENO"; then :
12402 ac_cv_lib_png_png_get_channels
=yes
12404 ac_cv_lib_png_png_get_channels
=no
12406 rm -f core conftest.err conftest.
$ac_objext \
12407 conftest
$ac_exeext conftest.
$ac_ext
12408 LIBS
=$ac_check_lib_save_LIBS
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12411 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12412 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
12419 if test "${HAVE_PNG}" = "yes"; then
12421 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12423 LIBPNG
="-lpng -lz -lm"
12425 ac_fn_c_check_decl
"$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12426 # include <libpng/png.h>
12432 if test "x$ac_cv_have_decl_png_longjmp" = x
""yes; then :
12436 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12444 ### Use -ltiff if available, unless `--with-tiff=no'.
12447 if test "${HAVE_X11}" = "yes"; then
12448 if test "${with_tiff}" != "no"; then
12449 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12450 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
12452 # At least one tiff package requires the jpeg library.
12453 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12455 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12456 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12459 ac_check_lib_save_LIBS
=$LIBS
12460 LIBS
="-ltiff $tifflibs $LIBS"
12461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12464 /* Override any GCC internal prototype to avoid an error.
12465 Use char because int might match the return type of a GCC
12466 builtin and then its argument prototype would still apply. */
12470 char TIFFGetVersion ();
12474 return TIFFGetVersion ();
12479 if ac_fn_c_try_link
"$LINENO"; then :
12480 ac_cv_lib_tiff_TIFFGetVersion
=yes
12482 ac_cv_lib_tiff_TIFFGetVersion
=no
12484 rm -f core conftest.err conftest.
$ac_objext \
12485 conftest
$ac_exeext conftest.
$ac_ext
12486 LIBS
=$ac_check_lib_save_LIBS
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12489 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12490 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
12499 if test "${HAVE_TIFF}" = "yes"; then
12501 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12508 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12511 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12512 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12513 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
12514 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12515 # Earlier versions can crash Emacs.
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12517 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12518 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12519 $as_echo_n "(cached) " >&6
12521 ac_check_lib_save_LIBS
=$LIBS
12523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12532 char EGifPutExtensionLast ();
12536 return EGifPutExtensionLast ();
12541 if ac_fn_c_try_link
"$LINENO"; then :
12542 ac_cv_lib_gif_EGifPutExtensionLast
=yes
12544 ac_cv_lib_gif_EGifPutExtensionLast
=no
12546 rm -f core conftest.err conftest.
$ac_objext \
12547 conftest
$ac_exeext conftest.
$ac_ext
12548 LIBS
=$ac_check_lib_save_LIBS
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12551 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12552 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
12562 if test "$HAVE_GIF" = yes; then
12564 elif test "$HAVE_GIF" = maybe
; then
12565 # If gif_lib.h but no libgif, try libungif.
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12567 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12568 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12571 ac_check_lib_save_LIBS
=$LIBS
12572 LIBS
="-lungif $LIBS"
12573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12576 /* Override any GCC internal prototype to avoid an error.
12577 Use char because int might match the return type of a GCC
12578 builtin and then its argument prototype would still apply. */
12582 char EGifPutExtensionLast ();
12586 return EGifPutExtensionLast ();
12591 if ac_fn_c_try_link
"$LINENO"; then :
12592 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12594 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12596 rm -f core conftest.err conftest.
$ac_objext \
12597 conftest
$ac_exeext conftest.
$ac_ext
12598 LIBS
=$ac_check_lib_save_LIBS
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12601 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12602 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
12608 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
12611 if test "${HAVE_GIF}" = "yes"; then
12613 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12619 if test "${HAVE_X11}" = "yes"; then
12622 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12623 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
12624 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12625 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
12626 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12627 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
12628 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12629 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
12630 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12631 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
12633 if test "X${MISSING}" != X
; then
12634 as_fn_error
"The following required libraries were not found:
12636 Maybe some development libraries/packages are missing?
12637 If you don't want to link with them give
12639 as options to configure" "$LINENO" 5
12643 ### Use -lgpm if available, unless `--with-gpm=no'.
12646 if test "${with_gpm}" != "no"; then
12647 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12648 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12650 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12651 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12654 ac_check_lib_save_LIBS
=$LIBS
12656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12659 /* Override any GCC internal prototype to avoid an error.
12660 Use char because int might match the return type of a GCC
12661 builtin and then its argument prototype would still apply. */
12669 return Gpm_Open ();
12674 if ac_fn_c_try_link
"$LINENO"; then :
12675 ac_cv_lib_gpm_Gpm_Open
=yes
12677 ac_cv_lib_gpm_Gpm_Open
=no
12679 rm -f core conftest.err conftest.
$ac_objext \
12680 conftest
$ac_exeext conftest.
$ac_ext
12681 LIBS
=$ac_check_lib_save_LIBS
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12684 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12685 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
12693 if test "${HAVE_GPM}" = "yes"; then
12695 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12707 ### Use NeXTstep API to implement GUI.
12708 if test "${HAVE_NS}" = "yes"; then
12710 $as_echo "#define HAVE_NS 1" >>confdefs.h
12712 if test "${NS_IMPL_COCOA}" = "yes"; then
12714 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12717 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12719 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12721 # See also .m.o rule in Makefile.in */
12722 # FIXME: are all these flags really needed? Document here why. */
12723 GNUSTEP_CFLAGS
="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12724 ## Extra CFLAGS applied to src/*.m files.
12725 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"
12727 # We also have mouse menus.
12733 ### Use session management (-lSM -lICE) if available
12736 if test "${HAVE_X11}" = "yes"; then
12737 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12738 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12740 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12741 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12744 ac_check_lib_save_LIBS
=$LIBS
12745 LIBS
="-lSM -lICE $LIBS"
12746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12749 /* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12755 char SmcOpenConnection ();
12759 return SmcOpenConnection ();
12764 if ac_fn_c_try_link
"$LINENO"; then :
12765 ac_cv_lib_SM_SmcOpenConnection
=yes
12767 ac_cv_lib_SM_SmcOpenConnection
=no
12769 rm -f core conftest.err conftest.
$ac_objext \
12770 conftest
$ac_exeext conftest.
$ac_ext
12771 LIBS
=$ac_check_lib_save_LIBS
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12774 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12775 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
12783 if test "${HAVE_X_SM}" = "yes"; then
12785 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12787 LIBXSM
="-lSM -lICE"
12790 *) LIBS
="$LIBXSM $LIBS" ;;
12796 ### Use libxml (-lxml2) if available
12798 if test "${with_xml2}" != "no"; then
12799 ### I'm not sure what the version number should be, so I just guessed.
12803 if test "$PKG_CONFIG" = "no" ; then
12806 PKG_CONFIG_MIN_VERSION
=0.9.0
12807 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12809 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12811 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12812 LIBXML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12813 LIBXML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12820 LIBXML2_CFLAGS
=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12821 LIBXML2_LIBS
=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12823 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12830 ## If we have a custom action on failure, don't print errors, but
12831 ## do set a variable so people can do so. Do it in a subshell
12832 ## to capture any diagnostics in invoking pkg-config.
12833 LIBXML2_PKG_ERRORS
=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
12840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12845 if test $succeeded = yes; then
12851 if test "${HAVE_LIBXML2}" = "yes"; then
12852 LIBS
="$LIBXML2_LIBS $LIBS"
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12854 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12855 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12858 ac_check_lib_save_LIBS
=$LIBS
12859 LIBS
="-lxml2 $LIBS"
12860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12869 char htmlReadMemory ();
12873 return htmlReadMemory ();
12878 if ac_fn_c_try_link
"$LINENO"; then :
12879 ac_cv_lib_xml2_htmlReadMemory
=yes
12881 ac_cv_lib_xml2_htmlReadMemory
=no
12883 rm -f core conftest.err conftest.
$ac_objext \
12884 conftest
$ac_exeext conftest.
$ac_ext
12885 LIBS
=$ac_check_lib_save_LIBS
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12888 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12889 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x
""yes; then :
12895 if test "${HAVE_LIBXML2}" = "yes"; then
12897 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12908 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12910 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12911 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12925 if ac_fn_c_try_link
"$LINENO"; then :
12926 emacs_cv_netdb_declares_h_errno
=yes
12928 emacs_cv_netdb_declares_h_errno
=no
12930 rm -f core conftest.err conftest.
$ac_objext \
12931 conftest
$ac_exeext conftest.
$ac_ext
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12934 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12935 if test $emacs_cv_netdb_declares_h_errno = yes; then
12937 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12941 # sqrt and other floating-point functions such as fmod and frexp
12942 # are found in -lm on most systems.
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12944 $as_echo_n "checking for sqrt in -lm... " >&6; }
12945 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12948 ac_check_lib_save_LIBS
=$LIBS
12950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12968 if ac_fn_c_try_link
"$LINENO"; then :
12969 ac_cv_lib_m_sqrt
=yes
12971 ac_cv_lib_m_sqrt
=no
12973 rm -f core conftest.err conftest.
$ac_objext \
12974 conftest
$ac_exeext conftest.
$ac_ext
12975 LIBS
=$ac_check_lib_save_LIBS
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12978 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12979 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
12980 cat >>confdefs.h
<<_ACEOF
12981 #define HAVE_LIBM 1
12989 # Check for mail-locking functions in a "mail" library. Probably this should
12990 # have the same check as for liblockfile below.
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12992 $as_echo_n "checking for maillock in -lmail... " >&6; }
12993 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12996 ac_check_lib_save_LIBS
=$LIBS
12997 LIBS
="-lmail $LIBS"
12998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13011 return maillock ();
13016 if ac_fn_c_try_link
"$LINENO"; then :
13017 ac_cv_lib_mail_maillock
=yes
13019 ac_cv_lib_mail_maillock
=no
13021 rm -f core conftest.err conftest.
$ac_objext \
13022 conftest
$ac_exeext conftest.
$ac_ext
13023 LIBS
=$ac_check_lib_save_LIBS
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13026 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13027 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
13033 if test $have_mail = yes; then
13035 LIBS
="$LIBS_MAIL $LIBS"
13037 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13043 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13044 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13047 ac_check_lib_save_LIBS
=$LIBS
13048 LIBS
="-llockfile $LIBS"
13049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13062 return maillock ();
13067 if ac_fn_c_try_link
"$LINENO"; then :
13068 ac_cv_lib_lockfile_maillock
=yes
13070 ac_cv_lib_lockfile_maillock
=no
13072 rm -f core conftest.err conftest.
$ac_objext \
13073 conftest
$ac_exeext conftest.
$ac_ext
13074 LIBS
=$ac_check_lib_save_LIBS
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13077 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13078 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
13084 if test $have_lockfile = yes; then
13085 LIBS_MAIL
=-llockfile
13086 LIBS
="$LIBS_MAIL $LIBS"
13088 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13091 # If we have the shared liblockfile, assume we must use it for mail
13092 # locking (e.g. Debian). If we couldn't link against liblockfile
13093 # (no liblockfile.a installed), ensure that we don't need to.
13094 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13095 set dummy liblockfile.so
; ac_word
=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13101 if test -n "$liblockfile"; then
13102 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13105 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13106 for as_dir
in $as_dummy
13109 test -z "$as_dir" && as_dir
=.
13110 for ac_exec_ext
in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112 ac_cv_prog_liblockfile
="yes"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13123 liblockfile
=$ac_cv_prog_liblockfile
13124 if test -n "$liblockfile"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13126 $as_echo "$liblockfile" >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13133 if test $ac_cv_prog_liblockfile = yes; then
13134 as_fn_error
"Shared liblockfile found but can't link against it.
13135 This probably means that movemail could lose mail.
13136 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13144 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13145 ## interlock access to the mail spool. The alternative is a lock file named
13146 ## /usr/spool/mail/$USER.lock.
13149 aix4-2
) mail_lock
="lockf" ;;
13151 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
13153 ## On GNU/Linux systems, both methods are used by various mail programs.
13154 ## I assume most people are using newer mailers that have heard of flock.
13155 ## Change this if you need to.
13156 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13157 ## configure gets the right answers, and that means *NOT* using flock.
13158 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13159 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13160 ## Debian maintainer hasn't provided a clean fix for Emacs.
13161 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13162 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13163 ## correct logic. -- fx
13164 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13165 ## liblockfile is a Free Software replacement for libmail, used on
13166 ## Debian systems and elsewhere. -rfr.
13169 if test $have_mail = yes ||
test $have_lockfile = yes; then
13170 test $ac_cv_header_maillock_h = yes && mail_lock
=no
13176 case "$mail_lock" in
13178 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13182 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13185 *) BLESSMAIL_TARGET
="need-blessmail" ;;
13190 for ac_func
in gethostname \
13191 closedir getrusage get_current_dir_name \
13193 fpathconf
select euidaccess getpagesize setlocale \
13194 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13195 __fpending strsignal setitimer \
13196 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13197 gai_strerror mkstemp getline getdelim fsync sync \
13198 difftime posix_memalign \
13199 getpwent endpwent getgrent endgrent \
13201 cfmakeraw cfsetspeed copysign __executable_start
13203 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13204 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13205 eval as_val
=\$
$as_ac_var
13206 if test "x$as_val" = x
""yes; then :
13207 cat >>confdefs.h
<<_ACEOF
13208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13215 if test $opsys = unixware
; then
13217 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13220 for ac_func
in getwd
13222 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
13223 if test "x$ac_cv_func_getwd" = x
""yes; then :
13224 cat >>confdefs.h
<<_ACEOF
13225 #define HAVE_GETWD 1
13233 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13234 ## has a broken `rint' in some library versions including math library
13235 ## version number A.09.05.
13236 ## You can fix the math library by installing patch number PHSS_4630.
13237 ## But we can fix it more reliably for Emacs by just not using rint.
13238 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13241 *) for ac_func
in random rint
13243 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13244 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13245 eval as_val
=\$
$as_ac_var
13246 if test "x$as_val" = x
""yes; then :
13247 cat >>confdefs.h
<<_ACEOF
13248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13257 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13258 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13267 __builtin_unwind_init ();
13272 if ac_fn_c_try_link
"$LINENO"; then :
13273 emacs_cv_func___builtin_unwind_init
=yes
13275 emacs_cv_func___builtin_unwind_init
=no
13277 rm -f core conftest.err conftest.
$ac_objext \
13278 conftest
$ac_exeext conftest.
$ac_ext
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13281 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13282 if test $emacs_cv_func___builtin_unwind_init = yes; then
13284 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13293 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13294 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include <sys/types.h> /* for off_t */
13305 int (*fp) (FILE *, off_t, int) = fseeko;
13306 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13311 if ac_fn_c_try_link
"$LINENO"; then :
13312 ac_cv_sys_largefile_source
=no
; break
13314 rm -f core conftest.err conftest.
$ac_objext \
13315 conftest
$ac_exeext conftest.
$ac_ext
13316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 #define _LARGEFILE_SOURCE 1
13319 #include <sys/types.h> /* for off_t */
13324 int (*fp) (FILE *, off_t, int) = fseeko;
13325 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13330 if ac_fn_c_try_link
"$LINENO"; then :
13331 ac_cv_sys_largefile_source
=1; break
13333 rm -f core conftest.err conftest.
$ac_objext \
13334 conftest
$ac_exeext conftest.
$ac_ext
13335 ac_cv_sys_largefile_source
=unknown
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13340 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13341 case $ac_cv_sys_largefile_source in #(
13344 cat >>confdefs.h
<<_ACEOF
13345 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13351 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13352 # in glibc 2.1.3, but that breaks too many other things.
13353 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13354 if test $ac_cv_sys_largefile_source != unknown
; then
13356 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13362 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13363 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13364 $as_echo_n "(cached) " >&6
13366 # Use it with a single arg.
13367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 $ac_includes_default
13378 if ac_fn_c_try_compile
"$LINENO"; then :
13379 ac_cv_func_getpgrp_void
=no
13381 ac_cv_func_getpgrp_void
=yes
13383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13387 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13388 if test $ac_cv_func_getpgrp_void = yes; then
13390 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13396 for ac_func
in grantpt
13398 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
13399 if test "x$ac_cv_func_grantpt" = x
""yes; then :
13400 cat >>confdefs.h
<<_ACEOF
13401 #define HAVE_GRANTPT 1
13408 # PTY-related GNU extensions.
13409 for ac_func
in getpt posix_openpt
13411 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13412 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13413 eval as_val
=\$
$as_ac_var
13414 if test "x$as_val" = x
""yes; then :
13415 cat >>confdefs.h
<<_ACEOF
13416 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13423 # Check this now, so that we will NOT find the above functions in ncurses.
13424 # That is because we have not set up to link ncurses in lib-src.
13425 # It's better to believe a function is not available
13426 # than to expect to find it in ncurses.
13427 # Also we need tputs and friends to be able to build at all.
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13429 $as_echo_n "checking for library containing tputs... " >&6; }
13430 # Run a test program that contains a call to tputs, a call that is
13431 # never executed. This tests whether a pre-'main' dynamic linker
13432 # works with the library. It's too much trouble to actually call
13433 # tputs in the test program, due to portability hassles. When
13434 # cross-compiling, assume the test program will run if it links.
13436 # Maybe curses should be tried earlier?
13437 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13438 for tputs_library
in '' tinfo ncurses terminfo termcap curses
; do
13440 if test -z "$tputs_library"; then
13442 msg
='none required'
13444 LIBS_TERMCAP
=-l$tputs_library
13446 LIBS
="$LIBS_TERMCAP $LIBS"
13448 if test "$cross_compiling" = yes; then :
13449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13452 extern void tputs (const char *, int, int (*)(int));
13453 int main (int argc, char **argv)
13456 tputs (argv[0], 0, 0);
13461 if ac_fn_c_try_link
"$LINENO"; then :
13466 rm -f core conftest.err conftest.
$ac_objext \
13467 conftest
$ac_exeext conftest.
$ac_ext
13469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13472 extern void tputs (const char *, int, int (*)(int));
13473 int main (int argc, char **argv)
13476 tputs (argv[0], 0, 0);
13481 if ac_fn_c_try_run
"$LINENO"; then :
13486 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13487 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13491 if test "X$msg" != Xno
; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13496 $as_echo "$msg" >&6; }
13497 if test "X$msg" = Xno
; then
13498 as_fn_error
"The required function \`tputs' was not found in any library.
13499 The following libraries were tried (in order):
13500 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13501 Please try installing whichever of these libraries is most appropriate
13502 for your system, together with its header files.
13503 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13506 ## Use termcap instead of terminfo?
13507 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13509 ## FIXME? In the cases below where we unconditionally set
13510 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13511 ## if that was found above to have tputs.
13512 ## Should we use the gnu* logic everywhere?
13514 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13515 ## The ncurses library has been moved out of the System framework in
13516 ## Mac OS X 10.2. So if configure detects it, set the command-line
13517 ## option to use it.
13518 darwin
) LIBS_TERMCAP
="-lncurses" ;;
13520 gnu
*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP
="-lncurses" ;;
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13524 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13525 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <osreldate.h>
13534 #if __FreeBSD_version < 400000
13542 if ac_fn_c_try_link
"$LINENO"; then :
13543 emacs_cv_freebsd_terminfo
=yes
13545 emacs_cv_freebsd_terminfo
=no
13547 rm -f core conftest.err conftest.
$ac_objext \
13548 conftest
$ac_exeext conftest.
$ac_ext
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13553 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13555 if test $emacs_cv_freebsd_terminfo = yes; then
13556 LIBS_TERMCAP
="-lncurses"
13559 LIBS_TERMCAP
="-ltermcap"
13564 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13566 LIBS_TERMCAP
="-ltermcap"
13570 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
13572 ## hpux: Make sure we get select from libc rather than from libcurses
13573 ## because libcurses on HPUX 10.10 has a broken version of select.
13574 ## We used to use -lc -lcurses, but this may be cleaner.
13575 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13576 # set that way, now it uses the default). Isn't this a contradiction?
13577 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
13581 TERMCAP_OBJ
=tparam.o
13582 if test $TERMINFO = yes; then
13584 $as_echo "#define TERMINFO 1" >>confdefs.h
13586 TERMCAP_OBJ
=terminfo.o
13592 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13593 # On Darwin, res_init appears not to be useful: see bug#562 and
13594 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13597 if test $opsys != darwin
; then
13599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #include <netinet/in.h>
13602 #include <arpa/nameser.h>
13603 #include <resolv.h>
13612 if ac_fn_c_try_link
"$LINENO"; then :
13617 rm -f core conftest.err conftest.
$ac_objext \
13618 conftest
$ac_exeext conftest.
$ac_ext
13619 if test "$have_res_init" = no
; then
13621 LIBS
="$LIBS -lresolv"
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13623 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 #include <netinet/in.h>
13627 #include <arpa/nameser.h>
13628 #include <resolv.h>
13637 if ac_fn_c_try_link
"$LINENO"; then :
13642 rm -f core conftest.err conftest.
$ac_objext \
13643 conftest
$ac_exeext conftest.
$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13645 $as_echo "$have_res_init" >&6; }
13646 if test "$have_res_init" = yes ; then
13652 if test "$have_res_init" = yes; then
13654 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13658 # Do we need the Hesiod library to provide the support routines?
13660 if test "$with_hesiod" != no
; then
13661 # Don't set $LIBS here -- see comments above. FIXME which comments?
13662 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
13663 if test "x$ac_cv_func_res_send" = x
""yes; then :
13666 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
13667 if test "x$ac_cv_func___res_send" = x
""yes; then :
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13671 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13672 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13675 ac_check_lib_save_LIBS
=$LIBS
13676 LIBS
="-lresolv $LIBS"
13677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13690 return res_send ();
13695 if ac_fn_c_try_link
"$LINENO"; then :
13696 ac_cv_lib_resolv_res_send
=yes
13698 ac_cv_lib_resolv_res_send
=no
13700 rm -f core conftest.err conftest.
$ac_objext \
13701 conftest
$ac_exeext conftest.
$ac_ext
13702 LIBS
=$ac_check_lib_save_LIBS
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13705 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13706 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13710 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13711 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13712 $as_echo_n "(cached) " >&6
13714 ac_check_lib_save_LIBS
=$LIBS
13715 LIBS
="-lresolv $LIBS"
13716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13719 /* Override any GCC internal prototype to avoid an error.
13720 Use char because int might match the return type of a GCC
13721 builtin and then its argument prototype would still apply. */
13725 char __res_send ();
13729 return __res_send ();
13734 if ac_fn_c_try_link
"$LINENO"; then :
13735 ac_cv_lib_resolv___res_send
=yes
13737 ac_cv_lib_resolv___res_send
=no
13739 rm -f core conftest.err conftest.
$ac_objext \
13740 conftest
$ac_exeext conftest.
$ac_ext
13741 LIBS
=$ac_check_lib_save_LIBS
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13744 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13745 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
13755 if test "$resolv" = yes ; then
13760 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13761 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13765 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13766 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13767 $as_echo_n "(cached) " >&6
13769 ac_check_lib_save_LIBS
=$LIBS
13770 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13780 char hes_getmailhost ();
13784 return hes_getmailhost ();
13789 if ac_fn_c_try_link
"$LINENO"; then :
13790 ac_cv_lib_hesiod_hes_getmailhost
=yes
13792 ac_cv_lib_hesiod_hes_getmailhost
=no
13794 rm -f core conftest.err conftest.
$ac_objext \
13795 conftest
$ac_exeext conftest.
$ac_ext
13796 LIBS
=$ac_check_lib_save_LIBS
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13799 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13800 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
13809 if test x
"$hesiod" = xyes
; then
13811 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13818 # Do we need libresolv (due to res_init or Hesiod)?
13819 if test "$resolv" = yes && test $opsys != darwin
; then
13821 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13829 # These tell us which Kerberos-related libraries to use.
13836 if test "${with_kerberos}" != no
; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13838 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13839 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13842 ac_check_lib_save_LIBS
=$LIBS
13843 LIBS
="-lcom_err $LIBS"
13844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13862 if ac_fn_c_try_link
"$LINENO"; then :
13863 ac_cv_lib_com_err_com_err
=yes
13865 ac_cv_lib_com_err_com_err
=no
13867 rm -f core conftest.err conftest.
$ac_objext \
13868 conftest
$ac_exeext conftest.
$ac_ext
13869 LIBS
=$ac_check_lib_save_LIBS
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13872 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13873 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
13879 if test $have_com_err = yes; then
13880 COM_ERRLIB
=-lcom_err
13881 LIBS
="$COM_ERRLIB $LIBS"
13883 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13887 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13888 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13891 ac_check_lib_save_LIBS
=$LIBS
13892 LIBS
="-lcrypto $LIBS"
13893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13902 char mit_des_cbc_encrypt ();
13906 return mit_des_cbc_encrypt ();
13911 if ac_fn_c_try_link
"$LINENO"; then :
13912 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13914 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13916 rm -f core conftest.err conftest.
$ac_objext \
13917 conftest
$ac_exeext conftest.
$ac_ext
13918 LIBS
=$ac_check_lib_save_LIBS
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13921 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13922 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
13928 if test $have_crypto = yes; then
13930 LIBS
="$CRYPTOLIB $LIBS"
13932 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13936 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13937 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13938 $as_echo_n "(cached) " >&6
13940 ac_check_lib_save_LIBS
=$LIBS
13941 LIBS
="-lk5crypto $LIBS"
13942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13945 /* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
13951 char mit_des_cbc_encrypt ();
13955 return mit_des_cbc_encrypt ();
13960 if ac_fn_c_try_link
"$LINENO"; then :
13961 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13963 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13965 rm -f core conftest.err conftest.
$ac_objext \
13966 conftest
$ac_exeext conftest.
$ac_ext
13967 LIBS
=$ac_check_lib_save_LIBS
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13970 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13971 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
13977 if test $have_k5crypto = yes; then
13978 CRYPTOLIB
=-lk5crypto
13979 LIBS
="$CRYPTOLIB $LIBS"
13981 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13985 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13986 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13989 ac_check_lib_save_LIBS
=$LIBS
13990 LIBS
="-lkrb5 $LIBS"
13991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 /* Override any GCC internal prototype to avoid an error.
13995 Use char because int might match the return type of a GCC
13996 builtin and then its argument prototype would still apply. */
14000 char krb5_init_context ();
14004 return krb5_init_context ();
14009 if ac_fn_c_try_link
"$LINENO"; then :
14010 ac_cv_lib_krb5_krb5_init_context
=yes
14012 ac_cv_lib_krb5_krb5_init_context
=no
14014 rm -f core conftest.err conftest.
$ac_objext \
14015 conftest
$ac_exeext conftest.
$ac_ext
14016 LIBS
=$ac_check_lib_save_LIBS
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14019 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14020 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
14026 if test $have_krb5=yes; then
14028 LIBS
="$KRB5LIB $LIBS"
14030 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14033 if test "${with_kerberos5}" = no
; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14035 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14036 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14039 ac_check_lib_save_LIBS
=$LIBS
14040 LIBS
="-ldes425 $LIBS"
14041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14050 char des_cbc_encrypt ();
14054 return des_cbc_encrypt ();
14059 if ac_fn_c_try_link
"$LINENO"; then :
14060 ac_cv_lib_des425_des_cbc_encrypt
=yes
14062 ac_cv_lib_des425_des_cbc_encrypt
=no
14064 rm -f core conftest.err conftest.
$ac_objext \
14065 conftest
$ac_exeext conftest.
$ac_ext
14066 LIBS
=$ac_check_lib_save_LIBS
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14069 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14070 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
14076 if test $have_des425 = yes; then
14078 LIBS
="$DESLIB $LIBS"
14080 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14084 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14085 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14088 ac_check_lib_save_LIBS
=$LIBS
14090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14099 char des_cbc_encrypt ();
14103 return des_cbc_encrypt ();
14108 if ac_fn_c_try_link
"$LINENO"; then :
14109 ac_cv_lib_des_des_cbc_encrypt
=yes
14111 ac_cv_lib_des_des_cbc_encrypt
=no
14113 rm -f core conftest.err conftest.
$ac_objext \
14114 conftest
$ac_exeext conftest.
$ac_ext
14115 LIBS
=$ac_check_lib_save_LIBS
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14118 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14119 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
14125 if test $have_des = yes; then
14127 LIBS
="$DESLIB $LIBS"
14129 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14134 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14135 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14138 ac_check_lib_save_LIBS
=$LIBS
14139 LIBS
="-lkrb4 $LIBS"
14140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14149 char krb_get_cred ();
14153 return krb_get_cred ();
14158 if ac_fn_c_try_link
"$LINENO"; then :
14159 ac_cv_lib_krb4_krb_get_cred
=yes
14161 ac_cv_lib_krb4_krb_get_cred
=no
14163 rm -f core conftest.err conftest.
$ac_objext \
14164 conftest
$ac_exeext conftest.
$ac_ext
14165 LIBS
=$ac_check_lib_save_LIBS
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14168 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14169 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
14175 if test $have_krb4 = yes; then
14177 LIBS
="$KRB4LIB $LIBS"
14179 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14183 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14184 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14187 ac_check_lib_save_LIBS
=$LIBS
14189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14192 /* Override any GCC internal prototype to avoid an error.
14193 Use char because int might match the return type of a GCC
14194 builtin and then its argument prototype would still apply. */
14198 char krb_get_cred ();
14202 return krb_get_cred ();
14207 if ac_fn_c_try_link
"$LINENO"; then :
14208 ac_cv_lib_krb_krb_get_cred
=yes
14210 ac_cv_lib_krb_krb_get_cred
=no
14212 rm -f core conftest.err conftest.
$ac_objext \
14213 conftest
$ac_exeext conftest.
$ac_ext
14214 LIBS
=$ac_check_lib_save_LIBS
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14217 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14218 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
14224 if test $have_krb = yes; then
14226 LIBS
="$KRB4LIB $LIBS"
14228 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14234 if test "${with_kerberos5}" != no
; then
14235 for ac_header
in krb5.h
14237 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14238 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
14239 cat >>confdefs.h
<<_ACEOF
14240 #define HAVE_KRB5_H 1
14242 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14244 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
14246 cat >>confdefs.h
<<_ACEOF
14247 #define HAVE_KRB5_ERROR_TEXT 1
14252 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14254 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
14256 cat >>confdefs.h
<<_ACEOF
14257 #define HAVE_KRB5_ERROR_E_TEXT 1
14268 for ac_header
in des.h
14270 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14271 if test "x$ac_cv_header_des_h" = x
""yes; then :
14272 cat >>confdefs.h
<<_ACEOF
14273 #define HAVE_DES_H 1
14277 for ac_header
in kerberosIV
/des.h
14279 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14280 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
14281 cat >>confdefs.h
<<_ACEOF
14282 #define HAVE_KERBEROSIV_DES_H 1
14286 for ac_header
in kerberos
/des.h
14288 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14289 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
14290 cat >>confdefs.h
<<_ACEOF
14291 #define HAVE_KERBEROS_DES_H 1
14306 for ac_header
in krb.h
14308 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14309 if test "x$ac_cv_header_krb_h" = x
""yes; then :
14310 cat >>confdefs.h
<<_ACEOF
14311 #define HAVE_KRB_H 1
14315 for ac_header
in kerberosIV
/krb.h
14317 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14318 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
14319 cat >>confdefs.h
<<_ACEOF
14320 #define HAVE_KERBEROSIV_KRB_H 1
14324 for ac_header
in kerberos
/krb.h
14326 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14327 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
14328 cat >>confdefs.h
<<_ACEOF
14329 #define HAVE_KERBEROS_KRB_H 1
14345 for ac_header
in com_err.h
14347 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14348 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
14349 cat >>confdefs.h
<<_ACEOF
14350 #define HAVE_COM_ERR_H 1
14368 for ac_func
in $ac_func_list
14370 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14371 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14372 eval as_val
=\$
$as_ac_var
14373 if test "x$as_val" = x
""yes; then :
14374 cat >>confdefs.h
<<_ACEOF
14375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14385 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14386 if test "${emacs_cv_localtime_cache+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14389 if test x
$ac_cv_func_tzset = xyes
; then
14390 if test "$cross_compiling" = yes; then :
14391 # If we have tzset, assume the worst when cross-compiling.
14392 emacs_cv_localtime_cache
=yes
14394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14397 char TZ_GMT0[] = "TZ=GMT0";
14398 char TZ_PST8[] = "TZ=PST8";
14401 time_t now = time ((time_t *) 0);
14402 int hour_GMT0, hour_unset;
14403 if (putenv (TZ_GMT0) != 0)
14405 hour_GMT0 = localtime (&now)->tm_hour;
14407 hour_unset = localtime (&now)->tm_hour;
14408 if (putenv (TZ_PST8) != 0)
14410 if (localtime (&now)->tm_hour == hour_GMT0)
14413 if (localtime (&now)->tm_hour != hour_unset)
14418 if ac_fn_c_try_run
"$LINENO"; then :
14419 emacs_cv_localtime_cache
=no
14421 emacs_cv_localtime_cache
=yes
14423 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14424 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14428 # If we lack tzset, report that localtime does not cache TZ,
14429 # since we can't invalidate the cache if we don't have tzset.
14430 emacs_cv_localtime_cache
=no
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14434 $as_echo "$emacs_cv_localtime_cache" >&6; }
14435 if test $emacs_cv_localtime_cache = yes; then
14437 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14442 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
14443 if test "x$ac_cv_func_socket" = x
""yes; then :
14449 if test $ok_so_far = yes; then
14450 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14451 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
14459 if test $ok_so_far = yes; then
14460 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14461 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
14469 if test $ok_so_far = yes; then
14471 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14475 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14477 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14482 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14483 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485 $as_echo "yes" >&6; }
14487 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491 $as_echo "no" >&6; }
14495 *-solaris2.4 |
*-solaris2.4.
*)
14496 : ${ac_cv_func_vfork_works=no};;
14499 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14500 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14504 cat >>confdefs.h
<<_ACEOF
14510 for ac_header
in vfork.h
14512 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14513 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14514 cat >>confdefs.h
<<_ACEOF
14515 #define HAVE_VFORK_H 1
14522 for ac_func
in fork vfork
14524 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14525 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14526 eval as_val
=\$
$as_ac_var
14527 if test "x$as_val" = x
""yes; then :
14528 cat >>confdefs.h
<<_ACEOF
14529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14535 if test "x$ac_cv_func_fork" = xyes
; then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14537 $as_echo_n "checking for working fork... " >&6; }
14538 if test "${ac_cv_func_fork_works+set}" = set; then :
14539 $as_echo_n "(cached) " >&6
14541 if test "$cross_compiling" = yes; then :
14542 ac_cv_func_fork_works
=cross
14544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14546 $ac_includes_default
14551 /* By Ruediger Kuhlmann. */
14552 return fork () < 0;
14558 if ac_fn_c_try_run
"$LINENO"; then :
14559 ac_cv_func_fork_works
=yes
14561 ac_cv_func_fork_works
=no
14563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14564 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14569 $as_echo "$ac_cv_func_fork_works" >&6; }
14572 ac_cv_func_fork_works
=$ac_cv_func_fork
14574 if test "x$ac_cv_func_fork_works" = xcross
; then
14576 *-*-amigaos* |
*-*-msdosdjgpp*)
14577 # Override, as these systems have only a dummy fork() stub
14578 ac_cv_func_fork_works
=no
14581 ac_cv_func_fork_works
=yes
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14585 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14587 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14588 if test "x$ac_cv_func_vfork" = xyes
; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14590 $as_echo_n "checking for working vfork... " >&6; }
14591 if test "${ac_cv_func_vfork_works+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14594 if test "$cross_compiling" = yes; then :
14595 ac_cv_func_vfork_works
=cross
14597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 /* Thanks to Paul Eggert for this test. */
14600 $ac_includes_default
14601 #include <sys/wait.h>
14602 #ifdef HAVE_VFORK_H
14603 # include <vfork.h>
14605 /* On some sparc systems, changes by the child to local and incoming
14606 argument registers are propagated back to the parent. The compiler
14607 is told about this with #include <vfork.h>, but some compilers
14608 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14609 static variable whose address is put into a register that is
14610 clobbered by the vfork. */
14613 sparc_address_test (int arg)
14615 sparc_address_test (arg) int arg;
14618 static pid_t child;
14636 pid_t parent = getpid ();
14639 sparc_address_test (0);
14644 /* Here is another test for sparc vfork register problems. This
14645 test uses lots of local variables, at least as many local
14646 variables as main has allocated so far including compiler
14647 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14648 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14649 reuse the register of parent for one of the local variables,
14650 since it will think that parent can't possibly be used any more
14651 in this routine. Assigning to the local variable will thus
14652 munge parent in the parent process. */
14654 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14655 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14656 /* Convince the compiler that p..p7 are live; otherwise, it might
14657 use the same hardware register for all 8 local variables. */
14658 if (p != p1 || p != p2 || p != p3 || p != p4
14659 || p != p5 || p != p6 || p != p7)
14662 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14663 from child file descriptors. If the child closes a descriptor
14664 before it execs or exits, this munges the parent's descriptor
14665 as well. Test for this by closing stdout in the child. */
14666 _exit(close(fileno(stdout)) != 0);
14671 while (wait(&status) != child)
14674 /* Was there some problem with vforking? */
14677 /* Did the child fail? (This shouldn't happen.) */
14680 /* Did the vfork/compiler bug occur? */
14681 || parent != getpid()
14683 /* Did the file descriptor bug occur? */
14684 || fstat(fileno(stdout), &st) != 0
14689 if ac_fn_c_try_run
"$LINENO"; then :
14690 ac_cv_func_vfork_works
=yes
14692 ac_cv_func_vfork_works
=no
14694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14700 $as_echo "$ac_cv_func_vfork_works" >&6; }
14703 if test "x$ac_cv_func_fork_works" = xcross
; then
14704 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14706 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14709 if test "x$ac_cv_func_vfork_works" = xyes
; then
14711 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14715 $as_echo "#define vfork fork" >>confdefs.h
14718 if test "x$ac_cv_func_fork_works" = xyes
; then
14720 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14725 for ac_func
in snprintf
14727 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
14728 if test "x$ac_cv_func_snprintf" = x
""yes; then :
14729 cat >>confdefs.h
<<_ACEOF
14730 #define HAVE_SNPRINTF 1
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14738 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14739 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14740 $as_echo_n "(cached) " >&6
14742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14744 #include <langinfo.h>
14748 char* cs = nl_langinfo(CODESET);
14753 if ac_fn_c_try_link
"$LINENO"; then :
14754 emacs_cv_langinfo_codeset
=yes
14756 emacs_cv_langinfo_codeset
=no
14758 rm -f core conftest.err conftest.
$ac_objext \
14759 conftest
$ac_exeext conftest.
$ac_ext
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14763 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14764 if test $emacs_cv_langinfo_codeset = yes; then
14766 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14771 $as_echo_n "checking for mbstate_t... " >&6; }
14772 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14777 $ac_includes_default
14778 # include <wchar.h>
14782 mbstate_t x; return sizeof x;
14787 if ac_fn_c_try_compile
"$LINENO"; then :
14788 ac_cv_type_mbstate_t
=yes
14790 ac_cv_type_mbstate_t
=no
14792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14795 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14796 if test $ac_cv_type_mbstate_t = yes; then
14798 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14802 $as_echo "#define mbstate_t int" >>confdefs.h
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14807 $as_echo_n "checking for C restricted array declarations... " >&6; }
14808 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813 void fred (int x[__restrict]);
14822 if ac_fn_c_try_compile
"$LINENO"; then :
14823 emacs_cv_c_restrict_arr
=yes
14825 emacs_cv_c_restrict_arr
=no
14827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14830 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14831 if test "$emacs_cv_c_restrict_arr" = yes; then
14833 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14839 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14843 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14846 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14848 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14852 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14858 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14862 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14866 $as_echo "#define subprocesses 1" >>confdefs.h
14870 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14875 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14881 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14885 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14889 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14897 if test x
$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes
; then
14898 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14904 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14911 irix6-5 | sol2
* | unixware
)
14913 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14918 emacs_broken_SIGIO
=no
14921 hpux
* | irix6-5 | openbsd | sol2
* | unixware
)
14922 emacs_broken_SIGIO
=yes
14927 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14933 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14941 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14947 darwin | freebsd | netbsd | openbsd
)
14949 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14955 netbsd | openbsd
) sound_device
="/dev/audio" ;;
14956 *) sound_device
="/dev/dsp" ;;
14960 cat >>confdefs.h
<<_ACEOF
14961 #define DEFAULT_SOUND_DEVICE "$sound_device"
14967 darwin | gnu-linux | gnu-kfreebsd
)
14969 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14976 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd
)
14978 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14992 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14994 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
14996 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15001 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15003 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
15005 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15007 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15012 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15014 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15016 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
15018 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15020 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15025 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15029 gnu-linux | gnu-kfreebsd | freebsd | netbsd
)
15030 if test "x$ac_cv_func_grantpt" = xyes
; then
15032 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15034 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15036 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15038 if test "x$ac_cv_func_posix_openpt" = xyes
; then
15039 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15041 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15043 elif test "x$ac_cv_func_getpt" = xyes
; then
15044 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15046 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15049 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15053 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15059 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15061 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15063 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15068 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15070 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15072 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
15074 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15076 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15081 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15086 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15094 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15096 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15099 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
15108 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd
)
15109 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15113 gnu-linux | gnu-kfreebsd
)
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15116 $as_echo_n "checking for signals via characters... " >&6; }
15117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15120 #include <linux/version.h>
15121 #if LINUX_VERSION_CODE < 0x20400
15122 # error "Linux version too old"
15133 if ac_fn_c_try_cpp
"$LINENO"; then :
15134 emacs_signals_via_chars
=yes
15136 emacs_signals_via_chars
=no
15138 rm -f conftest.err conftest.
$ac_ext
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15141 $as_echo "$emacs_signals_via_chars" >&6; }
15142 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15151 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15155 #include <features.h>
15156 #ifndef __GNU_LIBRARY__
15157 # error "this is not the GNU C library"
15168 if ac_fn_c_try_cpp
"$LINENO"; then :
15173 rm -f conftest.err conftest.
$ac_ext
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15175 $as_echo "$emacs_glibc" >&6; }
15177 if test $emacs_glibc = yes; then
15179 emacs_pending_output
=unknown
15182 gnu | gnu-linux | gnu-kfreebsd
)
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15184 $as_echo_n "checking for style of pending output formalism... " >&6; }
15185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15189 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15190 # error "stdio definitions not found"
15201 if ac_fn_c_try_cpp
"$LINENO"; then :
15202 emacs_pending_output
=new
15204 rm -f conftest.err conftest.
$ac_ext
15206 if test $emacs_pending_output = unknown
; then
15208 gnu-linux | gnu-kfreebsd
)
15209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15214 # error "not using uclibc"
15225 if ac_fn_c_try_cpp
"$LINENO"; then :
15226 emacs_pending_output
=uclibc
15228 emacs_pending_output
=old
15230 rm -f conftest.err conftest.
$ac_ext
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15236 $as_echo "$emacs_pending_output" >&6; }
15238 case $emacs_pending_output in
15240 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15244 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15248 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15254 if test $emacs_pending_output = unknown
; then
15255 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15261 cygwin | darwin | freebsd | netbsd | openbsd
)
15262 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15267 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15272 if test x
$ac_cv_header_stdio_ext_h = xyes
&& \
15273 test x
$ac_cv_func___fpending = xyes
; then
15274 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15277 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15280 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15292 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15297 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15299 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15303 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15305 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15315 darwin
) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15318 gnu | freebsd | netbsd | openbsd
)
15320 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15322 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15326 gnu-linux | gnu-kfreebsd
)
15327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15342 if ac_fn_c_try_cpp
"$LINENO"; then :
15343 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15346 rm -f conftest.err conftest.
$ac_ext
15348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15363 if ac_fn_c_try_cpp
"$LINENO"; then :
15365 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
15368 rm -f conftest.err conftest.
$ac_ext
15373 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15378 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15390 aix4-2 | hpux
* | unixware
)
15391 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15395 gnu-linux | gnu-kfreebsd
)
15396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15399 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15400 || defined __alpha__ || defined __mips__ || defined __s390__ \
15401 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15402 || defined __ia64__ || defined __sh__
15405 # error "setjmp not known to work on this arch"
15416 if ac_fn_c_try_cpp
"$LINENO"; then :
15417 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15420 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15423 rm -f conftest.err conftest.
$ac_ext
15428 if test x
$GCC = xyes
; then
15429 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15433 freebsd | netbsd | openbsd | irix6-5 | sol2
* )
15434 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15440 $as_echo_n "checking for _setjmp... " >&6; }
15441 if test "${emacs_cv_func__setjmp+set}" = set; then :
15442 $as_echo_n "(cached) " >&6
15444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #include <setjmp.h>
15458 if ac_fn_c_try_link
"$LINENO"; then :
15459 emacs_cv_func__setjmp
=yes
15461 emacs_cv_func__setjmp
=no
15463 rm -f core conftest.err conftest.
$ac_objext \
15464 conftest
$ac_exeext conftest.
$ac_ext
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15467 $as_echo "$emacs_cv_func__setjmp" >&6; }
15468 if test $emacs_cv_func__setjmp = yes; then
15470 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15474 $as_echo_n "checking for sigsetjmp... " >&6; }
15475 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15476 $as_echo_n "(cached) " >&6
15478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 #include <setjmp.h>
15486 if (! sigsetjmp (j, 1))
15492 if ac_fn_c_try_link
"$LINENO"; then :
15493 emacs_cv_func_sigsetjmp
=yes
15495 emacs_cv_func_sigsetjmp
=no
15497 rm -f core conftest.err conftest.
$ac_objext \
15498 conftest
$ac_exeext conftest.
$ac_ext
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15501 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15502 if test $emacs_cv_func_sigsetjmp = yes; then
15504 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15512 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15521 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15537 $as_echo "#define USG /**/" >>confdefs.h
15539 $as_echo "#define USG5 /**/" >>confdefs.h
15541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15545 # error "_AIX not defined"
15556 if ac_fn_c_try_cpp
"$LINENO"; then :
15560 $as_echo "#define _AIX /**/" >>confdefs.h
15563 rm -f conftest.err conftest.
$ac_ext
15568 $as_echo "#define CYGWIN 1" >>confdefs.h
15573 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15575 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15578 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15583 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15586 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15590 gnu | netbsd | openbsd
)
15591 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15597 # error "BSD_SYSTEM not defined"
15608 if ac_fn_c_try_cpp
"$LINENO"; then :
15611 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15614 rm -f conftest.err conftest.
$ac_ext
15617 gnu-linux | gnu-kfreebsd
)
15618 $as_echo "#define USG /**/" >>confdefs.h
15621 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15626 $as_echo "#define USG /**/" >>confdefs.h
15628 $as_echo "#define USG5 /**/" >>confdefs.h
15631 $as_echo "#define HPUX /**/" >>confdefs.h
15636 $as_echo "#define USG /**/" >>confdefs.h
15638 $as_echo "#define USG5 /**/" >>confdefs.h
15640 $as_echo "#define USG5_4 /**/" >>confdefs.h
15643 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15648 $as_echo "#define USG /**/" >>confdefs.h
15650 $as_echo "#define USG5 /**/" >>confdefs.h
15652 $as_echo "#define USG5_4 /**/" >>confdefs.h
15655 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15660 $as_echo "#define USG /**/" >>confdefs.h
15662 $as_echo "#define USG5 /**/" >>confdefs.h
15664 $as_echo "#define USG5_4 /**/" >>confdefs.h
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15670 $as_echo_n "checking for usable FIONREAD... " >&6; }
15671 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15672 $as_echo_n "(cached) " >&6
15676 emacs_cv_usable_FIONREAD
=no
15680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15681 /* end confdefs.h. */
15682 #include <sys/types.h>
15683 #include <sys/ioctl.h>
15685 # include <sys/filio.h>
15691 int foo = ioctl (0, FIONREAD, &foo);
15696 if ac_fn_c_try_compile
"$LINENO"; then :
15697 emacs_cv_usable_FIONREAD
=yes
15699 emacs_cv_usable_FIONREAD
=no
15701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15706 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15707 if test $emacs_cv_usable_FIONREAD = yes; then
15709 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15712 if test $emacs_broken_SIGIO = no
; then
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15714 $as_echo_n "checking for usable SIGIO... " >&6; }
15715 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15716 $as_echo_n "(cached) " >&6
15718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15719 /* end confdefs.h. */
15721 #include <signal.h>
15726 int foo = SIGIO | F_SETFL | FASYNC;
15731 if ac_fn_c_try_compile
"$LINENO"; then :
15732 emacs_cv_usable_SIGIO
=yes
15734 emacs_cv_usable_SIGIO
=no
15736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15739 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15740 if test $emacs_cv_usable_SIGIO = yes; then
15742 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15752 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15758 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15764 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15767 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15773 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15778 # Set up the CFLAGS for real compilation, so we can substitute it.
15779 CFLAGS
="$REAL_CFLAGS"
15780 CPPFLAGS
="$REAL_CPPFLAGS"
15782 ## Hack to detect a buggy GCC version.
15783 if test "x$GCC" = xyes \
15784 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15785 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
15786 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
15787 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15790 version
=$PACKAGE_VERSION
15792 copyright
="Copyright (C) 2012 Free Software Foundation, Inc."
15794 cat >>confdefs.h
<<_ACEOF
15795 #define COPYRIGHT "$copyright"
15800 ### Specify what sort of things we'll be editing into Makefile and config.h.
15801 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15827 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15828 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15829 ## end of LIBX_BASE, but nothing ever set it.
15834 ## Used in lwlib/Makefile.in.
15843 if test -n "${term_header}"; then
15845 cat >>confdefs.h
<<_ACEOF
15846 #define TERM_HEADER "${term_header}"
15852 cat >>confdefs.h
<<_ACEOF
15853 #define EMACS_CONFIGURATION "${canonical}"
15857 cat >>confdefs.h
<<_ACEOF
15858 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15866 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15868 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15871 XOBJ
="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15873 if test "$HAVE_XFT" = "yes"; then
15874 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15875 elif test "$HAVE_FREETYPE" = "yes"; then
15876 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
15886 if test "${USE_X_TOOLKIT}" != "none" ; then
15887 WIDGET_OBJ
=widget.o
15889 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15891 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15893 $as_echo "#define USE_LUCID 1" >>confdefs.h
15895 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15897 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15902 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15903 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
15907 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15908 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15909 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
15913 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15914 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
15917 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
15923 case "$USE_X_TOOLKIT" in
15924 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
15925 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
15926 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
15930 if test "$USE_X_TOOLKIT" = "none"; then
15931 LIBXT_OTHER
="\$(LIBXSM)"
15932 OLDXMENU_TARGET
="really-oldXMenu"
15934 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15935 OLDXMENU_TARGET
="really-lwlib"
15939 ## The X Menu stuff is present in the X10 distribution, but missing
15940 ## from X11. If we have X10, just use the installed library;
15941 ## otherwise, use our own copy.
15942 if test "${HAVE_X11}" = "yes" ; then
15944 $as_echo "#define HAVE_X11 1" >>confdefs.h
15947 if test "$USE_X_TOOLKIT" = "none"; then
15948 OLDXMENU
="\${oldXMenudir}/libXMenu11.a"
15950 OLDXMENU
="\${lwlibdir}/liblw.a"
15952 LIBXMENU
="\$(OLDXMENU)"
15953 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
15954 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
15956 ## For a syntactically valid Makefile; not actually used for anything.
15957 ## See comments in src/Makefile.in.
15959 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15960 if test "${HAVE_X_WINDOWS}" = "yes"; then
15969 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
15982 if test "${HAVE_MENUS}" = "yes" ; then
15984 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15988 if test "${GNU_MALLOC}" = "yes" ; then
15990 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15995 if test "${REL_ALLOC}" = "yes" ; then
15997 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16000 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
16004 if test "$opsys" = "cygwin"; then
16005 CYGWIN_OBJ
="sheap.o"
16006 ## Cygwin differs because of its unexec().
16008 POST_ALLOC_OBJ
=lastfile.o
16011 PRE_ALLOC_OBJ
=lastfile.o
16018 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16019 # it temporarily reverts them to their pre-pkg-config values,
16020 # because gnulib needs to work with both src (which uses the
16021 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16022 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16023 # and it therefore needs to run in an environment where LIBS does not
16024 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16025 # for some package unrelated to lib-src.
16026 SAVE_CFLAGS
=$CFLAGS
16028 CFLAGS
=$pre_PKG_CONFIG_CFLAGS
16029 LIBS
="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16041 LIBC_FATAL_STDERR_
=1
16042 export LIBC_FATAL_STDERR_
16044 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16045 # for constant arguments. Useless!
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16047 $as_echo_n "checking for working alloca.h... " >&6; }
16048 if test "${ac_cv_working_alloca_h+set}" = set; then :
16049 $as_echo_n "(cached) " >&6
16051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 #include <alloca.h>
16057 char *p = (char *) alloca (2 * sizeof (int));
16063 if ac_fn_c_try_link
"$LINENO"; then :
16064 ac_cv_working_alloca_h
=yes
16066 ac_cv_working_alloca_h
=no
16068 rm -f core conftest.err conftest.
$ac_objext \
16069 conftest
$ac_exeext conftest.
$ac_ext
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16072 $as_echo "$ac_cv_working_alloca_h" >&6; }
16073 if test $ac_cv_working_alloca_h = yes; then
16075 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16080 $as_echo_n "checking for alloca... " >&6; }
16081 if test "${ac_cv_func_alloca_works+set}" = set; then :
16082 $as_echo_n "(cached) " >&6
16084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16087 # define alloca __builtin_alloca
16090 # include <malloc.h>
16091 # define alloca _alloca
16093 # ifdef HAVE_ALLOCA_H
16094 # include <alloca.h>
16099 # ifndef alloca /* predefined by HP cc +Olibcalls */
16110 char *p = (char *) alloca (1);
16116 if ac_fn_c_try_link
"$LINENO"; then :
16117 ac_cv_func_alloca_works
=yes
16119 ac_cv_func_alloca_works
=no
16121 rm -f core conftest.err conftest.
$ac_objext \
16122 conftest
$ac_exeext conftest.
$ac_ext
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16125 $as_echo "$ac_cv_func_alloca_works" >&6; }
16127 if test $ac_cv_func_alloca_works = yes; then
16129 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16132 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16133 # that cause trouble. Some versions do not even contain alloca or
16134 # contain a buggy version. If you still want to use their alloca,
16135 # use ar to extract alloca.o from them instead of compiling alloca.c.
16141 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
16143 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16147 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16148 if test "${ac_cv_os_cray+set}" = set; then :
16149 $as_echo_n "(cached) " >&6
16151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 #if defined CRAY && ! defined CRAY2
16160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16161 $EGREP "webecray" >/dev
/null
2>&1; then :
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16170 $as_echo "$ac_cv_os_cray" >&6; }
16171 if test $ac_cv_os_cray = yes; then
16172 for ac_func
in _getb67 GETB67 getb67
; do
16173 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16174 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16175 eval as_val
=\$
$as_ac_var
16176 if test "x$as_val" = x
""yes; then :
16178 cat >>confdefs.h
<<_ACEOF
16179 #define CRAY_STACKSEG_END $ac_func
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16189 $as_echo_n "checking stack direction for C alloca... " >&6; }
16190 if test "${ac_cv_c_stack_direction+set}" = set; then :
16191 $as_echo_n "(cached) " >&6
16193 if test "$cross_compiling" = yes; then :
16194 ac_cv_c_stack_direction
=0
16196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 $ac_includes_default
16200 find_stack_direction (int *addr, int depth)
16202 int dir, dummy = 0;
16205 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16206 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16207 return dir + dummy;
16211 main (int argc, char **argv)
16213 return find_stack_direction (0, argc + !argv + 20) < 0;
16216 if ac_fn_c_try_run
"$LINENO"; then :
16217 ac_cv_c_stack_direction
=1
16219 ac_cv_c_stack_direction
=-1
16221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16227 $as_echo "$ac_cv_c_stack_direction" >&6; }
16228 cat >>confdefs.h
<<_ACEOF
16229 #define STACK_DIRECTION $ac_cv_c_stack_direction
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16239 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16240 if test "${ac_cv_c_bigendian+set}" = set; then :
16241 $as_echo_n "(cached) " >&6
16243 ac_cv_c_bigendian
=unknown
16244 # See if we're dealing with a universal compiler.
16245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 #ifndef __APPLE_CC__
16248 not a universal capable compiler
16253 if ac_fn_c_try_compile
"$LINENO"; then :
16255 # Check for potential -arch flags. It is not universal unless
16256 # there are at least two -arch flags with different values.
16259 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16260 if test -n "$ac_prev"; then
16262 i?
86 | x86_64 | ppc | ppc64
)
16263 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16266 ac_cv_c_bigendian
=universal
16272 elif test "x$ac_word" = "x-arch"; then
16277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16278 if test $ac_cv_c_bigendian = unknown
; then
16279 # See if sys/param.h defines the BYTE_ORDER macro.
16280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16282 #include <sys/types.h>
16283 #include <sys/param.h>
16288 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16289 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16291 bogus endian macros
16298 if ac_fn_c_try_compile
"$LINENO"; then :
16299 # It does; now see whether it defined to BIG_ENDIAN or not.
16300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <sys/types.h>
16303 #include <sys/param.h>
16308 #if BYTE_ORDER != BIG_ENDIAN
16316 if ac_fn_c_try_compile
"$LINENO"; then :
16317 ac_cv_c_bigendian
=yes
16319 ac_cv_c_bigendian
=no
16321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16325 if test $ac_cv_c_bigendian = unknown
; then
16326 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16329 #include <limits.h>
16334 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16335 bogus endian macros
16342 if ac_fn_c_try_compile
"$LINENO"; then :
16343 # It does; now see whether it defined to _BIG_ENDIAN or not.
16344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16346 #include <limits.h>
16351 #ifndef _BIG_ENDIAN
16359 if ac_fn_c_try_compile
"$LINENO"; then :
16360 ac_cv_c_bigendian
=yes
16362 ac_cv_c_bigendian
=no
16364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16368 if test $ac_cv_c_bigendian = unknown
; then
16369 # Compile a test program.
16370 if test "$cross_compiling" = yes; then :
16371 # Try to guess by grepping values from an object file.
16372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 short int ascii_mm[] =
16375 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16376 short int ascii_ii[] =
16377 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16378 int use_ascii (int i) {
16379 return ascii_mm[i] + ascii_ii[i];
16381 short int ebcdic_ii[] =
16382 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16383 short int ebcdic_mm[] =
16384 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16385 int use_ebcdic (int i) {
16386 return ebcdic_mm[i] + ebcdic_ii[i];
16393 return use_ascii (foo) == use_ebcdic (foo);
16398 if ac_fn_c_try_compile
"$LINENO"; then :
16399 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16400 ac_cv_c_bigendian
=yes
16402 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16403 if test "$ac_cv_c_bigendian" = unknown
; then
16404 ac_cv_c_bigendian
=no
16406 # finding both strings is unlikely to happen, but who knows?
16407 ac_cv_c_bigendian
=unknown
16411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415 $ac_includes_default
16420 /* Are we little or big endian? From Harbison&Steele. */
16424 char c[sizeof (long int)];
16427 return u.c[sizeof (long int) - 1] == 1;
16433 if ac_fn_c_try_run
"$LINENO"; then :
16434 ac_cv_c_bigendian
=no
16436 ac_cv_c_bigendian
=yes
16438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16439 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16445 $as_echo "$ac_cv_c_bigendian" >&6; }
16446 case $ac_cv_c_bigendian in #(
16448 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16454 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16458 as_fn_error
"unknown endianness
16459 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16464 $as_echo_n "checking for inline... " >&6; }
16465 if test "${ac_cv_c_inline+set}" = set; then :
16466 $as_echo_n "(cached) " >&6
16469 for ac_kw
in inline __inline__ __inline
; do
16470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16472 #ifndef __cplusplus
16474 static $ac_kw foo_t static_foo () {return 0; }
16475 $ac_kw foo_t foo () {return 0; }
16479 if ac_fn_c_try_compile
"$LINENO"; then :
16480 ac_cv_c_inline
=$ac_kw
16482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16483 test "$ac_cv_c_inline" != no
&& break
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16488 $as_echo "$ac_cv_c_inline" >&6; }
16490 case $ac_cv_c_inline in
16493 case $ac_cv_c_inline in
16495 *) ac_val
=$ac_cv_c_inline;;
16497 cat >>confdefs.h
<<_ACEOF
16498 #ifndef __cplusplus
16499 #define inline $ac_val
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16507 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16508 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16509 $as_echo_n "(cached) " >&6
16511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 /* On HP-UX before 11.23, strtold returns a struct instead of
16514 long double. Reject implementations like that, by requiring
16515 compatibility with the C99 prototype. */
16516 #include <stdlib.h>
16517 static long double (*p) (char const *, char **) = strtold;
16519 test (char const *nptr, char **endptr)
16522 r = strtold (nptr, endptr);
16528 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16533 if ac_fn_c_try_link
"$LINENO"; then :
16534 gl_cv_func_c99_strtold
=yes
16536 gl_cv_func_c99_strtold
=no
16538 rm -f core conftest.err conftest.
$ac_objext \
16539 conftest
$ac_exeext conftest.
$ac_ext
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16542 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16543 if test $gl_cv_func_c99_strtold = yes; then
16545 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16557 GNULIB_EUIDACCESS
=0;
16558 GNULIB_FACCESSAT
=0;
16561 GNULIB_FDATASYNC
=0;
16563 GNULIB_FTRUNCATE
=0;
16565 GNULIB_GETDOMAINNAME
=0;
16566 GNULIB_GETDTABLESIZE
=0;
16567 GNULIB_GETGROUPS
=0;
16568 GNULIB_GETHOSTNAME
=0;
16570 GNULIB_GETLOGIN_R
=0;
16571 GNULIB_GETPAGESIZE
=0;
16572 GNULIB_GETUSERSHELL
=0;
16573 GNULIB_GROUP_MEMBER
=0;
16585 GNULIB_READLINKAT
=0;
16587 GNULIB_SETHOSTNAME
=0;
16590 GNULIB_SYMLINKAT
=0;
16591 GNULIB_TTYNAME_R
=0;
16592 GNULIB_UNISTD_H_NONBLOCKING
=0;
16593 GNULIB_UNISTD_H_SIGPIPE
=0;
16608 HAVE_GETDTABLESIZE
=1;
16610 HAVE_GETHOSTNAME
=1;
16612 HAVE_GETPAGESIZE
=1;
16613 HAVE_GROUP_MEMBER
=1;
16623 HAVE_SETHOSTNAME
=1;
16629 HAVE_DECL_ENVIRON
=1;
16630 HAVE_DECL_FCHDIR
=1;
16631 HAVE_DECL_FDATASYNC
=1;
16632 HAVE_DECL_GETDOMAINNAME
=1;
16633 HAVE_DECL_GETLOGIN_R
=1;
16634 HAVE_DECL_GETPAGESIZE
=1;
16635 HAVE_DECL_GETUSERSHELL
=1;
16636 HAVE_DECL_SETHOSTNAME
=1;
16637 HAVE_DECL_TTYNAME_R
=1;
16639 HAVE_SYS_PARAM_H
=0;
16644 REPLACE_FCHOWNAT
=0;
16645 REPLACE_FTRUNCATE
=0;
16647 REPLACE_GETDOMAINNAME
=0;
16648 REPLACE_GETLOGIN_R
=0;
16649 REPLACE_GETGROUPS
=0;
16650 REPLACE_GETPAGESIZE
=0;
16659 REPLACE_READLINK
=0;
16663 REPLACE_TTYNAME_R
=0;
16665 REPLACE_UNLINKAT
=0;
16668 UNISTD_H_HAVE_WINSOCK2_H
=0;
16669 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16680 $as_echo_n "checking if environ is properly declared... " >&6; }
16681 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16682 $as_echo_n "(cached) " >&6
16685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16688 #include <unistd.h>
16690 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16691 #include <stdlib.h>
16693 extern struct { int foo; } environ;
16702 if ac_fn_c_try_compile
"$LINENO"; then :
16703 gt_cv_var_environ_declaration
=no
16705 gt_cv_var_environ_declaration
=yes
16707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16711 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16712 if test $gt_cv_var_environ_declaration = yes; then
16714 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16719 if test $gt_cv_var_environ_declaration != yes; then
16720 HAVE_DECL_ENVIRON
=0
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16730 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16731 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16732 $as_echo_n "(cached) " >&6
16734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16737 #include <sys/types.h>
16738 #include <sys/stat.h>
16742 struct stat s; s.st_dm_mode;
16747 if ac_fn_c_try_compile
"$LINENO"; then :
16748 ac_cv_struct_st_dm_mode
=yes
16750 ac_cv_struct_st_dm_mode
=no
16752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16755 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16757 if test $ac_cv_struct_st_dm_mode = yes; then
16759 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16764 ac_fn_c_check_decl
"$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16765 if test "x$ac_cv_have_decl_strmode" = x
""yes; then :
16771 cat >>confdefs.h
<<_ACEOF
16772 #define HAVE_DECL_STRMODE $ac_have_decl
16778 GNULIB_CALLOC_POSIX
=0;
16779 GNULIB_CANONICALIZE_FILE_NAME
=0;
16780 GNULIB_GETLOADAVG
=0;
16781 GNULIB_GETSUBOPT
=0;
16783 GNULIB_MALLOC_POSIX
=0;
16787 GNULIB_MKOSTEMPS
=0;
16790 GNULIB_POSIX_OPENPT
=0;
16792 GNULIB_PTSNAME_R
=0;
16796 GNULIB_REALLOC_POSIX
=0;
16803 GNULIB_SYSTEM_POSIX
=0;
16809 HAVE_CANONICALIZE_FILE_NAME
=1;
16810 HAVE_DECL_GETLOADAVG
=1;
16818 HAVE_POSIX_OPENPT
=1;
16827 HAVE_DECL_SETENV
=1;
16831 HAVE_STRUCT_RANDOM_DATA
=1;
16832 HAVE_SYS_LOADAVG_H
=0;
16834 HAVE_DECL_UNSETENV
=1;
16836 REPLACE_CANONICALIZE_FILE_NAME
=0;
16840 REPLACE_PTSNAME_R
=0;
16842 REPLACE_RANDOM_R
=0;
16844 REPLACE_REALPATH
=0;
16847 REPLACE_UNSETENV
=0;
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16853 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16854 if test "${gl_cv_have_include_next+set}" = set; then :
16855 $as_echo_n "(cached) " >&6
16857 rm -rf conftestd1a conftestd1b conftestd2
16858 mkdir conftestd1a conftestd1b conftestd2
16859 cat <<EOF > conftestd1a/conftest.h
16860 #define DEFINED_IN_CONFTESTD1
16861 #include_next <conftest.h>
16862 #ifdef DEFINED_IN_CONFTESTD2
16865 #error "include_next doesn't work"
16868 cat <<EOF > conftestd1b/conftest.h
16869 #define DEFINED_IN_CONFTESTD1
16871 #include_next <conftest.h>
16872 #ifdef DEFINED_IN_CONFTESTD2
16875 #error "include_next doesn't work"
16878 cat <<EOF > conftestd2/conftest.h
16879 #ifndef DEFINED_IN_CONFTESTD1
16880 #error "include_next test doesn't work"
16882 #define DEFINED_IN_CONFTESTD2
16884 gl_save_CPPFLAGS
="$CPPFLAGS"
16885 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888 #include <conftest.h>
16890 if ac_fn_c_try_compile
"$LINENO"; then :
16891 gl_cv_have_include_next
=yes
16893 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16896 #include <conftest.h>
16898 if ac_fn_c_try_compile
"$LINENO"; then :
16899 gl_cv_have_include_next
=buggy
16901 gl_cv_have_include_next
=no
16903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16907 CPPFLAGS
="$gl_save_CPPFLAGS"
16908 rm -rf conftestd1a conftestd1b conftestd2
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16912 $as_echo "$gl_cv_have_include_next" >&6; }
16913 PRAGMA_SYSTEM_HEADER
=
16914 if test $gl_cv_have_include_next = yes; then
16915 INCLUDE_NEXT
=include_next
16916 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16917 if test -n "$GCC"; then
16918 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
16921 if test $gl_cv_have_include_next = buggy
; then
16922 INCLUDE_NEXT
=include
16923 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
16925 INCLUDE_NEXT
=include
16926 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16933 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16934 if test "${gl_cv_pragma_columns+set}" = set; then :
16935 $as_echo_n "(cached) " >&6
16937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16946 $EGREP "choke me" >/dev
/null
2>&1; then :
16947 gl_cv_pragma_columns
=yes
16949 gl_cv_pragma_columns
=no
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16956 $as_echo "$gl_cv_pragma_columns" >&6; }
16957 if test $gl_cv_pragma_columns = yes; then
16958 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
16979 if test $gl_cv_have_include_next = yes; then
16980 gl_cv_next_getopt_h
='<'getopt.h
'>'
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16983 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16984 if test "${gl_cv_next_getopt_h+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
16988 if test $ac_cv_header_getopt_h = yes; then
16991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 #include <getopt.h>
16997 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16998 *) gl_absname_cpp
="$ac_cpp" ;;
17003 gl_dirsep_regex
='[/\\]'
17006 gl_dirsep_regex
='\/'
17009 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17011 gl_header_literal_regex
=`echo 'getopt.h' \
17012 | sed -e "$gl_make_literal_regex_sed"`
17013 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17014 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17019 gl_cv_next_getopt_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17020 sed -n "$gl_absolute_header_sed"`'"'
17022 gl_cv_next_getopt_h
='<'getopt.h
'>'
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17028 $as_echo "$gl_cv_next_getopt_h" >&6; }
17030 NEXT_GETOPT_H
=$gl_cv_next_getopt_h
17032 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17034 gl_next_as_first_directive
='<'getopt.h
'>'
17036 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17037 gl_next_as_first_directive
=$gl_cv_next_getopt_h
17039 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
=$gl_next_as_first_directive
17044 if test $ac_cv_header_getopt_h = yes; then
17053 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17054 for ac_header
in getopt.h
17056 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17057 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
17058 cat >>confdefs.h
<<_ACEOF
17059 #define HAVE_GETOPT_H 1
17063 gl_replace_getopt
=yes
17070 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17071 for ac_func
in getopt_long_only
17073 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17074 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
17075 cat >>confdefs.h
<<_ACEOF
17076 #define HAVE_GETOPT_LONG_ONLY 1
17080 gl_replace_getopt
=yes
17086 if test -z "$gl_replace_getopt"; then
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17088 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17089 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17090 $as_echo_n "(cached) " >&6
17093 if test $cross_compiling = no
; then
17094 if test "$cross_compiling" = yes; then :
17095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17097 as_fn_error
"cannot run test program while cross compiling
17098 See \`config.log' for more details." "$LINENO" 5; }
17100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17103 #include <unistd.h>
17104 #include <stdlib.h>
17105 #include <string.h>
17110 static char program[] = "program";
17111 static char a[] = "-a";
17112 static char foo[] = "foo";
17113 static char bar[] = "bar";
17114 char *argv[] = { program, a, foo, bar, NULL };
17117 c = getopt (4, argv, "ab");
17120 c = getopt (4, argv, "ab");
17123 if (!(optind == 2))
17129 if ac_fn_c_try_run
"$LINENO"; then :
17130 gl_cv_func_getopt_posix
=maybe
17132 gl_cv_func_getopt_posix
=no
17134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17135 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17138 if test $gl_cv_func_getopt_posix = maybe
; then
17139 if test "$cross_compiling" = yes; then :
17140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17142 as_fn_error
"cannot run test program while cross compiling
17143 See \`config.log' for more details." "$LINENO" 5; }
17145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17148 #include <unistd.h>
17149 #include <stdlib.h>
17150 #include <string.h>
17155 static char program[] = "program";
17156 static char donald[] = "donald";
17157 static char p[] = "-p";
17158 static char billy[] = "billy";
17159 static char duck[] = "duck";
17160 static char a[] = "-a";
17161 static char bar[] = "bar";
17162 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17165 c = getopt (7, argv, "+abp:q:");
17168 if (!(strcmp (argv[0], "program") == 0))
17170 if (!(strcmp (argv[1], "donald") == 0))
17172 if (!(strcmp (argv[2], "-p") == 0))
17174 if (!(strcmp (argv[3], "billy") == 0))
17176 if (!(strcmp (argv[4], "duck") == 0))
17178 if (!(strcmp (argv[5], "-a") == 0))
17180 if (!(strcmp (argv[6], "bar") == 0))
17182 if (!(optind == 1))
17188 if ac_fn_c_try_run
"$LINENO"; then :
17189 gl_cv_func_getopt_posix
=maybe
17191 gl_cv_func_getopt_posix
=no
17193 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17194 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17198 if test $gl_cv_func_getopt_posix = maybe
; then
17199 if test "$cross_compiling" = yes; then :
17200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17202 as_fn_error
"cannot run test program while cross compiling
17203 See \`config.log' for more details." "$LINENO" 5; }
17205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17208 #include <unistd.h>
17209 #include <stdlib.h>
17210 #include <string.h>
17215 static char program[] = "program";
17216 static char ab[] = "-ab";
17217 char *argv[3] = { program, ab, NULL };
17218 if (getopt (2, argv, "ab:") != 'a')
17220 if (getopt (2, argv, "ab:") != '?')
17230 if ac_fn_c_try_run
"$LINENO"; then :
17231 gl_cv_func_getopt_posix
=yes
17233 gl_cv_func_getopt_posix
=no
17235 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17236 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17242 darwin
* | aix
* | mingw
*) gl_cv_func_getopt_posix
="guessing no";;
17243 *) gl_cv_func_getopt_posix
="guessing yes";;
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17249 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17250 case "$gl_cv_func_getopt_posix" in
17251 *no
) gl_replace_getopt
=yes ;;
17255 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU
; then
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17257 $as_echo_n "checking for working GNU getopt function... " >&6; }
17258 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17259 $as_echo_n "(cached) " >&6
17261 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17262 # optstring is necessary for programs like m4 that have POSIX-mandated
17263 # semantics for supporting options interspersed with files.
17264 # Also, since getopt_long is a GNU extension, we require optind=0.
17265 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17266 # so take care to revert to the correct (non-)export state.
17267 gl_awk_probe
='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17268 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17269 xx
) gl_had_POSIXLY_CORRECT
=exported
;;
17270 x
) gl_had_POSIXLY_CORRECT
=yes ;;
17271 *) gl_had_POSIXLY_CORRECT
= ;;
17274 export POSIXLY_CORRECT
17275 if test "$cross_compiling" = yes; then :
17276 gl_cv_func_getopt_gnu
="guessing no"
17279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17281 #include <getopt.h>
17282 #include <stddef.h>
17283 #include <string.h>
17285 #include <stdlib.h>
17286 #if defined __MACH__ && defined __APPLE__
17287 /* Avoid a crash on Mac OS X. */
17288 #include <mach/mach.h>
17289 #include <mach/mach_error.h>
17290 #include <mach/thread_status.h>
17291 #include <mach/exception.h>
17292 #include <mach/task.h>
17293 #include <pthread.h>
17294 /* The exception port on which our thread listens. */
17295 static mach_port_t our_exception_port;
17296 /* The main function of the thread listening for exceptions of type
17299 mach_exception_thread (void *arg)
17301 /* Buffer for a message to be received. */
17303 mach_msg_header_t head;
17304 mach_msg_body_t msgh_body;
17307 mach_msg_return_t retval;
17308 /* Wait for a message on the exception port. */
17309 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17310 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17311 if (retval != MACH_MSG_SUCCESS)
17316 nocrash_init (void)
17318 mach_port_t self = mach_task_self ();
17319 /* Allocate a port on which the thread shall listen for exceptions. */
17320 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17322 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17323 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17324 MACH_MSG_TYPE_MAKE_SEND)
17326 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17328 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17329 /* Create the thread listening on the exception port. */
17330 pthread_attr_t attr;
17332 if (pthread_attr_init (&attr) == 0
17333 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17334 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17335 pthread_attr_destroy (&attr);
17336 /* Replace the exception port info for these exceptions with our own.
17337 Note that we replace the exception port for the entire task, not only
17338 for a particular thread. This has the effect that when our exception
17339 port gets the message, the thread specific exception port has already
17340 been asked, and we don't need to bother about it.
17341 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17342 task_set_exception_ports (self, mask, our_exception_port,
17343 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17348 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17349 /* Avoid a crash on native Windows. */
17350 #define WIN32_LEAN_AND_MEAN
17351 #include <windows.h>
17352 #include <winerror.h>
17354 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17356 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17358 case EXCEPTION_ACCESS_VIOLATION:
17359 case EXCEPTION_IN_PAGE_ERROR:
17360 case EXCEPTION_STACK_OVERFLOW:
17361 case EXCEPTION_GUARD_PAGE:
17362 case EXCEPTION_PRIV_INSTRUCTION:
17363 case EXCEPTION_ILLEGAL_INSTRUCTION:
17364 case EXCEPTION_DATATYPE_MISALIGNMENT:
17365 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17366 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17369 return EXCEPTION_CONTINUE_SEARCH;
17372 nocrash_init (void)
17374 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17377 /* Avoid a crash on POSIX systems. */
17378 #include <signal.h>
17379 /* A POSIX signal handler. */
17381 exception_handler (int sig)
17386 nocrash_init (void)
17389 signal (SIGSEGV, exception_handler);
17392 signal (SIGBUS, exception_handler);
17406 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17407 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17408 OSF/1 5.1, Solaris 10. */
17410 static char conftest[] = "conftest";
17411 static char plus[] = "-+";
17412 char *argv[3] = { conftest, plus, NULL };
17414 if (getopt (2, argv, "+a") != '?')
17417 /* This code succeeds on glibc 2.8, mingw,
17418 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17419 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17421 static char program[] = "program";
17422 static char p[] = "-p";
17423 static char foo[] = "foo";
17424 static char bar[] = "bar";
17425 char *argv[] = { program, p, foo, bar, NULL };
17428 if (getopt (4, argv, "p::") != 'p')
17430 else if (optarg != NULL)
17432 else if (getopt (4, argv, "p::") != -1)
17434 else if (optind != 2)
17437 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17439 static char program[] = "program";
17440 static char foo[] = "foo";
17441 static char p[] = "-p";
17442 char *argv[] = { program, foo, p, NULL };
17444 if (getopt (3, argv, "-p") != 1)
17446 else if (getopt (3, argv, "-p") != 'p')
17449 /* This code fails on glibc 2.11. */
17451 static char program[] = "program";
17452 static char b[] = "-b";
17453 static char a[] = "-a";
17454 char *argv[] = { program, b, a, NULL };
17455 optind = opterr = 0;
17456 if (getopt (3, argv, "+:a:b") != 'b')
17458 else if (getopt (3, argv, "+:a:b") != ':')
17461 /* This code dumps core on glibc 2.14. */
17463 static char program[] = "program";
17464 static char w[] = "-W";
17465 static char dummy[] = "dummy";
17466 char *argv[] = { program, w, dummy, NULL };
17467 optind = opterr = 1;
17468 if (getopt (3, argv, "W;") != 'W')
17477 if ac_fn_c_try_run
"$LINENO"; then :
17478 gl_cv_func_getopt_gnu
=yes
17480 gl_cv_func_getopt_gnu
=no
17482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17483 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17486 case $gl_had_POSIXLY_CORRECT in
17488 yes) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;}; POSIXLY_CORRECT
=1 ;;
17489 *) { POSIXLY_CORRECT
=; unset POSIXLY_CORRECT
;} ;;
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17494 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17495 if test "$gl_cv_func_getopt_gnu" != yes; then
17496 gl_replace_getopt
=yes
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17499 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17500 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17501 $as_echo_n "(cached) " >&6
17503 if test "$cross_compiling" = yes; then :
17505 openbsd
*) gl_cv_func_getopt_long_gnu
="guessing no";;
17506 *) gl_cv_func_getopt_long_gnu
="guessing yes";;
17510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17512 #include <getopt.h>
17513 #include <stddef.h>
17514 #include <string.h>
17519 static const struct option long_options[] =
17521 { "xtremely-",no_argument, NULL, 1003 },
17522 { "xtra", no_argument, NULL, 1001 },
17523 { "xtreme", no_argument, NULL, 1002 },
17524 { "xtremely", no_argument, NULL, 1003 },
17525 { NULL, 0, NULL, 0 }
17527 /* This code fails on OpenBSD 5.0. */
17529 static char program[] = "program";
17530 static char xtremel[] = "--xtremel";
17531 char *argv[] = { program, xtremel, NULL };
17533 optind = 1; opterr = 0;
17534 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17543 if ac_fn_c_try_run
"$LINENO"; then :
17544 gl_cv_func_getopt_long_gnu
=yes
17546 gl_cv_func_getopt_long_gnu
=no
17548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17555 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17556 case "$gl_cv_func_getopt_long_gnu" in
17558 *) gl_replace_getopt
=yes ;;
17569 if test -n "$gl_replace_getopt"; then
17573 if test $REPLACE_GETOPT = 1; then
17577 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17583 ac_fn_c_check_decl
"$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17584 if test "x$ac_cv_have_decl_getenv" = x
""yes; then :
17590 cat >>confdefs.h
<<_ACEOF
17591 #define HAVE_DECL_GETENV $ac_have_decl
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17600 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17601 if test "${ac_cv_c_restrict+set}" = set; then :
17602 $as_echo_n "(cached) " >&6
17604 ac_cv_c_restrict
=no
17605 # The order here caters to the fact that C++ does not require restrict.
17606 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
17607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17609 typedef int * int_ptr;
17610 int foo (int_ptr $ac_kw ip) {
17617 int * $ac_kw t = s;
17624 if ac_fn_c_try_compile
"$LINENO"; then :
17625 ac_cv_c_restrict
=$ac_kw
17627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17628 test "$ac_cv_c_restrict" != no
&& break
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17633 $as_echo "$ac_cv_c_restrict" >&6; }
17635 case $ac_cv_c_restrict in
17637 no
) $as_echo "#define restrict /**/" >>confdefs.h
17639 *) cat >>confdefs.h
<<_ACEOF
17640 #define restrict $ac_cv_c_restrict
17646 GNULIB_GETTIMEOFDAY
=0;
17647 HAVE_GETTIMEOFDAY
=1;
17648 HAVE_STRUCT_TIMEVAL
=1;
17650 REPLACE_GETTIMEOFDAY
=0;
17651 REPLACE_STRUCT_TIMEVAL
=0;
17668 if test $gl_cv_have_include_next = yes; then
17669 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17672 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17673 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17674 $as_echo_n "(cached) " >&6
17677 if test $ac_cv_header_sys_time_h = yes; then
17680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17682 #include <sys/time.h>
17686 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17687 *) gl_absname_cpp
="$ac_cpp" ;;
17692 gl_dirsep_regex
='[/\\]'
17695 gl_dirsep_regex
='\/'
17698 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17700 gl_header_literal_regex
=`echo 'sys/time.h' \
17701 | sed -e "$gl_make_literal_regex_sed"`
17702 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17703 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17708 gl_cv_next_sys_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17709 sed -n "$gl_absolute_header_sed"`'"'
17711 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17717 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17719 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
17721 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17723 gl_next_as_first_directive
='<'sys
/time.h
'>'
17725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17726 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
17728 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
17734 if test $ac_cv_header_sys_time_h != yes; then
17742 if test $ac_cv_header_sys_socket_h != yes; then
17743 for ac_header
in winsock2.h
17745 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17746 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
17747 cat >>confdefs.h
<<_ACEOF
17748 #define HAVE_WINSOCK2_H 1
17756 if test "$ac_cv_header_winsock2_h" = yes; then
17758 UNISTD_H_HAVE_WINSOCK2_H
=1
17759 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17766 $as_echo_n "checking for struct timeval... " >&6; }
17767 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17768 $as_echo_n "(cached) " >&6
17770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17771 /* end confdefs.h. */
17772 #if HAVE_SYS_TIME_H
17773 #include <sys/time.h>
17776 #if HAVE_WINSOCK2_H
17777 # include <winsock2.h>
17783 static struct timeval x; x.tv_sec = x.tv_usec;
17788 if ac_fn_c_try_compile
"$LINENO"; then :
17789 gl_cv_sys_struct_timeval
=yes
17791 gl_cv_sys_struct_timeval
=no
17793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17797 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17798 if test $gl_cv_sys_struct_timeval != yes; then
17799 HAVE_STRUCT_TIMEVAL
=0
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17802 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17803 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 #if HAVE_SYS_TIME_H
17809 #include <sys/time.h>
17812 #if HAVE_WINSOCK2_H
17813 # include <winsock2.h>
17819 static struct timeval x;
17820 typedef int verify_tv_sec_type[
17821 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17828 if ac_fn_c_try_compile
"$LINENO"; then :
17829 gl_cv_sys_struct_timeval_tv_sec
=yes
17831 gl_cv_sys_struct_timeval_tv_sec
=no
17833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17837 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17838 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17839 REPLACE_STRUCT_TIMEVAL
=1
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17850 $as_echo_n "checking for unsigned long long int... " >&6; }
17851 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17852 $as_echo_n "(cached) " >&6
17854 ac_cv_type_unsigned_long_long_int
=yes
17855 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17857 /* end confdefs.h. */
17859 /* For now, do not test the preprocessor; as of 2007 there are too many
17860 implementations with broken preprocessors. Perhaps this can
17861 be revisited in 2012. In the meantime, code should not expect
17862 #if to work with literals wider than 32 bits. */
17863 /* Test literals. */
17864 long long int ll = 9223372036854775807ll;
17865 long long int nll = -9223372036854775807LL;
17866 unsigned long long int ull = 18446744073709551615ULL;
17867 /* Test constant expressions. */
17868 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17870 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17876 /* Test availability of runtime routines for shift and division. */
17877 long long int llmax = 9223372036854775807ll;
17878 unsigned long long int ullmax = 18446744073709551615ull;
17879 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17880 | (llmax / ll) | (llmax % ll)
17881 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17882 | (ullmax / ull) | (ullmax % ull));
17888 if ac_fn_c_try_link
"$LINENO"; then :
17891 ac_cv_type_unsigned_long_long_int
=no
17893 rm -f core conftest.err conftest.
$ac_objext \
17894 conftest
$ac_exeext conftest.
$ac_ext
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17898 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17899 if test $ac_cv_type_unsigned_long_long_int = yes; then
17901 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17908 $as_echo_n "checking for long long int... " >&6; }
17909 if test "${ac_cv_type_long_long_int+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17912 ac_cv_type_long_long_int
=yes
17913 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
17914 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
17915 if test $ac_cv_type_long_long_int = yes; then
17916 if test "$cross_compiling" = yes; then :
17919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921 #include <limits.h>
17924 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17925 # define LLONG_MAX (HALF - 1 + HALF)
17930 long long int n = 1;
17934 long long int m = n << i;
17937 if (LLONG_MAX / 2 < m)
17945 if ac_fn_c_try_run
"$LINENO"; then :
17948 ac_cv_type_long_long_int
=no
17950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17958 $as_echo "$ac_cv_type_long_long_int" >&6; }
17959 if test $ac_cv_type_long_long_int = yes; then
17961 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17970 gl_cv_c_multiarch
=no
17971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17972 /* end confdefs.h. */
17973 #ifndef __APPLE_CC__
17974 not a universal capable compiler
17979 if ac_fn_c_try_compile
"$LINENO"; then :
17983 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17984 if test -n "$prev"; then
17986 i?
86 | x86_64 | ppc | ppc64
)
17987 if test -z "$arch" ||
test "$arch" = "$word"; then
17990 gl_cv_c_multiarch
=yes
17996 if test "x$word" = "x-arch"; then
18003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18004 if test $gl_cv_c_multiarch = yes; then
18005 APPLE_UNIVERSAL_BUILD
=1
18007 APPLE_UNIVERSAL_BUILD
=0
18014 if test $ac_cv_type_long_long_int = yes; then
18015 HAVE_LONG_LONG_INT
=1
18017 HAVE_LONG_LONG_INT
=0
18021 if test $ac_cv_type_unsigned_long_long_int = yes; then
18022 HAVE_UNSIGNED_LONG_LONG_INT
=1
18024 HAVE_UNSIGNED_LONG_LONG_INT
=0
18029 if test $ac_cv_header_wchar_h = yes; then
18036 if test $ac_cv_header_inttypes_h = yes; then
18043 if test $ac_cv_header_sys_types_h = yes; then
18059 if test $gl_cv_have_include_next = yes; then
18060 gl_cv_next_stdint_h
='<'stdint.h
'>'
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18063 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18064 if test "${gl_cv_next_stdint_h+set}" = set; then :
18065 $as_echo_n "(cached) " >&6
18068 if test $ac_cv_header_stdint_h = yes; then
18071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18072 /* end confdefs.h. */
18073 #include <stdint.h>
18077 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18078 *) gl_absname_cpp
="$ac_cpp" ;;
18083 gl_dirsep_regex
='[/\\]'
18086 gl_dirsep_regex
='\/'
18089 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18091 gl_header_literal_regex
=`echo 'stdint.h' \
18092 | sed -e "$gl_make_literal_regex_sed"`
18093 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18094 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18099 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18100 sed -n "$gl_absolute_header_sed"`'"'
18102 gl_cv_next_stdint_h
='<'stdint.h
'>'
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18108 $as_echo "$gl_cv_next_stdint_h" >&6; }
18110 NEXT_STDINT_H
=$gl_cv_next_stdint_h
18112 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18114 gl_next_as_first_directive
='<'stdint.h
'>'
18116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18117 gl_next_as_first_directive
=$gl_cv_next_stdint_h
18119 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
18124 if test $ac_cv_header_stdint_h = yes; then
18131 if test $ac_cv_header_stdint_h = yes; then
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18133 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18134 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18135 $as_echo_n "(cached) " >&6
18137 gl_cv_header_working_stdint_h
=no
18138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18142 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18143 #include <stdint.h>
18144 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18145 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18146 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18150 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18151 included before <wchar.h>. */
18152 #include <stddef.h>
18153 #include <signal.h>
18155 # include <stdio.h>
18157 # include <wchar.h>
18162 int8_t a1 = INT8_MAX;
18163 int8_t a1min = INT8_MIN;
18166 int16_t a2 = INT16_MAX;
18167 int16_t a2min = INT16_MIN;
18170 int32_t a3 = INT32_MAX;
18171 int32_t a3min = INT32_MIN;
18174 int64_t a4 = INT64_MAX;
18175 int64_t a4min = INT64_MIN;
18178 uint8_t b1 = UINT8_MAX;
18180 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18183 uint16_t b2 = UINT16_MAX;
18186 uint32_t b3 = UINT32_MAX;
18189 uint64_t b4 = UINT64_MAX;
18191 int_least8_t c1 = INT8_C (0x7f);
18192 int_least8_t c1max = INT_LEAST8_MAX;
18193 int_least8_t c1min = INT_LEAST8_MIN;
18194 int_least16_t c2 = INT16_C (0x7fff);
18195 int_least16_t c2max = INT_LEAST16_MAX;
18196 int_least16_t c2min = INT_LEAST16_MIN;
18197 int_least32_t c3 = INT32_C (0x7fffffff);
18198 int_least32_t c3max = INT_LEAST32_MAX;
18199 int_least32_t c3min = INT_LEAST32_MIN;
18200 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18201 int_least64_t c4max = INT_LEAST64_MAX;
18202 int_least64_t c4min = INT_LEAST64_MIN;
18203 uint_least8_t d1 = UINT8_C (0xff);
18204 uint_least8_t d1max = UINT_LEAST8_MAX;
18205 uint_least16_t d2 = UINT16_C (0xffff);
18206 uint_least16_t d2max = UINT_LEAST16_MAX;
18207 uint_least32_t d3 = UINT32_C (0xffffffff);
18208 uint_least32_t d3max = UINT_LEAST32_MAX;
18209 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18210 uint_least64_t d4max = UINT_LEAST64_MAX;
18211 int_fast8_t e1 = INT_FAST8_MAX;
18212 int_fast8_t e1min = INT_FAST8_MIN;
18213 int_fast16_t e2 = INT_FAST16_MAX;
18214 int_fast16_t e2min = INT_FAST16_MIN;
18215 int_fast32_t e3 = INT_FAST32_MAX;
18216 int_fast32_t e3min = INT_FAST32_MIN;
18217 int_fast64_t e4 = INT_FAST64_MAX;
18218 int_fast64_t e4min = INT_FAST64_MIN;
18219 uint_fast8_t f1 = UINT_FAST8_MAX;
18220 uint_fast16_t f2 = UINT_FAST16_MAX;
18221 uint_fast32_t f3 = UINT_FAST32_MAX;
18222 uint_fast64_t f4 = UINT_FAST64_MAX;
18224 intptr_t g = INTPTR_MAX;
18225 intptr_t gmin = INTPTR_MIN;
18228 uintptr_t h = UINTPTR_MAX;
18230 intmax_t i = INTMAX_MAX;
18231 uintmax_t j = UINTMAX_MAX;
18233 #include <limits.h> /* for CHAR_BIT */
18234 #define TYPE_MINIMUM(t) \
18235 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18236 #define TYPE_MAXIMUM(t) \
18237 ((t) ((t) 0 < (t) -1 \
18239 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18242 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18243 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18245 /* Detect bug in FreeBSD 6.0 / ia64. */
18246 int check_SIG_ATOMIC:
18247 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18248 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18250 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18252 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18253 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18255 /* Detect bug in mingw. */
18257 WINT_MIN == TYPE_MINIMUM (wint_t)
18258 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18261 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18263 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18264 int check_UINT16_C:
18265 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18267 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18269 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18272 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18275 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18278 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18280 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18281 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18282 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18283 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18284 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18285 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18286 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18287 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18288 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18289 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18290 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18301 if ac_fn_c_try_compile
"$LINENO"; then :
18302 if test "$cross_compiling" = yes; then :
18303 gl_cv_header_working_stdint_h
=yes
18306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18310 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18311 #include <stdint.h>
18314 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18315 included before <wchar.h>. */
18316 #include <stddef.h>
18317 #include <signal.h>
18319 # include <stdio.h>
18321 # include <wchar.h>
18326 #include <string.h>
18327 #define MVAL(macro) MVAL1(macro)
18328 #define MVAL1(expression) #expression
18329 static const char *macro_values[] =
18363 for (mv = macro_values; *mv != NULL; mv++)
18365 const char *value = *mv;
18366 /* Test whether it looks like a cast expression. */
18367 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18368 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18369 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18370 || strncmp (value, "((int)"/*)*/, 6) == 0
18371 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18372 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18373 return mv - macro_values + 1;
18381 if ac_fn_c_try_run
"$LINENO"; then :
18382 gl_cv_header_working_stdint_h
=yes
18384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18394 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18396 if test "$gl_cv_header_working_stdint_h" = yes; then
18399 for ac_header
in sys
/inttypes.h sys
/bitypes.h
18401 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18402 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18403 eval as_val
=\$
$as_ac_Header
18404 if test "x$as_val" = x
""yes; then :
18405 cat >>confdefs.h
<<_ACEOF
18406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18413 if test $ac_cv_header_sys_inttypes_h = yes; then
18414 HAVE_SYS_INTTYPES_H
=1
18416 HAVE_SYS_INTTYPES_H
=0
18419 if test $ac_cv_header_sys_bitypes_h = yes; then
18420 HAVE_SYS_BITYPES_H
=1
18422 HAVE_SYS_BITYPES_H
=0
18428 if test $APPLE_UNIVERSAL_BUILD = 0; then
18431 for gltype
in ptrdiff_t size_t
; do
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18433 $as_echo_n "checking for bit size of $gltype... " >&6; }
18434 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18435 $as_echo_n "(cached) " >&6
18437 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18438 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18439 included before <wchar.h>. */
18440 #include <stddef.h>
18441 #include <signal.h>
18443 # include <stdio.h>
18445 # include <wchar.h>
18448 #include <limits.h>"; then :
18454 eval gl_cv_bitsizeof_
${gltype}=\
$result
18457 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18459 $as_echo "$ac_res" >&6; }
18460 eval result
=\
$gl_cv_bitsizeof_${gltype}
18461 if test $result = unknown
; then
18464 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18465 cat >>confdefs.h
<<_ACEOF
18466 #define BITSIZEOF_${GLTYPE} $result
18469 eval BITSIZEOF_
${GLTYPE}=\
$result
18476 for gltype
in sig_atomic_t wchar_t wint_t
; do
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18478 $as_echo_n "checking for bit size of $gltype... " >&6; }
18479 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18480 $as_echo_n "(cached) " >&6
18482 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18483 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18484 included before <wchar.h>. */
18485 #include <stddef.h>
18486 #include <signal.h>
18488 # include <stdio.h>
18490 # include <wchar.h>
18493 #include <limits.h>"; then :
18499 eval gl_cv_bitsizeof_
${gltype}=\
$result
18502 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18504 $as_echo "$ac_res" >&6; }
18505 eval result
=\
$gl_cv_bitsizeof_${gltype}
18506 if test $result = unknown
; then
18509 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18510 cat >>confdefs.h
<<_ACEOF
18511 #define BITSIZEOF_${GLTYPE} $result
18514 eval BITSIZEOF_
${GLTYPE}=\
$result
18520 for gltype
in sig_atomic_t wchar_t wint_t
; do
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18522 $as_echo_n "checking whether $gltype is signed... " >&6; }
18523 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18524 $as_echo_n "(cached) " >&6
18526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h. */
18529 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18530 included before <wchar.h>. */
18531 #include <stddef.h>
18532 #include <signal.h>
18534 # include <stdio.h>
18536 # include <wchar.h>
18539 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18548 if ac_fn_c_try_compile
"$LINENO"; then :
18553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18554 eval gl_cv_type_
${gltype}_signed
=\
$result
18557 eval ac_res
=\
$gl_cv_type_${gltype}_signed
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18559 $as_echo "$ac_res" >&6; }
18560 eval result
=\
$gl_cv_type_${gltype}_signed
18561 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18562 if test "$result" = yes; then
18563 cat >>confdefs.h
<<_ACEOF
18564 #define HAVE_SIGNED_${GLTYPE} 1
18567 eval HAVE_SIGNED_
${GLTYPE}=1
18569 eval HAVE_SIGNED_
${GLTYPE}=0
18574 gl_cv_type_ptrdiff_t_signed
=yes
18575 gl_cv_type_size_t_signed
=no
18576 if test $APPLE_UNIVERSAL_BUILD = 0; then
18579 for gltype
in ptrdiff_t size_t
; do
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18581 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18582 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18583 $as_echo_n "(cached) " >&6
18585 eval gl_cv_type_
${gltype}_suffix
=no
18586 eval result
=\
$gl_cv_type_${gltype}_signed
18587 if test "$result" = yes; then
18592 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18594 '') gltype1
='int';;
18595 l
) gltype1
='long int';;
18596 ll
) gltype1
='long long int';;
18597 i64
) gltype1
='__int64';;
18598 u
) gltype1
='unsigned int';;
18599 ul
) gltype1
='unsigned long int';;
18600 ull
) gltype1
='unsigned long long int';;
18601 ui64
)gltype1
='unsigned __int64';;
18603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18604 /* end confdefs.h. */
18606 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18607 included before <wchar.h>. */
18608 #include <stddef.h>
18609 #include <signal.h>
18611 # include <stdio.h>
18613 # include <wchar.h>
18616 extern $gltype foo;
18617 extern $gltype1 foo;
18626 if ac_fn_c_try_compile
"$LINENO"; then :
18627 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18630 eval result
=\
$gl_cv_type_${gltype}_suffix
18631 test "$result" != no
&& break
18634 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18636 $as_echo "$ac_res" >&6; }
18637 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18638 eval result
=\
$gl_cv_type_${gltype}_suffix
18639 test "$result" = no
&& result
=
18640 eval ${GLTYPE}_SUFFIX
=\
$result
18641 cat >>confdefs.h
<<_ACEOF
18642 #define ${GLTYPE}_SUFFIX $result
18651 for gltype
in sig_atomic_t wchar_t wint_t
; do
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18653 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18654 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18655 $as_echo_n "(cached) " >&6
18657 eval gl_cv_type_
${gltype}_suffix
=no
18658 eval result
=\
$gl_cv_type_${gltype}_signed
18659 if test "$result" = yes; then
18664 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
18666 '') gltype1
='int';;
18667 l
) gltype1
='long int';;
18668 ll
) gltype1
='long long int';;
18669 i64
) gltype1
='__int64';;
18670 u
) gltype1
='unsigned int';;
18671 ul
) gltype1
='unsigned long int';;
18672 ull
) gltype1
='unsigned long long int';;
18673 ui64
)gltype1
='unsigned __int64';;
18675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18678 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18679 included before <wchar.h>. */
18680 #include <stddef.h>
18681 #include <signal.h>
18683 # include <stdio.h>
18685 # include <wchar.h>
18688 extern $gltype foo;
18689 extern $gltype1 foo;
18698 if ac_fn_c_try_compile
"$LINENO"; then :
18699 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
18701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18702 eval result
=\
$gl_cv_type_${gltype}_suffix
18703 test "$result" != no
&& break
18706 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18708 $as_echo "$ac_res" >&6; }
18709 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18710 eval result
=\
$gl_cv_type_${gltype}_suffix
18711 test "$result" = no
&& result
=
18712 eval ${GLTYPE}_SUFFIX
=\
$result
18713 cat >>confdefs.h
<<_ACEOF
18714 #define ${GLTYPE}_SUFFIX $result
18721 if test $BITSIZEOF_WINT_T -lt 32; then
18722 BITSIZEOF_WINT_T
=32
18728 if test -n "$STDINT_H"; then
18729 GL_GENERATE_STDINT_H_TRUE
=
18730 GL_GENERATE_STDINT_H_FALSE
='#'
18732 GL_GENERATE_STDINT_H_TRUE
='#'
18733 GL_GENERATE_STDINT_H_FALSE
=
18742 GNULIB_STRTOIMAX
=0;
18743 GNULIB_STRTOUMAX
=0;
18744 HAVE_DECL_IMAXABS
=1;
18745 HAVE_DECL_IMAXDIV
=1;
18746 HAVE_DECL_STRTOIMAX
=1;
18747 HAVE_DECL_STRTOUMAX
=1;
18748 REPLACE_STRTOIMAX
=0;
18749 INT32_MAX_LT_INTMAX_MAX
=1;
18750 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
18751 PRI_MACROS_BROKEN
=0;
18752 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
18753 UINT32_MAX_LT_UINTMAX_MAX
=1;
18754 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
18770 if test $gl_cv_have_include_next = yes; then
18771 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18774 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18775 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18776 $as_echo_n "(cached) " >&6
18779 if test $ac_cv_header_inttypes_h = yes; then
18782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 #include <inttypes.h>
18788 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18789 *) gl_absname_cpp
="$ac_cpp" ;;
18794 gl_dirsep_regex
='[/\\]'
18797 gl_dirsep_regex
='\/'
18800 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18802 gl_header_literal_regex
=`echo 'inttypes.h' \
18803 | sed -e "$gl_make_literal_regex_sed"`
18804 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18805 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18810 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18811 sed -n "$gl_absolute_header_sed"`'"'
18813 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18819 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18821 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
18823 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18824 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18825 gl_next_as_first_directive
='<'inttypes.h
'>'
18827 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18828 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
18830 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18845 $as_echo_n "checking for 64-bit off_t... " >&6; }
18846 if test "${gl_cv_type_off_t_64+set}" = set; then :
18847 $as_echo_n "(cached) " >&6
18849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18850 /* end confdefs.h. */
18851 #include <sys/types.h>
18852 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18862 if ac_fn_c_try_compile
"$LINENO"; then :
18863 gl_cv_type_off_t_64
=yes
18865 gl_cv_type_off_t_64
=no
18867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18871 $as_echo "$gl_cv_type_off_t_64" >&6; }
18872 if test $gl_cv_type_off_t_64 = no
; then
18873 WINDOWS_64_BIT_OFF_T
=1
18875 WINDOWS_64_BIT_OFF_T
=0
18877 WINDOWS_64_BIT_ST_SIZE
=1
18880 WINDOWS_64_BIT_OFF_T
=0
18881 WINDOWS_64_BIT_ST_SIZE
=0
18898 GNULIB_UTIMENSAT
=0;
18912 REPLACE_FUTIMENS
=0;
18918 REPLACE_UTIMENSAT
=0;
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18924 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18925 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18926 $as_echo_n "(cached) " >&6
18928 rm -f conftest.sym conftest.
file
18929 echo >conftest.
file
18930 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
18931 if test "$cross_compiling" = yes; then :
18933 # Guess yes on glibc systems.
18934 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
18935 # If we don't know, assume the worst.
18936 *) gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
18940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18942 $ac_includes_default
18947 /* Linux will dereference the symlink and fail, as required by
18948 POSIX. That is better in the sense that it means we will not
18949 have to compile and use the lstat wrapper. */
18950 return lstat ("conftest.sym/", &sbuf) == 0;
18956 if ac_fn_c_try_run
"$LINENO"; then :
18957 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
18959 gl_cv_func_lstat_dereferences_slashed_symlink
=no
18961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18966 # If the 'ln -s' command failed, then we probably don't even
18967 # have an lstat function.
18968 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no"
18970 rm -f conftest.sym conftest.
file
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18974 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18975 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18978 cat >>confdefs.h
<<_ACEOF
18979 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18987 GNULIB_NANOSLEEP
=0;
18991 HAVE_DECL_LOCALTIME_R
=1;
18995 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
18996 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
18997 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
18998 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19015 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19016 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19017 $as_echo_n "(cached) " >&6
19020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h. */
19022 #include <sys/select.h>
19031 if ac_fn_c_try_compile
"$LINENO"; then :
19032 gl_cv_header_sys_select_h_selfcontained
=yes
19034 gl_cv_header_sys_select_h_selfcontained
=no
19036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19037 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h. */
19040 #include <sys/select.h>
19044 int memset; int bzero;
19050 if ac_fn_c_try_compile
"$LINENO"; then :
19051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19052 /* end confdefs.h. */
19053 #include <sys/select.h>
19059 #define memset nonexistent_memset
19064 void *memset (void *, int, unsigned long);
19066 #define bzero nonexistent_bzero
19071 void bzero (void *, unsigned long);
19080 if ac_fn_c_try_link
"$LINENO"; then :
19083 gl_cv_header_sys_select_h_selfcontained
=no
19085 rm -f core conftest.err conftest.
$ac_objext \
19086 conftest
$ac_exeext conftest.
$ac_ext
19089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19094 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19104 if test $gl_cv_have_include_next = yes; then
19105 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19108 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19109 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19110 $as_echo_n "(cached) " >&6
19113 if test $ac_cv_header_sys_select_h = yes; then
19116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19118 #include <sys/select.h>
19122 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19123 *) gl_absname_cpp
="$ac_cpp" ;;
19128 gl_dirsep_regex
='[/\\]'
19131 gl_dirsep_regex
='\/'
19134 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19136 gl_header_literal_regex
=`echo 'sys/select.h' \
19137 | sed -e "$gl_make_literal_regex_sed"`
19138 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19139 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19144 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19145 sed -n "$gl_absolute_header_sed"`'"'
19147 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19153 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19155 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
19157 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19158 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19159 gl_next_as_first_directive
='<'sys
/select.h
'>'
19161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19162 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
19164 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
19169 if test $ac_cv_header_sys_select_h = yes; then
19170 HAVE_SYS_SELECT_H
=1
19172 HAVE_SYS_SELECT_H
=0
19179 if test $ac_cv_header_sys_socket_h != yes; then
19180 for ac_header
in winsock2.h
19182 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19183 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
19184 cat >>confdefs.h
<<_ACEOF
19185 #define HAVE_WINSOCK2_H 1
19193 if test "$ac_cv_header_winsock2_h" = yes; then
19195 UNISTD_H_HAVE_WINSOCK2_H
=1
19196 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19208 GNULIB_PTHREAD_SIGMASK
=0;
19210 GNULIB_SIGNAL_H_SIGPIPE
=0;
19211 GNULIB_SIGPROCMASK
=0;
19212 GNULIB_SIGACTION
=0;
19213 HAVE_POSIX_SIGNALBLOCKING
=1;
19214 HAVE_PTHREAD_SIGMASK
=1;
19219 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
19221 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
19223 HAVE_SIGHANDLER_T
=1;
19224 REPLACE_PTHREAD_SIGMASK
=0;
19232 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19233 #include <signal.h>
19234 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19235 #include <sys/types.h>
19238 if test "x$ac_cv_type_sigset_t" = x
""yes; then :
19240 cat >>confdefs.h
<<_ACEOF
19241 #define HAVE_SIGSET_T 1
19244 gl_cv_type_sigset_t
=yes
19246 gl_cv_type_sigset_t
=no
19249 if test $gl_cv_type_sigset_t != yes; then
19255 if test $ac_cv_header_sys_socket_h = no
; then
19256 for ac_header
in ws2tcpip.h
19258 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19259 if test "x$ac_cv_header_ws2tcpip_h" = x
""yes; then :
19260 cat >>confdefs.h
<<_ACEOF
19261 #define HAVE_WS2TCPIP_H 1
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19271 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19272 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19273 $as_echo_n "(cached) " >&6
19275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19278 #include <stdbool.h>
19280 "error: bool is not defined"
19283 "error: false is not defined"
19286 "error: false is not 0"
19289 "error: true is not defined"
19292 "error: true is not 1"
19294 #ifndef __bool_true_false_are_defined
19295 "error: __bool_true_false_are_defined is not defined"
19298 struct s { _Bool s: 1; _Bool t; } s;
19300 char a[true == 1 ? 1 : -1];
19301 char b[false == 0 ? 1 : -1];
19302 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19303 char d[(bool) 0.5 == true ? 1 : -1];
19304 /* See body of main program for 'e'. */
19305 char f[(_Bool) 0.0 == false ? 1 : -1];
19307 char h[sizeof (_Bool)];
19308 char i[sizeof s.t];
19309 enum { j = false, k = true, l = false * true, m = true * 256 };
19310 /* The following fails for
19311 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19313 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19314 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19315 /* Catch a bug in an HP-UX C compiler. See
19316 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19317 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19329 /* Refer to every declared value, to avoid compiler optimizations. */
19330 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19331 + !m + !n + !o + !p + !q + !pq);
19337 if ac_fn_c_try_compile
"$LINENO"; then :
19338 ac_cv_header_stdbool_h
=yes
19340 ac_cv_header_stdbool_h
=no
19342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19345 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19346 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19347 if test "x$ac_cv_type__Bool" = x
""yes; then :
19349 cat >>confdefs.h
<<_ACEOF
19350 #define HAVE__BOOL 1
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19363 $as_echo_n "checking for wchar_t... " >&6; }
19364 if test "${gt_cv_c_wchar_t+set}" = set; then :
19365 $as_echo_n "(cached) " >&6
19367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369 #include <stddef.h>
19370 wchar_t foo = (wchar_t)'\0';
19379 if ac_fn_c_try_compile
"$LINENO"; then :
19380 gt_cv_c_wchar_t
=yes
19384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19387 $as_echo "$gt_cv_c_wchar_t" >&6; }
19388 if test $gt_cv_c_wchar_t = yes; then
19390 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19403 GNULIB_FPRINTF_POSIX
=0;
19419 GNULIB_OBSTACK_PRINTF
=0;
19420 GNULIB_OBSTACK_PRINTF_POSIX
=0;
19425 GNULIB_PRINTF_POSIX
=0;
19434 GNULIB_SPRINTF_POSIX
=0;
19435 GNULIB_STDIO_H_NONBLOCKING
=0;
19436 GNULIB_STDIO_H_SIGPIPE
=0;
19438 GNULIB_VASPRINTF
=0;
19443 GNULIB_VFPRINTF_POSIX
=0;
19445 GNULIB_VPRINTF_POSIX
=0;
19446 GNULIB_VSNPRINTF
=0;
19447 GNULIB_VSPRINTF_POSIX
=0;
19448 HAVE_DECL_FPURGE
=1;
19449 HAVE_DECL_FSEEKO
=1;
19450 HAVE_DECL_FTELLO
=1;
19451 HAVE_DECL_GETDELIM
=1;
19452 HAVE_DECL_GETLINE
=1;
19453 HAVE_DECL_OBSTACK_PRINTF
=1;
19454 HAVE_DECL_SNPRINTF
=1;
19455 HAVE_DECL_VSNPRINTF
=1;
19476 REPLACE_GETDELIM
=0;
19478 REPLACE_OBSTACK_PRINTF
=0;
19484 REPLACE_RENAMEAT
=0;
19485 REPLACE_SNPRINTF
=0;
19487 REPLACE_STDIO_READ_FUNCS
=0;
19488 REPLACE_STDIO_WRITE_FUNCS
=0;
19490 REPLACE_VASPRINTF
=0;
19491 REPLACE_VDPRINTF
=0;
19492 REPLACE_VFPRINTF
=0;
19494 REPLACE_VSNPRINTF
=0;
19495 REPLACE_VSPRINTF
=0;
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19498 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19499 if test "${ac_cv_struct_tm+set}" = set; then :
19500 $as_echo_n "(cached) " >&6
19502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19504 #include <sys/types.h>
19511 int *p = &tm.tm_sec;
19517 if ac_fn_c_try_compile
"$LINENO"; then :
19518 ac_cv_struct_tm
=time.h
19520 ac_cv_struct_tm
=sys
/time.h
19522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19525 $as_echo "$ac_cv_struct_tm" >&6; }
19526 if test $ac_cv_struct_tm = sys
/time.h
; then
19528 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19532 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19533 #include <$ac_cv_struct_tm>
19536 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
19538 cat >>confdefs.h
<<_ACEOF
19539 #define HAVE_STRUCT_TM_TM_ZONE 1
19545 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19547 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19550 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19552 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
19558 cat >>confdefs.h
<<_ACEOF
19559 #define HAVE_DECL_TZNAME $ac_have_decl
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19563 $as_echo_n "checking for tzname... " >&6; }
19564 if test "${ac_cv_var_tzname+set}" = set; then :
19565 $as_echo_n "(cached) " >&6
19567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19568 /* end confdefs.h. */
19570 #if !HAVE_DECL_TZNAME
19571 extern char *tzname[];
19577 return tzname[0][0];
19582 if ac_fn_c_try_link
"$LINENO"; then :
19583 ac_cv_var_tzname
=yes
19585 ac_cv_var_tzname
=no
19587 rm -f core conftest.err conftest.
$ac_objext \
19588 conftest
$ac_exeext conftest.
$ac_ext
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19591 $as_echo "$ac_cv_var_tzname" >&6; }
19592 if test $ac_cv_var_tzname = yes; then
19594 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19600 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19602 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
19604 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19611 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19612 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
19618 cat >>confdefs.h
<<_ACEOF
19619 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19624 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19625 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
19631 cat >>confdefs.h
<<_ACEOF
19632 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19638 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19639 if test "${ac_cv_header_stat_broken+set}" = set; then :
19640 $as_echo_n "(cached) " >&6
19642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644 #include <sys/types.h>
19645 #include <sys/stat.h>
19647 #if defined S_ISBLK && defined S_IFDIR
19648 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19651 #if defined S_ISBLK && defined S_IFCHR
19652 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19655 #if defined S_ISLNK && defined S_IFREG
19656 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19659 #if defined S_ISSOCK && defined S_IFREG
19660 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19664 if ac_fn_c_try_compile
"$LINENO"; then :
19665 ac_cv_header_stat_broken
=no
19667 ac_cv_header_stat_broken
=yes
19669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19672 $as_echo "$ac_cv_header_stat_broken" >&6; }
19673 if test $ac_cv_header_stat_broken = yes; then
19675 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19681 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19682 if test "x$ac_cv_type_mode_t" = x
""yes; then :
19686 cat >>confdefs.h
<<_ACEOF
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19695 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19696 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19697 $as_echo_n "(cached) " >&6
19699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19706 static struct timespec x; x.tv_sec = x.tv_nsec;
19711 if ac_fn_c_try_compile
"$LINENO"; then :
19712 gl_cv_sys_struct_timespec_in_time_h
=yes
19714 gl_cv_sys_struct_timespec_in_time_h
=no
19716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19719 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19721 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19722 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
19723 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
19724 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19725 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19728 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19729 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19730 $as_echo_n "(cached) " >&6
19732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19734 #include <sys/time.h>
19739 static struct timespec x; x.tv_sec = x.tv_nsec;
19744 if ac_fn_c_try_compile
"$LINENO"; then :
19745 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
19747 gl_cv_sys_struct_timespec_in_sys_time_h
=no
19749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19752 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19753 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19754 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19757 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19758 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19759 $as_echo_n "(cached) " >&6
19761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19762 /* end confdefs.h. */
19763 #include <pthread.h>
19768 static struct timespec x; x.tv_sec = x.tv_nsec;
19773 if ac_fn_c_try_compile
"$LINENO"; then :
19774 gl_cv_sys_struct_timespec_in_pthread_h
=yes
19776 gl_cv_sys_struct_timespec_in_pthread_h
=no
19778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19781 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19782 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19783 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
19802 if test $gl_cv_have_include_next = yes; then
19803 gl_cv_next_time_h
='<'time.h
'>'
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19806 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19807 if test "${gl_cv_next_time_h+set}" = set; then :
19808 $as_echo_n "(cached) " >&6
19811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19812 /* end confdefs.h. */
19817 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19818 *) gl_absname_cpp
="$ac_cpp" ;;
19823 gl_dirsep_regex
='[/\\]'
19826 gl_dirsep_regex
='\/'
19829 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19831 gl_header_literal_regex
=`echo 'time.h' \
19832 | sed -e "$gl_make_literal_regex_sed"`
19833 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19834 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19839 gl_cv_next_time_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19840 sed -n "$gl_absolute_header_sed"`'"'
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19845 $as_echo "$gl_cv_next_time_h" >&6; }
19847 NEXT_TIME_H
=$gl_cv_next_time_h
19849 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19851 gl_next_as_first_directive
='<'time.h
'>'
19853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19854 gl_next_as_first_directive
=$gl_cv_next_time_h
19856 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19873 $as_echo_n "checking whether the utimes function works... " >&6; }
19874 if test "${gl_cv_func_working_utimes+set}" = set; then :
19875 $as_echo_n "(cached) " >&6
19878 if test "$cross_compiling" = yes; then :
19879 gl_cv_func_working_utimes
=no
19881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19884 #include <sys/types.h>
19885 #include <sys/stat.h>
19887 #include <sys/time.h>
19889 #include <unistd.h>
19890 #include <stdlib.h>
19895 inorder (time_t a, time_t b, time_t c)
19897 return a <= b && b <= c;
19904 char const *file = "conftest.utimes";
19905 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19907 /* Test whether utimes() essentially works. */
19910 FILE *f = fopen (file, "w");
19913 else if (fclose (f) != 0)
19915 else if (utimes (file, timeval) != 0)
19917 else if (lstat (file, &sbuf) != 0)
19919 else if (!(sbuf.st_atime == timeval[0].tv_sec
19920 && sbuf.st_mtime == timeval[1].tv_sec))
19922 if (unlink (file) != 0)
19926 /* Test whether utimes() with a NULL argument sets the file's timestamp
19927 to the current time. Use 'fstat' as well as 'time' to
19928 determine the "current" time, to accommodate NFS file systems
19929 if there is a time skew between the host and the NFS server. */
19931 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19937 struct stat st0, st1, st2;
19938 if (time (&t0) == (time_t) -1)
19940 else if (fstat (fd, &st0) != 0)
19942 else if (utimes (file, timeval) != 0)
19944 else if (utimes (file, NULL) != 0)
19946 else if (fstat (fd, &st1) != 0)
19948 else if (write (fd, "\n", 1) != 1)
19950 else if (fstat (fd, &st2) != 0)
19952 else if (time (&t2) == (time_t) -1)
19956 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19957 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19958 if (! (st1.st_atime == st1.st_mtime))
19960 if (! (m_ok_POSIX || m_ok_NFS))
19963 if (close (fd) != 0)
19966 if (unlink (file) != 0)
19970 /* Test whether utimes() with a NULL argument works on read-only files. */
19972 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19975 else if (close (fd) != 0)
19977 else if (utimes (file, NULL) != 0)
19979 if (unlink (file) != 0)
19987 if ac_fn_c_try_run
"$LINENO"; then :
19988 gl_cv_func_working_utimes
=yes
19990 gl_cv_func_working_utimes
=no
19992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19993 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
19998 $as_echo "$gl_cv_func_working_utimes" >&6; }
20000 if test $gl_cv_func_working_utimes = yes; then
20002 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20011 $as_echo_n "checking for struct utimbuf... " >&6; }
20012 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20013 $as_echo_n "(cached) " >&6
20015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20016 /* end confdefs.h. */
20017 #if HAVE_SYS_TIME_H
20018 #include <sys/time.h>
20021 #ifdef HAVE_UTIME_H
20028 static struct utimbuf x; x.actime = x.modtime;
20033 if ac_fn_c_try_compile
"$LINENO"; then :
20034 gl_cv_sys_struct_utimbuf
=yes
20036 gl_cv_sys_struct_utimbuf
=no
20038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20041 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20043 if test $gl_cv_sys_struct_utimbuf = yes; then
20045 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20061 GL_COND_LIBTOOL_TRUE
=
20062 GL_COND_LIBTOOL_FALSE
='#'
20064 GL_COND_LIBTOOL_TRUE
='#'
20065 GL_COND_LIBTOOL_FALSE
=
20068 gl_cond_libtool
=false
20081 gl_source_base
='lib'
20084 if test $ac_cv_func_alloca_works = no
; then
20088 # Define an additional variable used in the Makefile substitution.
20089 if test $ac_cv_working_alloca_h = yes; then
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20091 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20092 if test "${gl_cv_rpl_alloca+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20099 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20105 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
20106 gl_cv_rpl_alloca
=yes
20108 gl_cv_rpl_alloca
=no
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20115 $as_echo "$gl_cv_rpl_alloca" >&6; }
20116 if test $gl_cv_rpl_alloca = yes; then
20118 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20128 if test -n "$ALLOCA_H"; then
20129 GL_GENERATE_ALLOCA_H_TRUE
=
20130 GL_GENERATE_ALLOCA_H_FALSE
='#'
20132 GL_GENERATE_ALLOCA_H_TRUE
='#'
20133 GL_GENERATE_ALLOCA_H_FALSE
=
20141 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20142 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20144 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20145 # programs in the package would end up linked with that potentially-shared
20146 # library, inducing unnecessary run-time overhead.
20149 gl_saved_libs
=$LIBS
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20151 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20152 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20153 $as_echo_n "(cached) " >&6
20155 ac_func_search_save_LIBS
=$LIBS
20156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20159 /* Override any GCC internal prototype to avoid an error.
20160 Use char because int might match the return type of a GCC
20161 builtin and then its argument prototype would still apply. */
20165 char clock_gettime ();
20169 return clock_gettime ();
20174 for ac_lib
in '' rt posix4
; do
20175 if test -z "$ac_lib"; then
20176 ac_res
="none required"
20179 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20181 if ac_fn_c_try_link
"$LINENO"; then :
20182 ac_cv_search_clock_gettime
=$ac_res
20184 rm -f core conftest.err conftest.
$ac_objext \
20186 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20190 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20193 ac_cv_search_clock_gettime
=no
20195 rm conftest.
$ac_ext
20196 LIBS
=$ac_func_search_save_LIBS
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20199 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20200 ac_res
=$ac_cv_search_clock_gettime
20201 if test "$ac_res" != no
; then :
20202 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20203 test "$ac_cv_search_clock_gettime" = "none required" ||
20204 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
20207 for ac_func
in clock_gettime clock_settime
20209 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20210 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
20211 eval as_val
=\$
$as_ac_var
20212 if test "x$as_val" = x
""yes; then :
20213 cat >>confdefs.h
<<_ACEOF
20214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20220 LIBS
=$gl_saved_libs
20246 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20249 if test $HAVE_DUP2 = 1; then
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20251 $as_echo_n "checking whether dup2 works... " >&6; }
20252 if test "${gl_cv_func_dup2_works+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20255 if test "$cross_compiling" = yes; then :
20257 mingw
*) # on this platform, dup2 always returns 0 for success
20258 gl_cv_func_dup2_works
="guessing no" ;;
20259 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
20260 gl_cv_func_dup2_works
="guessing no" ;;
20261 linux
*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20262 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20263 gl_cv_func_dup2_works
="guessing no" ;;
20264 freebsd
*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20265 gl_cv_func_dup2_works
="guessing no" ;;
20266 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20267 gl_cv_func_dup2_works
="guessing no" ;;
20268 *) gl_cv_func_dup2_works
="guessing yes" ;;
20271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20274 #include <unistd.h>
20282 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20285 if (dup2 (1, 1) == 0)
20288 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20292 if (dup2 (0, 0) != -1)
20294 /* Many gnulib modules require POSIX conformance of EBADF. */
20295 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20304 if ac_fn_c_try_run
"$LINENO"; then :
20305 gl_cv_func_dup2_works
=yes
20307 gl_cv_func_dup2_works
=no
20309 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20310 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20316 $as_echo "$gl_cv_func_dup2_works" >&6; }
20317 case "$gl_cv_func_dup2_works" in
20326 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
20335 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
20366 EXECINFO_H
='execinfo.h'
20368 if test $ac_cv_header_execinfo_h = yes; then
20369 gl_saved_libs
=$LIBS
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20371 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20372 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20373 $as_echo_n "(cached) " >&6
20375 ac_func_search_save_LIBS
=$LIBS
20376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20377 /* end confdefs.h. */
20379 /* Override any GCC internal prototype to avoid an error.
20380 Use char because int might match the return type of a GCC
20381 builtin and then its argument prototype would still apply. */
20385 char backtrace_symbols_fd ();
20389 return backtrace_symbols_fd ();
20394 for ac_lib
in '' execinfo
; do
20395 if test -z "$ac_lib"; then
20396 ac_res
="none required"
20399 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20401 if ac_fn_c_try_link
"$LINENO"; then :
20402 ac_cv_search_backtrace_symbols_fd
=$ac_res
20404 rm -f core conftest.err conftest.
$ac_objext \
20406 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20410 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20413 ac_cv_search_backtrace_symbols_fd
=no
20415 rm conftest.
$ac_ext
20416 LIBS
=$ac_func_search_save_LIBS
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20419 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20420 ac_res
=$ac_cv_search_backtrace_symbols_fd
20421 if test "$ac_res" != no
; then :
20422 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20423 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20424 LIB_EXECINFO
=$ac_cv_search_backtrace_symbols_fd
20427 LIBS
=$gl_saved_libs
20428 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H
=''
20431 if test -n "$EXECINFO_H"; then
20440 gl_LIBOBJS
="$gl_LIBOBJS execinfo.$ac_objext"
20446 if test -n "$EXECINFO_H"; then
20447 GL_GENERATE_EXECINFO_H_TRUE
=
20448 GL_GENERATE_EXECINFO_H_FALSE
='#'
20450 GL_GENERATE_EXECINFO_H_TRUE
='#'
20451 GL_GENERATE_EXECINFO_H_FALSE
=
20462 # Persuade glibc <stdlib.h> to declare getloadavg().
20467 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20468 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20470 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20471 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
20474 gl_func_getloadavg_done
=no
20476 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20477 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20478 # to get the right answer into the cache.
20479 # For kstat on solaris, we need to test for libelf and libkvm to force the
20480 # definition of SVR4 below.
20481 if test $gl_func_getloadavg_done = no
; then
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20483 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20484 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20485 $as_echo_n "(cached) " >&6
20487 ac_check_lib_save_LIBS
=$LIBS
20489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20490 /* end confdefs.h. */
20492 /* Override any GCC internal prototype to avoid an error.
20493 Use char because int might match the return type of a GCC
20494 builtin and then its argument prototype would still apply. */
20502 return elf_begin ();
20507 if ac_fn_c_try_link
"$LINENO"; then :
20508 ac_cv_lib_elf_elf_begin
=yes
20510 ac_cv_lib_elf_elf_begin
=no
20512 rm -f core conftest.err conftest.
$ac_objext \
20513 conftest
$ac_exeext conftest.
$ac_ext
20514 LIBS
=$ac_check_lib_save_LIBS
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20517 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20518 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20523 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20524 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20525 $as_echo_n "(cached) " >&6
20527 ac_check_lib_save_LIBS
=$LIBS
20529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20532 /* Override any GCC internal prototype to avoid an error.
20533 Use char because int might match the return type of a GCC
20534 builtin and then its argument prototype would still apply. */
20542 return kvm_open ();
20547 if ac_fn_c_try_link
"$LINENO"; then :
20548 ac_cv_lib_kvm_kvm_open
=yes
20550 ac_cv_lib_kvm_kvm_open
=no
20552 rm -f core conftest.err conftest.
$ac_objext \
20553 conftest
$ac_exeext conftest.
$ac_ext
20554 LIBS
=$ac_check_lib_save_LIBS
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20557 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20558 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
20562 # Check for the 4.4BSD definition of getloadavg.
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20564 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20565 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20566 $as_echo_n "(cached) " >&6
20568 ac_check_lib_save_LIBS
=$LIBS
20569 LIBS
="-lutil $LIBS"
20570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20571 /* end confdefs.h. */
20573 /* Override any GCC internal prototype to avoid an error.
20574 Use char because int might match the return type of a GCC
20575 builtin and then its argument prototype would still apply. */
20579 char getloadavg ();
20583 return getloadavg ();
20588 if ac_fn_c_try_link
"$LINENO"; then :
20589 ac_cv_lib_util_getloadavg
=yes
20591 ac_cv_lib_util_getloadavg
=no
20593 rm -f core conftest.err conftest.
$ac_objext \
20594 conftest
$ac_exeext conftest.
$ac_ext
20595 LIBS
=$ac_check_lib_save_LIBS
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20598 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20599 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
20600 LIBS
="-lutil $LIBS" gl_func_getloadavg_done
=yes
20605 if test $gl_func_getloadavg_done = no
; then
20606 # There is a commonly available library for RS/6000 AIX.
20607 # Since it is not a standard part of AIX, it might be installed locally.
20608 gl_getloadavg_LIBS
=$LIBS
20609 LIBS
="-L/usr/local/lib $LIBS"
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20611 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20612 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20613 $as_echo_n "(cached) " >&6
20615 ac_check_lib_save_LIBS
=$LIBS
20616 LIBS
="-lgetloadavg $LIBS"
20617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20620 /* Override any GCC internal prototype to avoid an error.
20621 Use char because int might match the return type of a GCC
20622 builtin and then its argument prototype would still apply. */
20626 char getloadavg ();
20630 return getloadavg ();
20635 if ac_fn_c_try_link
"$LINENO"; then :
20636 ac_cv_lib_getloadavg_getloadavg
=yes
20638 ac_cv_lib_getloadavg_getloadavg
=no
20640 rm -f core conftest.err conftest.
$ac_objext \
20641 conftest
$ac_exeext conftest.
$ac_ext
20642 LIBS
=$ac_check_lib_save_LIBS
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20645 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20646 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
20647 LIBS
="-lgetloadavg $LIBS" gl_func_getloadavg_done
=yes
20649 LIBS
=$gl_getloadavg_LIBS
20654 # Set up the replacement function if necessary.
20655 if test $gl_func_getloadavg_done = no
; then
20658 # Solaris has libkstat which does not require root.
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20660 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20661 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20662 $as_echo_n "(cached) " >&6
20664 ac_check_lib_save_LIBS
=$LIBS
20665 LIBS
="-lkstat $LIBS"
20666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20667 /* end confdefs.h. */
20669 /* Override any GCC internal prototype to avoid an error.
20670 Use char because int might match the return type of a GCC
20671 builtin and then its argument prototype would still apply. */
20675 char kstat_open ();
20679 return kstat_open ();
20684 if ac_fn_c_try_link
"$LINENO"; then :
20685 ac_cv_lib_kstat_kstat_open
=yes
20687 ac_cv_lib_kstat_kstat_open
=no
20689 rm -f core conftest.err conftest.
$ac_objext \
20690 conftest
$ac_exeext conftest.
$ac_ext
20691 LIBS
=$ac_check_lib_save_LIBS
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20694 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20695 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
20696 cat >>confdefs.h
<<_ACEOF
20697 #define HAVE_LIBKSTAT 1
20700 LIBS
="-lkstat $LIBS"
20704 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done
=yes
20706 # AIX has libperfstat which does not require root
20707 if test $gl_func_getloadavg_done = no
; then
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20709 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20710 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20711 $as_echo_n "(cached) " >&6
20713 ac_check_lib_save_LIBS
=$LIBS
20714 LIBS
="-lperfstat $LIBS"
20715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h. */
20718 /* Override any GCC internal prototype to avoid an error.
20719 Use char because int might match the return type of a GCC
20720 builtin and then its argument prototype would still apply. */
20724 char perfstat_cpu_total ();
20728 return perfstat_cpu_total ();
20733 if ac_fn_c_try_link
"$LINENO"; then :
20734 ac_cv_lib_perfstat_perfstat_cpu_total
=yes
20736 ac_cv_lib_perfstat_perfstat_cpu_total
=no
20738 rm -f core conftest.err conftest.
$ac_objext \
20739 conftest
$ac_exeext conftest.
$ac_ext
20740 LIBS
=$ac_check_lib_save_LIBS
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20743 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20744 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x
""yes; then :
20745 cat >>confdefs.h
<<_ACEOF
20746 #define HAVE_LIBPERFSTAT 1
20749 LIBS
="-lperfstat $LIBS"
20753 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done
=yes
20756 if test $gl_func_getloadavg_done = no
; then
20757 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20758 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
20759 gl_func_getloadavg_done
=yes
20761 $as_echo "#define DGUX 1" >>confdefs.h
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20764 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20765 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20766 $as_echo_n "(cached) " >&6
20768 ac_check_lib_save_LIBS
=$LIBS
20770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20771 /* end confdefs.h. */
20773 /* Override any GCC internal prototype to avoid an error.
20774 Use char because int might match the return type of a GCC
20775 builtin and then its argument prototype would still apply. */
20779 char dg_sys_info ();
20783 return dg_sys_info ();
20788 if ac_fn_c_try_link
"$LINENO"; then :
20789 ac_cv_lib_dgc_dg_sys_info
=yes
20791 ac_cv_lib_dgc_dg_sys_info
=no
20793 rm -f core conftest.err conftest.
$ac_objext \
20794 conftest
$ac_exeext conftest.
$ac_ext
20795 LIBS
=$ac_check_lib_save_LIBS
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20798 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20799 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
20800 cat >>confdefs.h
<<_ACEOF
20801 #define HAVE_LIBDGC 1
20816 if test "x$gl_save_LIBS" = x
; then
20817 GETLOADAVG_LIBS
=$LIBS
20819 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20824 # Test whether the system declares getloadavg. Solaris has the function
20825 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20826 for ac_header
in sys
/loadavg.h
20828 ac_fn_c_check_header_mongrel
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20829 if test "x$ac_cv_header_sys_loadavg_h" = x
""yes; then :
20830 cat >>confdefs.h
<<_ACEOF
20831 #define HAVE_SYS_LOADAVG_H 1
20838 if test $ac_cv_header_sys_loadavg_h = yes; then
20839 HAVE_SYS_LOADAVG_H
=1
20841 HAVE_SYS_LOADAVG_H
=0
20843 ac_fn_c_check_decl
"$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20844 # include <sys/loadavg.h>
20846 #include <stdlib.h>
20848 if test "x$ac_cv_have_decl_getloadavg" = x
""yes; then :
20851 HAVE_DECL_GETLOADAVG
=0
20855 if test $HAVE_GETLOADAVG = 0; then
20864 gl_LIBOBJS
="$gl_LIBOBJS getloadavg.$ac_objext"
20867 # Figure out what our getloadavg.c needs.
20871 # On HPUX9, an unprivileged user can get load averages this way.
20872 if test $gl_func_getloadavg_done = no
; then
20873 for ac_func
in pstat_getdynamic
20875 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20876 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
20877 cat >>confdefs.h
<<_ACEOF
20878 #define HAVE_PSTAT_GETDYNAMIC 1
20880 gl_func_getloadavg_done
=yes
20886 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20887 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20888 # Irix 4.0.5F has the header but not the library.
20889 if test $gl_func_getloadavg_done = no
&& test "$ac_cv_lib_elf_elf_begin" = yes \
20890 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20891 gl_func_getloadavg_done
=yes
20893 $as_echo "#define SVR4 1" >>confdefs.h
20897 if test $gl_func_getloadavg_done = no
; then
20898 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20899 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
20900 gl_func_getloadavg_done
=yes
20902 $as_echo "#define UMAX 1" >>confdefs.h
20905 $as_echo "#define UMAX4_3 1" >>confdefs.h
20912 if test $gl_func_getloadavg_done = no
; then
20913 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20914 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
20915 gl_func_getloadavg_done
=yes; $as_echo "#define UMAX 1" >>confdefs.h
20922 if test $gl_func_getloadavg_done = no
; then
20923 for ac_header
in mach
/mach.h
20925 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20926 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
20927 cat >>confdefs.h
<<_ACEOF
20928 #define HAVE_MACH_MACH_H 1
20937 for ac_header
in nlist.h
20939 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20940 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
20941 cat >>confdefs.h
<<_ACEOF
20942 #define HAVE_NLIST_H 1
20944 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20946 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
20948 cat >>confdefs.h
<<_ACEOF
20949 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20956 /* end confdefs.h. */
20962 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20963 x.n_un.n_name = "";
20971 if ac_fn_c_try_link
"$LINENO"; then :
20973 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20976 rm -f core conftest.err conftest.
$ac_objext \
20977 conftest
$ac_exeext conftest.
$ac_ext
20989 GNULIB_GETLOADAVG
=1
21000 if test $REPLACE_GETOPT = 1; then
21009 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21019 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21024 GNULIB_GL_UNISTD_H_GETOPT
=1
21034 if test -n "$gl_replace_getopt"; then
21038 if test $REPLACE_GETOPT = 1; then
21042 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21048 if test $REPLACE_GETOPT = 1; then
21057 gl_LIBOBJS
="$gl_LIBOBJS getopt.$ac_objext"
21067 gl_LIBOBJS
="$gl_LIBOBJS getopt1.$ac_objext"
21072 GNULIB_GL_UNISTD_H_GETOPT
=1
21086 gl_gettimeofday_timezone
=void
21087 if test $ac_cv_func_gettimeofday != yes; then
21088 HAVE_GETTIMEOFDAY
=0
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21094 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21095 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21096 $as_echo_n "(cached) " >&6
21098 if test "$cross_compiling" = yes; then :
21099 # When cross-compiling:
21101 # Guess all is fine on glibc systems.
21102 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
21103 # If we don't know, assume the worst.
21104 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
21108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21110 #include <string.h>
21111 #include <sys/time.h>
21113 #include <stdlib.h>
21121 struct tm saved_lt;
21123 lt = localtime (&t);
21125 gettimeofday (&tv, NULL);
21126 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21132 if ac_fn_c_try_run
"$LINENO"; then :
21133 gl_cv_func_gettimeofday_clobber
=no
21135 gl_cv_func_gettimeofday_clobber
=yes
21137 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21138 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21143 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21145 case "$gl_cv_func_gettimeofday_clobber" in
21147 REPLACE_GETTIMEOFDAY
=1
21150 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21153 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21157 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21163 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21164 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21165 $as_echo_n "(cached) " >&6
21167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h. */
21169 #include <sys/time.h>
21171 int gettimeofday (struct timeval *restrict, void *restrict);
21176 /* glibc uses struct timezone * rather than the POSIX void *
21177 if _GNU_SOURCE is defined. However, since the only portable
21178 use of gettimeofday uses NULL as the second parameter, and
21179 since the glibc definition is actually more typesafe, it is
21180 not worth wrapping this to get a compliant signature. */
21181 int (*f) (struct timeval *restrict, void *restrict)
21184 return !(x | c.tv_sec | c.tv_usec);
21190 if ac_fn_c_try_compile
"$LINENO"; then :
21191 gl_cv_func_gettimeofday_posix_signature
=yes
21193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21195 #include <sys/time.h>
21196 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21206 if ac_fn_c_try_compile
"$LINENO"; then :
21207 gl_cv_func_gettimeofday_posix_signature
=almost
21209 gl_cv_func_gettimeofday_posix_signature
=no
21211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21216 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21217 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21218 gl_gettimeofday_timezone
='struct timezone'
21219 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21220 REPLACE_GETTIMEOFDAY
=1
21222 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21223 REPLACE_GETTIMEOFDAY
=1
21228 cat >>confdefs.h
<<_ACEOF
21229 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21233 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21242 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21245 for ac_header
in sys
/timeb.h
21247 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21248 if test "x$ac_cv_header_sys_timeb_h" = x
""yes; then :
21249 cat >>confdefs.h
<<_ACEOF
21250 #define HAVE_SYS_TIMEB_H 1
21257 for ac_func
in _ftime
21259 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
21260 if test "x$ac_cv_func__ftime" = x
""yes; then :
21261 cat >>confdefs.h
<<_ACEOF
21262 #define HAVE__FTIME 1
21275 GNULIB_GETTIMEOFDAY
=1
21286 if test $ac_cv_func_lstat = yes; then
21288 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21297 if test $REPLACE_LSTAT = 1; then
21306 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21330 if test $APPLE_UNIVERSAL_BUILD = 1; then
21331 # A universal build on Apple Mac OS X platforms.
21332 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21333 # But we need a configuration result that is valid in both modes.
21334 gl_cv_func_working_mktime
=no
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21337 $as_echo_n "checking for working mktime... " >&6; }
21338 if test "${gl_cv_func_working_mktime+set}" = set; then :
21339 $as_echo_n "(cached) " >&6
21341 if test "$cross_compiling" = yes; then :
21342 gl_cv_func_working_mktime
=no
21344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h. */
21346 /* Test program from Paul Eggert and Tony Leneis. */
21347 #include <limits.h>
21348 #include <stdlib.h>
21351 #ifdef HAVE_UNISTD_H
21352 # include <unistd.h>
21356 # define alarm(X) /* empty */
21359 /* Work around redefinition to rpl_putenv by other config tests. */
21362 static time_t time_t_max;
21363 static time_t time_t_min;
21365 /* Values we'll use to set the TZ environment variable. */
21366 static char *tz_strings[] = {
21367 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21368 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21370 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21372 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21373 Based on a problem report from Andreas Jaeger. */
21375 spring_forward_gap ()
21377 /* glibc (up to about 1998-10-07) failed this test. */
21380 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21381 instead of "TZ=America/Vancouver" in order to detect the bug even
21382 on systems that don't support the Olson extension, or don't have the
21383 full zoneinfo tables installed. */
21384 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21393 return mktime (&tm) != (time_t) -1;
21397 mktime_test1 (time_t now)
21400 return ! (lt = localtime (&now)) || mktime (lt) == now;
21404 mktime_test (time_t now)
21406 return (mktime_test1 (now)
21407 && mktime_test1 ((time_t) (time_t_max - now))
21408 && mktime_test1 ((time_t) (time_t_min + now)));
21414 /* Based on code from Ariel Faigon. */
21424 return tm.tm_mon == 2 && tm.tm_mday == 31;
21428 bigtime_test (int j)
21432 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21433 now = mktime (&tm);
21434 if (now != (time_t) -1)
21436 struct tm *lt = localtime (&now);
21438 && lt->tm_year == tm.tm_year
21439 && lt->tm_mon == tm.tm_mon
21440 && lt->tm_mday == tm.tm_mday
21441 && lt->tm_hour == tm.tm_hour
21442 && lt->tm_min == tm.tm_min
21443 && lt->tm_sec == tm.tm_sec
21444 && lt->tm_yday == tm.tm_yday
21445 && lt->tm_wday == tm.tm_wday
21446 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21447 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21456 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21457 ignoring leap seconds. */
21458 unsigned long int answer = 2527315200UL;
21462 tm.tm_year = 2050 - 1900;
21465 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21468 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21469 instead of "TZ=America/Vancouver" in order to detect the bug even
21470 on systems that don't support the Olson extension, or don't have the
21471 full zoneinfo tables installed. */
21472 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21476 /* Check that the result is either a failure, or close enough
21477 to the correct answer that we can assume the discrepancy is
21478 due to leap seconds. */
21479 return (t == (time_t) -1
21480 || (0 < t && answer - 120 <= t && t <= answer + 120));
21489 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21490 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21492 /* This test makes some buggy mktime implementations loop.
21493 Give up after 60 seconds; a mktime slower than that
21494 isn't worth using anyway. */
21497 time_t_max = (! time_t_signed
21499 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21501 time_t_min = (! time_t_signed
21503 : time_t_signed_magnitude
21507 delta = time_t_max / 997; /* a suitable prime number */
21508 for (i = 0; i < N_STRINGS; i++)
21511 putenv (tz_strings[i]);
21513 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21514 if (! mktime_test (t))
21516 if ((result & 2) == 0
21517 && ! (mktime_test ((time_t) 1)
21518 && mktime_test ((time_t) (60 * 60))
21519 && mktime_test ((time_t) (60 * 60 * 24))))
21522 for (j = 1; (result & 4) == 0; j <<= 1)
21524 if (! bigtime_test (j))
21526 if (INT_MAX / 2 < j)
21529 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21532 if (! irix_6_4_bug ())
21534 if (! spring_forward_gap ())
21536 if (! year_2050_test ())
21541 if ac_fn_c_try_run
"$LINENO"; then :
21542 gl_cv_func_working_mktime
=yes
21544 gl_cv_func_working_mktime
=no
21546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21547 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21553 $as_echo "$gl_cv_func_working_mktime" >&6; }
21555 if test $gl_cv_func_working_mktime = no
; then
21561 if test $REPLACE_MKTIME = 1; then
21570 gl_LIBOBJS
="$gl_LIBOBJS mktime.$ac_objext"
21591 if test $ac_cv_func_pselect = yes; then
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21593 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21594 if test "${gl_cv_sig_pselect+set}" = set; then :
21595 $as_echo_n "(cached) " >&6
21597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21598 /* end confdefs.h. */
21599 #include <sys/select.h>
21604 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21605 struct timespec const *restrict,
21606 sigset_t const *restrict) = pselect;
21612 if ac_fn_c_try_link
"$LINENO"; then :
21613 gl_cv_sig_pselect
=yes
21615 gl_cv_sig_pselect
=no
21617 rm -f core conftest.err conftest.
$ac_objext \
21618 conftest
$ac_exeext conftest.
$ac_ext
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21621 $as_echo "$gl_cv_sig_pselect" >&6; }
21624 if test $ac_cv_func_pselect = no ||
test $gl_cv_sig_pselect = no
; then
21628 if test $HAVE_PSELECT = 0 ||
test $REPLACE_PSELECT = 1; then
21637 gl_LIBOBJS
="$gl_LIBOBJS pselect.$ac_objext"
21655 LIB_PTHREAD_SIGMASK
=
21658 if test $ac_cv_func_pthread_sigmask = yes; then
21661 HAVE_PTHREAD_SIGMASK
=0
21662 REPLACE_PTHREAD_SIGMASK
=1
21668 if test $HAVE_PTHREAD_SIGMASK = 1; then
21671 if test -z "$LIB_PTHREAD_SIGMASK"; then
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21673 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21674 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21675 $as_echo_n "(cached) " >&6
21678 if test "$cross_compiling" = yes; then :
21681 freebsd
* | hpux
* | solaris | solaris2.
[2-9]*)
21682 gl_cv_func_pthread_sigmask_in_libc_works
="guessing no";;
21684 gl_cv_func_pthread_sigmask_in_libc_works
="guessing yes";;
21688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21689 /* end confdefs.h. */
21691 #include <pthread.h>
21692 #include <signal.h>
21693 #include <stddef.h>
21697 sigemptyset (&set);
21698 return pthread_sigmask (1729, &set, NULL) != 0;
21701 if ac_fn_c_try_run
"$LINENO"; then :
21702 gl_cv_func_pthread_sigmask_in_libc_works
=no
21704 gl_cv_func_pthread_sigmask_in_libc_works
=yes
21706 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21707 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21713 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21714 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21716 REPLACE_PTHREAD_SIGMASK
=1
21718 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21725 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21726 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21727 $as_echo_n "(cached) " >&6
21730 gl_save_LIBS
="$LIBS"
21731 LIBS
="$LIBS $LIB_PTHREAD_SIGMASK"
21732 if test "$cross_compiling" = yes; then :
21735 gl_cv_func_pthread_sigmask_return_works
="guessing no";;
21737 gl_cv_func_pthread_sigmask_return_works
="guessing yes";;
21741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h. */
21744 #include <pthread.h>
21745 #include <signal.h>
21746 #include <stddef.h>
21750 sigemptyset (&set);
21751 if (pthread_sigmask (1729, &set, NULL) == -1)
21756 if ac_fn_c_try_run
"$LINENO"; then :
21757 gl_cv_func_pthread_sigmask_return_works
=yes
21759 gl_cv_func_pthread_sigmask_return_works
=no
21761 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21762 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21765 LIBS
="$gl_save_LIBS"
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21769 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21770 case "$gl_cv_func_pthread_sigmask_return_works" in
21772 REPLACE_PTHREAD_SIGMASK
=1
21774 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21780 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21781 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21782 $as_echo_n "(cached) " >&6
21787 gl_cv_func_pthread_sigmask_unblock_works
="guessing no";;
21789 gl_cv_func_pthread_sigmask_unblock_works
="guessing yes";;
21791 gl_save_LIBS
="$LIBS"
21792 LIBS
="$LIBS $LIBMULTITHREAD"
21793 if test "$cross_compiling" = yes; then :
21796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21797 /* end confdefs.h. */
21799 #include <pthread.h>
21800 #include <signal.h>
21802 #include <stdlib.h>
21803 #include <unistd.h>
21804 static volatile int sigint_occurred;
21806 sigint_handler (int sig)
21813 int pid = getpid ();
21815 signal (SIGINT, sigint_handler);
21816 sigemptyset (&set);
21817 sigaddset (&set, SIGINT);
21818 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21820 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21821 if (!(system (command) == 0))
21824 if (!(sigint_occurred == 0))
21826 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21828 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21833 if ac_fn_c_try_run
"$LINENO"; then :
21836 gl_cv_func_pthread_sigmask_unblock_works
=no
21838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21839 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21842 LIBS
="$gl_save_LIBS"
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21846 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21847 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21849 REPLACE_PTHREAD_SIGMASK
=1
21851 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21857 if test $HAVE_PTHREAD_SIGMASK = 0 ||
test $REPLACE_PTHREAD_SIGMASK = 1; then
21866 gl_LIBOBJS
="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21869 if test $HAVE_PTHREAD_SIGMASK = 1; then
21871 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21881 GNULIB_PTHREAD_SIGMASK
=1
21890 if test $ac_cv_func_readlink = no
; then
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21894 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21895 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21896 $as_echo_n "(cached) " >&6
21898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21899 /* end confdefs.h. */
21900 #include <unistd.h>
21901 /* Cause compilation failure if original declaration has wrong type. */
21902 ssize_t readlink (const char *, char *, size_t);
21911 if ac_fn_c_try_compile
"$LINENO"; then :
21912 gl_cv_decl_readlink_works
=yes
21914 gl_cv_decl_readlink_works
=no
21916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21919 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21921 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21922 if test "${gl_cv_func_readlink_works+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21925 # We have readlink, so assume ln -s works.
21926 ln -s conftest.no-such conftest.link
21927 ln -s conftest.link conftest.lnk2
21928 if test "$cross_compiling" = yes; then :
21930 # Guess yes on glibc systems.
21931 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21932 # If we don't know, assume the worst.
21933 *) gl_cv_func_readlink_works
="guessing no" ;;
21937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21939 #include <unistd.h>
21945 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21950 if ac_fn_c_try_run
"$LINENO"; then :
21951 gl_cv_func_readlink_works
=yes
21953 gl_cv_func_readlink_works
=no
21955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21959 rm -f conftest.link conftest.lnk2
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21962 $as_echo "$gl_cv_func_readlink_works" >&6; }
21963 case "$gl_cv_func_readlink_works" in
21965 if test "$gl_cv_decl_readlink_works" != yes; then
21971 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21978 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21987 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22015 if test $gl_cv_have_include_next = yes; then
22016 gl_cv_next_signal_h
='<'signal.h
'>'
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22019 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22020 if test "${gl_cv_next_signal_h+set}" = set; then :
22021 $as_echo_n "(cached) " >&6
22024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h. */
22026 #include <signal.h>
22030 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22031 *) gl_absname_cpp
="$ac_cpp" ;;
22036 gl_dirsep_regex
='[/\\]'
22039 gl_dirsep_regex
='\/'
22042 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22044 gl_header_literal_regex
=`echo 'signal.h' \
22045 | sed -e "$gl_make_literal_regex_sed"`
22046 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22047 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22052 gl_cv_next_signal_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22053 sed -n "$gl_absolute_header_sed"`'"'
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22058 $as_echo "$gl_cv_next_signal_h" >&6; }
22060 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22062 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22064 gl_next_as_first_directive
='<'signal.h
'>'
22066 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22067 gl_next_as_first_directive
=$gl_cv_next_signal_h
22069 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22075 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22076 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22077 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22078 #include <signal.h>
22081 if test "x$ac_cv_type_volatile_sig_atomic_t" = x
""yes; then :
22084 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22093 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22094 #include <signal.h>
22097 if test "x$ac_cv_type_sighandler_t" = x
""yes; then :
22100 HAVE_SIGHANDLER_T
=0
22106 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22107 /* <sys/types.h> is not needed according to POSIX, but the
22108 <sys/socket.h> in i386-unknown-freebsd4.10 and
22109 powerpc-apple-darwin5.5 required it. */
22110 #include <sys/types.h>
22111 #if HAVE_SYS_SOCKET_H
22112 # include <sys/socket.h>
22113 #elif HAVE_WS2TCPIP_H
22114 # include <ws2tcpip.h>
22118 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22122 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22123 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22124 $as_echo_n "(cached) " >&6
22126 # Systems have either "struct sockaddr *" or
22127 # "void *" as the second argument to getpeername
22128 gl_cv_socklen_t_equiv
=
22129 for arg2
in "struct sockaddr" void
; do
22130 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
22131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22132 /* end confdefs.h. */
22133 #include <sys/types.h>
22134 #include <sys/socket.h>
22136 int getpeername (int, $arg2 *, $t *);
22141 getpeername (0, 0, &len);
22146 if ac_fn_c_try_compile
"$LINENO"; then :
22147 gl_cv_socklen_t_equiv
="$t"
22149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22150 test "$gl_cv_socklen_t_equiv" != "" && break
22152 test "$gl_cv_socklen_t_equiv" != "" && break
22157 if test "$gl_cv_socklen_t_equiv" = ""; then
22158 as_fn_error
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22161 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22163 cat >>confdefs.h
<<_ACEOF
22164 #define socklen_t $gl_cv_socklen_t_equiv
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22171 $as_echo_n "checking for ssize_t... " >&6; }
22172 if test "${gt_cv_ssize_t+set}" = set; then :
22173 $as_echo_n "(cached) " >&6
22175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22177 #include <sys/types.h>
22181 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22187 if ac_fn_c_try_compile
"$LINENO"; then :
22192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22195 $as_echo "$gt_cv_ssize_t" >&6; }
22196 if test $gt_cv_ssize_t = no
; then
22198 $as_echo "#define ssize_t int" >>confdefs.h
22206 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
22207 #include <sys/stat.h>
22209 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x
""yes; then :
22211 cat >>confdefs.h
<<_ACEOF
22212 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22216 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22217 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22221 /* end confdefs.h. */
22223 #include <sys/types.h>
22224 #include <sys/stat.h>
22225 #if HAVE_SYS_TIME_H
22226 # include <sys/time.h>
22229 struct timespec ts;
22242 if ac_fn_c_try_compile
"$LINENO"; then :
22243 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22245 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22250 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22251 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22253 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22257 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
22258 #include <sys/stat.h>
22260 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x
""yes; then :
22262 cat >>confdefs.h
<<_ACEOF
22263 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22268 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22269 #include <sys/stat.h>
22271 if test "x$ac_cv_member_struct_stat_st_atimensec" = x
""yes; then :
22273 cat >>confdefs.h
<<_ACEOF
22274 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22279 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
22280 #include <sys/stat.h>
22282 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x
""yes; then :
22284 cat >>confdefs.h
<<_ACEOF
22285 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22301 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
22302 #include <sys/stat.h>
22304 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x
""yes; then :
22306 cat >>confdefs.h
<<_ACEOF
22307 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22312 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22313 #include <sys/stat.h>
22315 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x
""yes; then :
22317 cat >>confdefs.h
<<_ACEOF
22318 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22323 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
22324 #include <sys/stat.h>
22326 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x
""yes; then :
22328 cat >>confdefs.h
<<_ACEOF
22329 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22342 $as_echo_n "checking for working stdalign.h... " >&6; }
22343 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22347 /* end confdefs.h. */
22348 #include <stdalign.h>
22349 #include <stddef.h>
22351 /* Test that alignof yields a result consistent with offsetof.
22352 This catches GCC bug 52023
22353 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22355 template <class t> struct alignof_helper { char a; t b; };
22356 # define ao(type) offsetof (alignof_helper<type>, b)
22358 # define ao(type) offsetof (struct { char a; type b; }, b)
22360 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22361 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22362 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22364 /* Test _Alignas only on platforms where gnulib can help. */
22366 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22367 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22368 int alignas (8) alignas_int = 1;
22369 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22380 if ac_fn_c_try_compile
"$LINENO"; then :
22381 gl_cv_header_working_stdalign_h
=yes
22383 gl_cv_header_working_stdalign_h
=no
22385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22388 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22390 if test $gl_cv_header_working_stdalign_h = yes; then
22393 STDALIGN_H
='stdalign.h'
22397 if test -n "$STDALIGN_H"; then
22398 GL_GENERATE_STDALIGN_H_TRUE
=
22399 GL_GENERATE_STDALIGN_H_FALSE
='#'
22401 GL_GENERATE_STDALIGN_H_TRUE
='#'
22402 GL_GENERATE_STDALIGN_H_FALSE
=
22408 NEXT_STDARG_H
='<stdarg.h>'
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22410 $as_echo_n "checking for va_copy... " >&6; }
22411 if test "${gl_cv_func_va_copy+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h. */
22417 #include <stdarg.h>
22423 void (*func) (va_list, va_list) = va_copy;
22430 if ac_fn_c_try_compile
"$LINENO"; then :
22431 gl_cv_func_va_copy
=yes
22433 gl_cv_func_va_copy
=no
22435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22439 $as_echo "$gl_cv_func_va_copy" >&6; }
22440 if test $gl_cv_func_va_copy = no
; then
22441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22442 /* end confdefs.h. */
22443 #if defined _AIX && !defined __GNUC__
22448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22449 $EGREP "vaccine" >/dev
/null
2>&1; then :
22456 if test $gl_aixcc = yes; then
22466 if test $gl_cv_have_include_next = yes; then
22467 gl_cv_next_stdarg_h
='<'stdarg.h
'>'
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22470 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22471 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22472 $as_echo_n "(cached) " >&6
22475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22477 #include <stdarg.h>
22481 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22482 *) gl_absname_cpp
="$ac_cpp" ;;
22487 gl_dirsep_regex
='[/\\]'
22490 gl_dirsep_regex
='\/'
22493 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22495 gl_header_literal_regex
=`echo 'stdarg.h' \
22496 | sed -e "$gl_make_literal_regex_sed"`
22497 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22498 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22503 gl_cv_next_stdarg_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22504 sed -n "$gl_absolute_header_sed"`'"'
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22509 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22511 NEXT_STDARG_H
=$gl_cv_next_stdarg_h
22513 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22514 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22515 gl_next_as_first_directive
='<'stdarg.h
'>'
22517 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22518 gl_next_as_first_directive
=$gl_cv_next_stdarg_h
22520 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
=$gl_next_as_first_directive
22525 if test "$gl_cv_next_stdarg_h" = '""'; then
22526 gl_cv_next_stdarg_h
='"///usr/include/stdarg.h"'
22527 NEXT_STDARG_H
="$gl_cv_next_stdarg_h"
22531 saved_as_echo_n
="$as_echo_n"
22533 if test "${gl_cv_func___va_copy+set}" = set; then :
22534 $as_echo_n "(cached) " >&6
22537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22538 /* end confdefs.h. */
22539 #include <stdarg.h>
22552 if ac_fn_c_try_compile
"$LINENO"; then :
22553 gl_cv_func___va_copy
=yes
22555 gl_cv_func___va_copy
=no
22557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22560 as_echo_n
="$saved_as_echo_n"
22562 if test $gl_cv_func___va_copy = yes; then
22564 $as_echo "#define va_copy __va_copy" >>confdefs.h
22569 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22575 if test -n "$STDARG_H"; then
22576 GL_GENERATE_STDARG_H_TRUE
=
22577 GL_GENERATE_STDARG_H_FALSE
='#'
22579 GL_GENERATE_STDARG_H_TRUE
='#'
22580 GL_GENERATE_STDARG_H_FALSE
=
22588 # Define two additional variables used in the Makefile substitution.
22590 if test "$ac_cv_header_stdbool_h" = yes; then
22593 STDBOOL_H
='stdbool.h'
22596 if test -n "$STDBOOL_H"; then
22597 GL_GENERATE_STDBOOL_H_TRUE
=
22598 GL_GENERATE_STDBOOL_H_FALSE
='#'
22600 GL_GENERATE_STDBOOL_H_TRUE
='#'
22601 GL_GENERATE_STDBOOL_H_FALSE
=
22605 if test "$ac_cv_type__Bool" = yes; then
22616 if test $gt_cv_c_wchar_t = no
; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22621 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22622 if test "${gl_cv_decl_null_works+set}" = set; then :
22623 $as_echo_n "(cached) " >&6
22625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22627 #include <stddef.h>
22628 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22638 if ac_fn_c_try_compile
"$LINENO"; then :
22639 gl_cv_decl_null_works
=yes
22641 gl_cv_decl_null_works
=no
22643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22646 $as_echo "$gl_cv_decl_null_works" >&6; }
22647 if test $gl_cv_decl_null_works = no
; then
22652 if test -n "$STDDEF_H"; then
22653 GL_GENERATE_STDDEF_H_TRUE
=
22654 GL_GENERATE_STDDEF_H_FALSE
='#'
22656 GL_GENERATE_STDDEF_H_TRUE
='#'
22657 GL_GENERATE_STDDEF_H_FALSE
=
22660 if test -n "$STDDEF_H"; then
22669 if test $gl_cv_have_include_next = yes; then
22670 gl_cv_next_stddef_h
='<'stddef.h
'>'
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22673 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22674 if test "${gl_cv_next_stddef_h+set}" = set; then :
22675 $as_echo_n "(cached) " >&6
22678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22679 /* end confdefs.h. */
22680 #include <stddef.h>
22684 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22685 *) gl_absname_cpp
="$ac_cpp" ;;
22690 gl_dirsep_regex
='[/\\]'
22693 gl_dirsep_regex
='\/'
22696 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22698 gl_header_literal_regex
=`echo 'stddef.h' \
22699 | sed -e "$gl_make_literal_regex_sed"`
22700 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22701 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22706 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22707 sed -n "$gl_absolute_header_sed"`'"'
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22712 $as_echo "$gl_cv_next_stddef_h" >&6; }
22714 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22716 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22717 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22718 gl_next_as_first_directive
='<'stddef.h
'>'
22720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22721 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22723 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22742 if test $gl_cv_have_include_next = yes; then
22743 gl_cv_next_stdio_h
='<'stdio.h
'>'
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22746 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22747 if test "${gl_cv_next_stdio_h+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22752 /* end confdefs.h. */
22757 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22758 *) gl_absname_cpp
="$ac_cpp" ;;
22763 gl_dirsep_regex
='[/\\]'
22766 gl_dirsep_regex
='\/'
22769 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22771 gl_header_literal_regex
=`echo 'stdio.h' \
22772 | sed -e "$gl_make_literal_regex_sed"`
22773 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22774 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22779 gl_cv_next_stdio_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22780 sed -n "$gl_absolute_header_sed"`'"'
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22785 $as_echo "$gl_cv_next_stdio_h" >&6; }
22787 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22789 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22790 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22791 gl_next_as_first_directive
='<'stdio.h
'>'
22793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22794 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22796 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22805 cat >>confdefs.h
<<_ACEOF
22806 #define GNULIB_FSCANF 1
22813 cat >>confdefs.h
<<_ACEOF
22814 #define GNULIB_SCANF 1
22850 if test $gl_cv_have_include_next = yes; then
22851 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22854 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22855 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22856 $as_echo_n "(cached) " >&6
22859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h. */
22861 #include <stdlib.h>
22865 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22866 *) gl_absname_cpp
="$ac_cpp" ;;
22871 gl_dirsep_regex
='[/\\]'
22874 gl_dirsep_regex
='\/'
22877 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22879 gl_header_literal_regex
=`echo 'stdlib.h' \
22880 | sed -e "$gl_make_literal_regex_sed"`
22881 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22882 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22887 gl_cv_next_stdlib_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22888 sed -n "$gl_absolute_header_sed"`'"'
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22893 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22895 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22897 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22899 gl_next_as_first_directive
='<'stdlib.h
'>'
22901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22902 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22904 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22914 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22922 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22931 if test "$ac_cv_have_decl_strtoimax" != yes; then
22932 HAVE_DECL_STRTOIMAX
=0
22935 if test $ac_cv_func_strtoimax = yes; then
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22938 $as_echo_n "checking whether strtoimax works... " >&6; }
22939 if test "${gl_cv_func_strtoimax+set}" = set; then :
22940 $as_echo_n "(cached) " >&6
22942 if test "$cross_compiling" = yes; then :
22944 # Guess no on AIX 5.
22945 aix5
*) gl_cv_func_strtoimax
="guessing no" ;;
22946 # Guess yes otherwise.
22947 *) gl_cv_func_strtoimax
="guessing yes" ;;
22951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22955 #include <string.h>
22956 #include <inttypes.h>
22959 if (sizeof (intmax_t) > sizeof (int))
22961 const char *s = "4294967295";
22965 res = strtoimax (s, &p, 10);
22966 if (p != s + strlen (s))
22970 if (res != (intmax_t) 65535 * (intmax_t) 65537)
22975 const char *s = "2147483647";
22979 res = strtoimax (s, &p, 10);
22980 if (p != s + strlen (s))
22984 if (res != 2147483647)
22991 if ac_fn_c_try_run
"$LINENO"; then :
22992 gl_cv_func_strtoimax
=yes
22994 gl_cv_func_strtoimax
=no
22996 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22997 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23003 $as_echo "$gl_cv_func_strtoimax" >&6; }
23004 case "$gl_cv_func_strtoimax" in
23005 *no
) REPLACE_STRTOIMAX
=1 ;;
23011 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
23020 gl_LIBOBJS
="$gl_LIBOBJS strtoimax.$ac_objext"
23023 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23024 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
23030 cat >>confdefs.h
<<_ACEOF
23031 #define HAVE_DECL_STRTOLL $ac_have_decl
23052 if test "$ac_cv_have_decl_strtoumax" != yes; then
23053 HAVE_DECL_STRTOUMAX
=0
23056 if test $ac_cv_func_strtoumax = no
; then
23065 gl_LIBOBJS
="$gl_LIBOBJS strtoumax.$ac_objext"
23068 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23069 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
23075 cat >>confdefs.h
<<_ACEOF
23076 #define HAVE_DECL_STRTOULL $ac_have_decl
23095 if test $ac_cv_func_symlink = no
; then
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23099 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23100 if test "${gl_cv_func_symlink_works+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23103 if test "$cross_compiling" = yes; then :
23105 # Guess yes on glibc systems.
23106 *-gnu*) gl_cv_func_symlink_works
="guessing yes" ;;
23107 # If we don't know, assume the worst.
23108 *) gl_cv_func_symlink_works
="guessing no" ;;
23112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23113 /* end confdefs.h. */
23114 #include <unistd.h>
23120 if (!symlink ("a", "conftest.link/"))
23122 if (symlink ("conftest.f", "conftest.lnk2"))
23124 else if (!symlink ("a", "conftest.lnk2/"))
23132 if ac_fn_c_try_run
"$LINENO"; then :
23133 gl_cv_func_symlink_works
=yes
23135 gl_cv_func_symlink_works
=no
23137 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23138 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23141 rm -f conftest.f conftest.link conftest.lnk2
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23144 $as_echo "$gl_cv_func_symlink_works" >&6; }
23145 case "$gl_cv_func_symlink_works" in
23153 if test $HAVE_SYMLINK = 0 ||
test $REPLACE_SYMLINK = 1; then
23162 gl_LIBOBJS
="$gl_LIBOBJS symlink.$ac_objext"
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23180 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23181 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23182 $as_echo_n "(cached) " >&6
23185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h. */
23187 #include <sys/select.h>
23196 if ac_fn_c_try_compile
"$LINENO"; then :
23197 gl_cv_header_sys_select_h_selfcontained
=yes
23199 gl_cv_header_sys_select_h_selfcontained
=no
23201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23202 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h. */
23205 #include <sys/select.h>
23209 int memset; int bzero;
23215 if ac_fn_c_try_compile
"$LINENO"; then :
23216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23218 #include <sys/select.h>
23224 #define memset nonexistent_memset
23229 void *memset (void *, int, unsigned long);
23231 #define bzero nonexistent_bzero
23236 void bzero (void *, unsigned long);
23245 if ac_fn_c_try_link
"$LINENO"; then :
23248 gl_cv_header_sys_select_h_selfcontained
=no
23250 rm -f core conftest.err conftest.
$ac_objext \
23251 conftest
$ac_exeext conftest.
$ac_ext
23254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23259 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23269 if test $gl_cv_have_include_next = yes; then
23270 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23273 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23274 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23275 $as_echo_n "(cached) " >&6
23278 if test $ac_cv_header_sys_select_h = yes; then
23281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23282 /* end confdefs.h. */
23283 #include <sys/select.h>
23287 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23288 *) gl_absname_cpp
="$ac_cpp" ;;
23293 gl_dirsep_regex
='[/\\]'
23296 gl_dirsep_regex
='\/'
23299 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23301 gl_header_literal_regex
=`echo 'sys/select.h' \
23302 | sed -e "$gl_make_literal_regex_sed"`
23303 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23304 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23309 gl_cv_next_sys_select_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23310 sed -n "$gl_absolute_header_sed"`'"'
23312 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23318 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23320 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
23322 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23324 gl_next_as_first_directive
='<'sys
/select.h
'>'
23326 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23327 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
23329 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
23334 if test $ac_cv_header_sys_select_h = yes; then
23335 HAVE_SYS_SELECT_H
=1
23337 HAVE_SYS_SELECT_H
=0
23344 if test $ac_cv_header_sys_socket_h != yes; then
23345 for ac_header
in winsock2.h
23347 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23348 if test "x$ac_cv_header_winsock2_h" = x
""yes; then :
23349 cat >>confdefs.h
<<_ACEOF
23350 #define HAVE_WINSOCK2_H 1
23358 if test "$ac_cv_header_winsock2_h" = yes; then
23360 UNISTD_H_HAVE_WINSOCK2_H
=1
23361 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23387 if test $gl_cv_have_include_next = yes; then
23388 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23391 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23392 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23393 $as_echo_n "(cached) " >&6
23396 if test $ac_cv_header_sys_stat_h = yes; then
23399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23400 /* end confdefs.h. */
23401 #include <sys/stat.h>
23405 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23406 *) gl_absname_cpp
="$ac_cpp" ;;
23411 gl_dirsep_regex
='[/\\]'
23414 gl_dirsep_regex
='\/'
23417 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23419 gl_header_literal_regex
=`echo 'sys/stat.h' \
23420 | sed -e "$gl_make_literal_regex_sed"`
23421 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23422 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23427 gl_cv_next_sys_stat_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23428 sed -n "$gl_absolute_header_sed"`'"'
23430 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23436 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23438 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23440 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23441 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23442 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23445 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23447 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23459 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23461 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23465 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23466 #include <sys/stat.h>
23468 if test "x$ac_cv_type_nlink_t" = x
""yes; then :
23472 $as_echo "#define nlink_t int" >>confdefs.h
23493 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23495 if test "x$ac_cv_have_decl_localtime_r" = x
""yes; then :
23501 cat >>confdefs.h
<<_ACEOF
23502 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23505 if test $ac_cv_have_decl_localtime_r = no
; then
23506 HAVE_DECL_LOCALTIME_R
=0
23510 if test $ac_cv_func_localtime_r = yes; then
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23513 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23514 if test "${gl_cv_time_r_posix+set}" = set; then :
23515 $as_echo_n "(cached) " >&6
23517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23518 /* end confdefs.h. */
23523 /* We don't need to append 'restrict's to the argument types,
23524 even though the POSIX signature has the 'restrict's,
23525 since C99 says they can't affect type compatibility. */
23526 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23528 /* Check the return type is a pointer.
23529 On HP-UX 10 it is 'int'. */
23530 *localtime_r (0, 0);
23536 if ac_fn_c_try_compile
"$LINENO"; then :
23537 gl_cv_time_r_posix
=yes
23539 gl_cv_time_r_posix
=no
23541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23545 $as_echo "$gl_cv_time_r_posix" >&6; }
23546 if test $gl_cv_time_r_posix = yes; then
23547 REPLACE_LOCALTIME_R
=0
23549 REPLACE_LOCALTIME_R
=1
23555 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
23564 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
23595 if test $gl_cv_have_include_next = yes; then
23596 gl_cv_next_unistd_h
='<'unistd.h
'>'
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23599 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23600 if test "${gl_cv_next_unistd_h+set}" = set; then :
23601 $as_echo_n "(cached) " >&6
23604 if test $ac_cv_header_unistd_h = yes; then
23607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23608 /* end confdefs.h. */
23609 #include <unistd.h>
23613 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23614 *) gl_absname_cpp
="$ac_cpp" ;;
23619 gl_dirsep_regex
='[/\\]'
23622 gl_dirsep_regex
='\/'
23625 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23627 gl_header_literal_regex
=`echo 'unistd.h' \
23628 | sed -e "$gl_make_literal_regex_sed"`
23629 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23630 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23635 gl_cv_next_unistd_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23636 sed -n "$gl_absolute_header_sed"`'"'
23638 gl_cv_next_unistd_h
='<'unistd.h
'>'
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23644 $as_echo "$gl_cv_next_unistd_h" >&6; }
23646 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23648 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23649 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23650 gl_next_as_first_directive
='<'unistd.h
'>'
23652 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23653 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23655 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23660 if test $ac_cv_header_unistd_h = yes; then
23679 if test $ac_cv_func_futimens = no
&& test $ac_cv_func_futimesat = yes; then
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23681 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23682 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23683 $as_echo_n "(cached) " >&6
23685 touch conftest.
file
23686 if test "$cross_compiling" = yes; then :
23688 # Guess yes on glibc systems.
23689 *-gnu*) gl_cv_func_futimesat_works
="guessing yes" ;;
23690 # If we don't know, assume the worst.
23691 *) gl_cv_func_futimesat_works
="guessing no" ;;
23695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23696 /* end confdefs.h. */
23698 #include <stddef.h>
23699 #include <sys/times.h>
23705 int fd = open ("conftest.file", O_RDWR);
23706 if (fd < 0) return 1;
23707 if (futimesat (fd, NULL, NULL)) return 2;
23713 if ac_fn_c_try_run
"$LINENO"; then :
23714 gl_cv_func_futimesat_works
=yes
23716 gl_cv_func_futimesat_works
=no
23718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23722 rm -f conftest.
file
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23725 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23726 case "$gl_cv_func_futimesat_works" in
23730 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23736 gl_gnulib_enabled_dosname
=false
23737 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=false
23738 gl_gnulib_enabled_pathmax
=false
23739 gl_gnulib_enabled_stat
=false
23740 gl_gnulib_enabled_strtoll
=false
23741 gl_gnulib_enabled_strtoull
=false
23742 gl_gnulib_enabled_verify
=false
23743 func_gl_gnulib_m4code_dosname
()
23745 if ! $gl_gnulib_enabled_dosname; then
23746 gl_gnulib_enabled_dosname
=true
23749 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
()
23751 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23754 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36
=true
23757 func_gl_gnulib_m4code_pathmax
()
23759 if ! $gl_gnulib_enabled_pathmax; then
23763 gl_gnulib_enabled_pathmax
=true
23766 func_gl_gnulib_m4code_stat
()
23768 if ! $gl_gnulib_enabled_stat; then
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23773 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23774 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23775 $as_echo_n "(cached) " >&6
23777 if test "$cross_compiling" = yes; then :
23779 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23780 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23784 /* end confdefs.h. */
23785 #include <sys/stat.h>
23790 struct stat st; return stat (".", &st) != stat ("./", &st);
23795 if ac_fn_c_try_run
"$LINENO"; then :
23796 gl_cv_func_stat_dir_slash
=yes
23798 gl_cv_func_stat_dir_slash
=no
23800 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23801 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23806 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23808 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23809 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23813 # Assume that if we have lstat, we can also check symlinks.
23814 if test $ac_cv_func_lstat = yes; then
23815 ln -s conftest.tmp conftest.lnk
23817 if test "$cross_compiling" = yes; then :
23819 # Guess yes on glibc systems.
23820 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23821 # If we don't know, assume the worst.
23822 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23827 /* end confdefs.h. */
23828 #include <sys/stat.h>
23835 if (!stat ("conftest.tmp/", &st))
23838 if (!stat ("conftest.lnk/", &st))
23847 if ac_fn_c_try_run
"$LINENO"; then :
23848 gl_cv_func_stat_file_slash
=yes
23850 gl_cv_func_stat_file_slash
=no
23852 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23853 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23856 rm -f conftest.tmp conftest.lnk
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23859 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23860 case $gl_cv_func_stat_dir_slash in
23861 *no
) REPLACE_STAT
=1
23863 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23866 case $gl_cv_func_stat_file_slash in
23867 *no
) REPLACE_STAT
=1
23869 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23873 if test $REPLACE_STAT = 1; then
23882 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23900 gl_gnulib_enabled_stat
=true
23901 if test $REPLACE_STAT = 1; then
23902 func_gl_gnulib_m4code_dosname
23904 if test $REPLACE_STAT = 1; then
23905 func_gl_gnulib_m4code_pathmax
23907 if test $REPLACE_STAT = 1; then
23908 func_gl_gnulib_m4code_verify
23912 func_gl_gnulib_m4code_strtoll
()
23914 if ! $gl_gnulib_enabled_strtoll; then
23918 if test "$ac_cv_type_long_long_int" = yes; then
23919 for ac_func
in strtoll
23921 ac_fn_c_check_func
"$LINENO" "strtoll" "ac_cv_func_strtoll"
23922 if test "x$ac_cv_func_strtoll" = x
""yes; then :
23923 cat >>confdefs.h
<<_ACEOF
23924 #define HAVE_STRTOLL 1
23930 if test $ac_cv_func_strtoll = no
; then
23935 if test $HAVE_STRTOLL = 0; then
23944 gl_LIBOBJS
="$gl_LIBOBJS strtoll.$ac_objext"
23961 gl_gnulib_enabled_strtoll
=true
23964 func_gl_gnulib_m4code_strtoull
()
23966 if ! $gl_gnulib_enabled_strtoull; then
23970 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
23971 for ac_func
in strtoull
23973 ac_fn_c_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
23974 if test "x$ac_cv_func_strtoull" = x
""yes; then :
23975 cat >>confdefs.h
<<_ACEOF
23976 #define HAVE_STRTOULL 1
23982 if test $ac_cv_func_strtoull = no
; then
23987 if test $HAVE_STRTOULL = 0; then
23996 gl_LIBOBJS
="$gl_LIBOBJS strtoull.$ac_objext"
24013 gl_gnulib_enabled_strtoull
=true
24016 func_gl_gnulib_m4code_verify
()
24018 if ! $gl_gnulib_enabled_verify; then
24019 gl_gnulib_enabled_verify
=true
24022 if test $REPLACE_GETOPT = 1; then
24023 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24025 if test $REPLACE_LSTAT = 1; then
24026 func_gl_gnulib_m4code_dosname
24028 if test $REPLACE_LSTAT = 1; then
24029 func_gl_gnulib_m4code_stat
24031 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24032 func_gl_gnulib_m4code_stat
24034 if { test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24035 func_gl_gnulib_m4code_strtoll
24037 if test $HAVE_STRTOIMAX = 0 ||
test $REPLACE_STRTOIMAX = 1; then
24038 func_gl_gnulib_m4code_verify
24040 if test $ac_cv_func_strtoumax = no
&& test $ac_cv_type_unsigned_long_long_int = yes; then
24041 func_gl_gnulib_m4code_strtoull
24043 if test $ac_cv_func_strtoumax = no
; then
24044 func_gl_gnulib_m4code_verify
24047 if $gl_gnulib_enabled_dosname; then
24048 gl_GNULIB_ENABLED_dosname_TRUE
=
24049 gl_GNULIB_ENABLED_dosname_FALSE
='#'
24051 gl_GNULIB_ENABLED_dosname_TRUE
='#'
24052 gl_GNULIB_ENABLED_dosname_FALSE
=
24055 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24056 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
=
24057 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
='#'
24059 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
='#'
24060 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
=
24063 if $gl_gnulib_enabled_pathmax; then
24064 gl_GNULIB_ENABLED_pathmax_TRUE
=
24065 gl_GNULIB_ENABLED_pathmax_FALSE
='#'
24067 gl_GNULIB_ENABLED_pathmax_TRUE
='#'
24068 gl_GNULIB_ENABLED_pathmax_FALSE
=
24071 if $gl_gnulib_enabled_stat; then
24072 gl_GNULIB_ENABLED_stat_TRUE
=
24073 gl_GNULIB_ENABLED_stat_FALSE
='#'
24075 gl_GNULIB_ENABLED_stat_TRUE
='#'
24076 gl_GNULIB_ENABLED_stat_FALSE
=
24079 if $gl_gnulib_enabled_strtoll; then
24080 gl_GNULIB_ENABLED_strtoll_TRUE
=
24081 gl_GNULIB_ENABLED_strtoll_FALSE
='#'
24083 gl_GNULIB_ENABLED_strtoll_TRUE
='#'
24084 gl_GNULIB_ENABLED_strtoll_FALSE
=
24087 if $gl_gnulib_enabled_strtoull; then
24088 gl_GNULIB_ENABLED_strtoull_TRUE
=
24089 gl_GNULIB_ENABLED_strtoull_FALSE
='#'
24091 gl_GNULIB_ENABLED_strtoull_TRUE
='#'
24092 gl_GNULIB_ENABLED_strtoull_FALSE
=
24095 if $gl_gnulib_enabled_verify; then
24096 gl_GNULIB_ENABLED_verify_TRUE
=
24097 gl_GNULIB_ENABLED_verify_FALSE
='#'
24099 gl_GNULIB_ENABLED_verify_TRUE
='#'
24100 gl_GNULIB_ENABLED_verify_FALSE
=
24103 # End of code from modules
24124 gl_source_base
='tests'
24125 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
24127 gl_module_indicator_condition
=$gltests_WITNESS
24138 LIBGNU_LIBDEPS
="$gl_libdeps"
24140 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24143 CFLAGS
=$SAVE_CFLAGS
24147 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
24150 ## The -headerpad option tells ld (see man page) to leave room at the
24151 ## end of the header for adding load commands. Needed for dumping.
24152 ## 0x690 is the total size of 30 segment load commands (at 56
24153 ## each); under Cocoa 31 commands are required.
24154 if test "$HAVE_NS" = "yes"; then
24155 libs_nsgui
="-framework AppKit"
24156 headerpad_extra
=6C8
24159 headerpad_extra
=690
24161 LD_SWITCH_SYSTEM_TEMACS
="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24163 ## This is here because src/Makefile.in did some extra fiddling around
24164 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24165 ## #ifndef LD_SWITCH_SYSTEM
24166 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24167 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24168 ## not using gcc, darwin.
24169 ## Because this was done in src/Makefile.in, the resulting part of
24170 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24171 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24172 ## rather than LD_SWITCH_SYSTEM.
24173 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24174 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
24177 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24178 ## find X at run-time.
24179 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24180 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24181 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24182 ## had different values in configure (in ac_link) and src/Makefile.in.
24183 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24184 gnu
*) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24186 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
24189 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24190 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24199 ## gnu: GNU needs its own crt0.
24200 aix4-2|cygwin|darwin|gnu|hpux
*|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
24202 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24203 ## library search parth, i.e. it won't search /usr/lib for libc and
24204 ## friends. Using -nostartfiles instead avoids this problem, and
24205 ## will also work on earlier NetBSD releases.
24206 netbsd|openbsd
) LD_FIRSTFLAG
="-nostartfiles" ;;
24208 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24209 ## MkLinux/LinuxPPC needs this.
24210 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24212 case "$canonical" in
24213 powerpc
*|s390x-
*) LD_FIRSTFLAG
="-nostdlib" ;;
24219 if test "x$ORDINARY_LINK" = "xyes"; then
24223 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24226 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24227 ## freebsd, gnu-* not on powerpc*|s390x*.
24228 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24230 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24231 ## places that are difficult to figure out at make time. Fortunately,
24232 ## these same versions allow you to pass arbitrary flags on to the
24233 ## linker, so there is no reason not to use it as a linker.
24235 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24236 ## searching for libraries in its internal directories, so we have to
24237 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24238 LD_FIRSTFLAG
="-nostdlib"
24241 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24242 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG
="-rdynamic"
24247 ## FIXME? The logic here is not precisely the same as that above.
24248 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24249 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24251 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24254 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
24257 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24258 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24264 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24265 ## immediately undefine it again and redefine it to empty.
24266 ## Was the C_SWITCH_X_SITE part really necessary?
24267 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24273 ## Ask GCC where to find libgcc.a.
24274 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24278 ## Common for all window systems
24279 if test "$window_system" != "none"; then
24281 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24284 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24286 WINDOW_SYSTEM_OBJ
="fontset.o fringe.o image.o"
24293 #### Report on what we decided to do.
24294 #### Report GTK as a toolkit, even if it doesn't use Xt.
24295 #### It makes printing result more understandable as using GTK sets
24296 #### toolkit_scroll_bars to yes by default.
24297 if test "${HAVE_GTK}" = "yes"; then
24298 USE_X_TOOLKIT
="$USE_GTK_TOOLKIT"
24302 Configured for \`${canonical}'.
24304 Where should the build process find the source code? ${srcdir}
24305 What compiler should emacs be built with? ${CC} ${CFLAGS}
24306 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24307 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24308 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24309 What window system should Emacs use? ${window_system}
24310 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24312 if test -n "${x_includes}"; then
24313 echo " Where do we find X Windows header files? ${x_includes}"
24315 echo " Where do we find X Windows header files? Standard dirs"
24317 if test -n "${x_libraries}"; then
24318 echo " Where do we find X Windows libraries? ${x_libraries}"
24320 echo " Where do we find X Windows libraries? Standard dirs"
24323 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24324 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24325 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24326 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24327 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24328 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24329 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24330 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24332 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24333 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24334 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24335 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24336 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24337 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24338 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24340 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24341 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24342 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24343 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24345 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24348 if test -n "${EMACSDATA}"; then
24349 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24351 if test -n "${EMACSDOC}"; then
24352 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24357 if test "$HAVE_NS" = "yes"; then
24359 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24360 The installed application will go to nextstep/Emacs.app and can be
24361 run or moved from there."
24362 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24363 echo "The application will be fully self-contained."
24365 echo "The lisp resources for the application will be installed under ${prefix}.
24366 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24367 to run if these resources are not installed."
24372 if test "${opsys}" = "cygwin"; then
24374 1.5.
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24375 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24381 # Remove any trailing slashes in these variables.
24382 test "${prefix}" != NONE
&&
24383 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24384 test "${exec_prefix}" != NONE
&&
24385 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24387 if test "$HAVE_NS" = "yes"; then
24388 if test "$NS_IMPL_GNUSTEP" = yes; then
24389 ac_config_files
="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
24392 ac_config_files
="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
24397 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 nextstep/Makefile"
24399 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 nextstep/Makefile"
24402 opt_makefile
=test
/automated
/Makefile
24404 if test -f $srcdir/${opt_makefile}.
in; then
24405 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24406 ac_config_files
="$ac_config_files test/automated/Makefile"
24411 opt_makefile
=admin
/unidata
/Makefile
24413 if test -f $srcdir/${opt_makefile}.
in; then
24414 SUBDIR_MAKEFILES
="$SUBDIR_MAKEFILES $opt_makefile"
24415 ac_config_files
="$ac_config_files admin/unidata/Makefile"
24420 SUBDIR_MAKEFILES_IN
=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24424 ac_config_commands
="$ac_config_commands mkdirs"
24427 ac_config_commands
="$ac_config_commands epaths"
24430 ac_config_commands
="$ac_config_commands gdbinit"
24433 cat >confcache
<<\_ACEOF
24434 # This file is a shell script that caches the results of configure
24435 # tests run on this system so they can be shared between configure
24436 # scripts and configure runs, see configure's option --config-cache.
24437 # It is not useful on other systems. If it contains results you don't
24438 # want to keep, you may remove or edit it.
24440 # config.status only pays attention to the cache file if you give it
24441 # the --recheck option to rerun configure.
24443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24445 # following values.
24449 # The following way of writing the cache mishandles newlines in values,
24450 # but we know of no workaround that is simple, portable, and efficient.
24451 # So, we kill variables containing newlines.
24452 # Ultrix sh set writes to stderr and can't be redirected directly,
24453 # and sets the high bit in the cache file unless we assign to the vars.
24455 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24456 eval ac_val
=\$
$ac_var
24460 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24464 _ | IFS | as_nl
) ;; #(
24465 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24466 *) { eval $ac_var=; unset $ac_var;} ;;
24472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24473 *${as_nl}ac_space
=\
*)
24474 # `set' does not quote correctly, so add quotes: double-quote
24475 # substitution turns \\\\ into \\, and sed turns \\ into \.
24478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24481 # `set' quotes correctly as required by POSIX, so do not add quotes.
24482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24495 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24496 if test -w "$cache_file"; then
24497 test "x$cache_file" != "x/dev/null" &&
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24499 $as_echo "$as_me: updating cache $cache_file" >&6;}
24500 cat confcache
>$cache_file
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24503 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24508 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24509 # Let make expand exec_prefix.
24510 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24512 DEFS
=-DHAVE_CONFIG_H
24516 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24517 # 1. Remove the extension, and $U if already installed.
24518 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24519 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24520 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24521 # will be set to the directory where LIBOBJS objects are built.
24522 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24523 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24525 LIBOBJS
=$ac_libobjs
24527 LTLIBOBJS
=$ac_ltlibobjs
24530 if test -n "$EXEEXT"; then
24532 am__EXEEXT_FALSE
='#'
24534 am__EXEEXT_TRUE
='#'
24538 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24539 as_fn_error
"conditional \"AMDEP\" was never defined.
24540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24543 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
24544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24546 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24547 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
24548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24550 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24551 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24555 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24556 as_fn_error
"conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24559 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24560 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
24561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24563 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24564 as_fn_error
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24567 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24568 as_fn_error
"conditional \"GL_GENERATE_STDARG_H\" was never defined.
24569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24571 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24572 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24575 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24576 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24579 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24580 as_fn_error
"conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24583 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24584 as_fn_error
"conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24587 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24588 as_fn_error
"conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24591 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24592 as_fn_error
"conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24595 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24596 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24599 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24600 as_fn_error
"conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24603 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24604 as_fn_error
"conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24610 if test -n "$gl_LIBOBJS"; then
24611 # Remove the extension.
24612 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24613 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24614 gl_libobjs
="$gl_libobjs $i.$ac_objext"
24615 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
24618 gl_LIBOBJS
=$gl_libobjs
24620 gl_LTLIBOBJS
=$gl_ltlibobjs
24626 if test -n "$gltests_LIBOBJS"; then
24627 # Remove the extension.
24628 sed_drop_objext
='s/\.o$//;s/\.obj$//'
24629 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24630 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
24631 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
24634 gltests_LIBOBJS
=$gltests_libobjs
24636 gltests_LTLIBOBJS
=$gltests_ltlibobjs
24640 : ${CONFIG_STATUS=./config.status}
24642 ac_clean_files_save
=$ac_clean_files
24643 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24649 # Generated by $as_me.
24650 # Run this file to recreate the current configuration.
24651 # Compiler output produced by configure, useful for debugging
24652 # configure, is in config.log if it exists.
24655 ac_cs_recheck=false
24658 SHELL=\${CONFIG_SHELL-$SHELL}
24661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24662 ## -------------------- ##
24663 ## M4sh Initialization. ##
24664 ## -------------------- ##
24666 # Be more Bourne compatible
24667 DUALCASE
=1; export DUALCASE
# for MKS sh
24668 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24672 # is contrary to our usage. Disable this feature.
24673 alias -g '${1+"$@"}'='"$@"'
24674 setopt NO_GLOB_SUBST
24676 case `(set -o) 2>/dev/null` in #(
24688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24689 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24692 # Prefer a ksh shell builtin over an external printf program on Solaris,
24693 # but without wasting forks for bash or zsh.
24694 if test -z "$BASH_VERSION$ZSH_VERSION" \
24695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24696 as_echo='print
-r --'
24697 as_echo_n='print
-rn --'
24698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24699 as_echo='printf %s
\n'
24700 as_echo_n='printf %s
'
24702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24703 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24704 as_echo_n='/usr
/ucb
/echo -n'
24706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24707 as_echo_n_body='eval
24711 expr "X$arg" : "X\\(.*\\)$as_nl";
24712 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24714 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24716 export as_echo_n_body
24717 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24719 export as_echo_body
24720 as_echo='sh
-c $as_echo_body as_echo
'
24723 # The user is always right.
24724 if test "${PATH_SEPARATOR+set}" != set; then
24726 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24727 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24734 # We need space, tab and new line, in precisely that order. Quoting is
24735 # there to prevent editors from complaining about space-tab.
24736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24737 # splitting by setting IFS to empty value.)
24740 # Find who we are. Look in the path if we contain no directory separator.
24742 *[\\/]* ) as_myself=$0 ;;
24743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24744 for as_dir in $PATH
24747 test -z "$as_dir" && as_dir=.
24748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24754 # We did not find ourselves, most probably we were run as `sh COMMAND'
24755 # in which case we are not to be found in the path.
24756 if test "x$as_myself" = x
; then
24759 if test ! -f "$as_myself"; then
24760 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24764 # Unset variables that we do not need and which cause bugs (e.g. in
24765 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24766 # suppresses any "Segmentation fault" message there. '((' could
24767 # trigger a bug in pdksh 5.2.14.
24768 for as_var
in BASH_ENV ENV MAIL MAILPATH
24769 do eval test x\
${$as_var+set} = xset \
24770 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24783 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24786 # as_fn_error ERROR [LINENO LOG_FD]
24787 # ---------------------------------
24788 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24789 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24790 # script with status $?, using 1 if that was 0.
24793 as_status
=$?
; test $as_status -eq 0 && as_status
=1
24795 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24796 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24798 $as_echo "$as_me: error: $1" >&2
24799 as_fn_exit
$as_status
24803 # as_fn_set_status STATUS
24804 # -----------------------
24805 # Set $? to STATUS, without forking.
24806 as_fn_set_status
()
24809 } # as_fn_set_status
24811 # as_fn_exit STATUS
24812 # -----------------
24813 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24817 as_fn_set_status
$1
24823 # Portably unset VAR.
24826 { eval $1=; unset $1;}
24828 as_unset
=as_fn_unset
24829 # as_fn_append VAR VALUE
24830 # ----------------------
24831 # Append the text in VALUE to the end of the definition contained in VAR. Take
24832 # advantage of any shell optimizations that allow amortized linear growth over
24833 # repeated appends, instead of the typical quadratic growth present in naive
24835 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
24836 eval 'as_fn_append ()
24847 # as_fn_arith ARG...
24848 # ------------------
24849 # Perform arithmetic evaluation on the ARGs, and store the result in the
24850 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24851 # must be portable across $(()) and expr.
24852 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
24853 eval 'as_fn_arith ()
24860 as_val
=`expr "$@" || test $? -eq 1`
24865 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24866 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24872 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24873 as_basename
=basename
24878 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24884 as_me
=`$as_basename -- "$0" ||
24885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24886 X"$0" : 'X\(//\)$' \| \
24887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24889 sed '/^.*\/\([^/][^/]*\)\/*$/{
24903 # Avoid depending upon Character Ranges.
24904 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24905 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24906 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24907 as_cr_digits
='0123456789'
24908 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24910 ECHO_C
= ECHO_N
= ECHO_T
=
24911 case `echo -n x` in #(((((
24913 case `echo 'xy\c'` in
24914 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24916 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
24923 rm -f conf$$ conf$$.exe conf$$.
file
24924 if test -d conf$$.dir
; then
24925 rm -f conf$$.dir
/conf$$.
file
24928 mkdir conf$$.dir
2>/dev
/null
24930 if (echo >conf$$.
file) 2>/dev
/null
; then
24931 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24933 # ... but there are two gotchas:
24934 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24935 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24936 # In both cases, we have to default to `cp -p'.
24937 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24939 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24947 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24948 rmdir conf$$.dir
2>/dev
/null
24953 # Create "$as_dir" as a directory, including parents if necessary.
24958 -*) as_dir
=.
/$as_dir;;
24960 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
24964 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24965 *) as_qdir
=$as_dir;;
24967 as_dirs
="'$as_qdir' $as_dirs"
24968 as_dir
=`$as_dirname -- "$as_dir" ||
24969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24970 X"$as_dir" : 'X\(//\)[^/]' \| \
24971 X"$as_dir" : 'X\(//\)$' \| \
24972 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24973 $as_echo X"$as_dir" |
24974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24978 /^X\(\/\/\)[^/].*/{
24991 test -d "$as_dir" && break
24993 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24994 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
24998 if mkdir
-p .
2>/dev
/null
; then
24999 as_mkdir_p
='mkdir -p "$as_dir"'
25001 test -d .
/-p && rmdir .
/-p
25005 if test -x / >/dev
/null
2>&1; then
25006 as_test_x
='test -x'
25008 if ls -dL / >/dev
/null
2>&1; then
25015 if test -d "$1"; then
25021 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25022 ???[sx]*):;;*)false;;esac;fi
25026 as_executable_p
=$as_test_x
25028 # Sed expression to map a string onto a valid CPP name.
25029 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25031 # Sed expression to map a string onto a valid variable name.
25032 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25036 ## ----------------------------------- ##
25037 ## Main body of $CONFIG_STATUS script. ##
25038 ## ----------------------------------- ##
25040 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25043 # Save the log message, to keep $0 and so on meaningful, and to
25044 # report actual input values of CONFIG_FILES etc. instead of their
25045 # values after options handling.
25047 This file was extended by emacs $as_me 24.2.50, which was
25048 generated by GNU Autoconf 2.65. Invocation command line was
25050 CONFIG_FILES = $CONFIG_FILES
25051 CONFIG_HEADERS = $CONFIG_HEADERS
25052 CONFIG_LINKS = $CONFIG_LINKS
25053 CONFIG_COMMANDS = $CONFIG_COMMANDS
25056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25061 case $ac_config_files in *"
25062 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25065 case $ac_config_headers in *"
25066 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25071 # Files that config.status was made for.
25072 config_files="$ac_config_files"
25073 config_headers="$ac_config_headers"
25074 config_commands="$ac_config_commands"
25078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25080 \`$as_me' instantiates files and other configuration actions
25081 from templates according to the current configuration. Unless the files
25082 and actions are specified as TAGs, all are instantiated by default.
25084 Usage: $0 [OPTION]... [TAG]...
25086 -h, --help print this help, then exit
25087 -V, --version print version number and configuration settings, then exit
25088 --config print configuration, then exit
25089 -q, --quiet, --silent
25090 do not print progress messages
25091 -d, --debug don't remove temporary files
25092 --recheck update $as_me by reconfiguring in the same conditions
25093 --file=FILE[:TEMPLATE]
25094 instantiate the configuration file FILE
25095 --header=FILE[:TEMPLATE]
25096 instantiate the configuration header FILE
25098 Configuration files:
25101 Configuration headers:
25104 Configuration commands:
25107 Report bugs to the package provider."
25110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25111 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25113 emacs config.status 24.2.50
25114 configured by $0, generated by GNU Autoconf 2.65,
25115 with options \\"\$ac_cs_config\\"
25117 Copyright (C) 2009 Free Software Foundation, Inc.
25118 This config.status script is free software; the Free Software Foundation
25119 gives unlimited permission to copy, distribute and modify it."
25126 test -n "\$AWK" || AWK=awk
25129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25130 # The default lists apply if the user does not specify any file.
25136 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25137 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25148 # Handling of the options.
25149 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25151 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25152 $as_echo "$ac_cs_version"; exit ;;
25153 --config |
--confi |
--conf |
--con |
--co |
--c )
25154 $as_echo "$ac_cs_config"; exit ;;
25155 --debug |
--debu |
--deb |
--de |
--d |
-d )
25157 --file |
--fil |
--fi |
--f )
25160 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25162 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25163 ac_need_defaults
=false
;;
25164 --header |
--heade |
--head |
--hea )
25167 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25169 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25170 ac_need_defaults
=false
;;
25172 # Conflict between --help and --header
25173 as_fn_error
"ambiguous option: \`$1'
25174 Try \`$0 --help' for more information.";;
25175 --help |
--hel |
-h )
25176 $as_echo "$ac_cs_usage"; exit ;;
25177 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25178 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25181 # This is an error.
25182 -*) as_fn_error
"unrecognized option: \`$1'
25183 Try \`$0 --help' for more information." ;;
25185 *) as_fn_append ac_config_targets
" $1"
25186 ac_need_defaults
=false
;;
25192 ac_configure_extra_args
=
25194 if $ac_cs_silent; then
25196 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25201 if \$ac_cs_recheck; then
25202 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25204 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25205 CONFIG_SHELL='$SHELL'
25206 export CONFIG_SHELL
25211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25216 ## Running $as_me. ##
25222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25226 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25227 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25233 # Handling of arguments.
25234 for ac_config_target
in $ac_config_targets
25236 case $ac_config_target in
25237 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25238 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25239 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
25240 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES
="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25241 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25242 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES
="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
25243 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25244 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
25245 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
25246 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25247 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25248 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25249 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25250 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25251 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
25252 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25253 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25254 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25255 "nextstep/Makefile") CONFIG_FILES
="$CONFIG_FILES nextstep/Makefile" ;;
25256 "test/automated/Makefile") CONFIG_FILES
="$CONFIG_FILES test/automated/Makefile" ;;
25257 "admin/unidata/Makefile") CONFIG_FILES
="$CONFIG_FILES admin/unidata/Makefile" ;;
25258 "mkdirs") CONFIG_COMMANDS
="$CONFIG_COMMANDS mkdirs" ;;
25259 "epaths") CONFIG_COMMANDS
="$CONFIG_COMMANDS epaths" ;;
25260 "gdbinit") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbinit" ;;
25262 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25267 # If the user did not use the arguments to specify the items to instantiate,
25268 # then the envvar interface is used. Set only those that are not.
25269 # We use the long form for the default assignment because of an extremely
25270 # bizarre bug on SunOS 4.1.3.
25271 if $ac_need_defaults; then
25272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25277 # Have a temporary directory for convenience. Make it in the build tree
25278 # simply because there is no reason against having it here, and in addition,
25279 # creating and moving files from /tmp can sometimes cause problems.
25280 # Hook for its removal unless debugging.
25281 # Note that there is a small window in which the directory will not be cleaned:
25282 # after its creation but before its name has been assigned to `$tmp'.
25286 trap 'exit_status=$?
25287 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25289 trap 'as_fn_exit 1' 1 2 13 15
25291 # Create a (secure) tmp directory for tmp files.
25294 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25295 test -n "$tmp" && test -d "$tmp"
25298 tmp
=.
/conf$$
-$RANDOM
25299 (umask 077 && mkdir
"$tmp")
25300 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
25302 # Set up the scripts for CONFIG_FILES section.
25303 # No need to generate them if there are no CONFIG_FILES.
25304 # This happens for instance with `./config.status config.h'.
25305 if test -n "$CONFIG_FILES"; then
25307 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
25308 ac_cs_awk_getline
=:
25309 ac_cs_awk_pipe_init
=
25310 ac_cs_awk_read_file
='
25311 while ((getline aline < (F[key])) > 0)
25314 ac_cs_awk_pipe_fini
=
25316 ac_cs_awk_getline
=false
25317 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
25318 ac_cs_awk_read_file
='
25320 print "cat " F[key] " &&"
25321 '$ac_cs_awk_pipe_init
25322 # The final `:' finishes the AND list.
25323 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
25325 ac_cr
=`echo X | tr X '\015'`
25326 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25327 # But we know of no other shell where ac_cr would be empty at this
25328 # point, so we can use a bashism as a fallback.
25329 if test "x$ac_cr" = x
; then
25330 eval ac_cr
=\$
\'\\r
\'
25332 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25333 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25336 ac_cs_awk_cr
=$ac_cr
25339 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25342 # Create commands to substitute file output variables.
25344 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25345 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25346 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
25349 } >conf$
$files.sh
&&
25350 . .
/conf$
$files.sh ||
25351 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
25352 rm -f conf$
$files.sh
25355 echo "cat >conf$$subs.awk <<_ACEOF" &&
25356 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25358 } >conf$$subs.sh ||
25359 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25360 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25362 for ac_last_try in false false false false false :; do
25363 . ./conf$$subs.sh ||
25364 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25366 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25367 if test $ac_delim_n = $ac_delim_num; then
25369 elif $ac_last_try; then
25370 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
25372 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25375 rm -f conf$$subs.sh
25377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25378 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25382 s/^/S["/; s
/!.
*/"]=/
25392 s/\(.\{148\}\)..*/\1/
25394 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25399 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25406 s/\(.\{148\}\)..*/\1/
25408 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25412 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25417 ' <conf$$subs.awk | sed '
25422 ' >>$CONFIG_STATUS || ac_write_fail=1
25423 rm -f conf$$subs.awk
25424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25426 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25427 for (key in S) S_is_set[key] = 1
25429 \$ac_cs_awk_pipe_init
25433 nfields = split(line, field, "@
")
25435 len = length(field[1])
25436 for (i = 2; i < nfields; i++) {
25438 keylen = length(key)
25439 if (S_is_set[key]) {
25441 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25442 len += length(value) + length(field[++i])
25447 if (nfields == 3 && !substed) {
25449 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25450 \$ac_cs_awk_read_file
25456 \$ac_cs_awk_pipe_fini
25459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25460 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25461 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25464 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25465 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
25468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
25470 # trailing colons and then remove the whole line if VPATH becomes empty
25471 # (actually we leave an empty line to preserve line numbers).
25472 if test "x
$srcdir" = x.; then
25473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25474 s/:*\$(srcdir):*/:/
25475 s/:*\${srcdir}:*/:/
25477 s/^\([^=]*=[ ]*\):*/\1/
25483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25484 fi # test -n "$CONFIG_FILES"
25486 # Set up the scripts for CONFIG_HEADERS section.
25487 # No need to generate them if there are no CONFIG_HEADERS.
25488 # This happens for instance with `./config.status Makefile'.
25489 if test -n "$CONFIG_HEADERS"; then
25490 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25494 # Transform confdefs.h into an awk script `defines.awk', embedded as
25495 # here-document in config.status, that substitutes the proper values into
25496 # config.h.in to produce config.h.
25498 # Create a delimiter string that does not exist in confdefs.h, to ease
25499 # handling of long lines.
25501 for ac_last_try in false false :; do
25502 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25503 if test -z "$ac_t"; then
25505 elif $ac_last_try; then
25506 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
25508 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25512 # For the awk script, D is an array of macro values keyed by name,
25513 # likewise P contains macro parameters if any. Preserve backslash
25514 # newline sequences.
25516 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25518 s/.\{148\}/&'"$ac_delim"'/g
25521 s/^[ ]*#[ ]*define[ ][ ]*/ /
25528 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
25530 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
25534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
25535 D["\
1"]=" \
3\\\\\\n
"\\/p
25537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
25542 s/.\{148\}/&'"$ac_delim"'/g
25547 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
25550 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
25552 ' <confdefs.h | sed '
25553 s/'"$ac_delim"'/"\\\
25554 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25557 for (key in D) D_is_set[key] = 1
25560 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25562 split(line, arg, " ")
25563 if (arg[1] == "#") {
25567 defundef
= substr
(arg
[1], 2)
25570 split(mac1
, mac2
, "(") #)
25572 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
25573 if (D_is_set
[macro
]) {
25574 # Preserve the white space surrounding the "#".
25575 print prefix
"define", macro P
[macro
] D
[macro
]
25578 # Replace #undef with comments. This is necessary, for example,
25579 # in the case of _POSIX_SOURCE, which is predefined and required
25580 # on some systems where configure will not decide to define it.
25581 if (defundef
== "undef") {
25582 print
"/*", prefix defundef
, macro
, "*/"
25590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25591 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
25592 fi # test -n "$CONFIG_HEADERS"
25595 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25600 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25602 case $ac_mode$ac_tag in
25604 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
25605 :[FH
]-) ac_tag
=-:-;;
25606 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25623 -) ac_f
="$tmp/stdin";;
25624 *) # Look for the file first in the build tree, then in the source tree
25625 # (if the path is not absolute). The absolute path cannot be DOS-style,
25626 # because $ac_f cannot contain `:'.
25630 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25632 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
25634 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25635 as_fn_append ac_file_inputs
" '$ac_f'"
25638 # Let's still pretend it is `configure' which instantiates (i.e., don't
25639 # use $as_me), people would be surprised to read:
25640 # /* config.h. Generated by config.status. */
25641 configure_input
='Generated from '`
25642 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25644 if test x
"$ac_file" != x-
; then
25645 configure_input
="$ac_file. $configure_input"
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25647 $as_echo "$as_me: creating $ac_file" >&6;}
25649 # Neutralize special characters interpreted by sed in replacement strings.
25650 case $configure_input in #(
25651 *\
&* |
*\|
* |
*\\* )
25652 ac_sed_conf_input
=`$as_echo "$configure_input" |
25653 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25654 *) ac_sed_conf_input
=$configure_input;;
25658 *:-:* |
*:-) cat >"$tmp/stdin" \
25659 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
25664 ac_dir
=`$as_dirname -- "$ac_file" ||
25665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25666 X"$ac_file" : 'X\(//\)[^/]' \| \
25667 X"$ac_file" : 'X\(//\)$' \| \
25668 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25669 $as_echo X"$ac_file" |
25670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25674 /^X\(\/\/\)[^/].*/{
25687 as_dir
="$ac_dir"; as_fn_mkdir_p
25691 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25693 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25694 # A ".." for each directory in $ac_dir_suffix.
25695 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25696 case $ac_top_builddir_sub in
25697 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25698 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25701 ac_abs_top_builddir
=$ac_pwd
25702 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25703 # for backward compatibility:
25704 ac_top_builddir
=$ac_top_build_prefix
25707 .
) # We are building in place.
25709 ac_top_srcdir
=$ac_top_builddir_sub
25710 ac_abs_top_srcdir
=$ac_pwd ;;
25711 [\\/]* | ?
:[\\/]* ) # Absolute name.
25712 ac_srcdir
=$srcdir$ac_dir_suffix;
25713 ac_top_srcdir
=$srcdir
25714 ac_abs_top_srcdir
=$srcdir ;;
25715 *) # Relative name.
25716 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25717 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25718 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25720 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25730 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25731 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25733 ac_MKDIR_P
=$MKDIR_P
25735 [\\/$
]* | ?
:[\\/]* ) ;;
25736 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
25740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25741 # If the template does not know about datarootdir, expand it.
25742 # FIXME: This hack should be removed a few years after 2.60.
25743 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25755 *datarootdir
*) ac_datarootdir_seen
=yes;;
25756 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25761 ac_datarootdir_hack='
25762 s&@datadir@&$datadir&g
25763 s&@docdir@&$docdir&g
25764 s&@infodir@&$infodir&g
25765 s&@localedir@&$localedir&g
25766 s&@mandir@&$mandir&g
25767 s&\\\${datarootdir}&$datarootdir&g' ;;
25771 # Neutralize VPATH when `$srcdir' = `.'.
25772 # Shell code in configure.ac might set extrasub.
25773 # FIXME: do we really want to maintain this feature?
25774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25775 ac_sed_extra="$ac_vpsub
25778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25780 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25781 s|@configure_input@|
$ac_sed_conf_input|
;t t
25782 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25783 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
25784 s
&@srcdir@
&$ac_srcdir&;t t
25785 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25786 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25787 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25788 s
&@builddir@
&$ac_builddir&;t t
25789 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25790 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25791 s
&@INSTALL@
&$ac_INSTALL&;t t
25792 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
25793 $ac_datarootdir_hack
25795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25796 if $ac_cs_awk_getline; then
25797 $AWK -f "$tmp/subs.
awk"
25799 $AWK -f "$tmp/subs.
awk" | $SHELL
25801 || as_fn_error "could not create
$ac_file" "$LINENO" 5
25803 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25804 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25805 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25807 which seems to be undefined. Please make sure it is defined." >&5
25808 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25809 which seems to be undefined. Please make sure it is defined." >&2;}
25813 -) cat "$tmp/out" && rm -f "$tmp/out";;
25814 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25816 || as_fn_error "could not create $ac_file" "$LINENO" 5
25822 if test x"$ac_file" != x-; then
25824 $as_echo "/* $configure_input */" \
25825 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25826 } >"$tmp/config.h" \
25827 || as_fn_error "could not create $ac_file" "$LINENO" 5
25828 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25833 mv "$tmp/config.h" "$ac_file" \
25834 || as_fn_error "could not create $ac_file" "$LINENO" 5
25837 $as_echo "/* $configure_input */" \
25838 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25839 || as_fn_error "could not create -" "$LINENO" 5
25841 # Compute "$ac_file"'s index
in $config_headers.
25844 for _am_header
in $config_headers :; do
25845 case $_am_header in
25846 $_am_arg |
$_am_arg:* )
25849 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
25852 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25853 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25854 X"$_am_arg" : 'X\(//\)[^/]' \| \
25855 X"$_am_arg" : 'X\(//\)$' \| \
25856 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25857 $as_echo X"$_am_arg" |
25858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25862 /^X\(\/\/\)[^/].*/{
25874 s/.*/./; q'`/stamp-h
$_am_stamp_count
25877 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25878 $as_echo "$as_me: executing $ac_file commands" >&6;}
25883 case $ac_file$ac_mode in
25884 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
25885 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25886 # are listed without --file. Let's play safe and only enable the eval
25887 # if we detect the quoting.
25888 case $CONFIG_FILES in
25889 *\'*) eval set x
"$CONFIG_FILES" ;;
25890 *) set x
$CONFIG_FILES ;;
25895 # Strip MF so we end up with the name of the file.
25896 mf
=`echo "$mf" | sed -e 's/:.*$//'`
25897 # Check whether this is an Automake generated Makefile or not.
25898 # We used to match only the files named `Makefile.in', but
25899 # some people rename them; so instead we look at the file content.
25900 # Grep'ing the first line is not enough: some people post-process
25901 # each Makefile.in and add a new line on top of each file to say so.
25902 # Grep'ing the whole file is not good either: AIX grep has a line
25903 # limit of 2048, but all sed's we know have understand at least 4000.
25904 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
25905 dirpart
=`$as_dirname -- "$mf" ||
25906 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25907 X"$mf" : 'X\(//\)[^/]' \| \
25908 X"$mf" : 'X\(//\)$' \| \
25909 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25915 /^X\(\/\/\)[^/].*/{
25931 # Extract the definition of DEPDIR, am__include, and am__quote
25932 # from the Makefile without running `make'.
25933 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
25934 test -z "$DEPDIR" && continue
25935 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
25936 test -z "am__include" && continue
25937 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
25938 # When using ansi2knr, U may be empty or an underscore; expand it
25939 U
=`sed -n 's/^U = //p' < "$mf"`
25940 # Find all dependency output files, they are included files with
25941 # $(DEPDIR) in their names. We invoke sed twice because it is the
25942 # simplest approach to changing $(DEPDIR) to its actual value in the
25944 for file in `sed -n "
25945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25947 # Make sure the directory exists.
25948 test -f "$dirpart/$file" && continue
25949 fdir
=`$as_dirname -- "$file" ||
25950 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25951 X"$file" : 'X\(//\)[^/]' \| \
25952 X"$file" : 'X\(//\)$' \| \
25953 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25954 $as_echo X"$file" |
25955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25959 /^X\(\/\/\)[^/].*/{
25972 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
25973 # echo "creating $dirpart/$file"
25974 echo '# dummy' > "$dirpart/$file"
25980 for dir
in etc lisp
; do
25981 test -d ${dir} || mkdir
${dir}
25985 echo creating src
/epaths.h
25986 ${MAKE-make} MAKEFILE_NAME
=do-not-make-Makefile epaths-force
25989 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25990 echo creating src
/.gdbinit
25991 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26001 ac_clean_files
=$ac_clean_files_save
26003 test $ac_write_fail = 0 ||
26004 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
26007 # configure is writing to config.log, and then calls config.status.
26008 # config.status does its own redirection, appending to config.log.
26009 # Unfortunately, on DOS this fails, as config.log is still kept open
26010 # by configure, so config.status won't be able to write to it; its
26011 # output is simply discarded. So we exec the FD to /dev/null,
26012 # effectively closing config.log, so it can be properly (re)opened and
26013 # appended to by config.status. When coming back to configure, we
26014 # need to make the FD available again.
26015 if test "$no_create" != yes; then
26017 ac_config_status_args
=
26018 test "$silent" = yes &&
26019 ac_config_status_args
="$ac_config_status_args --quiet"
26021 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26023 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26024 # would make configure fail if this is the last instruction.
26025 $ac_cs_success || as_fn_exit $?
26027 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26029 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}